:root {
  --brand: #0f766e;
  --brand-mid: #0d9488;
  --brand-deep: #0b4f4a;
  --brand-soft: #ccfbf1;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --paper: #f4fbf9;
  --white: #fff;
  --ai: #5b21b6;
  --ai-soft: #ede9fe;
  --ai-glow: rgba(91, 33, 182, 0.22);
  --shadow: 0 18px 50px rgba(15, 118, 110, 0.12);
  --radius: 24px;
  --font: "Vazirmatn", "Tahoma", sans-serif;
  --header-h: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 520px at 85% -5%, rgba(15, 118, 110, 0.16), transparent 55%),
    radial-gradient(700px 420px at 5% 15%, rgba(91, 33, 182, 0.07), transparent 50%),
    linear-gradient(180deg, #e7f7f4 0%, var(--paper) 24%, #fff 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow { width: min(720px, calc(100% - 2rem)); }
.center { text-align: center; }
.center-row { justify-content: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  background: linear-gradient(160deg, #0b4f4a, #0f766e 55%, #312e81);
  color: #fff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  display: block;
  animation: splash-pop 0.55s ease both;
}

.splash-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  animation: fade-in 0.4s ease 0.25s both;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  z-index: 60;
  transform-origin: right center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-mid), var(--ai));
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(244, 251, 249, 0.82);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  --header-h: 60px;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #0b1f2a;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.18);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover { color: var(--brand-deep); background: rgba(15, 118, 110, 0.08); }

.nav-links a.nav-cta {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.nav-links a.nav-cta:hover { background: var(--brand-deep); color: #fff; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-panel[hidden] { display: none !important; }

.mobile-panel a {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.mobile-panel a:hover { background: var(--brand-soft); }

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 2.2rem 0 1.5rem;
}

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

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.26);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--brand-deep);
}

.btn-ghost {
  background: var(--ai-soft);
  color: var(--ai);
}

.btn-download {
  background: var(--ink);
  color: #fff;
}

.text-link {
  font-weight: 700;
  color: var(--brand-deep);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

.text-link:hover { background-size: 100% 1px; }

/* Hero stage / AI core */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
}

.device {
  width: min(280px, 100%);
  background: #111827;
  border-radius: 36px;
  padding: 10px 9px 12px;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(18px);
}

.device-notch {
  width: 86px;
  height: 8px;
  margin: 2px auto 8px;
  border-radius: 999px;
  background: #1f2937;
}

.device-screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 26px;
  object-fit: contain;
  background: #fff;
}

.hero-orbit {
  position: absolute;
  inset: auto 0 12% auto;
  width: 100%;
  pointer-events: none;
  z-index: 3;
}

.hero-logo {
  position: absolute;
  width: 72px;
  height: 72px;
  right: -8px;
  top: 18%;
  border-radius: 50%;
  background: #07151c;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  animation: soft-pulse 3.8s ease-in-out infinite;
}

.orbit-chip {
  position: absolute;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.chip-a { left: -8px; top: 22%; }
.chip-b { left: -18px; bottom: 28%; }
.chip-c { right: -4px; bottom: 18%; }

/* Hero entrance states */
.hero:not(.ready) .hero-copy,
.hero:not(.ready) .cta-row,
.hero:not(.ready) .hero-orbit { opacity: 0; transform: translateY(14px); }
.hero.ready .hero-copy {
  animation: fade-up 0.7s ease 0.2s both;
}
.hero.ready .cta-row {
  animation: fade-up 0.65s ease 0.4s both;
}
.hero.ready .device {
  animation: phone-in 0.7s ease 0.15s both;
}
.hero.ready .hero-logo {
  animation: fade-up 0.6s ease 0.45s both, soft-pulse 3.8s ease-in-out 1s infinite;
}
.hero.ready .orbit-chip {
  animation: fade-up 0.5s ease 0.55s both;
}

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

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.step-label {
  margin: 0 0 0.45rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-head h2,
.story h2,
.final-cta h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
}

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

.story {
  padding: 3rem 0;
  background: linear-gradient(180deg, transparent, rgba(15, 118, 110, 0.04), transparent);
}

/* Paths */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.path-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.path-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.path-card:hover::before {
  opacity: 1;
  transform: translate(-20px, -30px);
}

.path-card:hover .path-ico { transform: translateY(-3px); }

.path-card-ai {
  border-color: rgba(91, 33, 182, 0.28);
  box-shadow: 0 0 0 1px rgba(91, 33, 182, 0.06), 0 12px 30px rgba(91, 33, 182, 0.08);
  animation: ai-card-glow 3.6s ease-in-out infinite;
}

.path-card-ai::before {
  background: radial-gradient(circle, rgba(91, 33, 182, 0.16), transparent 70%);
}

.path-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 0.95rem;
  transition: transform 0.25s ease;
  position: relative;
}

