:root {
  --bg: #030b16;
  --bg-deep: #01050b;
  --bg-alt: rgba(255, 255, 255, 0.05);
  --text: #eaf6fb;
  --text-muted: #93b8c9;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #1fa9a8;
  --accent-2: #0670a0;
  --card-bg: rgba(14, 40, 61, 0.45);
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html {
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* Native cross-document page transition (Chromium/Safari; no-op elsewhere) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Deep sea backdrop: vertical depth gradient + light shafts + drifting bubbles */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ocean-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(180deg, #0a2438 0%, #071a2b 22%, #041220 48%, #020b16 72%, var(--bg-deep) 100%);
}

.ocean-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 90px
  );
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 0%, transparent 75%);
  opacity: 0.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1em; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(3, 11, 22, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 30px rgba(31, 169, 168, 0.3);
}
.btn-primary:hover { opacity: 0.92; }

.play-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: white;
}

/* Attention pulse: a soft breathing glow to draw the eye to the primary CTA */
.btn-attention {
  animation: btn-pulse 2.6s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(31, 169, 168, 0.3), 0 0 0 0 rgba(31, 169, 168, 0.35);
  }
  50% {
    box-shadow: 0 8px 30px rgba(31, 169, 168, 0.3), 0 0 0 10px rgba(31, 169, 168, 0);
  }
}

.btn-small {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}
.btn-small:hover { background: var(--bg-alt); }

/* Shimmer: a periodic light sweep hinting the button is clickable */
.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: translateX(-220%);
  animation: btn-shimmer 3.6s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%   { transform: translateX(-220%); }
  35%  { transform: translateX(320%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-attention { animation: none; }
  .btn-shimmer::after { animation: none; display: none; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 72px 24px 56px;
}

.lede {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions { margin-top: 28px; }

.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-mock {
  width: 220px;
  height: 440px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(31, 169, 168, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero carousel: user- and autoplay-driven crossfade through a stack of screenshots */
.hero-carousel { position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active {
  background: var(--accent-2);
  transform: scale(1.35);
}

/* Features */
.features { padding: 56px 24px; scroll-margin-top: 84px; }

.section-lede {
  max-width: 60ch;
  margin: -8px 0 28px;
  color: var(--text-muted, inherit);
  opacity: 0.85;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 8px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-row-media {
  display: flex;
  justify-content: center;
  order: 1;
}

.feature-row-text { order: 2; }

.feature-row.reverse .feature-row-media { order: 2; }
.feature-row.reverse .feature-row-text { order: 1; }

.feature-row .phone-mock { width: 360px; height: 675px; }

.feature-row-text h3 { font-size: 1.5rem; margin-bottom: 0.5em; }
.feature-row-text p { font-size: 1.05rem; max-width: 42ch; margin-bottom: 0; }

.feature-trust {
  text-align: center;
  margin: 56px auto 0;
  color: var(--text-muted);
}

/* How it works */
.how-it-works { padding: 56px 24px; scroll-margin-top: 84px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 { margin-bottom: 0.25em; }
.step p { margin-bottom: 0; }

/* Personal message */
.personal-message { padding: 64px 24px; scroll-margin-top: 84px; }

.personal-message h2 { text-align: center; }

.message-body {
  max-width: 640px;
  margin: 0 auto;
}

.message-body p { text-align: center; }

.message-body strong { color: var(--text); }

.message-closer {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.5em;
}

/* FAQ */
.faq { padding: 56px 24px; scroll-margin-top: 84px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--accent-2);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 18px;
  margin: 0;
}

/* CTA */
.cta {
  text-align: center;
  padding: 64px 24px 80px;
}

/* Legal pages */
.legal {
  max-width: 720px;
  padding: 56px 24px 80px;
}

.legal-updated { color: var(--text-muted); margin-bottom: 2em; }

.legal h2 { margin-top: 1.6em; font-size: 1.3rem; }

.legal ul { color: var(--text-muted); padding-left: 1.2em; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }
  .hero-text { order: 1; }
  .hero-art { order: 0; }
  .hero-actions { display: flex; justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .nav-links { display: none; }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .feature-row-media,
  .feature-row.reverse .feature-row-media { order: 1; }
  .feature-row-text,
  .feature-row.reverse .feature-row-text { order: 2; }
  .feature-row-text p { margin-left: auto; margin-right: auto; }
}
