:root {
  --black: #000000;
  --white: #ffffff;
  --text: #5e5e5e;
  --accent: #f7921e;
  --accent-2: #f7ad24;
  --line: #e8e8e8;
  --muted: #f6f6f6;
  --display: "Orbitron", sans-serif;
  --body: "Poppins", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--white);
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}
input, textarea, button, select {
  color-scheme: light;
  background: var(--white);
  color: var(--black);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo img { width: 36px; height: 36px; }
.nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover, .nav a.active { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 13px 26px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #e28312; }
.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-ghost:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 80px;
}
.hero-bg-word {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 168px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .85;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: end;
  min-height: 620px;
}
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-visual .robot {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  margin-top: 70px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.08));
}
.stack-labels {
  position: absolute;
  left: 0;
  top: 58%;
  z-index: 2;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--black);
}
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.vector-line {
  width: min(360px, 100%);
  margin: 8px 0 28px;
}
.lead {
  color: var(--text);
  font-size: 16px;
  max-width: 460px;
  margin: 0 0 28px;
}
.stats-card {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  padding: 18px 22px;
  width: fit-content;
}
.stat { min-width: 110px; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
}
.stat span {
  font-size: 13px;
  color: var(--text);
}
.stats-card .thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.section { padding: 88px 0; }
.section-muted { background: var(--muted); }
.section-kicker {
  font-family: var(--display);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 18px;
}
.section-intro {
  color: var(--text);
  max-width: 560px;
  margin-bottom: 40px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.chat-panel {
  background: var(--white);
  border: 1px solid var(--line);
  height: min(620px, 70vh);
  max-height: 70vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-panel-head {
  flex: 0 0 auto;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
}
.messages::-webkit-scrollbar {
  width: 8px;
}
.messages::-webkit-scrollbar-track {
  background: var(--white);
}
.messages::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
.bubble {
  max-width: 86%;
  padding: 12px 14px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.user {
  margin-left: auto;
  background: var(--muted);
  color: var(--black);
  border: 0;
}
.bubble.assistant {
  background: var(--muted);
  color: var(--black);
  border: 0;
}
.bubble .who {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .7;
}
.bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}
.bubble a:hover { color: #e28312; }
.bubble.error { border: 1px solid #d14343; }
.quick-row {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 12px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.composer {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 16px 20px 8px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.composer input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: none;
  background: var(--white);
}
.composer input:focus { border-color: var(--accent); }
.composer .btn {
  width: 48px;
  height: 48px;
  padding: 0;
  flex: 0 0 48px;
  justify-content: center;
  border-radius: 6px;
}
.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
}
.btn-voice {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: none;
}
.btn-voice:hover { background: #e28312; }
.btn-voice .wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.btn-voice .wave span {
  display: block;
  width: 3px;
  background: #fff;
  border-radius: 99px;
}
.btn-voice .wave span:nth-child(1),
.btn-voice .wave span:nth-child(5) { height: 8px; }
.btn-voice .wave span:nth-child(2),
.btn-voice .wave span:nth-child(4) { height: 14px; }
.btn-voice .wave span:nth-child(3) { height: 20px; }
.btn-voice.listening {
  box-shadow: 0 0 0 2px #ffd39a;
}
.btn-voice.listening .wave span {
  animation: wave-bar .9s ease-in-out infinite;
}
.btn-voice.listening .wave span:nth-child(2) { animation-delay: .1s; }
.btn-voice.listening .wave span:nth-child(3) { animation-delay: .2s; }
.btn-voice.listening .wave span:nth-child(4) { animation-delay: .1s; }
.btn-voice.listening .wave span:nth-child(5) { animation-delay: .05s; }
@keyframes wave-bar {
  0%, 100% { transform: scaleY(.55); }
  50% { transform: scaleY(1); }
}
.voice-status {
  min-height: 18px;
  margin: 0 20px 8px;
  font-size: 12px;
  color: var(--accent);
}
.fine-print {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text);
  padding: 0 20px 16px;
}
.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 4px;
  animation: blink 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink {
  0%, 80%, 100% { opacity: .2; }
  40% { opacity: 1; }
}
.sources { margin-top: 8px; }
.sources a { color: var(--accent); font-weight: 600; }
.warn {
  font-size: 12px;
  color: #9a5b00;
  background: #fff4e5;
  padding: 8px 10px;
  margin-top: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  padding: 28px 22px;
  background: var(--white);
}
.card .num {
  font-family: var(--display);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 16px;
  margin: 0 0 10px;
}
.card p { color: var(--text); margin: 0; font-size: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 8px 8px 0 0;
}
.step b {
  font-family: var(--display);
  font-size: 48px;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--display);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.disclaimer-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  color: var(--text);
  font-size: 14px;
}

.site-footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 14px;
}
.site-footer a { display: block; color: var(--text); margin: 6px 0; }
.site-footer a:hover { color: var(--accent); }
.copy {
  color: var(--text);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.legal {
  padding: 64px 0 96px;
  max-width: 860px;
}
.legal h1 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 12px;
}
.legal h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 20px;
  margin-top: 32px;
}
.legal p, .legal li { color: var(--text); }

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line);
  padding: 12px 14px;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-status { font-size: 14px; color: var(--text); }

.app-shell {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.app-top {
  flex: 0 0 auto;
  text-align: center;
  padding: 22px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.app-top .logo { justify-content: center; }
.app-top p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 14px;
}
.app-shell .chat-panel {
  flex: 1;
  height: auto;
  max-height: none;
  border: 0;
  min-height: 0;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--line);
  padding: 16px 18px;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
}
.cookie.open { display: flex; }
.cookie p { margin: 0; font-size: 13px; color: var(--text); }
.cookie a { color: var(--accent); }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .header-inner.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
  }
  .menu-toggle { display: block; }
  .hero-grid, .chat-layout, .cards, .steps, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 12px 0 56px; }
  .hero-bg-word {
    top: 8px;
    font-size: clamp(52px, 20vw, 92px);
    line-height: .9;
  }
  .hero-grid { min-height: 0; }
  .hero-visual .robot { margin-top: 56px; }
  .stack-labels {
    position: absolute;
    left: 0;
    top: 62%;
    font-size: 12px;
  }
  .stats-card { width: 100%; flex-wrap: wrap; }
}