.path-ico-shop {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.2);
}

.path-ico-pos {
  background: #e0f2fe;
  box-shadow: inset 0 0 0 2px rgba(3, 105, 161, 0.18);
}

.path-ico-ai {
  background: #07151c;
  display: grid;
  place-items: center;
}

.path-ico-ai img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.path-card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.path-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.94rem; }

/* AI Heart diagram */
.ai-heart {
  background:
    radial-gradient(600px 320px at 50% 40%, rgba(91, 33, 182, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(15, 118, 110, 0.04), transparent);
}

.heart-diagram {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35));
  border: 1px solid var(--line);
}

.heart-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #07151c;
  color: #fff;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.2rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.55), 0 20px 40px var(--ai-glow);
  opacity: 0.55;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.heart-core img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.heart-node {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  transform:
    translate(-50%, -50%)
    rotate(calc(var(--i) * 72deg))
    translateY(-190px)
    rotate(calc(var(--i) * -72deg));
  opacity: 0.35;
  transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.heart-diagram.is-active .heart-core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

.heart-diagram.is-active .heart-node {
  opacity: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition-delay: calc(var(--i) * 80ms);
}

.data-flow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  pointer-events: none;
}

.flow-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-mid);
  left: 50%;
  top: 0;
  opacity: 0;
}

.heart-diagram.is-active .flow-dot {
  animation: orbit-dot 4.8s linear infinite;
}

.flow-dot.delay-2 { animation-delay: 1.6s !important; background: var(--ai); }
.flow-dot.delay-4 { animation-delay: 3.2s !important; }

.heart-caption {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.12), rgba(91, 33, 182, 0.08));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}

.shot-highlight .tip {
  position: absolute;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
}

.tip-a { top: 18%; right: 12%; }
.tip-b { bottom: 16%; left: 10%; background: rgba(15, 118, 110, 0.92); }

.shot.is-inview .tip-a { animation: tip-in 0.5s ease 0.35s both; }
.shot.is-inview .tip-b { animation: tip-in 0.5s ease 1.1s both; }

.shot figcaption { padding: 1rem 0.35rem 0; }
.shot h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.shot p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Guide */
.guide-section {
  background:
    radial-gradient(700px 360px at 80% 20%, rgba(91, 33, 182, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(15, 118, 110, 0.03), transparent);
}

.guide-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.35rem;
  align-items: stretch;
}

