/* ============================================================
   BASALT GAMING — light enterprise design system
   Warm paper · basalt ink · clay accent · moss & steel support
   ============================================================ */

:root {
  --paper: #f7f5f1;
  --paper-2: #efece5;
  --surface: #ffffff;
  --ink: #23272c;
  --ink-2: #3b424b;
  --muted: #5a636d;
  --faint: #717a84;
  --line: #e5e0d7;
  --line-2: #d6d0c5;

  --clay: #b4491f;
  --clay-deep: #93391a;
  --clay-tint: #f8e9df;
  --amber: #e8a87c;
  --amber-tint: #fbf1e7;
  --moss: #3e7a52;
  --moss-tint: #e9f2ec;
  --steel: #3f76a0;
  --steel-tint: #e9f1f7;

  --success: #3e7a52;
  --warn: #a97a08;
  --danger: #b3372e;
  --info: #3f76a0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius: 14px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(35, 39, 44, .05);
  --shadow-md: 0 6px 24px -8px rgba(35, 39, 44, .12);
  --shadow-lg: 0 24px 60px -20px rgba(35, 39, 44, .25);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) var(--paper);
}

body {
  font: 400 16px/1.6 var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--clay-tint); color: var(--clay-deep); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #c2b9aa; }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 4px; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 400;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  font: 600 .85rem var(--font-body); transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .74rem var(--font-body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--clay);
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--moss); flex: none;
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 122, 82, .3); }
  70% { box-shadow: 0 0 0 9px rgba(62, 122, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 122, 82, 0); }
}

