/* =====================================================================
   TARDISBOX.PL — strona produktowa
   System monitoringu i wizualizacji instalacji gazów medycznych
   © Medpipe Sp. z o.o.  ·  Design system 2026
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* brand */
  --medpipe:      #01327f;        /* logo Medpipe */
  --blue:         #2f7bf6;
  --blue-bright:  #4f9bff;
  --cyan:         #38e1ff;
  --mint:         #25e8b0;        /* telemetria / live */
  --mint-soft:    #6ff7d2;
  --amber:        #ffd60a;        /* ostrzeżenie */
  --red:          #ff4d6a;        /* alarm */
  --violet:       #8b7bff;

  /* surfaces */
  --bg:           #05070d;
  --bg-2:         #070b14;
  --panel:        rgba(255,255,255,.038);
  --panel-2:      rgba(255,255,255,.055);
  --stroke:       rgba(255,255,255,.10);
  --stroke-2:     rgba(255,255,255,.16);
  --glass-blur:   18px;

  /* text */
  --ink:          #eef3fb;
  --ink-soft:     #aebbd0;
  --ink-mute:     #6f7f99;

  /* type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* layout */
  --container: 1200px;
  --radius:    22px;
  --radius-sm: 14px;
  --ease:      cubic-bezier(.22,.61,.36,1);

  --grad-brand: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 48%, var(--mint) 100%);
  --grad-line:  linear-gradient(90deg, transparent, var(--stroke-2), transparent);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: rgba(47,123,246,.35); color: #fff; }

/* ---------- Background field ---------- */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.bg-field::before { /* aurora mesh */
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(40% 50% at 18% 12%, rgba(47,123,246,.30), transparent 60%),
    radial-gradient(38% 44% at 85% 8%,  rgba(56,225,255,.18), transparent 60%),
    radial-gradient(50% 50% at 75% 80%, rgba(37,232,176,.16), transparent 62%),
    radial-gradient(45% 45% at 12% 88%, rgba(139,123,255,.16), transparent 60%);
  filter: blur(20px);
  animation: drift 26s var(--ease) infinite alternate;
}
.bg-field::after { /* grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-4%, -3%, 0) scale(1.12); }
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Layout ---------- */
.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }
section { position: relative; padding: clamp(64px, 9vw, 128px) 0; scroll-margin-top: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--mint-soft);
  padding: 7px 14px; border: 1px solid var(--stroke); border-radius: 100px;
  background: rgba(37,232,176,.05); backdrop-filter: blur(8px);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05;
  letter-spacing: -.02em; }
.section-title { font-size: clamp(30px, 4.6vw, 56px); margin: 18px 0 16px; }
.section-lead { color: var(--ink-soft); font-size: clamp(16px,1.4vw,19px); max-width: 60ch; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }
.grad { background: var(--grad-brand); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px; font-weight: 600; font-size: 15.5px;
  letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #04121f; background: var(--grad-brand);
  box-shadow: 0 8px 28px -8px rgba(47,123,246,.65), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(56,225,255,.7); }
.btn-ghost { border: 1px solid var(--stroke-2); background: var(--panel);
  backdrop-filter: blur(var(--glass-blur)); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue-bright); background: var(--panel-2); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 16.5px; }

/* ---------- Navbar ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 100; transition: all .4s var(--ease); }
.nav-inner { width: min(100% - 44px, 1240px); margin-inline: auto;
  display: flex; align-items: center; gap: 22px;
  padding: 11px 13px 11px 22px; border-radius: 100px;
  border: 1px solid var(--stroke); background: rgba(7,11,20,.55);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: 0 12px 40px -16px rgba(0,0,0,.7); }
.nav.scrolled .nav-inner { background: rgba(7,11,20,.82); border-color: var(--stroke-2); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 700; }
.brand .tardis { color: var(--ink); }
.brand .box { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 15px; border-radius: 100px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* language dropdown */
.lang { position: relative; }
.lang > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--stroke); border-radius: 100px; background: rgba(0,0,0,.25);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; color: var(--ink); }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary svg { opacity: .7; transition: transform .25s var(--ease); }
.lang[open] > summary svg { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 152px; padding: 6px;
  border: 1px solid var(--stroke-2); border-radius: 14px; background: rgba(7,11,20,.97);
  backdrop-filter: blur(16px); box-shadow: 0 20px 50px -16px rgba(0,0,0,.85); z-index: 120;
  display: flex; flex-direction: column; gap: 2px; }
