/* BIM9_Connect website — "drawing sheet" theme.
   Brand colour #5C68FA = the colour of the ribbon icons; cyan = the logo pipe. */

:root {
  --ink-950: #060a1a;
  --ink-900: #0a1030;
  --ink-800: #121a42;
  --ink-700: #1d2758;
  --ink-600: #2c3772;
  --paper: #f5f6fa;
  --surface: #ffffff;
  --line: #e2e5f0;
  --line-strong: #c8cde0;
  --text: #10152d;
  --muted: #586079;
  --muted-on-dark: #a3abd0;
  --brand: #5c68fa;
  --brand-600: #4a55e8;
  --brand-700: #3942c4;
  --brand-50: #eef0ff;
  --brand-100: #dfe3ff;
  --pipe: #25cadc;
  --pipe-deep: #148fa1;
  --ok: #14a467;

  --f-display: "Archivo", "Segoe UI", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(16, 21, 45, .06), 0 2px 8px rgba(16, 21, 45, .05);
  --shadow-2: 0 2px 6px rgba(16, 21, 45, .06), 0 18px 40px -12px rgba(16, 21, 45, .18);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.08; font-weight: 760; }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 19px; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.25; font-weight: 680; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Section heads: the Revit grid bubble ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--brand-600);
  margin-bottom: 18px;
}
.bubble {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid currentColor; display: grid; place-items: center;
  font-size: 11.5px; letter-spacing: 0;
}
.eyebrow::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .45; }
.sec-head.center .eyebrow::before { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .45; order: -1; }
.lede { margin-top: 18px; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--muted); max-width: 640px; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }
.on-dark .eyebrow { color: #9aa4ff; }
.on-dark .lede { color: var(--muted-on-dark); }
.on-dark h2 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px -6px rgba(92, 104, 250, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(92, 104, 250, .8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn-ghost-dark:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.09); }
.btn-outline { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { color: var(--brand-700); border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: rgba(6, 10, 26, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background-color .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(6, 10, 26, .92); border-bottom-color: rgba(255,255,255,.1); }
.nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-family: var(--f-display); font-stretch: 112%; font-weight: 760; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--muted-on-dark); letter-spacing: .04em; margin-left: 2px; }
.nav-links { display: flex; gap: 4px; list-style: none; padding: 0; margin-left: auto; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: #cdd3f1; text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s, background-color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.07); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .nav-cta .btn-ghost-dark { display: none; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px var(--gutter) 22px;
    background: rgba(6, 10, 26, .98); border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links a { padding: 13px 12px; font-size: 16px; }
  .site-header.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-cta { order: 3; }
}
@media (max-width: 520px) { .nav-cta { display: none; } .brand small { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(92, 104, 250, .28), transparent 62%),
    radial-gradient(700px 480px at 8% 100%, rgba(37, 202, 220, .10), transparent 60%),
    var(--ink-950);
}
.grid-bg, .hero::before {
  background-image:
    linear-gradient(rgba(140, 152, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 152, 255, .10) 1px, transparent 1px),
    linear-gradient(rgba(140, 152, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 152, 255, .045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.hero::before { content: ""; position: absolute; inset: 0; mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 40%, #000 30%, transparent 85%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  font-family: var(--f-mono); font-size: 12.5px; color: #c9cff0; letter-spacing: .02em;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pipe); box-shadow: 0 0 0 4px rgba(37, 202, 220, .18); }
.pill .sep { width: 1px; height: 12px; background: rgba(255,255,255,.2); }
.hero h1 { margin-top: 26px; font-size: clamp(40px, 6.1vw, 74px); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--pipe); background: linear-gradient(90deg, #4fe3f1, #8f98ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.6; color: #c3c9e8; max-width: 560px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; color: var(--muted-on-dark); font-size: 14.5px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--pipe); flex: none; }

/* drawing "viewport" */
.viewport {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 26, 66, .9), rgba(10, 16, 48, .9));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(92,104,250,.08) inset;
}
.viewport-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--f-mono); font-size: 12px; color: #9aa3cf; }
.viewport-bar b { color: #dfe3ff; font-weight: 500; }
.replay { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid rgba(255,255,255,.14); color: #c9cff0; border-radius: 6px; padding: 3px 9px; font-family: var(--f-mono); font-size: 11.5px; }
.replay:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.replay svg { width: 12px; height: 12px; }
.viewport-canvas { position: relative; }
.viewport-canvas::before { content: ""; position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.viewport-canvas .grid-bg { position: absolute; inset: 0; opacity: .75; }
.crop { position: absolute; width: 18px; height: 18px; border-color: rgba(154, 164, 255, .55); border-style: solid; border-width: 0; }
.crop.tl { top: 12px; left: 12px; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop.tr { top: 12px; right: 12px; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop.bl { bottom: 12px; left: 12px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop.br { bottom: 12px; right: 12px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.scheme { position: relative; width: 100%; height: auto; }
.scheme text { font-family: var(--f-mono); }

.toast {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 360px;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,.97); color: var(--text); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
}
.toast-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-50); display: grid; place-items: center; flex: none; }
.toast-icon img { width: 30px; height: 30px; }
.toast strong { display: block; font-size: 14px; line-height: 1.3; }
.toast span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.toast-ok { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.toast-ok svg { width: 14px; height: 14px; }

/* drawing animation (plays when .play is on the viewport) */
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.pop, .fade { opacity: 0; }
.pop { transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.toast { opacity: 0; transform: translateY(12px); }
.play .draw { animation: draw var(--dur, .9s) cubic-bezier(.65, 0, .35, 1) var(--d, 0s) forwards; }
.play .pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) var(--d, 0s) forwards; }
.play .fade { animation: fade .5s ease var(--d, 0s) forwards; }
.play .ripple { animation: ripple 1s ease-out var(--d, 0s) forwards; }
.play .toast { animation: toast .55s cubic-bezier(.2, .9, .3, 1) var(--d, 3.9s) forwards; }
.ripple { opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes toast { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dashoffset: 0; animation: none !important; }
  .pop, .fade, .toast { opacity: 1; transform: none; animation: none !important; }
  .ripple { display: none; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--ink-900); color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.facts ul { list-style: none; padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 24px; border-left: 1px solid rgba(255,255,255,.08); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .num { font-family: var(--f-display); font-stretch: 115%; font-weight: 760; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.facts .num sup { font-size: .55em; color: var(--pipe); top: -.6em; margin-left: 1px; }
.facts .lbl { margin-top: 6px; color: var(--muted-on-dark); font-size: 14px; line-height: 1.45; }
@media (max-width: 820px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 22px 16px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Ribbon replica ---------- */
.ribbon-wrap { position: relative; }
.ribbon-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ribbon-scroll::-webkit-scrollbar { height: 8px; }
.ribbon-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.ribbon-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 14px; width: 56px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--paper)); transition: opacity .2s; }
.ribbon-wrap.at-end::after { opacity: 0; }
.ribbon {
  display: inline-flex; flex-direction: column; min-width: 100%;
  background: #fbfbfd; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden;
}
.ribbon-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 8px 12px 0; background: #eceef4; border-bottom: 1px solid var(--line-strong); font-size: 12.5px; color: #6a7088; }
.ribbon-tabs span { padding: 5px 12px; }
.ribbon-tabs .on { background: #fbfbfd; color: var(--text); font-weight: 600; border: 1px solid var(--line-strong); border-bottom-color: #fbfbfd; border-radius: 6px 6px 0 0; margin-bottom: -1px; }
.ribbon-panels { display: flex; align-items: stretch; }
.rpanel {
  position: relative; display: flex; flex-direction: column; border: 0; background: transparent; padding: 0; text-align: left;
  border-right: 1px solid var(--line); transition: background-color .15s;
}
.rpanel:not(.static):hover { background: var(--brand-50); }
.rpanel.static:hover .rpanel-name { background: #eef0f5; color: #4a5068; }
.rpanel:focus-visible { outline-offset: -3px; }
.rpanel-body { display: flex; align-items: flex-start; gap: 2px; padding: 8px 8px 6px; flex: 1; }
.rpanel-name { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 8px; background: #eef0f5; border-top: 1px solid var(--line); font-size: 12px; color: #4a5068; white-space: nowrap; }
.rpanel:hover .rpanel-name { background: var(--brand-100); color: var(--brand-700); }
.tag { font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; padding: 1px 5px; border-radius: 4px; line-height: 1.4; }
.tag-free { background: rgba(20, 164, 103, .13); color: #0d7a4b; }
.tag-pro { background: var(--brand-100); color: var(--brand-700); }
.rbig { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 4px 2px 2px; border-radius: 6px; font-size: 11.5px; line-height: 1.2; color: #23283f; text-align: center; }
.rbig img { width: 32px; height: 32px; margin-bottom: 5px; }
.rbig .caret, .rsmall .caret { font-size: 9px; color: #7a8099; }
.rstack { display: flex; flex-direction: column; gap: 3px; padding: 2px 4px; }
.rsmall { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #23283f; white-space: nowrap; padding: 1px 4px 1px 2px; height: 22px; }
.rsmall img { width: 18px; height: 18px; }
.rsep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }
.ribbon-note { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.ribbon-note span { display: inline-flex; align-items: center; gap: 8px; }
.ribbon-note .ribbon-hint { margin-left: auto; font-family: var(--f-mono); font-size: 12.5px; color: #7c829c; }
.ribbon-scroll { cursor: grab; }
.ribbon-scroll.dragging { cursor: grabbing; user-select: none; }
.ribbon-scroll img { -webkit-user-drag: none; user-select: none; }

/* ---------- Tool explorer ---------- */
.explorer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #eceef5; border-radius: 12px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent;
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: #4b5270; transition: background-color .15s, color .15s, box-shadow .15s;
}
.tab .count { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; color: #7c829c; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.tab[aria-selected="true"] .count { color: var(--brand-600); }
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #8a90a8; pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 15px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(92,104,250,.15); }
.panel-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.panel-intro strong { font-family: var(--f-display); font-stretch: 110%; color: var(--text); font-size: 20px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool {
  position: relative; display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tool:hover { border-color: var(--brand-100); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tool-icon { flex: none; width: 46px; height: 46px; border-radius: 10px; background: #f3f4fb; border: 1px solid #e8eaf4; display: grid; place-items: center; }
.tool-icon img { width: 30px; height: 30px; }
.tool h3 { font-size: 15.5px; font-stretch: 104%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tool p { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tool .watch { margin-top: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--brand-600); font-size: 13.5px; font-weight: 600; }
.tool .watch svg { width: 14px; height: 14px; }
.tool .watch:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.tool .ptag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #7a8099; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); }

/* ---------- Qualities ---------- */
.qualities { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.q { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.q-num { font-family: var(--f-mono); font-size: 12px; color: var(--brand-600); letter-spacing: .1em; }
.q svg { width: 30px; height: 30px; color: var(--brand); margin: 16px 0 14px; }
.q p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- AI ---------- */
.ai { position: relative; color: #fff; background: var(--ink-950); overflow: hidden; }
.ai::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 90% 10%, rgba(92,104,250,.22), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(37,202,220,.08), transparent 60%); pointer-events: none; }
.ai .grid-bg-layer { position: absolute; inset: 0; opacity: .55; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.ai-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; padding: 0; }
.apps li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #d6dbf5; }
.checks { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #c3c9e8; font-size: 15.5px; }
.checks li strong { color: #fff; font-weight: 600; }
.checks svg { width: 20px; height: 20px; color: var(--pipe); margin-top: 2px; }
.checks.light li { color: var(--muted); }
.checks.light li strong { color: var(--text); }
.checks.light svg { color: var(--ok); }

.chat { border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(14, 20, 54, .85); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow: hidden; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--f-mono); font-size: 12px; color: #9aa3cf; }
.chat-bar .live { display: inline-flex; align-items: center; gap: 7px; color: #9ef0c5; }
.chat-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.chat-body { padding: 20px 18px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.msg { max-width: 92%; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; }
.msg.user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: rgba(255,255,255,.06); color: #dfe3f7; border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.07); font-family: var(--f-mono); font-size: 12.5px; color: #b9c0e6; }
.call code { color: #8ff0fa; font-family: inherit; }
.call .ok { margin-left: auto; color: #6fe3a5; white-space: nowrap; }
.chat-note { padding: 0 18px 16px; font-size: 12px; color: #7f88b4; font-family: var(--f-mono); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); }
.plan.pro { border: 1.5px solid var(--brand); box-shadow: 0 30px 60px -30px rgba(92,104,250,.45); }
.plan-flag { position: absolute; top: -13px; left: clamp(26px, 3.4vw, 38px); background: var(--brand); color: #fff; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.plan-name { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-price { margin-top: 14px; font-family: var(--f-display); font-stretch: 112%; font-weight: 780; font-size: clamp(34px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.05; }
.plan-price small { font-family: var(--f-body); font-stretch: 100%; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan > p { margin-top: 12px; color: var(--muted); }
.plan > .plan-price { margin-top: 14px; color: var(--text); }
.plan > .plan-name { margin-top: 0; }
.plan .checks { margin: 24px 0 30px; gap: 12px; }
.plan .checks li { font-size: 15px; }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.plans-note { max-width: 980px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.plans-note code, .faq code { font-family: var(--f-mono); font-size: .92em; background: #eceef5; padding: 1px 6px; border-radius: 4px; color: var(--text); }

/* ---------- Videos ---------- */
.videos { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 40px; }
.video-feature h3 { font-size: clamp(22px, 2.4vw, 28px); }
.vf-text { margin-top: 12px; color: var(--muted); }
.video-feature .btn { margin-top: 22px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--ink-800); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,10,26,.45)); }
.vthumb:hover img { transform: scale(1.04); }
.vplay { position: absolute; z-index: 1; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--brand-700); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s, background-color .2s, color .2s; }
.vplay svg { width: 20px; height: 20px; margin-left: 3px; }
.vthumb:hover .vplay { transform: scale(1.08); background: var(--brand); color: #fff; }
.vthumb.big .vplay { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.vthumb.big .vplay svg { width: 26px; height: 26px; }
.vcard h3 { margin-top: 12px; font-size: 15.5px; font-stretch: 104%; }
.vcard p { margin-top: 3px; font-size: 13px; color: var(--muted); font-family: var(--f-mono); }
.videos-more { margin-top: 36px; text-align: center; }

dialog.player { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 14px; background: #000; overflow: visible; }
dialog.player::backdrop { background: rgba(4, 7, 20, .82); backdrop-filter: blur(4px); }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.player-close:hover { background: rgba(255,255,255,.24); }
.player-close svg { width: 20px; height: 20px; }

/* ---------- Download ---------- */
.download-card {
  position: relative; overflow: hidden; color: #fff; border-radius: 22px;
  background: radial-gradient(700px 400px at 100% 0%, rgba(92,104,250,.45), transparent 60%), var(--ink-900);
  padding: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: center;
  box-shadow: var(--shadow-2);
}
.download-card .grid-bg-layer { position: absolute; inset: 0; opacity: .5; mask-image: linear-gradient(90deg, transparent 20%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); }
.download-card > * { position: relative; }
.download-card h2 { color: #fff; }
.download-card .lede { color: var(--muted-on-dark); }
.dl-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl-meta { margin-top: 18px; font-family: var(--f-mono); font-size: 12.5px; color: #8f98c6; letter-spacing: .02em; }
.steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #9aa4ff; color: #c5cbff; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; }
.steps strong { display: block; color: #fff; font-weight: 600; }
.steps span { display: block; color: var(--muted-on-dark); font-size: 14.5px; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; cursor: pointer; font-family: var(--f-display); font-stretch: 106%; font-weight: 650; font-size: 17.5px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%235c68fa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .2s, border-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--brand); }
.faq summary:hover { color: var(--brand-700); }
.faq .answer { padding: 0 2px 22px; color: var(--muted); max-width: 680px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- About ---------- */
.about { background: var(--surface); border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(92,104,250,.18), transparent 45%, rgba(6,10,26,.55)); }
.photo figcaption { position: absolute; z-index: 1; left: 18px; bottom: 16px; right: 18px; color: #fff; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.about-text { color: var(--muted); margin-top: 16px; font-size: 16.5px; }
.about .checks { margin-top: 26px; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.ccard:hover { border-color: var(--brand); box-shadow: var(--shadow-1); color: var(--text); }
.ccard .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.ccard .ci svg { width: 20px; height: 20px; }
.ccard small { display: block; font-size: 12.5px; color: var(--muted); }
.ccard strong { font-weight: 600; font-size: 15px; word-break: break-word; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow-1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: #2b3150; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text); background: #fbfbfd;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23586079' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(92,104,250,.14); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; text-align: center; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.info { color: var(--brand-700); }
.form-fine { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* ---------- Footer: drawing title block ---------- */
.site-footer { background: var(--ink-950); color: #c9cff0; padding: 56px 0 28px; }
/* grid lines = the 1px gaps showing the container background */
.titleblock { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.tb-cell { padding: 18px 20px; background: var(--ink-950); min-width: 0; }
.tb-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #7f88b4; margin-bottom: 8px; }
.tb-cell ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.tb-cell a { color: #dfe3ff; text-decoration: none; font-size: 14.5px; }
.tb-cell a:hover { color: #fff; text-decoration: underline; }
.tb-big { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tb-big .brand { font-size: 22px; }
.tb-big p { color: var(--muted-on-dark); font-size: 14.5px; max-width: 320px; }
.tb-value { color: #fff; font-family: var(--f-mono); font-size: 14px; }
.foot-legal { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #7f88b4; }
@media (max-width: 860px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-big { grid-column: 1 / -1; grid-row: auto; }
  .tb-cell.tb-wide { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner, .ai-inner, .download-card, .faq-wrap, .about-inner, .contact-inner, .video-feature { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; }
  .photo { aspect-ratio: 16 / 10; max-height: 460px; }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .explorer-bar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; flex: none; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab { flex: none; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .toast { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: 0 10px 10px; padding: 8px 10px 8px 8px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .vcard h3 { font-size: 14px; }
  .vcard p { font-size: 11.5px; }
  .vplay { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .vplay svg { width: 16px; height: 16px; }
  .toast-icon { width: 34px; height: 34px; }
  .toast-icon img { width: 26px; height: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .dl-actions .btn { flex: 1 1 100%; }
}
