/* ===== Design system ===== */
:root {
  --bg: #020617;
  --bg-2: #050b1c;
  --surface: rgba(8, 18, 42, .76);
  --surface-solid: #08132d;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --cyan: #22d3ee;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(59, 130, 246, .22);
  --border-bright: rgba(34, 211, 238, .42);
  --max: 1200px;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, .13), transparent 26rem),
    radial-gradient(circle at 94% 35%, rgba(34, 211, 238, .07), transparent 30rem),
    var(--bg);
  font-family: "Manrope", Inter, system-ui, sans-serif;
  line-height: 1.65;
}
body::before {
  position: fixed; inset: 0; z-index: -1; content: "";
  opacity: .25; pointer-events: none;
  background-image: linear-gradient(rgba(59,130,246,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.035em; }
h2 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.05rem; letter-spacing: -.02em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.gradient-text { color: var(--blue-light); background: linear-gradient(100deg, var(--blue-light), var(--cyan)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kicker {
  display: inline-flex; margin-bottom: 16px; color: #6ee7f5; font-size: .76rem;
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.section-heading { max-width: 780px; margin: 0 auto 54px; text-align: center; }
.section-heading h2 { margin-inline: auto; }
.section-heading p { max-width: 620px; margin: 18px auto 0; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.split-heading p { max-width: 430px; margin-bottom: 4px; }
.card-grid { display: grid; gap: 18px; }
.four-col { grid-template-columns: repeat(4, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
.icon-box {
  display: grid; width: 50px; height: 50px; margin-bottom: 25px; border: 1px solid var(--border-bright); border-radius: 14px;
  color: var(--cyan); background: linear-gradient(145deg, rgba(37,99,235,.24), rgba(34,211,238,.06)); place-items: center;
  box-shadow: inset 0 0 22px rgba(59,130,246,.1), 0 0 24px rgba(37,99,235,.1);
}
.button {
  display: inline-flex; min-height: 49px; padding: 0 22px; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(96,165,250,.45); border-radius: 12px; color: white; background: linear-gradient(120deg, #1d4ed8, #2563eb);
  box-shadow: 0 9px 30px rgba(37,99,235,.28), inset 0 1px rgba(255,255,255,.15); font-size: .88rem; font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 35px rgba(37,99,235,.42); }
.button svg { width: 17px; height: 17px; }
.button-ghost { border-color: var(--border); background: rgba(8,18,42,.58); box-shadow: none; }
.button-ghost:hover { border-color: rgba(34,211,238,.45); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.skip-link { position: fixed; top: -100px; left: 14px; z-index: 999; padding: 10px 14px; border-radius: 8px; background: white; color: #020617; }
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; z-index: 100; width: 100%; border-bottom: 1px solid transparent;
  background: rgba(2,6,23,.68); backdrop-filter: blur(16px); transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-color: var(--border); background: rgba(2,6,23,.9); }
.nav { display: flex; height: 76px; align-items: center; gap: 22px; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 11px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.04em; }
.brand > span:last-child > span { color: var(--cyan); }
.brand-mark { display: grid; width: 36px; height: 36px; border: 1px solid rgba(34,211,238,.35); border-radius: 10px; color: #d8fbff; background: linear-gradient(145deg,#1d4ed8,#0891b2); place-items: center; box-shadow: 0 0 25px rgba(37,99,235,.32); }
.brand-mark svg { width: 20px; height: 20px; }
.nav-menu { display: flex; margin-left: auto; align-items: center; gap: clamp(13px, 1.5vw, 23px); }
.nav-menu a { position: relative; color: #a9b6ca; font-size: .75rem; font-weight: 600; white-space: nowrap; transition: color .2s; }
.nav-menu a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; content: ""; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .25s; }
.nav-menu a:hover, .nav-menu a.active { color: white; }
.nav-menu a.active::after { transform: scaleX(1); }
.button-small { min-height: 40px; padding: 0 15px; font-size: .75rem; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 6px 9px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; background: rgba(8,18,42,.65); cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; background: white; transition: transform .2s, opacity .2s; }

/* ===== Hero ===== */
.hero { min-height: 810px; padding-top: 150px; padding-bottom: 86px; display: grid; align-items: center; }
.hero::after { position: absolute; bottom: 0; left: 50%; width: min(90%,1100px); height: 1px; content: ""; background: linear-gradient(90deg, transparent, rgba(59,130,246,.4), transparent); transform: translateX(-50%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 55px; }
.eyebrow { display: inline-flex; margin-bottom: 24px; padding: 7px 12px; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 99px; color: #a9c9ee; background: rgba(8,18,42,.65); font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.eyebrow span, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(34,211,238,.1), 0 0 12px var(--cyan); }
.hero-name { margin-bottom: 7px; color: #75dcea; font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 650px; font-size: clamp(3rem, 6vw, 5.35rem); letter-spacing: -.065em; }
.hero h1 span { display: block; }
.hero-subtitle { margin: 22px 0 8px; color: #d7e4f5; font-size: 1.08rem; font-weight: 700; }
.hero-description { max-width: 620px; color: #9dacbf; font-size: .96rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.hero-indicators { display: grid; margin: 30px 0 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; list-style: none; }
.hero-indicators li { display: flex; align-items: center; gap: 8px; color: #aab6c7; font-size: .7rem; font-weight: 600; }
.hero-indicators li span { width: 5px; height: 5px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.hero-visual { position: relative; min-height: 540px; }
.hero-visual::before { position: absolute; inset: 4% -5% 2%; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.35), rgba(34,211,238,.08) 42%, transparent 68%); filter: blur(18px); }
.hero-image-frame { position: absolute; inset: 13% 0; overflow: hidden; border: 1px solid rgba(96,165,250,.28); border-radius: 50% 22% 50% 22%; background: #070c18; box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 0 40px rgba(37,99,235,.1); transform: rotate(-2deg); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: contain; filter: contrast(1.05) saturate(.85); transform: rotate(2deg) scale(1.02); }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(34,211,238,.18); border-radius: 50%; }
.orbit::after { position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; content: ""; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.orbit-one { inset: 1% 7%; animation: spin 18s linear infinite; }
.orbit-two { inset: 8% 1%; animation: spin 24s linear infinite reverse; }
.float-card { position: absolute; z-index: 3; display: flex; min-width: 145px; padding: 10px 13px; align-items: center; gap: 9px; border: 1px solid rgba(96,165,250,.3); border-radius: 12px; background: rgba(4,11,29,.82); box-shadow: 0 12px 30px rgba(0,0,0,.35); backdrop-filter: blur(12px); }
.float-card svg { width: 20px; height: 20px; color: var(--cyan); }
.float-card b, .float-card small { display: block; }
.float-card b { font-size: .68rem; }
.float-card small { color: var(--muted); font-size: .55rem; }
.fc-one { top: 4%; left: 1%; }.fc-two { top: 12%; right: -3%; }.fc-three { bottom: 6%; left: -2%; }.fc-four { right: 2%; bottom: 12%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Intro and shared cards ===== */
.intro-features { background: linear-gradient(180deg, transparent, rgba(5,11,28,.8), transparent); }
.feature-card, .function-card {
  position: relative; min-height: 285px; overflow: hidden; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(10,24,53,.82), rgba(5,12,29,.66)); box-shadow: 0 18px 45px rgba(0,0,0,.16);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature-card::before, .function-card::before { position: absolute; inset: 0; content: ""; opacity: 0; background: radial-gradient(circle at 15% 10%, rgba(37,99,235,.18), transparent 45%); transition: opacity .3s; }
.feature-card:hover, .function-card:hover { border-color: rgba(34,211,238,.42); box-shadow: 0 20px 55px rgba(0,0,0,.25), 0 0 35px rgba(37,99,235,.08); transform: translateY(-6px); }
.feature-card:hover::before, .function-card:hover::before { opacity: 1; }
.feature-card > *, .function-card > * { position: relative; }
.feature-card p, .function-card p { margin: 12px 0 0; font-size: .82rem; }
.card-index { position: absolute; top: 21px; right: 23px; color: rgba(148,163,184,.25); font-size: 1.6rem; font-weight: 800; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.screen-showcase { position: relative; padding: 10px; border: 1px solid var(--border); border-radius: 20px; background: #050a15; box-shadow: 0 35px 90px rgba(0,0,0,.45), 0 0 60px rgba(37,99,235,.12); transform: perspective(1200px) rotateY(4deg); }
.screen-showcase::before { position: absolute; inset: 15% -12%; z-index: -1; content: ""; background: rgba(37,99,235,.18); filter: blur(80px); }
.browser-bar { display: flex; height: 32px; padding: 0 10px; align-items: center; gap: 6px; }
.browser-bar span { width: 7px; height: 7px; border-radius: 50%; background: #1d4ed8; }
.browser-bar span:nth-child(2) { background: #0891b2; }.browser-bar span:nth-child(3) { background: #22d3ee; }
.browser-bar p { margin: 0 auto; color: #64748b; font-size: .55rem; }
.screen-showcase > img { border-radius: 12px; aspect-ratio: 3/2; object-fit: cover; }
.screen-badge { position: absolute; right: -25px; bottom: -28px; display: flex; padding: 12px 16px; align-items: center; gap: 10px; border: 1px solid var(--border-bright); border-radius: 13px; background: rgba(5,11,28,.94); box-shadow: var(--shadow); }
.screen-badge svg { color: var(--cyan); }.screen-badge b,.screen-badge small { display: block; }.screen-badge b { font-size: .7rem; }.screen-badge small { color: var(--muted); font-size: .58rem; }
.about-copy h2 { margin-bottom: 23px; }
.about-copy > p { font-size: .88rem; }
.check-list { display: grid; margin: 26px 0 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 11px 15px; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: .74rem; font-weight: 600; }
.check-list svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: var(--cyan); background: rgba(34,211,238,.1); }

/* ===== Problems and objectives ===== */
.problems { background: rgba(5,11,28,.55); }
.problem-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 16px; }
.problem-card { position: relative; min-height: 210px; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: rgba(8,18,42,.58); }
.problem-card:nth-child(-n+3) { grid-column: span 3; }.problem-card:nth-child(3) { grid-column: span 4; }.problem-card:nth-child(n+4) { grid-column: span 5; }
.problem-card > svg { width: 31px; height: 31px; margin-bottom: 30px; color: var(--cyan); }
.problem-card p { margin: 0; color: #c1ccda; font-size: .82rem; }
.problem-number { position: absolute; top: 22px; right: 23px; color: #334155; font-size: .8rem; font-weight: 800; }
.objective-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(2, 1fr); gap: 0 34px; list-style: none; counter-reset: goals; }
.objective-list li { display: grid; min-height: 100px; padding: 22px 8px; grid-template-columns: 64px 1fr; align-items: center; border-bottom: 1px solid var(--border); }
.objective-list li:last-child { grid-column: 1/-1; }
.objective-list span { display: grid; width: 45px; height: 45px; border: 1px solid var(--border); border-radius: 50%; color: var(--cyan); background: rgba(37,99,235,.08); font-size: .67rem; font-weight: 800; place-items: center; }
.objective-list p { margin: 0; color: #cad5e2; font-size: .84rem; }

/* ===== Functionalities ===== */
.functionalities { background: linear-gradient(180deg, rgba(5,11,28,.3), rgba(5,11,28,.85), rgba(5,11,28,.3)); }
.function-card { min-height: 235px; }
.function-card .icon-box { width: 44px; height: 44px; margin-bottom: 20px; }

/* ===== Visual finger guidance ===== */
.visual-guide { overflow: hidden; }
.visual-guide::before { position: absolute; inset: 12% 0 auto 45%; height: 65%; content: ""; background: radial-gradient(circle, rgba(34,211,238,.1), transparent 66%); pointer-events: none; }
.visual-guide-grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 52px; }
.visual-guide-copy h2 { margin-bottom: 22px; }
.visual-guide-copy > p { max-width: 530px; font-size: .88rem; }
.visual-guide-copy .check-list { grid-template-columns: 1fr; }
.visual-guide-image { position: relative; overflow: hidden; padding: 9px; border: 1px solid var(--border-bright); border-radius: 22px; background: #f8fbff; box-shadow: 0 30px 80px rgba(0,0,0,.38), 0 0 45px rgba(37,99,235,.12); cursor: zoom-in; }
.visual-guide-image img { width: 100%; border-radius: 14px; }
.visual-guide-image span { position: absolute; right: 18px; bottom: 17px; padding: 7px 11px; border-radius: 8px; color: white; background: rgba(2,6,23,.82); font-size: .64rem; font-weight: 700; backdrop-filter: blur(8px); }

/* ===== Process ===== */
.process-line { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: stretch; }
.process-card { position: relative; min-width: 0; padding: 23px 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); text-align: center; }
.process-icon { display: grid; width: 48px; height: 48px; margin: 5px auto 19px; border: 1px solid var(--border-bright); border-radius: 14px; color: var(--cyan); background: rgba(37,99,235,.12); place-items: center; }
.process-card h3 { min-height: 2.3em; font-size: .91rem; }
.process-card p { margin: 12px 0 0; font-size: .69rem; line-height: 1.6; }
.step { position: absolute; top: 13px; right: 15px; color: #42516a; font-size: .65rem; font-weight: 800; }
.connector { display: grid; color: #3b82f6; place-items: center; }
.connector svg { width: 18px; }

/* ===== Hardware ===== */
.hardware { background: rgba(5,11,28,.6); }
.hardware-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.hardware-card { display: flex; min-height: 135px; padding: 26px; align-items: flex-start; gap: 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(8,18,42,.44); transition: background .25s; }
.hardware-card:hover { background: rgba(16,34,70,.7); }
.hardware-card > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: var(--cyan); background: rgba(37,99,235,.13); font-size: .62rem; font-weight: 800; place-items: center; }
.hardware-card p { margin: 8px 0 0; font-size: .74rem; }

/* ===== Software ===== */
.software-shell { position: relative; display: grid; padding: 60px; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; overflow: hidden; border: 1px solid var(--border); border-radius: 30px; background: linear-gradient(145deg, rgba(10,24,55,.9), rgba(3,9,24,.9)); box-shadow: var(--shadow); }
.software-shell::before { position: absolute; top: -130px; left: -110px; width: 380px; height: 380px; content: ""; border-radius: 50%; background: rgba(37,99,235,.18); filter: blur(80px); }
.software-copy { position: relative; }.software-copy h2 { font-size: clamp(2rem,3.6vw,3.2rem); }.software-copy p { margin-top: 20px; font-size: .84rem; }
.tech-pills { display: flex; margin-top: 26px; flex-wrap: wrap; gap: 8px; }
.tech-pills span { padding: 6px 10px; border: 1px solid var(--border); border-radius: 99px; color: #bfccdc; background: rgba(37,99,235,.07); font-size: .62rem; font-weight: 700; }
.architecture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.architecture-grid article { display: flex; min-height: 112px; padding: 18px; gap: 14px; border: 1px solid rgba(59,130,246,.17); border-radius: 15px; background: rgba(2,6,23,.42); }
.architecture-grid article > svg { flex: 0 0 auto; color: var(--cyan); }
.architecture-grid h3 { font-size: .82rem; }.architecture-grid p { margin: 7px 0 0; font-size: .64rem; line-height: 1.55; }
.architecture-grid .api-card { grid-column: 1/-1; min-height: 92px; }

/* ===== Roles, modules, use cases ===== */
.role-grid { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; gap: 18px; }
.role-card { min-height: 385px; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: rgba(8,18,42,.58); }
.role-card.featured { min-height: 425px; border-color: rgba(34,211,238,.36); background: linear-gradient(150deg, rgba(15,37,79,.88), rgba(6,15,35,.78)); box-shadow: 0 20px 60px rgba(37,99,235,.1); }
.role-top { display: flex; margin-bottom: 28px; align-items: flex-start; justify-content: space-between; }
.role-top > span { color: #3d4b62; font-size: .72rem; font-weight: 800; }
.role-icon { display: grid; width: 56px; height: 56px; border: 1px solid var(--border-bright); border-radius: 17px; color: var(--cyan); background: rgba(37,99,235,.14); place-items: center; }
.role-card h3 { font-size: 1.35rem; }
.role-card ul { margin: 23px 0 0; padding: 0; list-style: none; }
.role-card li { position: relative; margin: 13px 0; padding-left: 18px; color: #aebbcf; font-size: .77rem; }
.role-card li::before { position: absolute; top: .65em; left: 0; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--blue-light); }
.modules { background: rgba(5,11,28,.5); }
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.module-grid article { display: flex; min-height: 80px; padding: 18px 20px; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 14px; background: rgba(8,18,42,.52); }
.module-grid svg { flex: 0 0 auto; color: var(--cyan); }.module-grid span { font-size: .77rem; font-weight: 700; }
.use-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.use-grid article { padding: 28px; border-top: 1px solid var(--border-bright); border-radius: 0 0 17px 17px; background: linear-gradient(180deg, rgba(37,99,235,.08), rgba(8,18,42,.45)); }
.use-grid svg { margin-bottom: 28px; color: var(--cyan); }.use-grid p { margin: 10px 0 0; font-size: .75rem; }

/* ===== Benefits ===== */
.benefits { background: linear-gradient(100deg, rgba(5,11,28,.9), rgba(5,11,28,.35)); }
.benefits-grid { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 85px; }
.benefits-copy > p { max-width: 650px; margin-top: 20px; }
.benefit-list { display: grid; margin: 28px 0 0; padding: 0; grid-template-columns: repeat(2,1fr); gap: 14px; list-style: none; }
.benefit-list li { display: flex; align-items: flex-start; gap: 9px; color: #c1ccdb; font-size: .72rem; }
.benefit-list svg { width: 17px; height: 17px; flex: 0 0 auto; padding: 2px; border-radius: 50%; color: var(--cyan); background: rgba(34,211,238,.1); }
.stats-panel { position: relative; display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, rgba(13,30,65,.8), rgba(4,11,27,.9)); box-shadow: var(--shadow); }
.stats-panel article { display: flex; min-height: 126px; padding: 22px 32px; align-items: center; gap: 27px; border-bottom: 1px solid var(--border); }
.stats-panel strong { min-width: 70px; color: #8fe9f3; font-size: 3.3rem; line-height: 1; }
.stats-panel article span { color: #cbd5e1; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.stat-note { display: flex; padding: 15px 32px; align-items: center; gap: 12px; color: var(--muted); font-size: .65rem; }

/* ===== Testing ===== */
.testing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.testing-grid article { min-height: 180px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(8,18,42,.52); }
.status { display: inline-flex; margin-bottom: 25px; padding: 4px 8px; border-radius: 99px; font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tested { color: #67e8f9; background: rgba(8,145,178,.13); }.verified { color: #93c5fd; background: rgba(37,99,235,.15); }.evaluated { color: #c4b5fd; background: rgba(124,58,237,.14); }
.testing-grid h3 { font-size: .82rem; }.testing-grid p { margin: 9px 0 0; font-size: .66rem; line-height: 1.55; }

/* ===== Gallery ===== */
.gallery { background: rgba(5,11,28,.55); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: rgba(8,18,42,.65); }
button.gallery-card { width: 100%; padding: 0; cursor: zoom-in; text-align: left; }
.gallery-card.large { grid-column: span 2; grid-row: span 2; }.gallery-card.wide { grid-column: span 2; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .5s; }
.gallery-image.diagram { background: #f8fbff; }
.gallery-image.diagram img { object-fit: contain; }
.gallery-image:hover img { filter: brightness(.72); transform: scale(1.035); }
.gallery-image > span { position: absolute; right: 0; bottom: 0; left: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(2,6,23,.92)); }
.gallery-image b,.gallery-image small,.placeholder b,.placeholder small { display: block; }
.gallery-image b,.placeholder b { font-size: .8rem; }.gallery-image small,.placeholder small { margin-top: 3px; color: var(--muted); font-size: .6rem; }
.placeholder { display: flex; padding: 24px; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 85% 15%, rgba(37,99,235,.13), transparent 45%), rgba(8,18,42,.65); }
.placeholder > svg { width: 33px; height: 33px; color: #4c79bc; }

/* ===== Team and CTA ===== */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.team-card { padding: 28px; border: 1px solid var(--border); border-radius: 19px; background: rgba(8,18,42,.5); text-align: center; }
.avatar { display: grid; width: 78px; height: 78px; margin: 0 auto 20px; border: 1px solid var(--border-bright); border-radius: 24px; color: #c9f8ff; background: linear-gradient(145deg, rgba(37,99,235,.45), rgba(8,145,178,.18)); font-size: 1.2rem; font-weight: 800; place-items: center; box-shadow: 0 12px 35px rgba(37,99,235,.13); }
.team-card > span { color: var(--cyan); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.team-card h3 { margin-top: 9px; font-size: .84rem; }
.team-note { display: flex; width: fit-content; margin: 36px auto 0; padding: 13px 18px; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 99px; background: rgba(8,18,42,.5); font-size: .7rem; }
.team-note svg { width: 18px; height: 18px; color: var(--cyan); }
.final-cta { padding-top: 40px; }
.cta-panel { position: relative; display: flex; min-height: 320px; padding: 60px; align-items: center; justify-content: space-between; gap: 60px; overflow: hidden; border: 1px solid rgba(34,211,238,.3); border-radius: 28px; background: radial-gradient(circle at 85% 20%, rgba(34,211,238,.14), transparent 32%), linear-gradient(120deg, rgba(17,43,94,.92), rgba(4,12,31,.95)); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.cta-panel::after { position: absolute; right: -110px; bottom: -160px; width: 360px; height: 360px; content: ""; border: 1px solid rgba(34,211,238,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(37,99,235,.04), 0 0 0 70px rgba(37,99,235,.025); }
.cta-panel > div { position: relative; z-index: 1; max-width: 780px; }.cta-panel p { max-width: 690px; margin: 20px 0 0; }.cta-panel .button { position: relative; z-index: 2; flex: 0 0 auto; }
.arrow-up { transform: rotate(-90deg); }

/* ===== Footer and lightbox ===== */
.footer { padding-top: 70px; border-top: 1px solid var(--border); background: #010410; }
.footer-grid { display: grid; padding-bottom: 60px; grid-template-columns: 1.7fr .7fr 1fr; gap: 70px; }
.footer-brand p { max-width: 410px; margin: 20px 0 0; font-size: .78rem; }
.footer h3 { margin: 5px 0 20px; font-size: .78rem; letter-spacing: .04em; }
.footer ul { margin: 0; padding: 0; list-style: none; }.footer li,.footer a:not(.brand) { margin: 9px 0; color: var(--muted); font-size: .7rem; }.footer a:hover { color: var(--cyan); }
.footer-bottom { display: flex; padding: 22px 0; justify-content: space-between; border-top: 1px solid rgba(59,130,246,.13); }.footer-bottom p { margin: 0; font-size: .62rem; }
.lightbox { width: min(92vw, 1050px); max-width: none; padding: 12px; border: 1px solid var(--border-bright); border-radius: 18px; color: white; background: #050b1c; box-shadow: 0 40px 100px rgba(0,0,0,.75); }
.lightbox::backdrop { background: rgba(0,3,12,.85); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 78vh; border-radius: 11px; object-fit: contain; }
.lightbox p { margin: 10px 6px 2px; color: #cbd5e1; font-size: .75rem; }
.lightbox-close { position: absolute; top: 23px; right: 23px; z-index: 2; display: grid; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: rgba(2,6,23,.75); font-size: 1.6rem; line-height: 1; cursor: pointer; place-items: center; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .nav-menu { gap: 13px; }.nav-menu a { font-size: .68rem; }.nav-cta { display: none; }
  .hero-grid { gap: 25px; }.hero-visual { min-height: 490px; }
  .four-col { grid-template-columns: repeat(2,1fr); }
  .process-line { grid-template-columns: repeat(5,1fr); gap: 10px; }.connector { display: none; }.process-card { padding-inline: 13px; }
  .testing-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .section { padding: 88px 0; }.container { width: min(calc(100% - 32px), var(--max)); }
  .nav { height: 70px; }.menu-toggle { display: block; margin-left: auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu { position: fixed; top: 70px; right: 0; left: 0; display: flex; max-height: 0; margin: 0; padding: 0 24px; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; border-bottom: 1px solid transparent; background: rgba(2,6,23,.98); transition: max-height .35s ease, padding .35s ease, border-color .35s; }
  .nav-menu.open { max-height: calc(100vh - 70px); padding-top: 15px; padding-bottom: 25px; border-color: var(--border); }
  .nav-menu a { padding: 13px 3px; border-bottom: 1px solid rgba(59,130,246,.1); font-size: .84rem; }.nav-menu a::after { display: none; }
  .hero { min-height: auto; padding-top: 125px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { text-align: center; }.hero h1,.hero-description { margin-inline: auto; }.hero-actions { justify-content: center; }.hero-indicators { max-width: 550px; margin-inline: auto; text-align: left; }
  .hero-visual { width: min(100%,650px); min-height: 500px; margin: 25px auto 0; }
  .about-grid,.visual-guide-grid,.software-shell,.benefits-grid { grid-template-columns: 1fr; }.about-grid { gap: 65px; }.screen-showcase { transform: none; }
  .visual-guide-grid { gap: 42px; }
  .three-col,.hardware-grid,.module-grid,.use-grid { grid-template-columns: repeat(2,1fr); }
  .hardware-grid { border-radius: 0; }
  .problem-grid { grid-template-columns: repeat(2,1fr); }.problem-card:nth-child(n) { grid-column: span 1; }.problem-card:last-child { grid-column: 1/-1; }
  .process-line { grid-template-columns: 1fr; gap: 0; max-width: 600px; margin-inline: auto; }.process-card { text-align: left; display: grid; grid-template-columns: 60px 1fr; column-gap: 10px; }.process-icon { grid-row: 1/3; margin: 0; }.process-card h3 { min-height: 0; }.process-card p { grid-column: 2; }.process-card:not(:last-child)::after { position: absolute; bottom: -25px; left: 41px; z-index: 3; width: 1px; height: 25px; content: ""; background: linear-gradient(var(--blue-light),var(--cyan)); }.process-card + .process-card { margin-top: 25px; }
  .software-shell { padding: 40px; gap: 40px; }
  .role-grid { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }.role-card,.role-card.featured { min-height: 0; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }.gallery-card.large { grid-column: span 2; grid-row: span 2; }.gallery-card.wide { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .cta-panel { padding: 45px; flex-direction: column; align-items: flex-start; gap: 35px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 26px), var(--max)); }.section { padding: 74px 0; }
  .nav.container, .hero-grid.container { width: calc(100vw - 26px); max-width: calc(100vw - 26px); }
  h2 { font-size: clamp(1.8rem,9vw,2.5rem); }.section-heading { margin-bottom: 38px; }.split-heading { margin-bottom: 38px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero { padding-top: 110px; padding-bottom: 55px; }.hero-copy { width: calc(100vw - 26px); min-width: 0; max-width: calc(100vw - 26px); overflow: hidden; }.hero h1 { width: 100%; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2.25rem,11vw,3.1rem); }.hero-subtitle { font-size: .94rem; }.hero-description { font-size: .86rem; }
  .hero-actions { flex-direction: column; }.hero-actions .button { width: 100%; }.hero-indicators { grid-template-columns: 1fr; width: fit-content; }
  .hero-visual { min-height: 390px; }.hero-image-frame { inset: 15% 0; }.float-card { min-width: 120px; padding: 8px 10px; }.fc-two { right: -2%; }.fc-three { left: -2%; }.fc-four { display: none; }
  .four-col,.three-col,.hardware-grid,.module-grid,.use-grid,.problem-grid,.testing-grid,.team-grid { grid-template-columns: 1fr; }
  .feature-card,.function-card { min-height: 0; }.problem-card:nth-child(n) { grid-column: auto; }
  .about-grid { gap: 55px; }.screen-badge { right: 10px; bottom: -35px; }.check-list,.objective-list,.benefit-list { grid-template-columns: 1fr; }.objective-list li:last-child { grid-column: auto; }
  .hardware-grid { border-radius: 16px; }
  .software-shell { padding: 28px 20px; border-radius: 22px; }.architecture-grid { grid-template-columns: 1fr; }.architecture-grid .api-card { grid-column: auto; }
  .module-grid article { min-height: 70px; }
  .stats-panel article { min-height: 110px; }.stats-panel strong { font-size: 2.8rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }.gallery-card.large,.gallery-card.wide { grid-column: auto; grid-row: auto; }.gallery-card.large { min-height: 310px; }
  .team-note { border-radius: 16px; text-align: left; }
  .cta-panel { min-height: 0; padding: 35px 24px; border-radius: 22px; }.cta-panel .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }.footer-bottom { flex-direction: column; gap: 7px; }
}

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