:root {
  --bg: #121315;
  --surface: #1d1e20;
  --surface-2: #232527;
  --green-deep: #145a32;
  --green: #2ecc71;
  --amber: #f9a602;
  --text: #f2f5f3;
  --muted: #9aa5a0;
  --border: rgba(255, 255, 255, .09);
  --radius: 14px;
  --wrap: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ambient brand glow, kept subtle so text stays readable */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 12% -10%, rgba(20, 90, 50, .38), transparent 60%),
    radial-gradient(40rem 24rem at 95% 8%, rgba(46, 204, 113, .12), transparent 65%);
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

a { color: var(--green); }
a:hover { color: #55dd8d; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #06240f; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600; z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--border);
  background: rgba(18, 19, 21, .78);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}

.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 14px rgba(46, 204, 113, .75);
}
.brand-name { font-weight: 700; letter-spacing: .1em; font-size: .84rem; }

.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-btn {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  padding: 7px 15px; cursor: pointer; transition: background .15s, color .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--green-deep); color: #fff; }

/* ---------- hero ---------- */

.hero { padding-block: 64px 42px; max-width: 800px; }

.eyebrow {
  margin: 0 0 14px; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 700;
}

.lead { margin: 0; font-size: clamp(1.02rem, 2vw, 1.16rem); color: #cdd6d1; }

.facts {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.facts li {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--border); border-left: 3px solid var(--amber);
  background: var(--surface); border-radius: 10px; padding: 11px 16px;
}
.facts strong { font-size: .95rem; }
.facts span { font-size: .82rem; color: var(--muted); }

/* ---------- steps ---------- */

.steps { padding-block: 26px 10px; }

.section-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 20px;
}

.step-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
}
.step-grid li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--green-deep); color: #fff;
  font-weight: 700; font-size: .9rem; margin-bottom: 12px;
}
.step-grid h3 { margin: 0 0 7px; font-size: 1.03rem; }
.step-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- chat ---------- */

.chat-card {
  margin-top: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
}

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 90, 50, .26), transparent);
}
.chat-head h2 { margin: 0; font-size: 1.05rem; }
.chat-sub { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status[data-state="live"] i { background: var(--green); box-shadow: 0 0 10px rgba(46, 204, 113, .8); }
.status[data-state="busy"] i { background: var(--amber); }
.status[data-state="error"] i { background: #e5533d; }

.chat-body {
  min-height: 340px; max-height: 58vh; overflow-y: auto;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
}

.chat-empty { margin: auto; text-align: center; max-width: 430px; }
.chat-empty p { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }

.msg { max-width: 82%; padding: 12px 15px; border-radius: 13px; font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.agent { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: var(--green-deep); border-bottom-right-radius: 4px; }

.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; border-bottom-left-radius: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .28; } 30% { opacity: 1; } }

.chat-input {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 16px 18px; border-top: 1px solid var(--border); background: var(--surface-2);
}
.chat-input textarea {
  flex: 1; resize: none; max-height: 140px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; font: inherit; font-size: .95rem; line-height: 1.45;
}
.chat-input textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 11px; padding: 12px 22px; border: 1px solid transparent;
  transition: filter .15s, opacity .15s;
}
.btn-primary { background: var(--green-deep); color: #fff; border-color: rgba(46, 204, 113, .5); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.22); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.chat-error { margin: 0; padding: 13px 22px; background: rgba(229, 83, 61, .12); color: #ffb3a4; font-size: .89rem; border-top: 1px solid rgba(229, 83, 61, .3); }

/* ---------- disclaimer ---------- */

.disclaimer {
  margin: 44px 0 10px; padding: 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--amber); border-radius: var(--radius);
}
.disclaimer h2 { margin: 0 0 14px; font-size: 1.02rem; }
.disclaimer ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.disclaimer li { color: var(--muted); font-size: .9rem; }
.disc-foot { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- footer ---------- */

.site-foot { margin-top: 62px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, .28); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 24px; }
.foot-brand { margin: 0; color: var(--muted); font-size: .85rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .85rem; }
.foot-links a:hover { color: var(--green); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .step-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-block: 44px 30px; }
  .facts li { flex: 1 1 100%; }
  .chat-body { padding: 16px; min-height: 300px; }
  .msg { max-width: 92%; }
  .chat-input { padding: 13px; }
  .btn { padding: 12px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing span { animation: none; opacity: .6; }
}