.section { padding: clamp(72px, 9vw, 108px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section-head.left { margin: 0; text-align: left; max-width: 560px; }
.section-head h2 {
  font: 600 clamp(1.85rem, 3vw, 2.55rem)/1.14 var(--font-display);
  letter-spacing: -.015em; color: var(--ink); margin: 14px 0 16px;
}
.section-sub { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.section-head .btn { margin-top: 26px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem/1 var(--font-body); padding: 13px 22px;
  border-radius: 10px; border: 1px solid transparent;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.btn .ic { width: 16px; height: 16px; transition: transform .18s var(--ease-out); }
.btn:hover .ic { transform: translateX(2px); }
.btn-primary {
  background: var(--clay); color: #fff;
  box-shadow: 0 1px 2px rgba(147, 57, 26, .35), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(147, 57, 26, .55); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

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

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(247, 245, 241, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  background: rgba(247, 245, 241, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -14px rgba(35, 39, 44, .25);
}
.nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font: 600 1.06rem var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.brand-word em { font-style: normal; color: var(--clay); }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; display: block; padding: 8px 12px;
  font: 500 .9rem var(--font-body); color: var(--muted);
  border-radius: 8px; white-space: nowrap; transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--clay); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--clay);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none; width: 42px; height: 42px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); padding: 28px 24px 40px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s;
}
.mobile-menu.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 4px;
  font: 600 1.5rem var(--font-display); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu li a span { font: 500 .75rem var(--font-mono); color: var(--clay); }
.mobile-menu li a.active { color: var(--clay); }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu-mail { font: 400 .85rem var(--font-mono); color: var(--faint); margin-top: auto; }

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

.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 88px;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(232, 168, 124, .17), transparent 65%),
    radial-gradient(720px 440px at -8% 112%, rgba(62, 122, 82, .09), transparent 62%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 {
  font: 600 clamp(2.5rem, 4.6vw, 3.85rem)/1.07 var(--font-display);
  letter-spacing: -.02em; color: var(--ink); margin: 18px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--clay); }
.hero-sub { font-size: 1.06rem; line-height: 1.7; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-demo-note { margin-top: 14px; font-size: .78rem; letter-spacing: .02em; color: var(--faint); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font: 500 .82rem var(--font-body); color: var(--muted); }
.hero-trust .ic { width: 15px; height: 15px; color: var(--moss); }
.hero-visual-note { margin-top: 12px; font-size: .78rem; color: var(--faint); text-align: center; }

/* ---------- console (back-office mock) ---------- */

.console {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-md); padding: 20px 22px 14px;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.console-title { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--font-body); color: var(--ink); }
.console-title .ic { width: 16px; height: 16px; color: var(--clay); }
.console-tag {
  font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--faint);
  background: var(--paper); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.console-kpis > div {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.console-kpis span { font-size: .7rem; color: var(--faint); }
.console-kpis strong { font: 500 1.05rem var(--font-mono); color: var(--ink); }
.console-chart { width: 100%; height: 140px; display: block; margin-bottom: 8px; }
.console-rows { display: flex; flex-direction: column; }
.console-rows li {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 2px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted);
}
.console-rows li .mono { color: var(--ink-2); font-size: .76rem; white-space: nowrap; }
.row-dot { width: 8px; height: 8px; border-radius: 50%; }
.row-dot.moss { background: var(--moss); }
.row-dot.steel { background: var(--steel); }
.row-dot.clay { background: var(--clay); }

.console-lg { padding: 22px 24px 16px; }
.console-lg .console-chart { height: 170px; }
.console-tabs {
  display: flex; gap: 4px; background: var(--paper);
  border: 1px solid var(--line); padding: 4px; border-radius: 10px;
}
.console-tab {
  font: 500 .82rem var(--font-body); color: var(--muted);
  padding: 7px 14px; border-radius: 7px; white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
}
.console-tab:hover { color: var(--ink); }
.console-tab.active { background: var(--surface); color: var(--clay); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- partners ---------- */

.partners { background: var(--surface); border-block: 1px solid var(--line); padding: 40px 0; }
.partners-label { text-align: center; font: 500 .85rem var(--font-body); color: var(--faint); margin-bottom: 22px; }
.partner-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.partner-wall li { font: 600 .98rem var(--font-display); color: var(--faint); letter-spacing: .01em; }

/* ---------- stats ---------- */

.stats { padding: 56px 0; background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center; display: flex; flex-direction: column; gap: 6px;
  padding: 8px 12px; border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat-value { font: 600 2.1rem var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.stat-label { font-size: .82rem; color: var(--muted); }

/* ---------- platform ---------- */

.platform { background: var(--surface); }
.platform-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.platform-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.module-list { display: flex; flex-direction: column; gap: 14px; }
.module {
  display: flex; gap: 18px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.module:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--clay-tint); color: var(--clay);
}
.module-icon .ic { width: 21px; height: 21px; }
.module-icon.cool { background: var(--steel-tint); color: var(--steel); }
.module h3 { font: 600 1.02rem var(--font-body); color: var(--ink); margin-bottom: 6px; }
.module p { font-size: .9rem; line-height: 1.65; color: var(--muted); }

/* ---------- product preview ---------- */

.preview { background: var(--paper); }
.preview-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.hero-grid > *, .platform-grid > *, .preview-grid > * { min-width: 0; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .76rem var(--font-body); color: #cfd4d9;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
  padding: 6px 12px; border-radius: 8px;
  transition: background .18s, color .18s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.copy-btn .ic { width: 14px; height: 14px; }

.demo-access {
  margin-top: 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
  background: var(--ink); border-radius: 16px; padding: 30px 32px;
  box-shadow: var(--shadow-md);
}
.demo-access .eyebrow { color: var(--amber); }
.demo-access-copy h3 {
  font: 600 1.35rem/1.25 var(--font-display); letter-spacing: -.01em;
  color: #f4efe9; margin: 12px 0 10px;
}
.demo-access-copy p { font-size: .9rem; line-height: 1.65; color: #9aa3ad; margin-bottom: 20px; }
.demo-creds {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px; padding: 6px 18px; min-width: 0;
}
.demo-cred {
  display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.demo-cred:last-of-type { border-bottom: 0; }
.demo-cred > span {
  font: 600 .66rem var(--font-body); letter-spacing: .1em;
  text-transform: uppercase; color: #8b949e;
}
.demo-cred code { font-size: .88rem; color: var(--amber); min-width: 0; overflow-wrap: anywhere; }
.demo-creds-note {
  padding: 12px 0 10px; border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .74rem; line-height: 1.55; color: #8b949e;
}

/* ---------- content library ---------- */

.content { background: var(--surface); }
.content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.content-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.content-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.content-card .module-icon { margin-bottom: 16px; }
.content-card h3 { font: 600 1.02rem var(--font-body); color: var(--ink); margin-bottom: 8px; }
.content-card p { font-size: .87rem; line-height: 1.65; color: var(--muted); }
.content-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 28px auto 0; max-width: 980px; }
.content-points li { display: inline-flex; align-items: center; gap: 8px; font: 500 .85rem var(--font-body); color: var(--ink-2); }
.content-points .ic { width: 15px; height: 15px; color: var(--moss); }
.games-note { margin-top: 18px; text-align: center; font-size: .85rem; color: var(--faint); }

/* ---------- advantages ---------- */

.advantages {
  background:
    radial-gradient(760px 400px at 12% -10%, rgba(232, 168, 124, .13), transparent 60%),
    var(--paper-2);
  border-block: 1px solid var(--line);
}
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.adv-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.adv-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.adv-num {
  position: absolute; top: 22px; right: 24px;
  font-size: .7rem; letter-spacing: .08em; color: var(--line-2);
}
.adv-card .module-icon { margin-bottom: 16px; }
.adv-card h3 { font: 600 1.02rem var(--font-body); color: var(--ink); margin-bottom: 8px; }
.adv-card p { font-size: .88rem; line-height: 1.65; color: var(--muted); }
.adv-banner {
  margin-top: 18px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(100deg, var(--clay-tint), var(--surface) 62%);
  border: 1px solid rgba(180, 73, 31, .28);
  border-radius: var(--radius); padding: 24px 28px;
}
.adv-banner .module-icon { background: var(--surface); box-shadow: var(--shadow-sm); }
.adv-banner-copy h3 {
  font: 600 1.12rem/1.3 var(--font-display); letter-spacing: -.01em;
  color: var(--clay-deep); margin-bottom: 6px;
}
.adv-banner-copy p { font-size: .88rem; line-height: 1.6; color: var(--ink-2); max-width: 660px; }

/* ---------- licensing ---------- */

.licensing { background: var(--paper); }
.own-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.own-col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.own-you { border-top: 3px solid var(--clay); }
.own-us { border-top: 3px solid var(--steel); }
.own-col h3 { display: flex; align-items: center; gap: 10px; font: 600 1.05rem var(--font-body); color: var(--ink); margin-bottom: 16px; }
.own-col h3 .ic { width: 20px; height: 20px; }
.own-you h3 .ic { color: var(--clay); }
.own-us h3 .ic { color: var(--steel); }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.check-list .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--moss); }

.license-bar { margin-bottom: 40px; }
.license-summary {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 720px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
}
.license-summary > .ic { width: 22px; height: 22px; color: var(--clay); margin-top: 2px; }
.license-summary strong { display: block; font: 600 .98rem var(--font-body); color: var(--ink); margin-bottom: 4px; }
.license-note { font-size: .87rem; color: var(--muted); line-height: 1.6; }

.pricing-note {
  margin: 26px auto 0; text-align: center; font-size: .84rem;
  color: var(--faint); max-width: 640px; line-height: 1.6;
}

/* ---------- security ---------- */

.security { background: var(--surface); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.sec-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sec-card .module-icon { margin-bottom: 14px; }
.sec-card h3 { font: 600 .98rem var(--font-body); color: var(--ink); margin-bottom: 8px; }
.sec-card p { font-size: .87rem; line-height: 1.65; color: var(--muted); }
.sec-tag {
  display: inline-flex; align-items: center; width: max-content;
  font: 500 .62rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--warn); background: var(--amber-tint); border: 1px solid rgba(169, 122, 8, .28);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}
.cert-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cert-row li {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 .8rem var(--font-body); color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-2);
  padding: 8px 16px; border-radius: 999px;
}
.cert-row .ic { width: 15px; height: 15px; color: var(--moss); }

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

.launch { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--clay-tint); color: var(--clay); border: 1px solid rgba(180, 73, 31, .22);
  font: 500 .95rem var(--font-mono); margin-bottom: 16px;
}
.steps h3 { font: 600 .98rem var(--font-body); color: var(--ink); margin-bottom: 8px; }
.steps p { font-size: .86rem; line-height: 1.6; color: var(--muted); }
.steps li::after {
  content: ""; position: absolute; top: 41px; right: -15px; width: 8px; height: 8px;
  border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2);
  transform: rotate(45deg);
}
.steps li:last-child::after { display: none; }

