/* ============================================================
   Statim.chat — landing styles
   Theme via CSS variables. Mobile-first, responsive.
   ============================================================ */

:root {
  --bg: #0b0d17;
  --bg-soft: #111425;
  --surface: #161a2e;
  --surface-2: #1d2340;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1fb;
  --text-muted: #a4abc7;
  --accent: #6c5ce7;
  --accent-2: #00d2ff;
  --accent-grad: linear-gradient(120deg, #6c5ce7 0%, #00d2ff 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(108, 92, 231, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(108, 92, 231, 0.7); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px; min-width: 150px;
  box-shadow: var(--shadow); display: none; flex-direction: column;
}
.lang-menu.open { display: flex; }
.lang-menu button {
  background: transparent; border: none; color: var(--text);
  text-align: left; padding: 9px 12px; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-family: inherit;
}
.lang-menu button:hover { background: var(--surface); }
.lang-menu button[aria-current="true"] { color: var(--accent-2); font-weight: 700; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lead { color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 90px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 70% -10%, rgba(108,92,231,0.28), transparent 60%),
              radial-gradient(700px 400px at 10% 10%, rgba(0,210,255,0.16), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-muted); }

/* Chat mockup */
.mockup {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 20px; box-shadow: var(--shadow);
}
.mockup-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.mockup-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-grad); display: grid; place-items: center; font-weight: 800; color: #fff; }
.mockup-head .meta { font-size: 13px; color: var(--text-muted); }
.mockup-head .meta strong { display: block; color: var(--text); font-size: 15px; }
.bubble { padding: 11px 15px; border-radius: 16px; margin-bottom: 10px; max-width: 80%; font-size: 14.5px; }
.bubble.in { background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--accent-grad); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble .tag { display:block; font-size: 11px; opacity: .7; margin-top: 3px; }

/* ---------- Channels strip ---------- */
.channels { padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.channels .label { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.channel-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; }
.channel { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.channel svg { width: 26px; height: 26px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: transform .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(108,92,231,0.5); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; color: var(--accent-2); }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step .num { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card {
  background: var(--accent-grad); border-radius: 28px; padding: 64px 32px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cta-card h2 { color: #fff; margin-bottom: 14px; }
.cta-card p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 28px; }
.cta-card .btn-primary { background: #fff; color: var(--accent); }

/* ---------- About / Contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.contact-list .k { color: var(--text); font-weight: 600; min-width: 92px; }
.legal-note { font-size: 13px; color: var(--text-muted); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-soft); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; font-size: 15.5px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--accent-2); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-size: 14px; margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .mockup { max-width: 440px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 18px 24px; gap: 16px;
  }
}
@media (max-width: 560px) {
  section { padding: 64px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-card { padding: 44px 22px; }
}

[data-i18n] { transition: opacity .12s; }
