/* ===== PALETTE =====
   Tech Blue:  #0052FF
   Ocean Blue: #00A3FF
   Light Gray: #DCDDD0
   White:      #FFFFFF
   Dark Blue:  #040B14
   =================== */

:root {
  --dark: #040B14;
  --tech: #0052FF;
  --ocean: #00A3FF;
  --gray: #DCDDD0;
  --white: #FFFFFF;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: var(--dark);
  background-image: radial-gradient(circle at 50% 0%, #001f5c 0%, var(--dark) 60%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== AMBIENT GLOW ORBS ===== */
.site-shell { position: relative; overflow-x: clip; }

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.8;
  z-index: 0;
  will-change: transform;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -10%; left: -5%;
  background: radial-gradient(circle, var(--tech), transparent 75%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-2 {
  width: 500px; height: 500px;
  top: 40%; right: -8%;
  background: radial-gradient(circle, var(--ocean), transparent 75%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
  opacity: 0.7;
}
.glow-3 {
  width: 700px; height: 700px;
  bottom: -15%; left: 30%;
  background: radial-gradient(circle, var(--tech), transparent 75%);
  animation: drift 25s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ===== LAYOUT ===== */
.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== NAVBAR ===== */
.topbar {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin: 1.25rem auto 0;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: none;
  border-radius: 100px;
  background: rgba(4, 11, 20, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  transition: background 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 82, 255, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--white);
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.footer-logo {
  height: 74px;
}

.nav-links { display: flex; gap: 2rem; }

.nav-links a,
.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.25s;
}
.nav-links a:hover,
.footer-links a:hover { color: var(--white); }

.store-actions { display: flex; gap: 0.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn.apple {
  background: #ffffff;
  color: #040b14;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 0 20px rgba(255, 255, 255, 0.15);
  padding: 0.52rem 0.95rem;
  font-size: 0.8rem;
}

.btn.apple:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5), 0 0 28px rgba(255, 255, 255, 0.22);
}

.btn.primary {
  background: linear-gradient(135deg, var(--tech), var(--ocean));
  color: var(--white);
  box-shadow: 0 4px 25px rgba(0, 82, 255, 0.5);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 163, 255, 0.6);
}

.btn.ghost {
  background: rgba(0, 82, 255, 0.05);
  border: 1px solid rgba(0, 163, 255, 0.3);
  color: var(--white);
}
.btn.ghost:hover {
  background: rgba(0, 82, 255, 0.15);
  border-color: rgba(0, 163, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 163, 255, 0.2);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--ocean) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-block;
  color: var(--ocean);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 60ch;
}

.section-header {
  max-width: 660px;
  margin-bottom: 3.5rem;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 6.5rem 0 4.5rem;
  text-align: center;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  margin-bottom: 0.8rem;
}

.hero-copy .subtitle {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero .hero-actions .btn {
  padding: 0.95rem 0.95rem;
  font-size: 0.97rem;
  font-weight: 700;
}

.hero-media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phone-frame {
  max-width: min(1160px, 100%);
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 0;
  filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.14));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ===== SECTION SPACING ===== */
.feature-overview,
.split-section,
.testimonials {
  padding: 6rem 0;
}

/* ===== CARDS ===== */
.card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 163, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  border-color: rgba(0, 163, 255, 0.4);
  background: rgba(0, 163, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 82, 255, 0.15), 0 0 30px rgba(0, 163, 255, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.3), rgba(0, 163, 255, 0.15));
  border: 1px solid rgba(0, 163, 255, 0.3);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--white);
}

.card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-grid .card {
  border: none;
}

.feature-grid .card:hover {
  border: none;
}

.mini-cards .card,
.mini-cards .card:hover,
.testimonial-grid .card,
.testimonial-grid .card:hover {
  border: none;
}

/* ===== SPLIT SECTION ===== */
.split-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-media {
  border-radius: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
}

.split-media img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.mini-cards {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.mini-cards .card {
  padding: 1.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-grid .card p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tech), var(--ocean));
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== CTA BAND ===== */
.cta-band {
  margin: 2rem 0 4rem;
  padding: 0;
  width: 100%;
}

.cta-inner {
  text-align: center;
  width: min(1120px, calc(100vw - 2.5rem));
  margin-inline: auto;
  padding: 4rem 3rem;
  border-radius: 2rem;
  border: 1px solid rgba(0, 163, 255, 0.2);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 82, 255, 0.3) 0%, transparent 60%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 163, 255, 0.1);
}