.lang-menu a { padding: 9px 13px; border-radius: 9px; font-size: 14px; color: var(--ink-soft); transition: .15s; }
.lang-menu a:hover { background: var(--panel); color: var(--ink); }
.lang-menu a.on { color: #04121f; background: var(--grad-brand); font-weight: 600; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--stroke); background: var(--panel); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  margin: 0 auto; border-radius: 2px; transition: .3s var(--ease); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { padding-top: 132px; padding-bottom: 56px;
  display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 600; margin: 20px 0 0; }
.hero h1 .line { display: block; }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft);
  max-width: 52ch; }
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 18px;
  color: var(--ink-mute); font-size: 13.5px; }
.hero-trust .by { display: flex; align-items: center; gap: 9px; }
.hero-trust .by img { height: 19px; opacity: .9; filter: brightness(0) invert(1); }
.hero-trust .sep { width: 1px; height: 26px; background: var(--stroke); }

.hero-stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.hstat .num { font-family: var(--font-display); font-size: clamp(26px,3vw,38px); font-weight: 600;
  line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat .lbl { color: var(--ink-mute); font-size: 12.5px; margin-top: 7px; letter-spacing: .02em; }

/* hero device visual */
.device-stage { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.device-glow { position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,246,.4), transparent 65%);
  filter: blur(38px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.85} 50%{transform:scale(1.08);opacity:1} }
.device-ring { position: absolute; border: 1px solid var(--stroke); border-radius: 50%; }
.device-ring.r1 { inset: 0; animation: spin 40s linear infinite; }
.device-ring.r2 { inset: 12%; border-style: dashed; border-color: rgba(56,225,255,.18); animation: spin 30s linear reverse infinite; }
.device-ring.r3 { inset: 24%; border-color: rgba(37,232,176,.14); }
@keyframes spin { to { transform: rotate(360deg); } }

