:root {
  --bg: #0f1417;
  --bg-2: #151b1f;
  --panel: #ffffff;
  --ink: #ecf2f4;
  --muted: #9ca8ad;
  --line: rgba(255,255,255,.12);
  --accent: #c7a000;
  --accent-2: #ffd24a;
  --ok: #5aa35a;
  --warn: #d5a742;
  --miss: #c95c52;
  --shadow: 0 18px 60px rgba(0,0,0,.30);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15,20,23,.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #161616; background: linear-gradient(135deg,var(--accent-2),var(--accent)); font-weight: 900; }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 12px; background: linear-gradient(135deg,var(--accent-2),var(--accent)); color: #161616; font-weight: 800; border: 0; cursor: pointer; box-shadow: 0 12px 26px rgba(199,160,0,.2); }
.btn-small { padding: 10px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.hero { padding: 96px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; line-height: 1.05; }
h1 { font-size: clamp(44px, 6vw, 78px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 20px; }
.lead { margin: 24px 0 0; font-size: 22px; color: #cfd7db; max-width: 650px; }
.hero-actions { display: flex; gap: 14px; margin: 34px 0 18px; flex-wrap: wrap; }
.trust-line { color: var(--muted); font-size: 14px; margin: 0; }
.hero-card, .panel, .feature-card, .contact-box { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); border-radius: 28px; box-shadow: var(--shadow); }
.hero-card { padding: 26px; }
.card-topline, .app-title-row, .footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.status-pill { padding: 7px 11px; border-radius: 999px; background: rgba(255,210,74,.14); color: var(--accent-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
.meter-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 24px 0; }
.meter { min-height: 122px; border-radius: 22px; padding: 18px; background: rgba(0,0,0,.18); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.meter strong { font-size: 42px; line-height: 1; }
.meter span { color: var(--muted); font-size: 13px; margin-top: 8px; }
.check-list { display: grid; gap: 12px; color: #d6dcdf; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.ok { --dot: var(--ok); }
.warn { --dot: var(--warn); }
.miss { --dot: var(--miss); }
.dot.ok, .tag.ok { background: var(--ok); }
.dot.warn, .tag.warn { background: var(--warn); }
.dot.miss, .tag.miss { background: var(--miss); }
.section { padding: 84px 0; }
.muted { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.split p { color: #cbd4d8; font-size: 20px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.feature-card { padding: 24px; }
.feature-card p { color: var(--muted); margin: 12px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 34px; }
.steps div { border-top: 3px solid var(--accent); padding: 22px 18px; background: rgba(255,255,255,.04); border-radius: 16px; }
.steps span { color: var(--accent-2); font-weight: 900; }
.steps p { color: var(--muted); }
.demo-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.demo-band p { color: var(--muted); max-width: 680px; }
.contact-box { padding: 28px; }
.site-footer { padding: 30px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }

.app-body { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #0b1013; border-right: 1px solid var(--line); padding: 28px; }
.app-brand { margin-bottom: 38px; }
.side-nav { display: grid; gap: 8px; }
.side-nav a { color: var(--muted); padding: 12px 14px; border-radius: 12px; }
.side-nav a.active, .side-nav a:hover { background: rgba(255,255,255,.07); color: var(--ink); }
.side-note { position: absolute; bottom: 28px; left: 28px; right: 28px; color: var(--muted); font-size: 13px; }
.app-main { padding: 38px; }
.app-section { scroll-margin-top: 24px; margin-bottom: 44px; }
.app-title-row { margin-bottom: 22px; }
.app-title-row h1 { font-size: clamp(32px,4vw,50px); }
.app-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.metric { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: rgba(255,255,255,.055); }
.metric span, .metric small { display: block; color: var(--muted); }
.metric strong { display: block; font-size: 42px; margin: 6px 0; }
.metric.ok { border-color: rgba(90,163,90,.45); }
.metric.warn { border-color: rgba(213,167,66,.55); }
.metric.miss { border-color: rgba(201,92,82,.55); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 24px; }
.app-list { margin-top: 18px; }
.assistant-box { color: #d8dee1; background: rgba(255,210,74,.08); border: 1px solid rgba(255,210,74,.18); border-radius: 18px; padding: 18px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; background: rgba(255,255,255,.04); }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--accent-2); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
td { color: #dce4e7; }
.tag { color: #111; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.rfi-list { display: grid; gap: 14px; }
.rfi-list article { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(255,255,255,.04); }
.rfi-list p { margin: 6px 0 0; color: var(--muted); }
.compact-cards { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .split, .demo-band, .panel-grid { grid-template-columns: 1fr; }
  .cards, .steps, .app-cards, .compact-cards { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .side-note { position: static; margin-top: 26px; }
  .app-main { padding: 22px; }
}

/* --- Mobile polish v2 --- */
img, svg { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

@media (max-width: 900px) {
  .container { width: min(100% - 28px, 720px); }
  .site-header { position: sticky; }
  .nav {
    height: auto;
    min-height: 64px;
    padding: 12px 0;
    gap: 10px;
    flex-wrap: wrap;
  }
  .brand { font-size: 18px; gap: 10px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .nav > .btn { order: 4; width: 100%; }
  .lang-switch { margin-left: auto; flex-shrink: 0; }
  .lang-switch button { padding: 7px 10px; }

  .hero { padding: 54px 0 58px; }
  .hero-grid { gap: 28px; }
  h1 { font-size: clamp(36px, 11vw, 56px); }
  h2 { font-size: clamp(26px, 8vw, 38px); }
  .lead { font-size: 18px; margin-top: 18px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 100%; min-height: 48px; }
  .trust-line { font-size: 13px; }
  .hero-card { padding: 18px; border-radius: 22px; }
  .card-topline { align-items: flex-start; }
  .meter-grid { grid-template-columns: 1fr; gap: 10px; margin: 16px 0; }
  .meter { min-height: 92px; padding: 16px; border-radius: 18px; }
  .meter strong { font-size: 34px; }
  .check-list { gap: 10px; font-size: 15px; }

  .section { padding: 56px 0; }
  .split { gap: 22px; }
  .split p { font-size: 17px; }
  .cards, .steps { gap: 12px; margin-top: 24px; }
  .feature-card { padding: 18px; border-radius: 20px; }
  .steps div { padding: 18px 16px; }
  .demo-band { gap: 14px; }
  .demo-band .btn { width: 100%; }
  .contact-box { padding: 20px; border-radius: 22px; }
  .footer-grid { align-items: flex-start; flex-direction: column; gap: 10px; }

  .app-body { display: block; }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .app-brand { margin-bottom: 14px; }
  .sidebar-tools { margin: 0 0 14px; }
  .side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .side-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 14px;
  }
  .side-note { display: none; }
  .app-main { padding: 18px 14px 32px; }
  .app-section { margin-bottom: 34px; scroll-margin-top: 12px; }
  .app-title-row {
    display: block;
    margin-bottom: 16px;
  }
  .app-title-row h1 { font-size: clamp(30px, 10vw, 44px); }
  .app-title-row .btn, .app-title-row > .btn { margin-top: 14px; width: 100%; }
  .app-title-row .status-pill { display: inline-flex; margin-top: 10px; }
  .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 16px; border-radius: 16px; }
  .metric strong { font-size: 34px; }
  .panel { padding: 18px; border-radius: 20px; }
  .panel-grid { gap: 12px; }
  .assistant-box { padding: 15px; border-radius: 16px; }
  .table-wrap {
    margin-left: -2px;
    margin-right: -2px;
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table { min-width: 720px; }
  th, td { padding: 12px 13px; font-size: 14px; }
  .rfi-list { gap: 10px; }
  .rfi-list article { padding: 15px; border-radius: 16px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .nav { align-items: center; }
  .brand span:last-child { font-size: 17px; }
  .eyebrow { font-size: 11px; line-height: 1.35; }
  .hero { padding: 42px 0 48px; }
  h1 { letter-spacing: -.055em; }
  .lead { font-size: 16.5px; }
  .btn { padding: 12px 15px; border-radius: 11px; }
  .status-pill { white-space: normal; text-align: center; }
  .card-topline { flex-direction: column; gap: 10px; }
  .meter-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }

  .app-cards { grid-template-columns: 1fr; }
  .metric { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 14px; }
  .metric strong { grid-column: 2; grid-row: 1 / span 2; font-size: 38px; margin: 0; }
  .metric small { grid-column: 1; }
  .sidebar-tools { flex-wrap: wrap; }
  .sidebar-tools .lang-switch { margin-left: 0; }
  .back-link { flex: 1 1 auto; }
  .compact-cards { grid-template-columns: 1fr; }
}
