/* SIMCAT.ORG — static site styles
   No external fonts, no tracking, no build step required. */

:root {
  color-scheme: dark;
  --bg: #070a10;
  --bg-soft: #0b1018;
  --surface: rgba(16, 22, 33, 0.74);
  --surface-solid: #101621;
  --surface-2: rgba(23, 31, 45, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eff8;
  --muted: #97a4b8;
  --muted-2: #6f7d92;
  --accent: #78b7ff;
  --accent-2: #7ee0c3;
  --accent-3: #ffcf8a;
  --danger: #ff8e9e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: "Inter", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eaf0f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: rgba(240, 245, 252, 0.88);
  --line: rgba(15, 30, 55, 0.10);
  --line-strong: rgba(15, 30, 55, 0.18);
  --text: #0d1726;
  --muted: #53647a;
  --muted-2: #6e7f94;
  --accent: #2367c9;
  --accent-2: #087f6a;
  --accent-3: #9a6418;
  --danger: #b4233a;
  --shadow: 0 24px 70px rgba(24, 44, 74, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 88% -8%, rgba(86, 151, 255, 0.16), transparent 62%),
    radial-gradient(900px 620px at 6% 18%, rgba(126, 224, 195, 0.10), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.55;
}
html[data-theme="light"] body::before { opacity: 0.32; }
::selection { background: rgba(120, 183, 255, 0.30); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.035em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2rem; }
code, pre { font-family: var(--mono); }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #06101d;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 1.04rem; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.menu-toggle { display: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.lang-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.mobile-only-lang { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.22); color: var(--bg); }
.button.primary { background: linear-gradient(135deg, var(--accent), #b9d8ff); color: #06101d; }
.button.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button.ghost:hover { background: var(--surface-2); color: var(--text); }
.button.small { min-height: 38px; padding: 0 14px; font-size: 0.84rem; border-radius: 11px; }
.button .arrow { transition: transform .18s ease; }
.button:hover .arrow { transform: translateX(3px); }

.hero { position: relative; padding: 86px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { font-size: clamp(2.7rem, 5.2vw, 5rem); max-width: 760px; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent) 0%, #c6ddff 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 620px; margin-top: 22px; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--muted-2); font-size: 0.8rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

.hero-visual { position: relative; min-height: 430px; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 2% 6% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,183,255,.18), transparent 65%);
  filter: blur(18px);
}
.app-window {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(21,29,43,.92), rgba(11,16,24,.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.app-window:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px); }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); opacity: .7; }
.window-title { color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; }
.window-badge { margin-left: auto; padding: 3px 7px; border: 1px solid rgba(126,224,195,.28); border-radius: 999px; color: var(--accent-2); font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; }
.app-body { display: grid; grid-template-columns: 128px 1fr; min-height: 338px; }
.app-side { padding: 16px 10px; border-right: 1px solid var(--line); background: rgba(255,255,255,.015); }
.side-brand { display: flex; align-items: center; gap: 7px; margin: 0 6px 18px; color: var(--text); font-size: .72rem; font-weight: 700; }
.side-brand .mini-mark { width: 18px; height: 18px; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 8px; color: var(--muted-2); font-size: .66rem; }
.side-item.active { background: rgba(120,183,255,.10); color: var(--accent); }
.side-item i { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 2px; opacity: .8; }
.app-main { padding: 17px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app-title { font-size: .82rem; font-weight: 650; }
.app-sub { margin-top: 2px; color: var(--muted-2); font-size: .62rem; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .58rem; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.device-card { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.device-card.selected { border-color: rgba(120,183,255,.35); background: rgba(120,183,255,.07); }
.device-icon { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; border-radius: 7px; background: rgba(120,183,255,.12); color: var(--accent); font-family: var(--mono); font-size: .58rem; }
.device-name { font-size: .65rem; font-weight: 600; }
.device-meta { margin-top: 2px; color: var(--muted-2); font-size: .56rem; }
.profile-panel { margin-top: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(135deg, rgba(120,183,255,.08), rgba(126,224,195,.04)); }
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-name { font-size: .67rem; font-weight: 650; }
.profile-carrier { margin-top: 2px; color: var(--muted-2); font-size: .56rem; }
.profile-status { color: var(--accent-2); font-family: var(--mono); font-size: .55rem; }
.profile-bar { height: 4px; margin-top: 9px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.profile-bar span { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.call-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 11px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.call-label { color: var(--muted); font-size: .58rem; }
.call-state { color: var(--accent-3); font-family: var(--mono); font-size: .56rem; }
.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: 0 14px 35px rgba(0,0,0,.28);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .6rem;
}
.floating-chip b { color: var(--text); font-weight: 600; }
.floating-chip.one { top: 6%; right: -4%; }
.floating-chip.two { bottom: 7%; left: -5%; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 9px var(--accent-2); }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 52px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); }
.metric { padding: 20px 22px; background: var(--bg-soft); }
.metric strong { display: block; font-size: 1.02rem; letter-spacing: -0.02em; }
.metric span { display: block; margin-top: 4px; color: var(--muted-2); font-size: .76rem; }

.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head .kicker { color: var(--accent-2); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.section-head h2 { max-width: 760px; margin-top: 10px; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.section-head p { max-width: 430px; color: var(--muted); font-size: .95rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 180px at 90% 0%, rgba(120,183,255,.10), transparent 70%);
  opacity: 0;
  transition: opacity .22s ease;
}
.card:hover::after { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 11px; background: rgba(120,183,255,.08); color: var(--accent); }
.card-icon svg { width: 19px; height: 19px; }
.card h3 { font-size: 1.08rem; letter-spacing: -0.02em; }
.card p { margin-top: 9px; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--accent); font-size: .8rem; font-weight: 600; }
.card-link .arrow { transition: transform .18s ease; }
.card:hover .card-link .arrow { transform: translateX(3px); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.split h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.split p { margin-top: 16px; color: var(--muted); }
.feature-list { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.feature-item { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.feature-item .num { color: var(--accent-2); font-family: var(--mono); font-size: .7rem; }
.feature-item strong { display: block; font-size: .9rem; }
.feature-item span { display: block; margin-top: 3px; color: var(--muted-2); font-size: .78rem; }
.principle-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(120,183,255,.10), rgba(126,224,195,.04) 48%, transparent 80%),
    var(--surface);
  box-shadow: var(--shadow);
}
.principle-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  pointer-events: none;
}
.principle-panel .terminal { position: relative; z-index: 1; font-family: var(--mono); font-size: .72rem; line-height: 1.9; color: var(--muted); }
.terminal .line { display: flex; gap: 9px; }
.terminal .prompt { color: var(--accent-2); }
.terminal .ok { color: var(--accent-2); }
.terminal .warn { color: var(--accent-3); }
.terminal .muted { color: var(--muted-2); }
.terminal .cmd { color: var(--text); }
.principle-panel .seal { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .7rem; }
.seal-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(126,224,195,.28); border-radius: 50%; color: var(--accent-2); font-size: .8rem; }

.surface-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.surface-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.surface-card .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.surface-card h3 { font-size: 1.12rem; }
.surface-card .badge { flex: none; }
.surface-card p { margin-top: 12px; color: var(--muted); font-size: .87rem; }
.surface-card ul { margin-top: 16px; color: var(--muted-2); font-size: .8rem; }
.surface-card li + li { margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; }
.badge.available { border-color: rgba(126,224,195,.30); color: var(--accent-2); background: rgba(126,224,195,.06); }
.badge.lab { border-color: rgba(255,207,138,.30); color: var(--accent-3); background: rgba(255,207,138,.06); }
.badge.dev { border-color: rgba(120,183,255,.30); color: var(--accent); background: rgba(120,183,255,.06); }

.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform-card { display: flex; flex-direction: column; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, border-color .2s ease; }
.platform-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.platform-card .platform-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.platform-card h3 { font-size: 1.05rem; }
.platform-card p { margin-top: 10px; color: var(--muted); font-size: .83rem; }
.platform-card .platform-foot { margin-top: auto; padding-top: 18px; color: var(--muted-2); font-family: var(--mono); font-size: .62rem; }
.platform-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); font-family: var(--mono); font-size: .7rem; }

