/* ===========================================================================
   AI-TEAM — design system (Phase 2 production rebuild)
   Faithful port of the dark / green Claude-Design prototype, expressed as
   reusable tokens + classes instead of inline styles.
   =========================================================================== */

:root {
  --bg:        #0A0A0A;
  --bg-2:      #0c0c0c;
  --surface:   #101010;
  --surface-2: #111111;
  --surface-3: #161616;

  --ink:       #ffffff;
  --ink-80:    rgba(255,255,255,0.82);
  --ink-70:    rgba(255,255,255,0.70);
  --ink-60:    rgba(255,255,255,0.60);
  --ink-50:    rgba(255,255,255,0.50);
  --ink-42:    rgba(255,255,255,0.42);
  --ink-32:    rgba(255,255,255,0.32);

  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.12);

  --accent:    #00D07A;
  --accent-ink:#06140D;
  --accent-06: rgba(0,208,122,0.06);
  --accent-13: rgba(0,208,122,0.13);
  --accent-30: rgba(0,208,122,0.30);
  --accent-40: rgba(0,208,122,0.40);

  --warn:      #F5B544;
  --danger:    #FF5247;
  --danger-2:  #FF7A6E;

  --font:  'Sora', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1180px;
  --radius:    14px;
  --shadow:    0 24px 60px rgba(0,0,0,0.5);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(0,208,122,0.3); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
/* vertical-only padding (padding-block) so it never clobbers .container's
   horizontal padding when both classes sit on the same element */
.section { padding-block: 88px; }
.section--tight { padding-block: 64px; }
.section--alt { background: var(--bg-2); }
.bt { border-top: 1px solid rgba(255,255,255,0.07); }
.bb { border-bottom: 1px solid rgba(255,255,255,0.07); }
.relative { position: relative; }

/* generic responsive auto-grid */
.grid { display: grid; gap: 16px; }
.grid--220 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--270 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--290 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--310 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); align-items: stretch; }
.grid--330 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--danger { color: var(--danger-2); }
.h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-60); }
.measure { max-width: 600px; }
.measure-sm { max-width: 520px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--ink-60); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: 9px;
  cursor: pointer; border: 1px solid transparent; transition: box-shadow .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 0 28px rgba(0,208,122,0.5); }
.btn--ghost { border-color: rgba(255,255,255,0.18); color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn--sm { font-size: 14px; padding: 11px 20px; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- chips / badges / dots ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border: 1px solid var(--accent-30); border-radius: 100px;
  background: var(--accent-06);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.dot--sm { width: 6px; height: 6px; box-shadow: none; }
.dot--soon { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot--danger { background: var(--danger); box-shadow: none; }

.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); padding: 3px 9px; border-radius: 5px; font-weight: 700;
}

.tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-70);
  background: #141414; border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 8px 15px;
}

