/* ============================================================
   AIWiki Landing — Design System + Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --primary:       #2563EB;
  --primary-dark:  #1E40AF;
  --primary-light: #EFF6FF;
  --primary-mid:   #DBEAFE;
  --success:       #16A34A;
  --success-light: #DCFCE7;
  --warning:       #D97706;
  --bg:            #FFFFFF;
  --bg-subtle:     #F8FAFC;
  --bg-muted:      #F1F5F9;
  --border:        #E5E7EB;
  --border-focus:  #93C5FD;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 6px rgba(0,0,0,.07);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);

  --max-w: 1200px;
  --px: 24px;
  --header-h: 68px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid transparent;
  padding: 10px 16px;
}
.btn--ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge--success { background: var(--success-light); color: var(--success); }
.badge--primary { background: var(--primary-light); color: var(--primary); }
.badge--neutral { background: var(--bg-muted); color: var(--text-muted); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-focus); }
.card--subtle { background: var(--bg-subtle); border-color: transparent; }
.card--subtle:hover { background: var(--bg); border-color: var(--border); box-shadow: var(--shadow-sm); }

/* ── Section base ───────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section--alt { background: var(--bg-subtle); }
.section--dark {
  background: #0F172A;
  color: #fff;
}
.section--dark p { color: #94A3B8; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__title { margin-bottom: 16px; }
.section__subtitle { font-size: 18px; color: var(--text-muted); max-width: 580px; line-height: 1.6; }

.section__head { text-align: center; margin-bottom: 64px; }
.section__head .section__subtitle { margin: 0 auto; }

/* ── Grid ───────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #6366F1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.logo__text { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav__link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .12s;
}
.nav__link:hover { color: var(--text); background: var(--bg-subtle); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  transition: all .12s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--primary); background: var(--primary-light); }

/* Mobile hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  background: var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Hero left */
.hero__eyebrow {
  margin-bottom: 20px;
}
.hero__title { margin-bottom: 20px; }
.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero right — Search UI mockup */
.hero__ui {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.ui-topbar {
  display: flex; gap: 6px;
  margin-bottom: 16px;
}
.ui-dot { width: 10px; height: 10px; border-radius: 50%; }
.ui-dot--red { background: #FF5F57; }
.ui-dot--yellow { background: #FEBC2E; }
.ui-dot--green { background: #28C840; }

.ui-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px var(--border-focus);
}
.ui-search__icon { color: var(--primary); flex-shrink: 0; }
.ui-search__text { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; }
.ui-search__tag {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 100px;
}

.ui-answer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.ui-answer__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ui-answer__title { font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.ui-answer__text { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.ui-sources { display: flex; flex-direction: column; gap: 4px; }
.ui-source {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
  border: 1px solid var(--border);
}
.ui-source__icon { opacity: 0.5; }

.ui-related {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.ui-pill {
  font-size: 11px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Trust indicators */
.hero__trust {
  display: flex; align-items: center; gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.trust-item svg { color: var(--success); }

/* ============================================================
   CORE FEATURES
   ============================================================ */
.features__card {
  position: relative;
  overflow: hidden;
}
.features__card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.features__card h3 { margin-bottom: 8px; }
.features__card p { margin-bottom: 16px; font-size: 15px; }
.features__card-tag {
  font-size: 12px; font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   COMPETITIVE / WHY
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.why__item {
  background: var(--bg);
  padding: 36px 32px;
  transition: background .15s;
}
.why__item:hover { background: var(--primary-light); }
.why__num {
  font-size: 11px; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.why__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

/* ============================================================
   ADMIN DASHBOARD MOCKUP
   ============================================================ */
.admin { background: var(--bg-subtle); }
.admin__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.admin__features { display: flex; flex-direction: column; gap: 16px; }
.admin__feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.admin__feature:hover { background: var(--bg); }
.admin__feature-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 16px;
}
.admin__feature h4 { margin-bottom: 2px; }
.admin__feature p { font-size: 13px; }

/* Admin UI Mockup */
.admin-ui {
  background: #0F172A;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.admin-ui__bar {
  background: #1E293B;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-ui__bar-title {
  font-size: 12px; font-weight: 600;
  color: #94A3B8;
}
.admin-ui__body { display: flex; }
.admin-ui__sidebar {
  width: 180px; flex-shrink: 0;
  background: #1E293B;
  padding: 12px 0;
  border-right: 1px solid rgba(255,255,255,.06);
}
.admin-ui__nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: 12px; font-weight: 500;
  color: #64748B;
  cursor: pointer;
  transition: all .1s;
}
.admin-ui__nav-item.active { color: #60A5FA; background: rgba(37,99,235,.12); }
.admin-ui__nav-item:hover:not(.active) { color: #94A3B8; background: rgba(255,255,255,.04); }
.admin-ui__nav-icon { font-size: 14px; }
.admin-ui__content { flex: 1; padding: 16px; overflow: hidden; }
.admin-ui__content-title {
  font-size: 13px; font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 12px;
}
.admin-ui__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.admin-kpi {
  background: #1E293B;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
}
.admin-kpi__val {
  font-size: 20px; font-weight: 800;
  color: #F1F5F9;
  line-height: 1;
  margin-bottom: 4px;
}
.admin-kpi__label { font-size: 10px; color: #64748B; font-weight: 500; }
.admin-ui__table-row {
  display: flex; align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  gap: 8px;
}
.admin-ui__table-row:last-child { border: none; }
.admin-ui__avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #6366F1);
  font-size: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.admin-ui__user-name { font-size: 11px; color: #CBD5E1; flex: 1; font-weight: 500; }
.admin-ui__role {
  font-size: 10px; font-weight: 600;
  padding: 2px 6px; border-radius: 100px;
}
.admin-ui__role--owner { background: rgba(99,102,241,.2); color: #A5B4FC; }
.admin-ui__role--admin { background: rgba(37,99,235,.2); color: #60A5FA; }
.admin-ui__role--editor { background: rgba(22,163,74,.15); color: #86EFAC; }
.admin-ui__status {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ============================================================
   DEPLOYMENT OPTIONS
   ============================================================ */
.deploy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.deploy-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.deploy-card--cloud {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border-color: var(--border-focus);
}
.deploy-card--self {
  background: var(--bg-subtle);
}
.deploy-card__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.deploy-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.deploy-card--cloud .deploy-card__icon { background: var(--primary); }
.deploy-card--self .deploy-card__icon { background: #334155; }
.deploy-card__tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 100px;
}
.deploy-card--cloud .deploy-card__tag { background: var(--primary); color: #fff; }
.deploy-card--self .deploy-card__tag { background: #334155; color: #CBD5E1; }
.deploy-card h3 { margin-bottom: 8px; }
.deploy-card > p { margin-bottom: 24px; }
.deploy-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.deploy-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.deploy-list li::before {
  content: '';
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--success-light);
  border: 1px solid rgba(22,163,74,.3);
  display: flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   ENTERPRISE & SECURITY
   ============================================================ */
.security__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.security__list { display: flex; flex-direction: column; gap: 12px; }
.security__item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}
.security__item-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.security__cert {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 32px;
}
.security__cert-item {
  padding: 16px;
  text-align: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.security__cert-item .icon { font-size: 24px; margin-bottom: 6px; }
.security__cert-item span { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ============================================================
   AI ENGINE
   ============================================================ */
.engine__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.engine__item {
  padding: 32px;
  background: #1E293B;
  transition: background .15s;
}
.engine__item:hover { background: #263349; }
.engine__item-icon { font-size: 28px; margin-bottom: 16px; }
.engine__item h4 { color: #F1F5F9; margin-bottom: 8px; }
.engine__item p { font-size: 13px; color: #64748B; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 48px;
}
.compare__table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 13px; font-weight: 700;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.compare__table th:first-child { width: 40%; }
.compare__table th.col-aiwiki {
  background: var(--primary);
  color: #fff;
}
.compare__table td {
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.compare__table tr:last-child td { border-bottom: none; }
.compare__table tr:nth-child(even) td { background: var(--bg-subtle); }
.compare__table .col-aiwiki { background: var(--primary-light) !important; }
.compare__table .col-aiwiki td { color: var(--primary); font-weight: 600; }
.check-yes { color: var(--success); font-size: 18px; }
.check-no { color: #D1D5DB; font-size: 18px; }
.check-limited { color: var(--warning); font-size: 13px; font-weight: 500; }

/* ============================================================
   MULTILINGUAL
   ============================================================ */
.multilang__demos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.lang-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-demo__header {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.lang-demo__flag { font-size: 16px; }
.lang-demo__name { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.lang-demo__body { padding: 16px; }
.lang-demo__q {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.lang-demo__q svg { color: var(--primary); }
.lang-demo__a {
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  padding: 8px 10px;
  background: var(--primary-light);
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--primary);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #1E3A8A, #1E40AF, #2563EB);
  padding: 100px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.7); font-size: 18px; margin-bottom: 40px; }
.cta-section .btn--primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.cta-section .btn--primary:hover { background: #F0F9FF; }
.cta-section .btn--outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.cta-section .btn--outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta__trust {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 36px; flex-wrap: wrap;
}
.cta__trust-item { font-size: 13px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0F172A;
  padding: 72px 0 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer__brand { }
.footer__logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer__logo .logo__mark { width: 32px; height: 32px; font-size: 11px; }
.footer__logo .logo__text { font-size: 16px; color: #fff; }
.footer__desc { font-size: 13px; color: #64748B; line-height: 1.7; max-width: 240px; }
.footer__col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #CBD5E1; margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: #64748B; transition: color .12s; }
.footer__links a:hover { color: #CBD5E1; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 13px; color: #475569; }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 13px; color: #475569; transition: color .12s; }
.footer__legal a:hover { color: #94A3B8; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  padding: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav__close {
  align-self: flex-end;
  padding: 8px;
  color: var(--text-muted);
  font-size: 24px;
}
.mobile-nav__links { display: flex; flex-direction: column; gap: 8px; flex: 1; padding-top: 32px; }
.mobile-nav__links a { font-size: 20px; font-weight: 600; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav__actions { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.mobile-nav__actions .btn { justify-content: center; }

/* ============================================================
   REGISTRATION MODAL
   ============================================================ */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Modal card */
.modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.1);
  border: 1px solid var(--border);
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
  overflow: hidden;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

/* Modal header */
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
}
.modal__logo { display: flex; align-items: center; gap: 8px; }
.modal__logo .logo__mark { width: 32px; height: 32px; font-size: 11px; }
.modal__logo .logo__text { font-size: 16px; font-weight: 800; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  border: 1px solid transparent;
  transition: all .12s;
}
.modal__close:hover { background: var(--bg-subtle); border-color: var(--border); color: var(--text); }

/* Modal body */
.modal__body { padding: 20px 28px 28px; }

/* Steps indicator */
.modal__steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.modal__step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}
.modal__step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 8px;
  transition: background .3s;
}
.modal__step.done:not(:last-child)::after { background: var(--primary); }
.step__num {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
  transition: all .2s;
}
.modal__step.active .step__num {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.modal__step.done .step__num {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}
.step__label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.modal__step.active .step__label { color: var(--primary); }
.modal__step.done .step__label { color: var(--success); }

/* Step heading */
.modal__step-title {
  font-size: 20px; font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.modal__step-sub {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form elements */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label-opt {
  font-size: 11px; font-weight: 500;
  color: var(--text-light);
  font-style: italic;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.form-input.success { border-color: var(--success); }

/* Password wrapper */
.form-pwd { position: relative; }
.form-pwd .form-input { padding-right: 44px; }
.form-pwd__toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color .12s;
}
.form-pwd__toggle:hover { color: var(--text); }

/* Slug preview */
.slug-preview {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .12s, box-shadow .12s;
}
.slug-preview:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.slug-preview.error { border-color: #EF4444; }
.slug-prefix {
  padding: 11px 10px 11px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.slug-preview .form-input {
  border: none;
  background: transparent;
  padding: 11px 14px 11px 2px;
  border-radius: 0;
  box-shadow: none;
}
.slug-preview .form-input:focus { box-shadow: none; }

/* Field hint / error */
.form-hint {
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.4;
}
.form-hint--error { color: #EF4444; }
.form-hint--muted { color: var(--text-light); }
.form-hint--success { color: var(--success); }

/* Terms */
.form-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color .12s;
}
.form-terms:hover { border-color: var(--border-focus); }
.form-terms input[type="checkbox"] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-terms-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-terms-text a { color: var(--primary); text-decoration: underline; }

/* Modal actions */
.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.modal__actions .btn { flex: 1; justify-content: center; }

/* Modal footer */
.modal__footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
}
.modal__footer a { color: var(--primary); font-weight: 600; }
.modal__footer a:hover { text-decoration: underline; }

/* Global error banner */
.form-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.form-banner--error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
}
.form-banner--success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}

/* Success screen */
.modal__success {
  text-align: center;
  padding: 8px 0 12px;
}
.modal__success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.modal__success h3 { font-size: 20px; margin-bottom: 8px; }
.modal__success p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* Loading spinner inside button */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
.btn--outline .btn-spinner {
  border-color: rgba(37,99,235,.35);
  border-top-color: var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Strength meter */
.pwd-strength {
  display: flex; gap: 4px;
  margin-top: 6px;
}
.pwd-strength__bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .2s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --px: 16px; }
  .section { padding: 64px 0; }

  /* Header */
  .nav, .header__actions .btn { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .lang-toggle { display: flex; }

  /* Hero */
  .hero { padding: 48px 0 64px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; }
  .hero__actions .btn--lg { width: 100%; justify-content: center; }
  .hero__trust { gap: 12px; }

  /* Grids */
  .grid-3, .why__grid, .engine__grid { grid-template-columns: 1fr; }
  .grid-2, .deploy__grid, .security__grid, .admin__inner, .multilang__demos { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Compare table */
  .compare__table th, .compare__table td { padding: 10px 12px; font-size: 12px; }

  /* CTA */
  .cta-section { padding: 64px 0; }
  .cta__actions .btn { width: 100%; justify-content: center; }
  .cta__actions { flex-direction: column; }

  /* Admin */
  .admin-ui__sidebar { display: none; }

  /* Why grid */
  .why__grid { gap: 1px; }

  /* Section head */
  .section__head { margin-bottom: 40px; }
}

/* ============================================================
   DEMO MODAL
   ============================================================ */

.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.demo-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-shell {
  width: 100%;
  max-width: min(96vw, 1520px);
  height: min(90vh, 860px);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}

.demo-overlay.is-open .demo-shell {
  transform: translateY(0) scale(1);
}

/* Browser-chrome bar */
.demo-shell__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  flex-shrink: 0;
}

.demo-shell__dots {
  display: flex;
  gap: 6px;
}
.demo-shell__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .12);
}
.demo-shell__dots span:nth-child(1) { background: #ff5f56; }
.demo-shell__dots span:nth-child(2) { background: #ffbd2e; }
.demo-shell__dots span:nth-child(3) { background: #27c93f; }

.demo-shell__title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, .5);
  letter-spacing: .2px;
}

.demo-shell__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-shell__newtab,
.demo-shell__close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, .1);
  background: rgba(0, 0, 0, .04);
  color: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  flex-shrink: 0;
}
.demo-shell__newtab:hover {
  background: rgba(100, 180, 255, .18);
  color: #64b5f6;
  border-color: rgba(100, 180, 255, .3);
}
.demo-shell__close:hover {
  background: rgba(255, 80, 80, .18);
  color: #ff6b6b;
  border-color: rgba(255, 80, 80, .3);
}

/* Body */
.demo-shell__body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Loading state */
.demo-shell__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(0, 0, 0, .45);
  font-size: 13px;
  background: #ffffff;
}

.demo-shell__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, .1);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: demoSpin .8s linear infinite;
}

@keyframes demoSpin {
  to { transform: rotate(360deg); }
}

.demo-shell__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  transition: opacity .3s ease;
}

/* Mobile: full-screen */
@media (max-width: 640px) {
  .demo-overlay { padding: 0; }
  .demo-shell {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }
}