.roadmap { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 7px; }
.roadmap-item { position: relative; padding: 0 0 28px 28px; }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-item::before { content: ""; position: absolute; top: 4px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(120,183,255,.10); }
.roadmap-item.done::before { background: var(--accent-2); box-shadow: 0 0 0 5px rgba(126,224,195,.10); }
.roadmap-item .phase { color: var(--muted-2); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.roadmap-item h3 { margin-top: 5px; font-size: 1rem; }
.roadmap-item p { margin-top: 6px; color: var(--muted); font-size: .83rem; }

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 30px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(700px 300px at 90% 20%, rgba(126,224,195,.10), transparent 65%),
    radial-gradient(700px 300px at 0% 100%, rgba(120,183,255,.12), transparent 65%),
    var(--surface);
  overflow: hidden;
}
.cta-panel h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.cta-panel p { max-width: 600px; margin-top: 12px; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.page-hero { padding: 74px 0 34px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
.page-hero .lede { max-width: 760px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-meta .badge { font-size: .6rem; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 46px; font-size: 1.65rem; }
.prose h3 { margin-top: 30px; font-size: 1.16rem; }
.prose p { margin-top: 14px; color: var(--muted); }
.prose ul, .prose ol { margin-top: 14px; color: var(--muted); }
.prose li + li { margin-top: 7px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: .84em; }
.prose pre { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #070b12; color: #d7e3f3; overflow: auto; font-size: .78rem; line-height: 1.7; }
.prose blockquote { margin: 20px 0 0; padding: 14px 18px; border-left: 2px solid var(--accent); background: rgba(120,183,255,.06); color: var(--muted); border-radius: 0 12px 12px 0; }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted-2); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

.site-footer { margin-top: 20px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 54px 0 34px; }
.footer-brand p { max-width: 300px; margin-top: 12px; color: var(--muted-2); font-size: .8rem; }
.footer-col h4 { color: var(--muted-2); font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin-top: 9px; color: var(--muted); font-size: .8rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .7rem; }
.footer-bottom .dot { display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px; border-radius: 50%; background: var(--accent-2); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 390px; max-width: 620px; }
  .app-window { transform: none; }
  .floating-chip.one { right: 0; }
  .floating-chip.two { left: 0; }
  .grid-3, .surface-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { min-height: 66px; }
  .nav {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; }
  .menu-toggle { display: inline-grid; }
  .header-actions .button { display: none; }
  .header-actions .lang-btn { display: inline-flex !important; }
  .mobile-only-lang { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .grid-3, .surface-grid, .platform-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-panel { grid-template-columns: 1fr; padding: 28px; }
  .cta-actions { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 6px; }
  .floating-chip { display: none; }
  .app-body { grid-template-columns: 92px 1fr; }
  .side-item { font-size: .58rem; padding: 7px 6px; }
  .device-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions .button { width: 100%; }
  .metric { padding: 16px; }
  .metric strong { font-size: .9rem; }
  .metric span { font-size: .68rem; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-window { border-radius: 16px; }
}


/* =============================================================
   Multilingual Dropdown, Mobile Lang Grid & RTL (Arabic) Support
   ============================================================= */
.lang-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: -8px;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.lang-switch-btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
}
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 176px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 120;
}
.lang-dropdown-wrap:hover::after {
  content: '';
  position: absolute;
  left: -28px;
  right: -8px;
  bottom: 0;
  height: 12px;
}
.lang-dropdown-menu.active,
.lang-dropdown-menu.hover-open {
  display: flex !important;
}
@media (hover: hover) and (pointer: fine) {
  .lang-dropdown-wrap:hover .lang-dropdown-menu:not(.force-closed) {
    display: flex;
  }
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.lang-option:hover {
  background: var(--surface-2);
  color: var(--accent);
}
.lang-option.active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 700;
}
.lang-check {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

.mobile-lang-grid {
  display: none;
}
@media (max-width: 760px) {
  .lang-current-label {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .mobile-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-lang-pill.active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-weight: 700;
  }
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .lang-option {
  text-align: right;
}
html[dir="rtl"] .lang-check {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-left: 0;
  padding-right: 1.2rem;
}
html[dir="rtl"] .prose blockquote {
  border-left: 0;
  border-right: 2px solid var(--accent);
  border-radius: 12px 0 0 12px;
}
html[dir="rtl"] .roadmap {
  border-left: 0;
  border-right: 1px solid var(--line);
  margin-left: 0;
  margin-right: 7px;
}
html[dir="rtl"] .roadmap-item {
  padding: 0 28px 28px 0;
}
html[dir="rtl"] .roadmap-item::before {
  left: auto;
  right: -5px;
}
html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] .terminal {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
html[dir="rtl"] .skip-link {
  left: auto;
  right: 12px;
}
