:root {
  --bg: #0b1210;
  --bg-soft: #0f1915;
  --surface: rgba(18, 31, 25, 0.78);
  --surface-solid: #122019;
  --line: rgba(236, 245, 239, 0.10);
  --line-strong: rgba(236, 245, 239, 0.18);
  --text: #eef5ef;
  --muted: #a4b7ab;
  --muted-2: #7f958a;
  --accent: #74e3a3;
  --accent-2: #c8f26b;
  --accent-ink: #062015;
  --danger: #ff8f8f;
  --maxw: 1160px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(116, 227, 163, 0.14), transparent 60%),
    radial-gradient(900px 560px at 8% 14%, rgba(200, 242, 107, 0.07), transparent 55%),
    linear-gradient(180deg, #0b1210 0%, #0a100d 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 245, 239, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 245, 239, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  z-index: 0;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(11, 18, 16, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(6, 32, 21, 0.15) inset;
}

.brand-name { font-size: 1.12rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 14px 34px rgba(116, 227, 163, 0.22);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(116, 227, 163, 0.3); }
.btn-primary .icon { width: 1.05em; height: 1.05em; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(116, 227, 163, 0.55); color: var(--accent); }

.btn-quiet {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}
.btn-quiet:hover { color: var(--text); }

.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.02rem; }

.btn[aria-disabled="true"] { opacity: 0.64; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  right: -160px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 227, 163, 0.18), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin-top: 24px;
  max-width: 33ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent); width: 16px; height: 16px; }

/* Chat mockup */
.hero-card { position: relative; }

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-xl) + 1px);
  background: linear-gradient(160deg, rgba(116, 227, 163, 0.35), transparent 45%, rgba(200, 242, 107, 0.18));
  opacity: 0.55;
  z-index: -1;
}

.chat {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(22, 37, 30, 0.96), rgba(13, 23, 18, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
}

.chat-person { display: flex; flex-direction: column; line-height: 1.25; }
.chat-person strong { font-size: 0.98rem; }
.chat-person span { color: var(--muted-2); font-size: 0.78rem; }

.chat-state {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.76rem;
}
.chat-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(116, 227, 163, 0.14);
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 26px;
  min-height: 336px;
  background:
    radial-gradient(500px 260px at 85% 10%, rgba(116, 227, 163, 0.06), transparent 60%);
}

.msg {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in .55s ease forwards;
  animation-delay: var(--d, 0s);
}

.msg-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 6px;
  color: #e4efe7;
}

.msg-out {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(116, 227, 163, 0.92), rgba(160, 238, 130, 0.9));
  color: #082117;
  border-bottom-right-radius: 6px;
  font-weight: 550;
}

.msg-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  width: 64px;
  max-width: 64px;
  padding: 14px 16px;
}
.msg-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: blink 1.2s infinite ease-in-out;
}
.msg-typing i:nth-child(2) { animation-delay: .18s; }
.msg-typing i:nth-child(3) { animation-delay: .36s; }

.chat-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.88rem;
}
.chat-send {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(116, 227, 163, 0.16);
  color: var(--accent);
}
.chat-send .icon { width: 16px; height: 16px; }

@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 118px) 0; }

.section-head { max-width: 660px; }
.section-head h2 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.section-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* Features */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.card {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 227, 163, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(116, 227, 163, 0.28); }
.card:hover::after { opacity: 1; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(116, 227, 163, 0.10);
  border: 1px solid rgba(116, 227, 163, 0.18);
  color: var(--accent);
  margin-bottom: 22px;
}
.card-icon .icon { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 31, 25, 0.6), rgba(13, 23, 18, 0.4));
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(116, 227, 163, 0.42);
  letter-spacing: -0.04em;
}
.step h3 { margin-top: 18px; font-size: 1.08rem; font-weight: 650; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.principle-list { display: grid; gap: 8px; }
.principle-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.principle-list li:last-child { border-bottom: 0; }
.principle-list .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-top: 3px;
}
.principle-list h3 { font-size: 1.02rem; font-weight: 650; }
.principle-list p { margin-top: 6px; color: var(--muted); font-size: 0.94rem; }

/* CTA */
.cta { padding: 0 0 clamp(64px, 9vw, 110px); }
.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(34px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(116, 227, 163, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(24, 42, 32, 0.9), rgba(14, 25, 19, 0.9));
  border: 1px solid rgba(116, 227, 163, 0.22);
  overflow: hidden;
}
.cta-card h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.cta-card p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.cta-card .btn { flex: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.footer-inner p { margin: 0; }
.footer-year { margin-left: auto; }
.brand-footer .brand-mark { width: 30px; height: 30px; font-size: 17px; border-radius: 9px; }
.brand-footer .brand-name { font-size: 1rem; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-card { max-width: 520px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .header-inner { height: 66px; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px 20px;
    background: rgba(11, 18, 16, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; width: 100%; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }
  .hero-points { flex-direction: column; gap: 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-year { margin-left: 0; }
}

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