@import url("/assets/background.css");

:root {
  --bg: #031a1f;
  --bg-alt: #062731;
  --surface: #0d3741;
  --surface-soft: rgba(15, 68, 79, 0.5);
  --text: #ecfbf8;
  --text-muted: #b2d9d2;
  --accent: #6cd0ba;
  --accent-strong: #53bea7;
  --border: rgba(177, 233, 219, 0.22);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --page-gutter: clamp(1rem, 3.4vw, 1.25rem);
  --section-space: clamp(4rem, 8vw, 5.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  color: #012029;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 0.75rem));
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 10000;
}

.user-is-tabbing .skip-link:focus,
.user-is-tabbing .skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(5, 34, 41, 0.7), rgba(3, 22, 28, 0.9));
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2vw, 2.35rem);
  line-height: 1.2;
  text-wrap: balance;
}

.section-intro {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(3, 26, 31, 0.75);
  border-bottom: 1px solid rgba(164, 231, 214, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-mark {
  width: 56px;
  height: auto;
  border-radius: 12%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #d7f3ee;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

.nav-links a:hover {
  background: rgba(126, 207, 187, 0.13);
}

.mobile-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(177, 233, 219, 0.32);
  background: rgba(5, 42, 50, 0.88);
  color: #ecfbf8;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex-direction: column;
  cursor: pointer;
}

.mobile-nav-toggle span {
  width: 1rem;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0 0 0.9rem;
}

.mobile-nav-panel a {
  text-decoration: none;
  color: #d7f3ee;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.mobile-nav-panel a:hover {
  border-color: rgba(177, 233, 219, 0.22);
  background: rgba(126, 207, 187, 0.12);
}

.mobile-nav-cta {
  color: #032027 !important;
  background: var(--accent);
  font-weight: 700;
}

.site-header.is-mobile-nav-open {
  background: rgba(3, 26, 31, 0.94);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  color: #032027;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.2rem 1rem;
  transition: transform 180ms ease, background-color 180ms ease;
}

.cta-pill:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8ddfcb;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.1;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: flex-start;
}

.hero-actions .store-badge-link {
  flex: 0 0 auto;
}

.store-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.store-button {
  background: var(--accent);
  color: #032027;
  padding: 0.2rem 1.15rem;
  box-shadow: 0 18px 40px rgba(17, 96, 83, 0.35);
}

.store-button:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  min-height: 0;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.store-badge-link:hover {
  transform: translateY(-2px);
}

.app-store-badge {
  display: block;
  margin: 0 auto;
  width: auto;
  height: 40px;
  border-radius: 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.secondary-button {
  border-color: var(--border);
  color: #e6fcf8;
  padding: 0.2rem 1rem;
}

.secondary-button:hover {
  border-color: rgba(195, 245, 234, 0.42);
  background: rgba(108, 208, 186, 0.08);
}

.hero-meta {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #bde8de;
}

.hero-meta li {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: clamp(330px, 50vw, 430px);
  isolation: isolate;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: clamp(250px, 58vw, 320px);
  max-width: 100%;
  margin: 1rem auto;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(135deg, #0f3f4a, #0a2f38);
  border: 1px solid rgba(177, 233, 219, 0.25);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-app-screenshot {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(177, 233, 219, 0.22);
  background: #052129;
  aspect-ratio: 443 / 960;
  object-fit: cover;
}

.screen-content {
  min-height: clamp(300px, 72vw, 390px);
  border-radius: 26px;
  padding: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  background:
    radial-gradient(circle at 65% 25%, rgba(145, 236, 216, 0.2), transparent 40%),
    linear-gradient(160deg, #052a31 0%, #08222a 100%);
}

.screen-tag {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6cd0ba;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.screen-content h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  text-wrap: balance;
}

.screen-content p {
  margin: 0;
  color: var(--text-muted);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
}

.orb-a {
  width: 190px;
  height: 190px;
  left: 12%;
  top: 4%;
  background: radial-gradient(circle, rgba(108, 208, 186, 0.5), transparent 70%);
}

.orb-b {
  width: 220px;
  height: 220px;
  right: 3%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(111, 162, 255, 0.35), transparent 70%);
}

.card-grid,
.category-grid,
.screenshots-grid,
.steps-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

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

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

.screenshots-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

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

.feature-card,
.category-card,
.screenshot-card,
.step-card,
.trust-panel,
.faq-item {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 57, 67, 0.7), rgba(6, 39, 47, 0.86));
  border-radius: var(--radius-md);
}

.feature-card,
.category-card,
.step-card {
  padding: 1.15rem;
}

.screenshot-card {
  margin: 0;
  padding: 0.9rem;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 1px solid rgba(177, 233, 219, 0.22);
  background: #052129;
  aspect-ratio: 443 / 960;
  object-fit: cover;
  overflow: hidden;
}

.screenshot-card figcaption {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.screenshots-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.screenshot-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(177, 233, 219, 0.36);
  transition: transform 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.screenshot-dot.is-active {
  transform: scale(1.25);
  background: #b8f8ea;
}

.feature-card h3,
.category-card h3,
.step-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.feature-card p,
.category-card p,
.step-card p {
  margin: 0;
  color: var(--text-muted);
}

.step-number {
  color: #6cd0ba;
  margin-bottom: 0.85rem !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.trust-list {
  margin: 1.35rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.trust-list li {
  margin-bottom: 0.5rem;
}

.trust-panel {
  padding: 1.2rem;
}

.trust-panel h3 {
  margin: 0 0 1rem;
}

.trust-panel dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.trust-panel dt {
  color: #abd8cf;
  font-size: 0.9rem;
}

.trust-panel dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ecfbf8;
}

.faq-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0.95rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.final-cta-wrap {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.3rem 1.2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(108, 208, 186, 0.28), transparent 60%),
    linear-gradient(160deg, #0b3340, #08262d);
}

.final-cta-wrap p {
  margin: 0.65rem auto 1.2rem;
  max-width: 50ch;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid rgba(170, 229, 213, 0.16);
  background: #021015;
}

.footer-wrap {
  padding: 2.2rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
}

.footer-logo {
  width: 66px;
  margin-bottom: 0.7rem;
  border-radius: 12%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.footer-wrap nav {
  display: grid;
  gap: 0.45rem;
}

.footer-wrap nav a,
.footer-meta a {
  color: #bee9df;
  text-decoration: none;
}

.footer-wrap nav a:hover,
.footer-meta a:hover {
  color: #e7fffa;
}

.footer-wrap p {
  margin: 0;
  color: #9fcdc4;
  font-size: 0.92rem;
}

.footer-meta {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.route-redirect {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    calc(1rem + env(safe-area-inset-top, 0px))
    clamp(1rem, 4vw, 1.5rem)
    calc(1rem + env(safe-area-inset-bottom, 0px));
  background: transparent;
}

.route-redirect-card {
  width: min(560px, 100%);
  border: 1px solid rgba(177, 233, 219, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(6, 34, 42, 0.9);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  text-align: center;
  overflow-wrap: anywhere;
}

.route-logo {
  width: 90px;
  margin: 0 auto 1rem;
  border-radius: 12%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.route-redirect-card h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
}

.route-redirect-card p {
  margin: 0 auto 1rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.route-open-button {
  min-width: min(100%, 170px);
}

.route-manual-countdown {
  margin-top: -0.35rem;
  margin-bottom: 1rem;
  color: #abd8cf;
  font-size: 0.92rem;
}

.route-manual-countdown span {
  color: #e8fff9;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.final-cta-wrap .store-badge-link {
  margin-left: auto;
  margin-right: auto;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #c8fff0;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: clamp(3.2rem, 8vw, 4.3rem) 0;
  }

  .js .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .js .nav-links {
    display: none;
  }

  .js .cta-pill {
    display: none;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .app-store-badge {
    height: 40px;
  }

  .screenshots-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .screenshots-dots {
    display: flex;
  }

  .screenshots-grid .screenshot-card {
    flex: 0 0 min(78vw, 330px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .screenshots-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    gap: 0.75rem;
  }

  .screenshots-grid .screenshot-card {
    flex-basis: 84vw;
  }

  .route-open-button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
