/* ===== Design tokens ===== */
:root {
  --bg: #0a0a0f;
  --bg-2: #0e0e16;
  --surface: #14141f;
  --surface-2: #1b1b29;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f7;
  --text-dim: #a2a2b4;
  --text-faint: #6f6f86;
  --indigo: #6366f1;
  --violet: #a855f7;
  --fuchsia: #e879f9;
  --grad: linear-gradient(100deg, #6366f1, #a855f7 55%, #e879f9);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; border-radius: 999px;
  padding: 0.7rem 1.3rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn--sm { padding: 0.5rem 1.05rem; font-size: 0.86rem; }
.btn--accent {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(168, 85, 247, 0.7);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(168, 85, 247, 0.85); }

.muted-link { color: var(--text-faint); transition: color .2s ease; }
.muted-link:hover { color: var(--text-dim); }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(10, 10, 15, 0.82); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { display: inline-flex; }
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }

.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 6px; }
.nav__links a { font-size: 0.92rem; color: var(--text-dim); transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { position: relative; padding: 84px 0 40px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(168, 85, 247, 0.32), transparent 70%),
    radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent 70%);
  filter: blur(20px); opacity: 0.9; z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--violet);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(168, 85, 247, 0.06); margin-bottom: 22px;
}
.eyebrow--center { display: inline-block; }

.hero__title { font-size: clamp(2.6rem, 6vw, 4.1rem); margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-dim); max-width: 30em; margin-bottom: 32px; }
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__cta--center { justify-content: center; }

.hero__note { display: flex; align-items: center; gap: 9px; color: var(--text-faint); font-size: 0.88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== Store badges ===== */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #fff; color: #0a0a0f;
  padding: 0.62rem 1.05rem 0.62rem 0.95rem; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.5);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.6); }
.store-badge__icon { width: 24px; height: 24px; flex: 0 0 auto; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge__text small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.02em; opacity: 0.72; }
.store-badge__text strong { font-size: 1.04rem; font-weight: 700; letter-spacing: -0.01em; }

/* ===== Phone mockup ===== */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 280px; height: 568px;
  background: linear-gradient(160deg, #1c1c2b, #101019);
  border-radius: 42px; padding: 12px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; background: #06060a; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%; background: linear-gradient(180deg, #0c0c14, #0a0a10);
  border-radius: 32px; padding: 44px 16px 18px; overflow: hidden;
  display: flex; flex-direction: column; gap: 11px;
}
.app__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.app__title { font-weight: 700; font-size: 1.05rem; }
.app__bell { position: relative; color: var(--text-dim); }
.app__badge {
  position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px;
  background: #f43f5e; color: #fff; font-size: 0.62rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
}

.ticket {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 13px; position: relative;
}
.tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 999px; margin-bottom: 7px;
}
.tag--bug { color: #fca5a5; background: rgba(248, 113, 113, 0.12); }
.tag--feat { color: #93c5fd; background: rgba(96, 165, 250, 0.12); }
.tag--q { color: #c4b5fd; background: rgba(167, 139, 250, 0.14); }
.ticket__msg { font-size: 0.84rem; color: var(--text); margin-bottom: 6px; }
.ticket__meta { font-size: 0.68rem; color: var(--text-faint); }
.ticket__meta em { font-style: normal; font-weight: 600; }
.st--open { color: #fca5a5; }
.st--prog { color: #fcd34d; }
.st--done { color: #6ee7b7; }

.reply { display: flex; justify-content: flex-end; margin-top: 2px; }
.reply__bubble {
  background: var(--grad); color: #fff; font-size: 0.8rem; font-weight: 500;
  padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 82%;
  box-shadow: 0 8px 20px -8px rgba(168, 85, 247, 0.7);
}

.pop { opacity: 0; transform: translateY(10px); animation: pop .6s ease forwards; animation-delay: var(--d, 0s); }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }

.hero__pulse {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%);
  width: 360px; height: 110px; z-index: 1; opacity: 0.85; pointer-events: none;
}
.pulse-line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.55)); }
@keyframes draw { 0% { stroke-dashoffset: 900; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -900; } }

/* ===== Logos / trust row ===== */
.logos {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 18px; margin-top: 56px; color: var(--text-faint);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
}
.logos i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 36em; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section__lead { color: var(--text-dim); font-size: 1.05rem; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step__num {
  font-size: 0.92rem; font-weight: 800; letter-spacing: 0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.18rem; margin: 14px 0 9px; font-weight: 700; }
.step p { color: var(--text-dim); font-size: 0.95rem; }
.step::before {
  content: ""; position: absolute; left: 26px; top: 18px; width: 30px; height: 2px;
  background: var(--grad); border-radius: 2px; opacity: 0.5;
}

/* ===== Features grid ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.card__icon {
  display: inline-flex; width: 46px; height: 46px; border-radius: 13px;
  align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--violet);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(232, 121, 249, 0.12));
  border: 1px solid var(--line-2);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ===== CTA band ===== */
.cta { padding: 40px 0 100px; }
.cta__inner {
  position: relative; text-align: center; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 64px 28px; background: linear-gradient(160deg, #15131f, #0d0c14);
}
.cta__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side at 30% 0%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(closest-side at 75% 110%, rgba(232, 121, 249, 0.22), transparent 60%);
}
.cta__inner > * { position: relative; z-index: 1; }
.cta__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 14px; }
.cta__sub { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 30px; }
.cta__docs { display: inline-block; margin-top: 22px; font-size: 0.9rem; }
.br-m { display: none; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 52px 0 30px; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 34px; }
.footer__tag { color: var(--text-faint); font-size: 0.9rem; margin-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; align-content: flex-start; }
.footer__links a { color: var(--text-dim); font-size: 0.92rem; transition: color .2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 0.82rem;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .section { padding: 72px 0; }
  .hero__cta { justify-content: center; }
  .hero__copy { text-align: center; }
  .hero__copy .eyebrow { margin-left: auto; margin-right: auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__note { justify-content: center; }
  .br-m { display: inline; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