/* the box */
.tbox { position: relative; width: 56%; aspect-ratio: 3/4; border-radius: 20px;
  background: linear-gradient(160deg, #0c1830, #060b16 60%);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 50px rgba(47,123,246,.08);
  padding: 20px; display: flex; flex-direction: column; backdrop-filter: blur(4px); }
.tbox::before { content: ""; position: absolute; top: -34px; left: 50%; width: 3px; height: 34px;
  background: linear-gradient(var(--mint), transparent); transform: translateX(-50%); }
.tbox::after { content: ""; position: absolute; top: -40px; left: 50%; width: 9px; height: 9px;
  border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px var(--mint);
  transform: translateX(-50%); animation: blink 1.6s infinite; }
.tbox-brand { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  margin-bottom: 16px; }
.tbox-brand span { color: var(--cyan); }
.leds { display: flex; flex-direction: column; gap: 11px; }
.led { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 10.5px; color: var(--ink-mute); letter-spacing: .08em; }
.led i { width: 8px; height: 8px; border-radius: 50%; background: #1a2540; flex: none; }
.led.on i { background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.led.on.b i { background: var(--blue-bright); box-shadow: 0 0 9px var(--blue-bright); }
.led.blink i { animation: blink 1.3s infinite; }
.tbox-wave { margin-top: auto; height: 46px; }

/* floating telemetry chips around device */
.chip-float { position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; border: 1px solid var(--stroke-2);
  background: rgba(7,11,20,.7); backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px -16px rgba(0,0,0,.8); font-size: 13px;
  animation: floaty 6s ease-in-out infinite; }
.chip-float .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip-float .v { font-family: var(--font-mono); font-weight: 600; }
.chip-float small { color: var(--ink-mute); font-size: 11px; display: block; }
.chip-float.c1 { top: 8%;  left: -6%;  animation-delay: 0s; }
.chip-float.c2 { top: 40%; right: -8%; animation-delay: -2s; }
.chip-float.c3 { bottom: 10%; left: -3%; animation-delay: -4s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ---------- Marquee / logos of trust ---------- */
.strip { padding: 26px 0; border-block: 1px solid var(--stroke); background: rgba(255,255,255,.015); }
.strip-track { display: flex; gap: 60px; align-items: center; color: var(--ink-mute);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; animation: marq 30s linear infinite; }
.strip-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip-track span { display: inline-flex; align-items: center; gap: 12px; }
.strip-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Gases ---------- */
.gas-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.gas { position: relative; padding: 26px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: var(--panel); backdrop-filter: blur(var(--glass-blur));
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.gas:hover { transform: translateY(-6px); border-color: var(--g, var(--blue-bright)); }
.gas::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--g, var(--blue)); opacity: .85; }
.gas .sym { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--g); }
.gas .nm { font-weight: 600; margin-top: 10px; }
.gas .ds { color: var(--ink-mute); font-size: 13px; margin-top: 4px; }
.gas .rd { margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
  display: flex; align-items: baseline; gap: 6px; }
.gas .rd b { font-size: 20px; color: var(--ink); font-weight: 600; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; grid-auto-rows: minmax(170px, auto); }
.card { position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--stroke); background: var(--panel); backdrop-filter: blur(var(--glass-blur));
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s, background .4s; }
.card:hover { transform: translateY(-5px); border-color: var(--stroke-2); background: var(--panel-2); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--stroke); background: rgba(47,123,246,.08); margin-bottom: 18px; }
.card .ic svg { width: 24px; height: 24px; stroke: var(--cyan); }
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(70px);
  opacity: .2; right: -40px; top: -40px; background: var(--blue); pointer-events: none; }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.row-2 { grid-row: span 2; }

.card.feature-hero { display: flex; flex-direction: column; justify-content: space-between; }
.mini-metrics { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.mini-metrics div b { font-family: var(--font-display); font-size: 26px; color: var(--mint); display:block; }
.mini-metrics div span { font-size: 12px; color: var(--ink-mute); }

/* feature lists */
.fcat { margin-top: 14px; }
.fcat li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--ink-soft); }
.fcat li svg { width: 18px; height: 18px; flex: none; stroke: var(--mint); margin-top: 3px; }

/* ---------- Architecture ---------- */
.arch { border: 1px solid var(--stroke); border-radius: var(--radius); padding: clamp(24px,4vw,48px);
  background: var(--panel); backdrop-filter: blur(var(--glass-blur)); }
.arch-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.node { position: relative; text-align: center; padding: 22px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: rgba(0,0,0,.25); }
.node .ni { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand); }
.node .ni svg { width: 26px; height: 26px; stroke: #04121f; }
.node h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.node p { font-size: 12.5px; color: var(--ink-mute); margin-top: 4px; }
.node.hub { border-color: var(--mint); box-shadow: 0 0 40px -12px rgba(37,232,176,.5); }
.flow-line { position: relative; }
.arch-note { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-mute); font-size: 13px; }
.arch-note span { display: inline-flex; align-items: center; gap: 8px; }
.arch-note i { width: 22px; height: 2px; border-radius: 2px; }

/* ---------- Visualization showcase ---------- */
.viz { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.viz-frame { border-radius: var(--radius); border: 1px solid var(--stroke-2); overflow: hidden;
  background: #02040a; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); position: relative; }
.viz-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--stroke);
  background: rgba(255,255,255,.02); }
