@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b1120;
  --surface: rgba(15, 23, 42, 0.65);
  --surface-hover: rgba(30, 41, 59, 0.85);
  --text: #ffffff;
  --text-light: #f8fafc;
  --muted: #a1a1aa;
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --accent: #8b5cf6;
  --accent-light: #c4b5fd;
  --line: rgba(51, 65, 85, 0.6);
  --line-strong: rgba(71, 85, 105, 0.9);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  transition: opacity 200ms ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link,
.nav-btn {
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease;
}

.nav-link:hover,
.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cta-btn,
.pill-link {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn:hover,
.pill-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.cta-btn:active,
.pill-link:active {
  transform: translateY(0) scale(0.98);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-panel {
  background: transparent;
  color: var(--text-light);
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-family: inherit;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 1.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-primary-cta {
  min-height: 56px;
  font-size: 1.1rem;
  padding: 0 2rem;
}

.hero-cta-note {
  margin: 1.5rem 0 0 !important;
  font-size: 0.95rem !important;
  color: rgba(255,255,255,0.6) !important;
}

.hero-shot {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-shot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Hero Flow Visualization */
.flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 1rem 0 0; /* Add top margin to balance labels below */
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
  position: relative;
  width: 100px;
}

.flow-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  color: var(--text);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease;
}

.flow-icon-block {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.2);
}

.flow-icon-list {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

.flow-icon-check {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
}

.flow-step:hover .flow-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.flow-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.flow-label-final {
  color: var(--text-light);
  font-weight: 600;
}

.flow-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(59, 130, 246, 0.4), rgba(255,255,255,0.05));
  position: relative;
  margin-top: 1.75rem; /* center with 3.5rem icon height */
  min-width: 25px;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  box-shadow: 0 0 10px 2px rgba(96, 165, 250, 0.6);
  animation: flowLight 3s linear infinite;
  opacity: 0;
}

.flow-line:last-of-type::after {
  animation-delay: 1.5s;
}

@keyframes flowLight {
  0% { left: -50%; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

h2 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

h3 {
  margin: 0.5rem 0 0.8rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.6;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.info-block {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.info-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}

.triptych,
.card-grid,
.feature-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.triptych {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card,
.why-card,
.feature-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), border-color 300ms ease, box-shadow 300ms ease;
  display: flex;
  flex-direction: column;
}

.stat-card:hover,
.why-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  background: var(--surface-hover);
}

.icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary);
  display: inline-grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transition: transform 300ms ease, background-color 300ms ease;
}

.feature-card:hover .icon,
.why-card:hover .icon,
.stat-card:hover .icon {
  transform: scale(1.1) rotate(2deg);
  background: rgba(59, 130, 246, 0.2);
}

.dark-section {
  background: rgba(11, 17, 32, 0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.feature-card p,
.why-card p,
.stat-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.final-cta {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  color: var(--text-light);
  text-align: center;
  border-radius: calc(var(--radius) + 12px);
  padding: 4.5rem 2rem;
  margin: 1.5rem auto;
  max-width: 900px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 50%);
  pointer-events: none;
}

.final-cta p.lead {
  margin: 0 auto 2.5rem;
}

.site-footer {
  background: rgba(9, 14, 23, 0.95);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.footer-group h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-group a,
.footer-group button {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin: 0.8rem 0;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  transition: color 200ms ease;
}

.footer-group a:hover,
.footer-group button:hover {
  color: var(--text);
}

.footer-base {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.social-list a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.social-list a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.badge-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-badge {
  min-height: 56px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 250ms ease, background-color 250ms ease, border-color 250ms ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-badge small {
  opacity: 0.7;
  font-size: 0.75rem;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.store-badge strong {
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
}

.store-badge:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 23, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal[aria-hidden='false'] {
  display: flex;
  animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(520px, 100%);
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  animation: slideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,0.2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-panel,
  .two-col {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero h1 {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }

  .nav-list {
    display: none; /* Hide on smaller screens for simplicity if needed, or convert to hamburger */
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
  }
  
  .hero-panel {
    padding-top: 1rem;
  }

  .section {
    padding: 5rem 0;
  }

  h2 {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-group a,
  .footer-group button {
    text-align: center;
  }

  .footer-base {
    flex-direction: column;
    text-align: center;
  }
}