.guide-aside {
  background: linear-gradient(165deg, #1e1b4b, #312e81 50%, #0f766e);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
}

.badge-safe {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.demo-chat {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  min-height: 120px;
}

.demo-bubble {
  max-width: 92%;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  opacity: 0;
}

.demo-user {
  justify-self: start;
  background: rgba(56, 189, 248, 0.28);
}

.demo-bot {
  justify-self: stretch;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.demo-typing {
  display: none;
  gap: 4px;
  padding: 0.55rem 0.7rem;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.demo-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s infinite ease-in-out;
}

.demo-typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-typing span:nth-child(3) { animation-delay: 0.3s; }

.demo-chat.show-user .demo-user { animation: fade-up 0.4s ease both; }
.demo-chat.show-typing .demo-typing { display: inline-flex; }
.demo-chat.show-bot .demo-bot { animation: fade-up 0.45s ease both; }

.guide-device {
  width: min(220px, 70%);
  margin: 0.8rem auto 0;
  background: #111827;
  border-radius: 28px;
  padding: 8px;
}

.guide-shot {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  background: #fff;
}

.aside-note {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  opacity: 0.92;
}

.chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-head {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: #07151c;
}

.chat-brand strong { display: block; }
.chat-brand span { color: var(--muted); font-size: 0.84rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 1rem 0;
}

.chip {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #f0fdfa;
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chip:hover { background: var(--brand-soft); transform: translateY(-2px); }

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 92%;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  font-size: 0.94rem;
  white-space: pre-wrap;
}

.msg-bot {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  color: #fff;
}

.msg-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.msg-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  display: block;
  animation: blink 1s infinite ease-in-out;
}

.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }

.chat-form {
  display: flex;
  gap: 0.55rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.chat-form input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  border-color: var(--brand);
}

.chat-form button {
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 0 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.chat-form button:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.menu-toggle:focus-visible,
.nav-links a:focus-visible,
.mobile-panel a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Download / final */
.download-box {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.download-box h2 { margin: 0 0 0.4rem; }
.download-box p { margin: 0; color: var(--muted); }

.final-cta {
  padding-bottom: 5rem;
}

.final-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 50%;
  background: #07151c;
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.1);
  animation: soft-pulse 3.2s ease-in-out infinite;
}

.final-cta p { color: var(--muted); margin: 0 0 1.2rem; }

/* Footer */
.site-footer {
  padding: 2.2rem 0 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-brand strong { color: var(--ink); display: block; }
.footer-brand p { margin: 0.1rem 0 0; }

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

.mobile-fab {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.3);
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.path-card[data-stagger] {
  opacity: 0;
  transform: translateY(24px);
}

.is-inview .path-card[data-stagger="1"] { animation: fade-up 0.55s ease 0.1s both; }
.is-inview .path-card[data-stagger="2"] { animation: fade-up 0.55s ease 0.2s both; }
.is-inview .path-card[data-stagger="3"] { animation: fade-up 0.55s ease 0.3s both; }

.shot {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.shot.is-inview {
  opacity: 1;
  transform: none;
}

/* Keyframes */
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes splash-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}
@keyframes core-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}
@keyframes node-in {
  from { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 10px)) scale(0.92); }
  to { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); }
}
@keyframes line-in { to { opacity: 1; } }
@keyframes phone-in {
  to { opacity: 1; transform: none; }
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.55), 0 20px 50px var(--ai-glow); }
  50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.4), 0 22px 56px rgba(91, 33, 182, 0.3); }
}
@keyframes soft-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes ai-card-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(91, 33, 182, 0.06), 0 12px 30px rgba(91, 33, 182, 0.08); }
  50% { box-shadow: 0 0 0 1px rgba(91, 33, 182, 0.14), 0 16px 34px rgba(91, 33, 182, 0.14); }
}
@keyframes orbit-dot {
  0% { transform: rotate(0deg) translateY(-160px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: rotate(360deg) translateY(-160px); opacity: 0; }
}
@keyframes tip-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }

  .hero-grid,
  .paths,
  .gallery,
  .guide-grid,
  .download-box {
    grid-template-columns: 1fr;
  }

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

  .hero-stage { order: -1; }

  .device { width: min(240px, 78%); }

  .hero-logo { width: 58px; height: 58px; right: 4px; }

  .heart-node {
    transform:
      translate(-50%, -50%)
      rotate(calc(var(--i) * 72deg))
      translateY(-145px)
      rotate(calc(var(--i) * -72deg));
    font-size: 0.74rem;
    padding: 0.35rem 0.65rem;
  }

  .mobile-fab { display: inline-flex; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal],
  .shot,
  .path-card[data-stagger],
  .hero:not(.ready) .hero-copy,
  .hero:not(.ready) .cta-row,
  .hero:not(.ready) .hero-orbit,
  .device {
    opacity: 1 !important;
    transform: none !important;
  }
  .splash { display: none !important; }
  .scroll-progress { display: none; }
  .mobile-fab { display: none; }
}
