/* AIXIO — dark AI-first theme. One accent: electric green. */
:root {
  --bg: #0a0e0c;
  --bg2: #0d1110;
  --card: #131816;
  --line: rgba(255, 255, 255, 0.06);
  --text: #e8ece9;
  --muted: #9aa8a0;
  --accent: #4ade80;
  --accent2: #22c55e;
  --radius: 14px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.main-nav a { color: var(--muted); font-size: 15px; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { font-size: 14px; color: var(--muted); white-space: nowrap; }
.lang-switch b { color: var(--text); font-weight: 600; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--accent); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--accent2);
  color: #04120a;
  box-shadow: 0 0 0 rgba(74, 222, 128, 0);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.28);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.18); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(74, 222, 128, 0.10), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  margin: 0 0 18px;
  max-width: 840px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
}

.hero-input-wrap {
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.hero-input-wrap:focus-within {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12), 0 12px 40px rgba(0, 0, 0, 0.4);
}
.hero-input-wrap textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.hero-input-wrap textarea::placeholder { color: #66756c; }
.hero-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  font-family: inherit;
}
.chip:hover { color: var(--accent); border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.06); }
.hero-pipeline { margin-top: 18px; color: var(--muted); font-size: 15px; }
.hero-pipeline b { color: var(--accent); font-weight: 600; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 720px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  font-weight: 600;
  font-size: 15.5px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat-tile:hover { transform: translateY(-3px); border-color: rgba(74, 222, 128, 0.35); }
.stat-tile .stat-num { display: block; color: var(--accent); font-size: 22px; font-weight: 800; margin-bottom: 4px; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.info-card h3 { margin: 0 0 8px; font-size: 18px; }
.info-card p { margin: 0; color: var(--muted); font-size: 15px; }
.info-card .card-ico { font-size: 24px; display: block; margin-bottom: 12px; }

/* ---------- Demo ---------- */
.demo-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 720px;
}
.demo-box textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.demo-box textarea:focus {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}
.demo-box .btn { margin-top: 14px; }
.demo-result { margin-top: 22px; }
.demo-result.hidden, .hidden { display: none !important; }
.demo-result-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.bar-row { margin-bottom: 14px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; }
.bar-label .bar-pct { color: var(--text); font-weight: 600; }
.bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Calculator ---------- */
.calc-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.calc-progress { margin-bottom: 26px; }
.calc-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.calc-progress-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.calc-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 99px;
  transition: width 0.45s ease;
}
.calc-answers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.calc-answers:empty { display: none; }
.answer-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.07);
}
.calc-screen h3.calc-q { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.calc-screen .calc-q-sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

html.js .calc-screen { display: none; }
html.js .calc-screen.active { display: block; animation: fadeUp 0.4s ease both; }

.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt-grid.two { grid-template-columns: repeat(2, 1fr); }
.opt-grid.five { grid-template-columns: repeat(5, 1fr); }
.opt-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  font-family: inherit;
  color: var(--text);
  text-align: left;
  font-size: 15px;
}
.opt-card:hover { border-color: rgba(74, 222, 128, 0.4); transform: translateY(-2px); }
.opt-card.selected {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.08);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.opt-card .opt-ico { font-size: 20px; display: block; margin-bottom: 8px; }
.opt-card .opt-title { font-weight: 700; display: block; margin-bottom: 4px; }
.opt-card .opt-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; }
.opt-card.compact { padding: 12px 16px; text-align: center; }

.calc-group { margin-bottom: 26px; }
.calc-group-label { font-weight: 700; font-size: 15.5px; margin: 0 0 12px; }
.calc-note { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

.goal-other-text {
  width: 100%;
  min-height: 84px;
  margin-top: 14px;
  resize: vertical;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  padding: 14px;
  outline: none;
}
.goal-other-text:focus { border-color: rgba(74, 222, 128, 0.55); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1); }

.calc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.calc-nav .spacer { flex: 1; }

/* ---------- Result ---------- */
.result-title { font-size: 26px; font-weight: 800; margin: 0 0 20px; }
.scenario {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
}
.scenario.main { border-color: rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.05); }
.scenario h4 { margin: 0 0 12px; font-size: 18px; }
.scenario .medal { margin-right: 8px; }
.plates { display: flex; flex-wrap: wrap; gap: 10px; }
.plate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
}
.scenario.main .plate { border-color: rgba(74, 222, 128, 0.25); }
.plate b { color: var(--text); }
.plate .plate-hl { color: var(--accent); font-weight: 700; }
.scenario-secondary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scenario-secondary .pot { color: var(--accent); font-weight: 700; font-size: 14.5px; }

/* ---------- Architecture diagram ---------- */
.arch { margin-top: 34px; }
.arch-title { font-size: 18px; font-weight: 800; margin: 0 0 18px; }
.arch-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}
.arch-node {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 110px;
}
.arch-node .arch-ico { font-size: 22px; }
.arch-node .arch-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.arch-node.agent { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.07); color: var(--accent); }
.arch-systems { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.arch-systems .arch-node { padding: 9px 16px; min-width: 130px; font-size: 14px; }
.arch-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
}
.arch-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- Form ---------- */
.lead-form { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 36px; }
.lead-form h3 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.lead-form .lead-sub { color: var(--muted); margin: 0 0 24px; max-width: 520px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; }
.form-field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.form-field input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus { border-color: rgba(74, 222, 128, 0.55); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1); }
.form-actions { margin-top: 20px; }
.form-small { color: var(--muted); font-size: 13px; margin-top: 12px; }
.form-msg { margin-top: 18px; font-weight: 600; padding: 14px 18px; border-radius: 10px; }
.form-msg.ok { color: var(--accent); background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.35); }
.form-msg.err { color: #f3b0a5; background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.3); }

/* ---------- About / footer ---------- */
.about p { color: var(--muted); max-width: 720px; }
.about p b { color: var(--text); }
.cases-note { color: var(--muted); font-size: 14px; margin-top: 20px; }

.site-footer { padding: 40px 0 48px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  color: var(--muted);
  font-size: 14.5px;
}
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .opt-grid, .opt-grid.five { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 56px; }
  .main-nav { display: none; }
  .cards-grid, .opt-grid, .opt-grid.two, .opt-grid.five, .stats-row, .form-grid { grid-template-columns: 1fr; }
  .calc-shell { padding: 20px; }
  .calc-nav { flex-wrap: wrap; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 40px; }
  .arch-systems { margin-left: 0; }
  section.block { padding: 60px 0; }
}