/* ---------- cards ---------- */
.card { background: var(--surface-2); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 24px; }
.card--surface { background: var(--surface); }
.card--pad { padding: 28px; }
.card--accent { background: linear-gradient(160deg, rgba(0,208,122,0.1), rgba(0,208,122,0.02)); border-color: var(--accent-30); }
.card-title { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.card-desc { font-size: 13.5px; color: rgba(255,255,255,0.58); line-height: 1.55; }

.numchip {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  border: 1px solid var(--accent-40); width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}

/* glow blob */
.glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(0,208,122,0.16), transparent 62%); }
.glow--hero { top: -130px; right: -170px; width: 700px; height: 700px; animation: glowPulse 7s ease-in-out infinite; }
.glow--center { top: 0; left: 50%; transform: translateX(-50%); width: 640px; height: 420px; background: radial-gradient(circle, rgba(0,208,122,0.14), transparent 65%); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-header__bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; height: 100%; flex: none; }
.logo img { height: 34px; width: auto; mix-blend-mode: screen; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a, .nav button {
  font-size: 14px; font-weight: 500; color: var(--ink-60);
  background: transparent; border: 0; padding: 0; cursor: pointer; transition: color .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"], .nav .is-active { color: #fff; }
.caret { font-size: 9px; transform: translateY(-1px); }

/* solutions mega-menu */
.menu { position: relative; }
.menu__panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px; z-index: 60; visibility: hidden; opacity: 0; transition: opacity .15s;
}
.menu[data-open="true"] .menu__panel, .menu:hover .menu__panel { visibility: visible; opacity: 1; }
.menu__card { width: 600px; max-width: 88vw; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,0.6); overflow: hidden; }
.menu__flagship { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); background: var(--accent-06); transition: background .15s; }
.menu__flagship:hover { background: rgba(0,208,122,0.12); }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
.menu__item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; transition: background .15s; }
.menu__item:hover { background: rgba(255,255,255,0.05); }
.menu__item span:last-child { font-size: 13.5px; color: var(--ink-80); }
.menu__all { display: block; padding: 13px 18px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 13px; font-weight: 600; color: var(--accent); transition: background .15s; }
.menu__all:hover { background: var(--accent-06); }
.col { display: flex; flex-direction: column; line-height: 1.3; }
.col strong { font-size: 14.5px; font-weight: 600; color: #fff; }
.col span { font-size: 12px; color: var(--ink-50); }
.ml-auto { margin-left: auto; }

.icon-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid rgba(255,255,255,0.14); border-radius: 9px; cursor: pointer; padding: 0;
}

/* mobile menu */
.mobile-menu { display: none; }
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2);
  border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 24px 50px rgba(0,0,0,0.6);
  max-height: calc(100vh - 64px); overflow-y: auto; padding: 10px 16px 20px;
}
.mobile-menu a { display: flex; align-items: center; gap: 11px; min-height: 48px; font-size: 16px; color: #fff; }
.mobile-menu a.sub { font-size: 15px; font-weight: 400; color: var(--ink-80); min-height: 46px; }
.mobile-menu .div { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-42); padding: 18px 0 8px; }

@media (max-width: 760px) {
  .nav, .site-header .btn--header { display: none !important; }
  .icon-btn { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 84px 72px; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; position: relative; }
.hero__col { flex: 1 1 440px; min-width: 300px; }

/* ---------- value strip ---------- */
.value h3 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 6px; }
.value p { font-size: 14px; color: var(--ink-60); line-height: 1.55; }

/* ---------- chat bubbles ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 84%; font-size: 14px; line-height: 1.5; padding: 11px 14px; }
.bubble--in  { align-self: flex-start; background: #1c1c1c; border: 1px solid rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); border-radius: 14px 14px 14px 4px; }
.bubble--ai  { align-self: flex-end; background: var(--accent-13); border: 1px solid rgba(0,208,122,0.32); color: #e9fff5; border-radius: 14px 14px 4px 14px; }
.panel { background: var(--surface); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.panel__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.02); }
.panel__foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(0,208,122,0.18); background: rgba(0,208,122,0.05); font-size: 13px; color: #cdeede; line-height: 1.45; }

/* ---------- lists / checks ---------- */
.checks { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check__mark { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-13); border: 1px solid var(--accent-40); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; margin-top: 1px; }
.check span:last-child { font-size: 14.5px; color: var(--ink-80); line-height: 1.45; }

.pain { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; font-size: 14px; color: var(--ink-70); }

.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; gap: 9px; font-size: 13px; color: var(--ink-70); }
.feat .accent { color: var(--accent); }

/* ---------- outcomes / stats ---------- */
.stat { background: linear-gradient(160deg, rgba(0,208,122,0.1), rgba(0,208,122,0.02)); border: 1px solid rgba(0,208,122,0.28); border-radius: 16px; padding: 28px; }
.stat__num { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 10px; overflow-wrap: anywhere; }
.stat__label { font-size: 14px; color: var(--ink-60); line-height: 1.45; }