.viz-bar i { width: 11px; height: 11px; border-radius: 50%; background: #25304a; }
.viz-bar i:nth-child(1){background:#ff5f57} .viz-bar i:nth-child(2){background:#febc2e} .viz-bar i:nth-child(3){background:#28c840}
.viz-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.viz-body { aspect-ratio: 16/10; position: relative; background:
  radial-gradient(60% 60% at 50% 0%, rgba(47,123,246,.1), transparent); }
.viz-list li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--stroke); }
.viz-list li b { display: block; font-size: 16px; }
.viz-list li span { color: var(--ink-soft); font-size: 14px; }
.viz-list .vi { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--stroke); background: rgba(56,225,255,.07); }
.viz-list .vi svg { width: 21px; height: 21px; stroke: var(--cyan); }

/* ---------- Specs ---------- */
.specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.spec { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--stroke);
  background: var(--panel); backdrop-filter: blur(10px); }
.spec .k { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .08em; }
.spec .v { font-family: var(--font-display); font-size: clamp(22px,2.2vw,30px); font-weight: 600; margin-top: 8px; }
.spec .v small { font-size: 14px; color: var(--ink-soft); font-family: var(--font-body); }
.spec .x { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

/* ---------- Demo CTA ---------- */
.demo-band { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden;
  border: 1px solid var(--stroke-2); padding: clamp(36px,6vw,72px);
  background: linear-gradient(120deg, rgba(1,50,127,.5), rgba(7,11,20,.6)); backdrop-filter: blur(var(--glass-blur)); }
.demo-band::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(50% 80% at 80% 20%, rgba(56,225,255,.22), transparent 60%),
  radial-gradient(50% 80% at 10% 90%, rgba(37,232,176,.18), transparent 60%); }
.demo-band > * { position: relative; }
.demo-band h2 { font-size: clamp(28px,4vw,48px); }
.demo-creds { display: inline-flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-family: var(--font-mono); font-size: 13.5px; }
.demo-creds code { padding: 9px 14px; border-radius: 10px; border: 1px dashed var(--stroke-2);
  background: rgba(0,0,0,.3); color: var(--mint-soft); }
.demo-creds code b { color: var(--ink-mute); font-weight: 500; }

/* ---------- Contact / footer ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-cards { display: grid; gap: 14px; }
.cc { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: var(--panel); backdrop-filter: blur(10px); transition: .3s var(--ease); }
.cc:hover { border-color: var(--stroke-2); transform: translateX(4px); }
.cc .ci { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(47,123,246,.1); border: 1px solid var(--stroke); }
.cc .ci svg { width: 22px; height: 22px; stroke: var(--cyan); }
.cc .k { font-size: 12.5px; color: var(--ink-mute); }
.cc .v { font-size: 16px; font-weight: 500; margin-top: 2px; }
.legal { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); line-height: 2; margin-top: 22px; }

footer { border-top: 1px solid var(--stroke); padding: 44px 0 56px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-by { display: flex; align-items: center; gap: 12px; color: var(--ink-mute); font-size: 13.5px; }
.foot-by img { height: 22px; filter: brightness(0) invert(1); opacity: .85; }
.foot-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"]{transition-delay:.08s} [data-reveal][data-d="2"]{transition-delay:.16s}
[data-reveal][data-d="3"]{transition-delay:.24s} [data-reveal][data-d="4"]{transition-delay:.32s}
[data-reveal][data-d="5"]{transition-delay:.4s}

/* ---------- Hero device (real photo) ---------- */
.device-aura { position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,225,255,.30), rgba(47,123,246,.12) 46%, transparent 70%);
  filter: blur(42px); animation: pulse 6s ease-in-out infinite; }
.device-card { position: relative; width: 84%; max-width: 430px; margin-inline: auto; aspect-ratio: 1/1; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--stroke-2); background: #ecebf3;
  box-shadow: 0 44px 96px -30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.5); }
.device-card img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 46%; }
.device-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 100px; background: rgba(7,11,20,.72); backdrop-filter: blur(10px);
  border: 1px solid var(--stroke-2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; }