/* ---------- customers ---------- */

.customers { background: var(--surface); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.case-metric { font: 600 2.3rem var(--font-display); color: var(--clay); letter-spacing: -.01em; }
.case-metric-label { font-size: .8rem; color: var(--faint); margin: 4px 0 16px; }
.case p { font-size: .95rem; line-height: 1.65; color: var(--ink-2); font-style: italic; flex: 1; }
.case footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--moss-tint); color: var(--moss); font: 600 .78rem var(--font-body);
}
.case:nth-child(2) .case-avatar { background: var(--steel-tint); color: var(--steel); }
.case:nth-child(3) .case-avatar { background: var(--clay-tint); color: var(--clay); }
.case cite { display: block; font: 600 .86rem var(--font-body); font-style: normal; color: var(--ink); }
.case footer div span { font-size: .76rem; color: var(--faint); }

/* ---------- FAQ ---------- */

.faq { background: var(--paper); }
.faq-container { max-width: 860px; }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.acc-item.open { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 18px 22px;
  font: 600 .95rem var(--font-body); color: var(--ink);
  transition: color .15s;
}
.acc-btn:hover { color: var(--clay); }
.acc-icon { width: 18px; height: 18px; color: var(--clay); transition: transform .25s var(--ease-out); }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-body { overflow: hidden; }
.acc-body p { padding: 0 22px 20px; font-size: .9rem; line-height: 1.7; color: var(--muted); }

