:root {
  --brand: #adc4f5;
  --primary: #6d8be0;
  --primary-deep: #3e5aa8;
  --secondary: #7b97e8;
  --cyan: #adc4f5;
  --cyan-soft: #eef3fc;
  --on-brand: #24325c;
  --surface: #f7f9fe;
  --white: #ffffff;
  --card: #ffffff;
  --text: #1b2233;
  --muted: #5a6478;
  --outline: #d4dced;
  --header-bg: rgba(247, 249, 254, 0.92);
  --hero-a: #f7f9fe;
  --hero-b: #eef2fb;
  --screen-a: #f7f9fe;
  --screen-b: #e8eefc;
  --phone-shell: #111;
  --shadow: 0 10px 30px -8px rgba(109, 139, 224, 0.2);
  --shadow-soft: 0 4px 20px -4px rgba(173, 196, 245, 0.45);
  --bar-track: #edeeee;
  --footer-bg: #3e5aa8;
  --footer-fg: #e4ebfb;
  --radius: 16px;
  --max: 1120px;
  --header-h: 73px;
  --field-bg: #ffffff;
  --field-border: #7b8fb8;
  color-scheme: light;
}

html[data-theme="dark"] {
  --primary: #c9d6fb;
  --primary-deep: #eef2ff;
  --secondary: #adc4f5;
  --cyan-soft: #2a334c;
  --on-brand: #1a2340;
  --surface: #1a2033;
  --white: #121624;
  --card: #1c243c;
  --text: #eef1fb;
  --muted: #a8b0c8;
  --outline: #3a4463;
  --header-bg: rgba(18, 22, 36, 0.9);
  --hero-a: #121624;
  --hero-b: #1a2238;
  --screen-a: #1c243c;
  --screen-b: #151b2e;
  --phone-shell: #0b0d14;
  --shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 4px 20px -4px rgba(0, 0, 0, 0.35);
  --bar-track: #2a334c;
  --footer-bg: #0d111c;
  --footer-fg: #d4dced;
  --field-bg: #252e48;
  --field-border: #c5d0ea;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

h1,
h2,
h3,
.logo-word {
  font-family: Manrope, Inter, sans-serif;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
}

h3 {
  font-size: 20px;
  color: var(--primary);
}

.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  font-family: Manrope, Inter, sans-serif;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 8px 18px rgba(173, 196, 245, 0.55);
}

.btn-primary:hover {
  background: #9bb4ef;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--outline);
}

.btn-ghost:hover {
  background: var(--cyan-soft);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--outline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
}

.mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
}

.mark img,
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: logo-float 4.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  flex-wrap: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--cyan-soft);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(173, 196, 245, 0.4), transparent 36%),
    linear-gradient(180deg, var(--hero-a) 0%, var(--hero-b) 100%);
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero p {
  margin: 18px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Phone mock */
.device-stage {
  position: relative;
  min-height: 520px;
}

.phone {
  width: 280px;
  height: 560px;
  margin: 0 auto;
  background: var(--phone-shell);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(62, 90, 168, 0.28);
  position: relative;
}

.phone.float {
  animation: phone-float 5s ease-in-out infinite;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--screen-a), var(--screen-b));
  padding: 18px 14px;
}

.phone-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.chip {
  background: var(--cyan);
  color: var(--on-brand);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.phone-hello {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}

.mod-row {
  background: var(--card);
  border: 1px solid rgba(192, 200, 202, 0.4);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}

.mod-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cyan);
  display: grid;
  place-items: center;
  color: var(--on-brand);
}

.mod-ico svg,
.ico svg,
.tile-ico svg,
.theme-toggle svg,
.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mod-ico svg {
  width: 20px;
  height: 20px;
}

.mod-row strong {
  display: block;
  font-size: 14px;
}

.mod-row span {
  font-size: 12px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.block {
  padding-top: 56px;
}

.subhead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px;
}

.subhead h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--primary-deep);
  letter-spacing: -0.02em;
}

.subhead p {
  margin-top: 8px;
  color: var(--muted);
}

.role-band {
  background: var(--surface);
  padding: 56px 0;
  margin-top: 48px;
}

.role-gap {
  padding-top: 56px;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.grid-2 > div > h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(192, 200, 202, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card.still:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.card .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--secondary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

.check-list {
  list-style: none;
  margin-top: 18px;
}

.check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 800;
}

.panel-shot {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(192, 200, 202, 0.4);
}

.panel-shot h4 {
  font-family: Manrope, sans-serif;
  color: var(--primary);
  margin-bottom: 14px;
}

.bar {
  height: 10px;
  background: var(--bar-track);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 16px;
}

.bar > i {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--brand), var(--primary-deep));
  animation: bar-fill 1.4s ease forwards;
}

.mini-stat {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--bar-track);
}

/* Modules */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mod-tile {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(192, 200, 202, 0.35);
  min-height: 120px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tile-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--secondary);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.tile-ico svg {
  width: 18px;
  height: 18px;
}

.mod-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--brand);
}

.mod-tile small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--card);
  border: 1px solid rgba(192, 200, 202, 0.35);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

.step-num {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  margin-top: 8px;
}

.about-panel {
  display: grid;
  gap: 12px;
}

.about-panel .card {
  margin: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 36px;
  font-family: Manrope, sans-serif;
  color: var(--primary);
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid rgba(192, 200, 202, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--secondary);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 10px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

form {
  display: grid;
  gap: 12px;
}

.contact-grid form h3,
.contact-aside h3 {
  margin-bottom: 4px;
}

.contact-grid form .btn {
  justify-self: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--primary-deep);
}

.contact-mail {
  display: block;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--primary-deep);
  font-weight: 700;
  font-family: Manrope, Inter, sans-serif;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.contact-note {
  margin-top: auto;
  padding-top: 16px;
}

.footer-mail {
  overflow-wrap: anywhere;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:hover,
textarea:hover {
  border-color: var(--secondary);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
  background: var(--field-bg);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 48px 0 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

footer a:hover {
  color: var(--cyan);
}

footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 8px;
}

.foot-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.legal-hero {
  padding: 48px 0 40px;
}

.legal-hero .lede {
  margin-top: 14px;
}

.legal-stack {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
}

.legal-article h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal-article p,
.legal-article li {
  color: var(--muted);
}

.legal-article p + p,
.legal-article ul {
  margin-top: 10px;
}

.legal-article ul {
  list-style: none;
}

.legal-article li {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.legal-article li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 800;
  flex-shrink: 0;
}

/* Animations */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.reveal.in {
  opacity: 1;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

@keyframes bar-fill {
  from { width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .card,
  .mod-tile,
  .btn {
    transition: none;
  }

  .reveal {
    opacity: 1;
  }

  .phone.float,
  .mark img {
    animation: none;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--card);
    padding: 16px 20px 24px;
    box-shadow: var(--shadow);
    font-size: 16px;
    gap: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-end .btn-primary {
    display: none;
  }

  .hero-grid,
  .grid-2,
  .contact-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .mod-grid,
  .stats,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .device-stage {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .grid-3,
  .mod-grid,
  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .foot-bottom {
    flex-direction: column;
  }
}
