:root {
  --bg: #0f1219;
  --bg-elevated: #1e242e;
  --bg-glow: #152033;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --accent: #2e8cf2;
  --accent-secondary: #19bfa6;
  --border: rgba(255, 255, 255, 0.08);
  --warning: #fab838;
  --success: #40d173;
  --radius: 16px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Intro splash (homepage cold visit) —— */
html.splash-active {
  overflow: hidden;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.intro-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.5rem;
}

.intro-splash-logo {
  width: 140px;
  height: 140px;
  margin-bottom: 1rem;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.82);
  filter: blur(10px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease-out;
}

.intro-splash-title,
.intro-splash-tagline {
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-splash.is-ready .intro-splash-logo {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.intro-splash.is-ready .intro-splash-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.28s;
}

.intro-splash.is-ready .intro-splash-tagline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.42s;
}

.intro-splash-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--text);
}

.intro-splash-tagline {
  font-size: 1rem;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash,
  .intro-splash-logo,
  .intro-splash-title,
  .intro-splash-tagline {
    transition: none;
  }
}

/* —— Header —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
}

.btn-primary.is-disabled,
.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 7rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(46, 140, 242, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(25, 191, 166, 0.18), transparent 50%),
    linear-gradient(180deg, #0c1018 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.hero-copy {
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.15s;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(46, 140, 242, 0.35);
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 18ch;
}

.hero-lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s ease forwards 0.35s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Real screenshot in device frame —— */
.phone-shot {
  margin: 0;
  width: min(100%, 290px);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3140, #12151c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(46, 140, 242, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.phone-shot:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 32px 72px rgba(0, 0, 0, 0.55),
    0 0 56px rgba(46, 140, 242, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .phone-shot,
  .phone-shot:hover {
    transition: none;
    transform: none;
  }
}

.phone-shot img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.feature-visual .phone-shot {
  width: min(100%, 260px);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.feature-visual .phone-shot.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-visual .phone-shot.is-visible:hover {
  transform: translateY(-6px);
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-split.reverse .feature-copy {
  order: 2;
}

.feature-split.reverse .feature-visual {
  order: 1;
}

.feature-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  letter-spacing: -0.03em;
  opacity: 0;
}

.feature-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36ch;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.feature-copy.is-visible h2,
.fade-in-up.is-visible {
  animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in-up {
  opacity: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .feature-copy h2,
  .fade-in-up {
    opacity: 1;
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.privacy-strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem 0;
  text-align: center;
}

.privacy-strip h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.privacy-strip p {
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  max-width: 40ch;
}

/* —— Legal / support pages —— */
.page {
  padding: 7rem 0 4rem;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(46, 140, 242, 0.15), transparent 60%),
    var(--bg);
}

.page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.page .lede {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

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

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

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

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

@media (max-width: 860px) {
  .hero {
    padding-top: 6rem;
    align-items: start;
  }

  .hero-grid,
  .feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-split.reverse .feature-copy,
  .feature-split.reverse .feature-visual {
    order: initial;
  }

  .hero-copy {
    padding-bottom: 0;
    text-align: center;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero h1,
  .hero-lede {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .nav .hide-sm {
    display: none;
  }
}