/* ---------- contact ---------- */

.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h2 {
  font: 600 clamp(1.85rem, 3vw, 2.55rem)/1.14 var(--font-display);
  letter-spacing: -.015em; color: var(--ink); margin: 14px 0 16px;
}
.contact-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-rows li { display: flex; gap: 14px; align-items: flex-start; }
.contact-rows > li > .ic { width: 20px; height: 20px; color: var(--clay); margin-top: 2px; }
.contact-rows div { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.contact-rows div > span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.contact-rows a {
  font: 500 .95rem var(--font-body); color: var(--ink);
  border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .15s;
}
.contact-rows a:hover { color: var(--clay); border-color: var(--clay); }
.contact-rows strong { font: 500 .95rem var(--font-body); color: var(--ink); }
.contact-rows a.mono { font-family: var(--font-mono); font-size: .92rem; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font: 600 .8rem var(--font-body); color: var(--ink-2); }
.field .optional { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 .92rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 14px; transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder, .field textarea::placeholder { color: #a9b0b8; }
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a636d' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180, 73, 31, .13);
}
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field-error { font-size: .74rem; color: var(--danger); min-height: 1em; }
.form-note { font-size: .76rem; color: var(--faint); text-align: center; }

.form-success {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 44px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.success-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--moss-tint); color: var(--moss);
}
.success-icon .ic { width: 24px; height: 24px; }
.form-success h3 { font: 600 1.4rem var(--font-display); color: var(--ink); }
.form-success p { font-size: .9rem; line-height: 1.65; color: var(--muted); max-width: 420px; }
.form-success .success-alt { font-size: .82rem; }
.success-alt a { color: var(--clay); }
.form-success .btn { margin-top: 8px; }

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

.site-footer { background: var(--ink); color: #b9c0c8; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.footer-brand p { margin-top: 14px; font-size: .85rem; line-height: 1.65; color: #9aa3ad; max-width: 280px; }
.site-footer .brand-word { color: #f4efe9; }
.site-footer .brand-word em { color: var(--amber); }
.footer-col h4 {
  font: 600 .78rem var(--font-body); letter-spacing: .1em;
  text-transform: uppercase; color: #f4efe9; margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .87rem; color: #9aa3ad; transition: color .15s; }
.footer-col a:hover { color: var(--amber); }
.responsible {
  display: flex; gap: 16px; align-items: flex-start;
  padding-block: 28px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.age-badge {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--amber); color: var(--amber); border-radius: 10px;
  font: 500 .8rem var(--font-mono);
}
.responsible p { font-size: .78rem; line-height: 1.7; color: #9aa3ad; }
.responsible a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px; font-size: .78rem; color: #7d8791;
}
.footer-tag { letter-spacing: .08em; }

/* ---------- toasts ---------- */

.toast-stack {
  position: fixed; right: 20px; bottom: 78px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--moss);
  border-radius: 12px; padding: 13px 16px; box-shadow: var(--shadow-lg);
  animation: toast-in .3s var(--ease-out);
}
.toast > .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--moss); }
.toast strong { display: block; font: 600 .85rem var(--font-body); color: var(--ink); }
.toast div span { font-size: .78rem; line-height: 1.5; color: var(--muted); }
.toast-info { border-left-color: var(--steel); }
.toast-info > .ic { color: var(--steel); }
.toast-warn { border-left-color: var(--warn); }
.toast-warn > .ic { color: var(--warn); }
.toast.out { animation: toast-out .3s var(--ease-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- back to top ---------- */

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s, color .15s, border-color .15s;
}
.to-top.show {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s, color .15s, border-color .15s;
}
.to-top:hover { color: var(--clay); border-color: var(--clay); }

/* ---------- scroll reveal ---------- */

html.js [data-reveal] { opacity: 0; }
html.js [data-reveal].in {
  opacity: 1;
  animation: reveal .55s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }

/* ---------- breakpoints ---------- */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav { gap: 16px; }
  .nav-actions { margin-left: auto; }

  .hero { padding-top: calc(var(--header-h) + 52px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 600px; }

  .platform-grid { grid-template-columns: 1fr; gap: 44px; }
  .platform-intro { position: static; }
  .section-head.left { max-width: 640px; }

  .demo-access { grid-template-columns: 1fr; gap: 24px; }

  .own-grid { grid-template-columns: 1fr; }

  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat { border-left: 0; }

  .sec-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }

  .console { padding: 16px; }
  .console-lg { padding: 16px; }
  .console-head { flex-wrap: wrap; }
  .console-kpis { gap: 8px; }
  .console-kpis strong { font-size: .92rem; }
  .console-lg .console-chart { height: 140px; }
  .console-tabs { overflow-x: auto; max-width: 100%; }

  .license-summary { padding: 20px; }

  .demo-access { padding: 24px 20px; }
  .demo-cred {
    grid-template-columns: 1fr auto; grid-template-areas: "label copy" "value value";
    row-gap: 8px; padding: 14px 0;
  }
  .demo-cred > span { grid-area: label; align-self: center; }
  .demo-cred code { grid-area: value; }
  .demo-cred .copy-btn { grid-area: copy; }
  .adv-banner { grid-template-columns: 1fr; gap: 16px; padding: 22px 20px; }
  .adv-banner .btn { justify-self: start; }

  .contact-form { grid-template-columns: 1fr; padding: 22px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .content-grid { grid-template-columns: 1fr; }
  .toast-stack { right: 12px; left: 12px; bottom: 74px; max-width: none; }
  .responsible { flex-direction: column; gap: 12px; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .brand-word { font-size: .98rem; }
  .hero-trust { gap: 8px 14px; }
  .hero-trust li { font-size: .76rem; }
  .stat-value { font-size: 1.7rem; }
  .console-kpis span { font-size: .62rem; }
  .console-kpis strong { font-size: .82rem; }
  .console-rows li { font-size: .72rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1; animation: none; }
  .pulse-dot { animation: none; }
}

/* ---------- language switcher ---------- */

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  font: 500 .85rem var(--font-body); color: var(--ink-2); white-space: nowrap;
  transition: border-color .18s, color .18s;
}
.lang-btn:hover { border-color: var(--clay); color: var(--clay); }
.lang-btn .ic { width: 16px; height: 16px; }
.lang-chev { width: 13px; height: 13px; transform: rotate(180deg); transition: transform .2s var(--ease-out); }
.lang-switch.open .lang-chev { transform: rotate(0deg); }
.lang-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 216px; max-height: min(60vh, 420px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
  display: none;
  scrollbar-width: thin; scrollbar-color: var(--line-2) var(--surface);
}
.lang-switch.open .lang-panel { display: block; animation: lang-in .18s var(--ease-out); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } }
.lang-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font: 500 .88rem var(--font-body); color: var(--ink-2);
  transition: background .15s, color .15s;
}
.lang-panel a:hover { background: var(--paper); color: var(--ink); }
.lang-panel a.current { background: var(--clay-tint); color: var(--clay-deep); font-weight: 600; }
.lang-panel::-webkit-scrollbar { width: 8px; }
.lang-panel::-webkit-scrollbar-track { background: var(--surface); border-radius: 8px; }
.lang-panel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid var(--surface); }
.lang-panel::-webkit-scrollbar-thumb:hover { background: #c2b9aa; }

@media (max-width: 1080px) {
  .lang-current, .lang-chev { display: none; }
  .lang-btn { padding: 9px 11px; }
  .lang-panel { min-width: 230px; max-height: min(70vh, 480px); }
}

/* ---------- per-script font stacks ---------- */

html[lang="ja"] {
  --font-body: "Inter", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --font-display: "Fraunces", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
html[lang="ko"] {
  --font-body: "Inter", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: "Fraunces", "Apple SD Gothic Neo", "Noto Sans KR", serif;
}
html[lang="th"] {
  --font-body: "Inter", "Thonburi", "Noto Sans Thai", "Leelawadee UI", sans-serif;
  --font-display: "Fraunces", "Thonburi", "Noto Sans Thai", serif;
}
html[lang="ar"] {
  --font-body: "Inter", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Geeza Pro", "Noto Sans Arabic", serif;
}

/* Arabic joining breaks under any tracking; Thai marks need clean spacing */
html[lang="ar"] .eyebrow, html[lang="th"] .eyebrow,
html[lang="ar"] .console-tag, html[lang="th"] .console-tag,
html[lang="ar"] .sec-tag, html[lang="th"] .sec-tag,
html[lang="ar"] .demo-cred > span, html[lang="th"] .demo-cred > span,
html[lang="ar"] .adv-num, html[lang="th"] .adv-num,
html[lang="ar"] .contact-rows div > span, html[lang="th"] .contact-rows div > span,
html[lang="ar"] .footer-col h4, html[lang="th"] .footer-col h4,
html[lang="ar"] .footer-tag, html[lang="th"] .footer-tag,
html[lang="ar"] .hero-demo-note, html[lang="th"] .hero-demo-note { letter-spacing: 0; }

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .brand-word, html[lang="ar"] .stat-value, html[lang="ar"] .case-metric { letter-spacing: 0; }

html[lang="ar"] body { line-height: 1.85; }
html[lang="th"] body { line-height: 1.8; }
html[lang="ar"] .hero h1, html[lang="th"] .hero h1 { line-height: 1.3; }
html[lang="ar"] .section-head h2, html[lang="th"] .section-head h2,
html[lang="ar"] .contact-copy h2, html[lang="th"] .contact-copy h2 { line-height: 1.35; }

/* ---------- RTL mirrors ---------- */

[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .section-head.left { text-align: right; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .stat:first-child { border-right: 0; }
[dir="rtl"] .adv-num { right: auto; left: 24px; }
[dir="rtl"] .steps li::after {
  right: auto; left: -15px;
  border-right: 0; border-left: 2px solid var(--line-2);
  transform: rotate(-45deg);
}
[dir="rtl"] .acc-btn { text-align: right; }
[dir="rtl"] .field select { padding-right: 14px; padding-left: 40px; background-position: left 14px center; }
[dir="rtl"] .toast-stack { right: auto; left: 20px; }
[dir="rtl"] .toast { border-left: 1px solid var(--line); border-right: 3px solid var(--moss); }
[dir="rtl"] .toast-info { border-right-color: var(--steel); }
[dir="rtl"] .toast-warn { border-right-color: var(--warn); }
[dir="rtl"] .to-top { right: auto; left: 20px; }
[dir="rtl"] .btn .ic { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ic { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .lang-panel { right: auto; left: 0; }

@media (max-width: 1080px) {
  [dir="rtl"] .nav-actions { margin-left: 0; margin-right: auto; }
}
@media (max-width: 720px) {
  [dir="rtl"] .stat { border-right: 0; }
}
@media (max-width: 560px) {
  [dir="rtl"] .toast-stack { left: 12px; right: 12px; }
}