:root {
  --ink: #1c1630;
  --ink-soft: #4a4260;
  --mist: #f3eefc;
  --lilac: #c9b8f5;
  --royal: #5b4fcf;
  --royal-deep: #3d3499;
  --coral: #ff8a65;
  --coral-deep: #e56a45;
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(91, 79, 207, 0.14);
  --shadow: 0 24px 60px rgba(61, 52, 153, 0.18);
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, #ddd2ff 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 8%, #ffd6c8 0%, transparent 50%),
    radial-gradient(800px 500px at 50% 100%, #d7f0ff 0%, transparent 45%),
    linear-gradient(165deg, #f7f3ff 0%, #efe8fc 45%, #f8f4f0 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--royal-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-deep);
}

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

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(61, 52, 153, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

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

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
}

.logo-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  display: grid;
  place-items: center;
  animation: floatPhone 5.5s ease-in-out infinite;
}

.hero-logo {
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--royal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--royal);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(91, 79, 207, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--royal-deep);
  transform: translateY(-1px);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 650;
  background: linear-gradient(120deg, var(--royal-deep) 10%, var(--royal) 45%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-deep) 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(91, 79, 207, 0.32);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--royal);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 8% 6%;
  background:
    radial-gradient(circle at 40% 35%, rgba(91, 79, 207, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 138, 101, 0.28), transparent 50%);
  filter: blur(8px);
  animation: pulseGlow 7s ease-in-out infinite;
}

.phone-shell {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 17.5;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2348, #151025);
  box-shadow: var(--shadow);
  animation: floatPhone 5.5s ease-in-out infinite;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(165deg, #6a5de8 0%, #4b3fc0 42%, #2f286e 100%);
  color: #fff;
  padding: 1.4rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  opacity: 0.9;
}

.phone-clock {
  text-align: center;
  margin-top: 0.4rem;
}

.phone-clock .time {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.phone-clock .label {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.phone-cards {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.mini-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  backdrop-filter: blur(6px);
}

.mini-card strong {
  display: block;
  font-size: 0.88rem;
}

.mini-card span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(91, 79, 207, 0.28);
  animation: spinSlow 28s linear infinite;
}

.orbit-1 {
  width: 360px;
  height: 360px;
}
.orbit-2 {
  width: 460px;
  height: 460px;
  animation-direction: reverse;
  animation-duration: 40s;
}

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

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

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.4rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(61, 52, 153, 0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, rgba(91, 79, 207, 0.16), rgba(255, 138, 101, 0.18));
  color: var(--royal-deep);
  font-size: 1.2rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.how {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  background: var(--royal);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 22px rgba(91, 79, 207, 0.25);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.privacy-teaser {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(91, 79, 207, 0.1), rgba(255, 138, 101, 0.12)),
    var(--surface);
  border: 1px solid var(--line);
}

.privacy-teaser ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.privacy-teaser li + li {
  margin-top: 0.35rem;
}

.download {
  text-align: center;
}

.download .section-head {
  margin-inline: auto;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.store-btn {
  min-width: 180px;
  background: #1c1630;
  color: #fff;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 14px 30px rgba(28, 22, 48, 0.2);
}

.store-btn small {
  display: block;
  opacity: 0.7;
  font-size: 0.72rem;
  font-weight: 500;
}

.store-btn strong {
  font-size: 1rem;
}

.store-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

.store-btn.is-soon {
  opacity: 0.72;
  pointer-events: none;
}

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

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

.footer-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

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

/* —— Privacy page —— */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero .meta {
  margin: 0;
  color: var(--ink-soft);
}

.legal {
  padding: 1rem 0 4rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.toc strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.toc a {
  text-decoration: none;
  color: inherit;
}

.toc a:hover {
  color: var(--royal);
}

.legal-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem 1.6rem 2rem;
  backdrop-filter: blur(8px);
}

.legal-body h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.2rem;
}

.legal-body li + li {
  margin-top: 0.35rem;
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.scope-table th,
.scope-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.scope-table th {
  background: rgba(91, 79, 207, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.note {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 138, 101, 0.12);
  border: 1px solid rgba(255, 138, 101, 0.28);
  color: var(--ink);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .feature-list,
  .steps,
  .privacy-teaser,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

  .logo-stage {
    width: min(100%, 260px);
  }

  .hero-logo {
    width: min(100%, 240px);
  }

  .orbit-1,
  .orbit-2 {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(247, 243, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.2rem;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.35rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-title {
    max-width: none;
  }
}