.device-tag .ld { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 1.6s infinite; }

/* ---------- Visualization shot ---------- */
.viz-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke-2);
  background: #fff; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); }
.viz-shot img { width: 100%; height: auto; display: block; }

/* ---------- Architecture grid (steps + real diagram) ---------- */
.arch-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.arch-steps { display: flex; flex-direction: column; gap: 10px; }
.arch-steps li { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); background: var(--panel); backdrop-filter: blur(10px); transition: transform .3s var(--ease), border-color .3s; }
.arch-steps li:hover { border-color: var(--stroke-2); transform: translateX(5px); }
.arch-steps li.hub { border-color: rgba(37,232,176,.5); box-shadow: 0 0 38px -14px rgba(37,232,176,.55); }
.arch-steps .sn { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; background: var(--grad-brand); color: #04121f; }
.arch-steps b { display: block; font-size: 15.5px; }
.arch-steps span:not(.sn) { color: var(--ink-soft); font-size: 13.5px; }
.arch-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke-2); background: #fff;
  box-shadow: 0 30px 80px -34px rgba(0,0,0,.85); width: 100%; max-width: 300px; margin-inline: auto; }
.arch-shot img { width: 100%; height: auto; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--stroke); border-radius: var(--radius-sm); background: var(--panel);
  backdrop-filter: blur(10px); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: var(--stroke-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  font-size: 16px; display: flex; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 22px;
  color: var(--cyan); transition: transform .3s var(--ease); line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* ---------- Footer SEO line ---------- */
.foot-seo { color: var(--ink-soft); font-size: 14px; line-height: 1.75; max-width: 92ch; margin: 0 auto 26px;
  text-align: center; border-bottom: 1px solid var(--stroke); padding-bottom: 26px; }

/* ---------- Accessibility: focus + skip link ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible,
.btn:focus-visible, details > summary:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 6px; }
.card:focus-visible, .cc:focus-visible, .gas:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--mint); color: #04121f; font-weight: 600; font-size: 14px; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4,1fr); }
  .span-3 { grid-column: span 4; } .span-4 { grid-column: span 4; } .span-2 { grid-column: span 2; }
  .arch-flow { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .device-stage { max-width: 420px; margin-inline: auto; order: -1; }
  .viz { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; gap: 28px; }
  .arch-shot { max-width: 360px; }
  .gas-grid { grid-template-columns: repeat(2,1fr); }
  .specs { grid-template-columns: repeat(2,1fr); }
  .contact { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links { display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; padding: 14px; gap: 4px; border-radius: 22px;
    border: 1px solid var(--stroke-2); background: rgba(7,11,20,.96); backdrop-filter: blur(20px); }
  .nav.open .nav-links a { padding: 13px 16px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: clamp(84px, 22vw, 116px); padding-bottom: clamp(36px, 8vw, 52px); }
  .device-card { width: min(100% - 24px, 360px); }
  .chip-float { position: static; display: inline-flex; margin: 0; animation: none; }
  .device-stage .chip-float { display: none; }
  .bento { grid-template-columns: 1fr; } .span-2,.span-3,.span-4,.span-6 { grid-column: 1; }
  .card { padding: clamp(18px, 5vw, 28px); }
  .gas-grid { grid-template-columns: 1fr 1fr; }
  .arch-flow { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; } .spec { padding: clamp(16px, 4vw, 22px); }
  .contact { gap: 26px; }
  .strip-track { gap: 32px; } .strip-track span { font-size: 11px; }
  .foot { flex-direction: column; text-align: center; }
  .hero-stats { gap: 22px; }
  .lang-menu { position: fixed; right: 12px; left: auto; max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
/* still mode (?still=1) — freeze animations for screenshots */
html.still *, html.still *::before, html.still *::after { animation: none !important; }
html.still [data-reveal] { opacity: 1 !important; transform: none !important; }