.cta-inner h2 { margin-bottom: 0.75rem; }
.cta-inner .subtitle { margin: 0 auto 0; }
.cta-inner .hero-actions { justify-content: center; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 1.25rem;
  display: grid;
  gap: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand-block {
  max-width: 320px;
}

.footer-brand-block .brand {
  margin-bottom: 0.9rem;
}

.footer-brand-block .muted {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 3rem;
  row-gap: 0.85rem;
  align-content: start;
}

.footer-links-grid a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links-grid a:hover {
  color: var(--white);
}

.footer-spacer {
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
}

.footer-bottom .muted {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== LEGAL PAGES ===== */
.legal-topbar {
  margin-top: 1.5rem;
}

.legal-page {
  padding: 3rem 0 5rem;
}

.legal-meta {
  margin-bottom: 2rem;
}

.legal-section {
  margin-bottom: 1.2rem;
  padding: 2rem;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.legal-section h3 {
  font-size: 1rem;
  color: var(--white);
  margin: 1.2rem 0 0.6rem;
}

.legal-section p,
.legal-section li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-section a {
  color: #9bc6ff;
  text-underline-offset: 0.2em;
}

.legal-section a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero { padding: 5rem 0 3rem; }
  .hero-copy .subtitle { margin: 0 auto; }
  .hero-actions { justify-content: center; }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 1.25rem;
    gap: 1rem;
    padding: 1rem;
  }

  .phone-frame { max-width: min(960px, 100%); }
  .section-header { margin: 0 auto 3.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }

  /* Mobile Typography */
  h1 { font-size: clamp(1.28rem, 6vw, 1.62rem); margin-bottom: 0.6rem; }
  h2 { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  h3 { font-size: 0.95rem; }
  .subtitle { font-size: 0.8rem; line-height: 1.35; }
  p, li, a { font-size: 0.84rem; }
  .eyebrow { font-size: 0.64rem; margin-bottom: 0.75rem; }
  
  /* Sections */
  .hero { padding: 2.4rem 0 1.4rem; gap: 1.25rem; }
  .feature-overview,
  .split-section,
  .testimonials { padding: 2.6rem 0; }
  
  /* Grids */
  .feature-grid,
  .testimonial-grid,
  .mini-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Cards */
  .card { padding: 1.05rem; border-radius: 0.95rem; }
  .card h3 { margin-bottom: 0.45rem; }
  .card p { font-size: 0.82rem; line-height: 1.45; }
  .card-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 0.8rem; }

  /* Buttons */
  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.2rem;
  }
  .hero .hero-actions .btn {
    width: auto;
    min-width: 0;
    padding: 0.56rem 0.7rem;
    font-size: 0.7rem;
  }

  /* Topbar */
  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.38rem 0.7rem;
    border-radius: 100px;
    margin-top: 1rem;
  }
  .brand { font-size: 1.1rem; }
  .brand-logo { height: 24px; }
  .footer-logo { height: 44px; }
  .nav-links { 
    display: none; /* Hide jump links on phone for a cleaner pill look */
  }
  .store-actions {
    display: flex;
    width: auto;
    grid-template-columns: none;
    gap: 0.5rem;
  }
  .store-actions .btn { padding: 0.32rem 0.58rem; font-size: 0.62rem; }

  /* CTA Band */
  .cta-band { padding: 3rem 0; margin: 1rem 0 2rem; }
  .cta-inner { padding: 2.5rem 1.5rem; border-radius: 1.5rem; }
  .cta-inner h2 { font-size: clamp(1.25rem, 6vw, 1.65rem); }
  .cta-inner .subtitle { font-size: 0.84rem; }
  
  /* Adjust Glows for mobile to prevent overflow/weird scrolling */
  .glow-1 { width: 400px; height: 400px; top: -5%; left: -20%; }
  .glow-2 { width: 300px; height: 300px; right: -20%; }
  .glow-3 { width: 400px; height: 400px; bottom: 0; left: 10%; }
  
  /* Footer */
  .footer { text-align: left; justify-items: stretch; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links-grid {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
    column-gap: 0;
  }
  .footer-brand-block .muted,
  .footer-links-grid a,
  .footer-bottom .muted {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .footer-spacer { display: none; }

  .legal-page {
    padding: 2rem 0 3rem;
  }

  .legal-section {
    padding: 1.35rem;
  }
}
