/* CoandaView Landing Page Styles */

:root {
  /* Apple-style colors matching CoandaCloud */
  --apple-blue: #007AFF;
  --apple-gray: #8E8E93;
  --apple-background: #000000;
  --apple-surface: rgba(255, 255, 255, 0.05);
  --apple-border: rgba(255, 255, 255, 0.1);
  --apple-text: #FFFFFF;
  --apple-accent: #30D158;
  --blur-amount: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: var(--apple-background);
  color: var(--apple-text);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border-bottom: 1px solid var(--apple-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--apple-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--apple-blue);
}

.nav-auth {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-hero,
.btn-submit {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--apple-blue);
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--apple-surface);
  color: var(--apple-text);
  border: 1px solid var(--apple-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-hero {
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-accent));
  color: white;
  padding: 14px 32px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 122, 255, 0.3);
}

.btn-submit {
  width: 100%;
  background: var(--apple-blue);
  color: white;
  padding: 12px;
  font-size: 16px;
}

.btn-submit:hover {
  background: #0056b3;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
  animation: heroOverlayFade 1.5s ease-out forwards;
}

@keyframes heroOverlayFade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  animation: heroContentFade 1s ease-out 1s forwards;
  opacity: 0;
}

@keyframes heroContentFade {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-highlight {
  display: block;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 14px;
}

.feature-badge img {
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: 80px 24px;
  background: var(--apple-surface);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--apple-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 48px;
  height: 48px;
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--apple-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* Pricing Section */
.pricing {
  padding: 80px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
}

.pricing-card.featured {
  border-color: var(--apple-blue);
  border-width: 2px;
}


.pricing-plan-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-storage {
  font-size: 14px;
  color: var(--apple-gray);
  margin-bottom: 20px;
}

.pricing-description {
  font-size: 14px;
  color: var(--apple-gray);
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-price-currency {
  font-size: 0.4em;
  vertical-align: super;
}

.pricing-price-period {
  font-size: 0.3em;
  color: var(--apple-gray);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--apple-gray);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--apple-accent);
  font-weight: 700;
}

.pricing-button {
  width: 100%;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  margin-top: 16px;
}

.pricing-button.primary {
  background: var(--apple-blue);
  color: white;
}

.pricing-button.primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.pricing-button.featured {
  background: var(--apple-accent);
  color: white;
}

.pricing-button.featured:hover {
  background: #2ec04d;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--apple-gray);
  font-size: 16px;
}

/* About Section */
.about {
  padding: 80px 24px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--apple-gray);
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 24px;
}

/* Contact Section */
.contact {
  padding: 80px 24px;
  background: var(--apple-surface);
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact .form-group {
  margin-bottom: 20px;
}

.contact .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--apple-bg);
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  color: var(--apple-text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.contact .form-group textarea:focus {
  border-color: var(--apple-blue);
}

.drop-zone {
  width: 100%;
  padding: 32px 16px;
  background: var(--apple-bg);
  border: 2px dashed var(--apple-border);
  border-radius: 10px;
  color: var(--apple-gray);
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover {
  border-color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.04);
}

.drop-zone.drag-over {
  border-color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.08);
}

.drop-zone p {
  margin: 0;
}

.drop-zone-browse {
  color: var(--apple-blue);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--apple-bg);
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--apple-text);
}

.file-list-item .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-list-item .file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list-item .file-size {
  color: var(--apple-gray);
  font-size: 12px;
  flex-shrink: 0;
}

.file-list-item .file-remove {
  background: none;
  border: none;
  color: var(--apple-gray);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.file-list-item .file-remove:hover {
  color: #ff453a;
  background: rgba(255, 69, 58, 0.1);
}

.contact .btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: var(--apple-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact .btn-submit:hover {
  background: #0056b3;
}

.contact .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  gap: 16px;
}

.contact-success h3 {
  font-size: 24px;
  color: #30D158;
}

.contact-success p {
  color: var(--apple-gray);
  font-size: 16px;
}

@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 122, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--apple-gray);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--apple-text);
}

/* Terms of Service / Privacy Policy Modal Styling */
.tos-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--apple-gray);
}

.tos-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--apple-text);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--apple-border);
}

.tos-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--apple-text);
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tos-content h2:first-of-type {
  margin-top: 16px;
}

.tos-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 20px 0 12px 0;
}

.tos-content p {
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.7);
}

.tos-content ul {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.tos-content ul li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.7);
}

.tos-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--apple-blue);
  font-weight: bold;
}

.tos-content strong {
  color: var(--apple-text);
  font-weight: 600;
}

.tos-content a {
  color: var(--apple-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.tos-content a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.tos-content pre {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 13px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.8);
}

.tos-content hr {
  border: none;
  border-top: 1px solid var(--apple-border);
  margin: 32px 0;
}

/* Beta/Important notices styling */
.tos-content p strong:first-child {
  display: inline;
}

.tos-content>p:first-child {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--apple-blue);
}

/* Nested lists for sub-items */
.tos-content ul ul {
  margin: 8px 0 8px 20px;
}

.tos-content ul ul li::before {
  content: "◦";
}

/* Auth Forms */
.auth-form h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--apple-gray);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  color: var(--apple-text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--apple-blue);
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--apple-gray);
}

.error-message {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF3B30;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.success-message {
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: #30D158;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  color: var(--apple-gray);
  font-size: 14px;
}

.auth-switch a {
  color: var(--apple-blue);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Showcase Section */
.showcase {
  padding: 80px 24px;
  background: var(--apple-background);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row-reverse {
  direction: rtl;
}

.showcase-row-reverse>* {
  direction: ltr;
}

.showcase-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--apple-border);
  background: rgba(255, 255, 255, 0.02);
}

.showcase-image img,
.showcase-image video {
  width: 100%;
  height: auto;
  display: block;
}

/* Full-width showcase variant: video spans full width, text centered below */
.showcase-row-full {
  grid-template-columns: 1fr;
  text-align: center;
}

.showcase-row-full .showcase-content {
  max-width: none;
  margin: 0 auto;
}

.showcase-row-full .showcase-features {
  display: inline-block;
  text-align: left;
}

.showcase-features-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 48px;
  max-width: 720px;
  margin: 0 auto !important;
  text-align: left;
}

.showcase-content h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--apple-text), var(--apple-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-content p {
  font-size: 18px;
  color: var(--apple-gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.showcase-features li {
  padding: 8px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--apple-blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .nav-menu {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-price {
    font-size: 36px;
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }

  .showcase-row-reverse {
    direction: ltr;
  }

  .showcase-content h3 {
    font-size: 24px;
  }

  .showcase-content p {
    font-size: 16px;
  }

  .showcase-features-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}