:root {
  --bg: #0b0c0e;
  --bg-2: #111316;
  --surface: #16181c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1efe8;
  --muted: #9b9da2;
  --lime: #d4f55a;
  --lime-ink: #101400;
  --white: #fbfaf6;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }

.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 50; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.ital { font-style: italic; }
.arr { display: inline-block; transition: transform 0.35s var(--ease); }
.pill:hover .arr, .ghost:hover .arr { transform: translateX(4px); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--pad);
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 245, 90, 0.15); }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 13.5px; color: var(--muted); }

/* PILLS */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 500; line-height: 1;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: translateY(0) scale(0.98); }
.pill-lg { padding: 15px 24px; font-size: 15px; }
.pill-lime { background: var(--lime); color: var(--lime-ink); }
.pill-lime:hover { background: #e2ff6e; }
.pill-outline { border-color: var(--line); color: var(--text); background: transparent; }
.pill-outline:hover { border-color: rgba(255, 255, 255, 0.3); }
.pill-dark { background: #0d0e10; color: #fff; }
.pill-dark:hover { background: #222; }
.ghost { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); padding: 15px 6px; }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start;
  min-height: calc(100vh - 62px);
  padding: clamp(48px, 7vh, 96px) var(--pad) clamp(64px, 9vh, 120px);
}
.hero-top { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vh, 40px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70vh; pointer-events: none;
  background: radial-gradient(ellipse at 30% 20%, rgba(212, 245, 90, 0.10), transparent 55%),
              radial-gradient(ellipse at 80% 10%, rgba(120, 150, 255, 0.07), transparent 50%);
}
.hero-copy { position: relative; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 0.95;
  font-size: clamp(56px, 9.2vw, 150px); margin: 0;
}
.display .line { display: block; }
.display.sm { font-size: clamp(44px, 6.5vw, 96px); }
.hero-copy { padding-top: 6px; }
.lede { max-width: 54ch; font-size: clamp(16px, 1.25vw, 18px); color: #cfcdc6; margin: 0 0 36px; }
.lede em { color: var(--text); font-style: italic; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.stats { display: flex; gap: clamp(28px, 5vw, 72px); margin: 56px 0 0; padding: 0; }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats dt { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.stats dd { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* TICKET */
.ticket {
  position: relative; background: var(--white); color: #111; border-radius: 22px;
  padding: 20px 22px 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease);
}
.ticket:hover { transform: rotate(0deg) translateY(-4px); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ticket-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.ticket-time { color: #777; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #999; display: inline-block; }
.dot-lime { background: #8fbf12; box-shadow: 0 0 0 4px rgba(143, 191, 18, 0.18); }
.ticket-body { display: flex; flex-direction: column; }
.ticket-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); font-size: 14px; }
.ticket-k { color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono); padding-top: 2px; }
.ticket-v { color: #111; line-height: 1.4; transition: background 0.4s; }
.ticket-v.flash { background: rgba(212, 245, 90, 0.7); border-radius: 4px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: #ffe2e0; color: #a1231b; }
.badge.normal { background: #e9f3ff; color: #1b4ea1; }
.ticket-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(0, 0, 0, 0.15); color: #777; }
.ticket-note { position: absolute; left: 22px; bottom: -30px; margin: 0; font-size: 12px; color: var(--muted); font-style: italic; }

/* BAND */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--bg-2); }
.band-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: band 40s linear infinite; font-family: var(--serif); font-size: 26px; color: #d6d4cc; }
.band-track i { color: var(--lime); font-style: normal; }
@keyframes band { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: clamp(80px, 12vh, 160px) var(--pad); }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 900px; margin-bottom: clamp(40px, 6vh, 72px); }
.h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 0.98; font-size: clamp(42px, 5.6vw, 80px); margin: 0 0 22px; }
.sub { max-width: 60ch; color: #cfcdc6; font-size: 17px; margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 28px 24px 34px; min-height: 240px; display: flex; flex-direction: column; }
.step .num { color: var(--lime); margin-bottom: 44px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 30px; min-height: 240px; display: flex; flex-direction: column; transition: transform 0.5s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(212, 245, 90, 0.35); }
.card .k { color: var(--lime); margin-bottom: 42px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* TRANSCRIPT */
.transcript { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 80%; display: flex; flex-direction: column; gap: 6px; }
.msg p { margin: 0; padding: 14px 18px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; }
.msg.agent { align-self: flex-start; }
.msg.agent p { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.user p { background: var(--lime); color: var(--lime-ink); border-bottom-right-radius: 6px; }
.center { text-align: center; margin-top: 56px; }
.tiny { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* PRICES */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; }
.price.featured { background: var(--white); color: #111; border-color: transparent; transform: translateY(-8px); }
.price .k { margin-bottom: 26px; }
.price.featured .k { color: #444; }
.amount { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 26px; }
.amount small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.price.featured .amount small { color: #666; }
.price ul { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: #cfcdc6; flex: 1; }
.price.featured ul { color: #333; }
.price li::before { content: "—"; color: var(--lime); margin-right: 10px; }
.price.featured li::before { color: #8fbf12; }
.price .pill { align-self: flex-start; }
.price.featured .pill-lime { background: #111; color: #fff; }
.price.featured .pill-lime:hover { background: #333; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--lime); font-size: 22px; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 0 24px; color: #cfcdc6; max-width: 66ch; }

/* FINAL */
.final { text-align: center; padding: clamp(100px, 16vh, 200px) var(--pad); position: relative; }
.final::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(212, 245, 90, 0.12), transparent 60%); }
.final .display { margin-bottom: 40px; }
.final .eyebrow { margin-bottom: 30px; }

/* FOOT */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); }
.foot .mono { text-transform: none; letter-spacing: 0.02em; }
.foot-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .step:nth-child(2), .grid4 .card:nth-child(2), .prices .price:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3), .grid4 .card:nth-child(3), .prices .price:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4), .grid4 .card:nth-child(4) { transition-delay: 0.24s; }
.steps .step:nth-child(5) { transition-delay: 0.32s; }

/* ===== WIDGET ===== */
.widget { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.widget-bubble {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); color: #111; border: 0; border-radius: 18px; padding: 10px 10px 10px 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s var(--ease), opacity 0.3s;
  animation: bubbleIn 0.8s var(--ease) 1.2s both;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.widget-bubble:hover { transform: translateY(-2px); }
.wb-text { font-size: 14px; font-weight: 500; }
.wb-cta { display: inline-flex; align-items: center; gap: 8px; background: #111; color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 500; }
.widget[data-state="open"] .widget-bubble { opacity: 0; pointer-events: none; transform: translateY(10px) scale(0.96); position: absolute; }

.widget-panel {
  width: min(360px, calc(100vw - 32px));
  background: var(--white); color: #111; border-radius: 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: panelIn 0.5s var(--ease) both;
}
.widget-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.wp-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 18px; }
.wp-title { display: flex; align-items: center; gap: 12px; }
.wp-title div { display: flex; flex-direction: column; line-height: 1.15; }
.wp-title strong { font-size: 14px; font-weight: 600; }
.wp-title .mono { text-transform: none; letter-spacing: 0.02em; font-size: 11px; color: #777; }
#wpDot { background: #bbb; transition: background 0.3s, box-shadow 0.3s; }
.widget[data-live="1"] #wpDot { background: #8fbf12; box-shadow: 0 0 0 4px rgba(143, 191, 18, 0.2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(143, 191, 18, 0.08); } }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #333; display: grid; place-items: center; transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(0, 0, 0, 0.06); }
.icon-btn.send { background: #111; color: #fff; }
.icon-btn.send:hover { background: #333; }
.icon-btn.on { color: #8fbf12; background: rgba(143, 191, 18, 0.14); }

.wp-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 20px 22px; transition: padding 0.4s var(--ease); }
.widget[data-live="1"] .wp-stage { padding: 8px 20px 12px; gap: 10px; }
.widget[data-live="1"] #wpStart { display: none; }
.orb {
  position: relative; width: 132px; height: 132px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #dff58f 30%, #7bbf1d 60%, #1a2b0b 100%);
  box-shadow: inset -12px -18px 40px rgba(0, 0, 0, 0.35), 0 20px 40px -20px rgba(143, 191, 18, 0.7);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), transform 0.4s var(--ease);
  animation: orbIdle 6s ease-in-out infinite;
}
.widget[data-live="1"] .orb { width: 88px; height: 88px; }
.orb span { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen; opacity: 0.85; }
.orb span:nth-child(1) { background: conic-gradient(from 0deg, transparent 0 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60% 100%); animation: spin 5s linear infinite; }
.orb span:nth-child(2) { background: conic-gradient(from 120deg, transparent 0 35%, rgba(212, 245, 90, 0.7) 50%, transparent 65% 100%); animation: spin 7s linear infinite reverse; }
.orb span:nth-child(3) { background: radial-gradient(circle at 60% 65%, rgba(20, 40, 10, 0.5), transparent 55%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbIdle { 50% { transform: scale(1.03); } }
.orb.listening { animation: orbListen 1.4s ease-in-out infinite; }
@keyframes orbListen { 50% { transform: scale(1.08); } }
.orb.speaking { animation: orbSpeak 0.5s ease-in-out infinite; }
@keyframes orbSpeak { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } 70% { transform: scale(1.04); } }
.orb.thinking { animation: orbThink 1s ease-in-out infinite; filter: saturate(0.6); }
@keyframes orbThink { 50% { transform: scale(0.94); } }
.wp-status { margin: 0; font-size: 13px; color: #555; min-height: 18px; }

.wp-log { display: none; flex-direction: column; gap: 8px; padding: 6px 16px 10px; max-height: 260px; overflow-y: auto; scroll-behavior: smooth; }
.widget[data-live="1"] .wp-log { display: flex; }
.wp-log .m { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; animation: mIn 0.35s var(--ease) both; }
@keyframes mIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wp-log .m.a { align-self: flex-start; background: #f0efe9; color: #111; border-bottom-left-radius: 4px; }
.wp-log .m.u { align-self: flex-end; background: #111; color: #fff; border-bottom-right-radius: 4px; }
.wp-log .m.i { align-self: flex-end; background: transparent; color: #888; font-style: italic; padding: 2px 6px; }

.wp-input { display: flex; align-items: center; gap: 6px; margin: 0 12px 10px; padding: 4px 4px 4px 14px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 999px; background: #fff; }
.wp-input input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 13.5px; background: transparent; color: #111; min-width: 0; }
.wp-input input::placeholder { color: #999; }
.wp-end { align-self: center; background: transparent; border: 0; color: #a1231b; font-size: 12.5px; font-weight: 500; padding: 4px 10px 8px; }
.wp-end[hidden] { display: none; }
.wp-foot { text-align: center; padding: 6px 0 12px; margin: 0; text-transform: none; letter-spacing: 0.02em; font-size: 10.5px; color: #999; border-top: 1px solid rgba(0, 0, 0, 0.06); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero-top { margin-bottom: 20px; }
  .ticket { transform: none; margin-top: 12px; }
  .ticket-note { position: static; margin-top: 12px; }
  .stats { margin-top: 44px; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; }
  .step .num, .card .k { margin-bottom: 22px; }
  .prices { grid-template-columns: 1fr; }
  .price.featured { transform: none; }
  .nav-login { display: none; }
}
@media (max-width: 600px) {
  .grid4 { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .widget { right: 12px; bottom: 12px; }
  .wb-text { display: none; }
  .widget-bubble { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .band-track, .orb, .orb span, .widget-bubble { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