/* ---------- ROI calculator ---------- */
.calc-field { display: flex; flex-direction: column; gap: 11px; }
.calc-field__head { display: flex; justify-content: space-between; align-items: baseline; }
.calc-field__head span:first-child { font-size: 14px; color: var(--ink-80); }
.calc-field__val { font-family: var(--mono); font-size: 16px; color: var(--accent); }
.calc-totals { display: flex; gap: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); }
.calc-totals .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-42); margin-bottom: 5px; }
.calc-totals .v { font-size: 19px; font-weight: 600; color: var(--ink-80); }
.calc-result { background: linear-gradient(150deg, rgba(0,208,122,0.13), rgba(0,152,90,0.04)); border: 1px solid var(--accent-30); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; }
.calc-result__big { font-size: clamp(46px, 7vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.calc-result .row { display: flex; gap: 28px; margin-top: 18px; }
.calc-result .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 4px; }
.calc-result .v { font-size: 22px; font-weight: 600; }
.calc-note { margin-top: 22px; padding: 13px 15px; background: rgba(0,0,0,0.25); border-radius: 10px; font-size: 12.5px; color: var(--ink-70); line-height: 1.5; }
.fineprint { font-family: var(--mono); font-size: 11px; color: var(--ink-32); margin-top: 16px; line-height: 1.6; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: rgba(255,255,255,0.12); border-radius: 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(0,208,122,0.5); }
input[type=range]::-moz-range-track { height: 4px; background: rgba(255,255,255,0.12); border-radius: 4px; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }

/* ---------- pricing ---------- */
.price { display: flex; flex-direction: column; position: relative; }
.price--accent { background: linear-gradient(170deg, rgba(0,208,122,0.12), rgba(0,152,90,0.03)); border: 1.5px solid var(--accent); box-shadow: 0 16px 50px rgba(0,208,122,0.12); }
.price__name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.price__blurb { font-size: 12.5px; color: var(--ink-50); line-height: 1.45; margin-bottom: 18px; min-height: 34px; }
.price__amt { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price__amt b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price__amt span { font-size: 13px; color: var(--ink-50); }
.price__note { font-family: var(--mono); font-size: 11px; color: var(--ink-42); margin-bottom: 22px; }
.price__badge { position: absolute; top: -11px; left: 26px; }
.price .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--surface-2); border: 1px solid rgba(255,255,255,0.09); border-radius: 13px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: transparent; border: 0; cursor: pointer; padding: 20px 22px; text-align: left; font-size: 15.5px; font-weight: 600; color: #fff; }
.faq__sign { flex: none; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq__item[data-open="true"] .faq__sign { transform: rotate(45deg); }
.faq__a { margin: 0; padding: 0 22px; max-height: 0; overflow: hidden; font-size: 14px; color: var(--ink-60); line-height: 1.6; transition: max-height .25s ease, padding .25s ease; }
.faq__item[data-open="true"] .faq__a { padding: 0 22px 22px; max-height: 400px; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-50); margin-bottom: 7px; }
.field input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px; padding: 12px 14px; color: #fff; font-family: var(--font); font-size: 14px; }
.field input:focus { border-color: var(--accent-40); outline: none; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-13); border: 1px solid var(--accent-40); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.is-hidden { display: none !important; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; padding-block: 48px; }
.site-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.fcol { display: flex; flex-direction: column; gap: 11px; }
.fcol__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-42); margin-bottom: 3px; }
.fcol a { font-size: 13.5px; color: var(--ink-60); transition: color .15s; }
.fcol a:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer__bar .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-32); }

/* ---------- misc rows ---------- */
.proof { display: flex; gap: 13px; align-items: flex-start; }
.proof svg { flex: none; margin-top: 1px; }
.proof b { font-size: 14px; font-weight: 600; display: block; }
.proof span { font-size: 12.5px; color: var(--ink-50); }
.cmp-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row .k { font-size: 12.5px; color: var(--ink-42); font-family: var(--mono); }
.cmp-row .v { font-size: 13.5px; color: var(--ink-70); text-align: right; }

/* ---------- animations ---------- */
@keyframes glowPulse { 0%,100% { opacity: .5; } 50% { opacity: .85; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.riseIn { animation: riseIn .35s ease both; }
.typing { align-self: flex-end; display: flex; gap: 4px; background: rgba(0,208,122,0.1); border: 1px solid rgba(0,208,122,0.25); padding: 11px 14px; border-radius: 13px 13px 4px 13px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
