/* Blockgraf landing page — preview stage
   Dark, technical, blue-accented. No frameworks. */

:root {
  --bg: #070b12;
  --bg-elev: #0c121d;
  --bg-elev-2: #111a29;
  --panel: #0f1724;
  --panel-hover: #131e2e;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #f1f5f9;
  --text-dim: #a4b1c3;
  --text-mute: #738196;
  --accent: #2f81f7;
  --accent-2: #58a6ff;
  --accent-soft: rgba(47, 129, 247, 0.14);
  --canvas: #3b82f6;
  --type-text: #22c55e;
  --type-html: #a855f7;
  --type-map: #725cff;
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(47, 129, 247, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 32%, rgba(114, 92, 255, 0.06), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
              border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #368cff, #1f6ee9);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset,
              0 8px 24px -12px rgba(47, 129, 247, 0.9);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #58a6ff, #2f81f7);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(47, 129, 247, 0.95);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-lg { padding: 13px 26px; font-size: 1.02rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0 0;
  background: transparent;
  pointer-events: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.scrolled {
  background: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
  padding-left: 18px;
  padding-right: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 13, 22, 0.78);
  box-shadow: 0 18px 55px -32px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  pointer-events: auto;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.scrolled .header-inner {
  border-color: var(--border-strong);
  background: rgba(8, 13, 22, 0.94);
  box-shadow: 0 20px 55px -28px rgba(0, 0, 0, 0.95);
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.footer-logo { height: 44px; opacity: 0.95; }

.primary-nav {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}
.primary-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.primary-nav a:hover { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.lang-opt {
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active {
  color: #fff;
  background: var(--accent);
}
.lang-switch.mobile { align-self: flex-start; margin: 8px 0 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  pointer-events: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-dim);
  padding: 10px 4px;
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .btn { margin-top: 6px; }
.mobile-nav .btn-ghost, .mobile-nav .btn-primary { padding: 12px 18px; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 10vw, 124px) 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(54% 48% at 50% 2%, rgba(47, 129, 247, 0.22), transparent 72%),
    linear-gradient(rgba(88, 166, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, transparent 65%, rgba(17, 26, 41, 0.65));
  background-size: auto, 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(47, 129, 247, 0.1);
  border: 1px solid rgba(47, 129, 247, 0.28);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.45rem, 6vw, 4.6rem);
  line-height: 1.01;
  letter-spacing: -0.048em;
  font-weight: 790;
  max-width: 14ch;
}
.hero-title .accent {
  background: linear-gradient(112deg, #58a6ff 10%, #8ec5ff 48%, #8b7cff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  margin: 0 auto 30px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Product visual */
.product-visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: clamp(50px, 7vw, 84px) auto -64px;
}
.visual-glow {
  position: absolute;
  inset: -10% 10% 30%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(47, 129, 247, 0.28), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  box-shadow: 0 48px 120px -38px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(255, 255, 255, 0.035) inset,
              0 0 80px -45px rgba(47, 129, 247, 0.65);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.window-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-strong);
}
.window-bar .dot:nth-child(1) { background: #ff5f57; opacity: 0.7; }
.window-bar .dot:nth-child(2) { background: #febc2e; opacity: 0.7; }
.window-bar .dot:nth-child(3) { background: #28c840; opacity: 0.7; }
.window-title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: var(--text-mute);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.window-body { padding: 16px; }

/* BlockWorld map: a dense grid with scattered blocksets and a zoomed peek */
.bw-map {
  position: relative;
  height: clamp(250px, 33vw, 330px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #05080f;
  overflow: hidden;
}
.bw-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 13) calc(100% / 6);
}
.bw-blocks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(6, 1fr);
  z-index: 1;
}
.bset {
  margin: 3px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2f81f7, #1d4ed8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
              0 4px 10px -4px rgba(47, 129, 247, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #eaf2ff;
  overflow: hidden;
}
.bset.hi {
  box-shadow: 0 0 0 2px #8ec5ff, 0 0 18px 2px rgba(142, 197, 255, 0.5);
  z-index: 2;
}
/* Blockset positions on the 13x6 grid (kept in CSS so the markup stays CSP-safe) */
.g1-2 { grid-area: 1 / 2; }
.g1-8 { grid-area: 1 / 8; }
.g1-12 { grid-area: 1 / 12; }
.g2-5 { grid-area: 2 / 5; }
.g2-10 { grid-area: 2 / 10; }
.g3-1 { grid-area: 3 / 1; }
.g3-3 { grid-area: 3 / 3; }
.g3-13 { grid-area: 3 / 13; }
.g4-2 { grid-area: 4 / 2; }
.g4-11 { grid-area: 4 / 11; }
.g5-6 { grid-area: 5 / 6; }
.g5-9 { grid-area: 5 / 9; }
.g5-13 { grid-area: 5 / 13; }
.g6-1 { grid-area: 6 / 1; }
.g6-8 { grid-area: 6 / 8; }
.g6-11 { grid-area: 6 / 11; }

/* Spotlight cone from the highlighted blockset up to the zoomed card */
.bw-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(17.5% 44%, 20.5% 44%, 58% 14%, 34% 14%);
}

/* Zoomed blockset card ("peek into a report") */
.bw-callout {
  position: absolute;
  left: 24%;
  top: 13%;
  width: 52%;
  z-index: 3;
  background: #f5f8fd;
  border-radius: 9px;
  padding: 10px 12px 14px;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(255, 255, 255, 0.12);
}
.callout-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.ch-badge {
  font-size: 0.55rem;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ch-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #0a0e17;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.callout-body { position: relative; height: 70px; }
/* Org-chart connectors */
.callout-body::before {
  content: "";
  position: absolute;
  left: 19%; right: 19%; top: 24px;
  height: 2px;
  background: #d3ddeb;
}
.callout-body::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px); top: 13px;
  width: 2px; height: 12px;
  background: #d3ddeb;
}
.cnode {
  position: absolute;
  height: 11px;
  border-radius: 3px;
  background: #ccd8ea;
}
.cnode.top { width: 38%; left: 31%; top: 2px; background: linear-gradient(135deg, #a855f7, #7c3aed); }
.cnode.l1 { width: 26%; left: 6%; top: 30px; }
.cnode.l2 { width: 26%; left: 37%; top: 30px; }
.cnode.l3 { width: 26%; left: 68%; top: 30px; }
.cnode.l2b { width: 22%; left: 37%; top: 52px; }
.cnode.l3b { width: 22%; left: 70%; top: 52px; }

.scroll-hint {
  position: relative;
  z-index: 2;
  margin: 92px auto 0;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-hint .chev {
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* Sections */
.section { position: relative; padding: clamp(68px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #8b7cff);
  box-shadow: 0 0 20px rgba(47, 129, 247, 0.45);
}
.section-head:has(.eyebrow)::before { display: none; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
  font-weight: 760;
}
.section-head p { margin: 0; color: var(--text-dim); font-size: 1.06rem; }

/* How it works */
.how {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 26, 41, 0.82), rgba(12, 18, 29, 0.94));
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20, 30, 46, 0.9), rgba(12, 19, 30, 0.96));
  padding: 30px 26px;
  overflow: hidden;
  box-shadow: 0 18px 55px -42px rgba(0, 0, 0, 0.9);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.how-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -55px;
  top: -65px;
  border-radius: 50%;
  background: rgba(47, 129, 247, 0.09);
  filter: blur(4px);
}
.how-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 166, 255, 0.34);
  box-shadow: 0 26px 60px -38px rgba(47, 129, 247, 0.35);
}
.how-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 18px;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 9px;
  background: rgba(47, 129, 247, 0.08);
}
.how-card h3, .use-card h3, .type-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.how-card p, .use-card p, .type-card p { margin: 0; color: var(--text-dim); }

/* Use cases */
.use-cases {
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 129, 247, 0.055), transparent 35rem),
    var(--bg);
}
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.use-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(19, 29, 45, 0.94), rgba(11, 18, 29, 0.98));
  padding: 30px 26px 30px 30px;
  overflow: hidden;
  box-shadow: 0 20px 55px -44px rgba(0, 0, 0, 0.9);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.use-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-2), rgba(114, 92, 255, 0.35), transparent);
  opacity: 0.9;
}
.use-card:nth-child(2)::before { background: linear-gradient(180deg, #8b7cff, rgba(114, 92, 255, 0.3), transparent); }
.use-card:nth-child(3)::before { background: linear-gradient(180deg, #22c55e, rgba(34, 197, 94, 0.25), transparent); }
.use-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

/* Content types */
.content-types {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.96), rgba(15, 23, 36, 0.96));
}
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.type-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(19, 29, 45, 0.92), rgba(11, 18, 29, 0.98));
  padding: 26px 22px 28px;
  overflow: hidden;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.type-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--canvas);
  opacity: 0.8;
}
.type-card:nth-child(2)::before { background: var(--type-text); }
.type-card:nth-child(3)::before { background: var(--type-html); }
.type-card:nth-child(4)::before { background: var(--type-map); }
.type-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 55px -38px rgba(0, 0, 0, 0.95);
}
.type-icon {
  display: inline-block;
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 10px 25px -16px rgba(0, 0, 0, 0.9);
  position: relative;
}
.icon-canvas::after {
  content: ""; position: absolute; inset: 10px;
  border: 2px solid var(--canvas); border-radius: 4px;
}
.icon-text::after {
  content: ""; position: absolute; left: 11px; right: 11px; top: 13px;
  height: 2px; background: var(--type-text);
  box-shadow: 0 6px 0 var(--type-text), 0 12px 0 rgba(34,197,94,0.5);
}
.icon-html::after {
  content: ""; position: absolute; left: 11px; bottom: 11px;
  width: 4px; height: 12px; background: var(--type-html);
  box-shadow: 7px 0 0 var(--type-html), 14px -6px 0 rgba(168,85,247,0.6);
}
.icon-map::before {
  content: ""; position: absolute; left: 10px; top: 19px;
  width: 20px; height: 2px; background: rgba(114, 92, 255, 0.55);
  transform: rotate(-18deg); transform-origin: center;
}
.icon-map::after {
  content: ""; position: absolute; left: 12px; top: 12px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--type-map);
  box-shadow: 11px 3px 0 var(--type-text), 4px 13px 0 var(--type-html);
}

/* Trending / featured public spaces */
.trending {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 129, 247, 0.09), transparent 28rem),
    var(--bg-elev);
}
.section-head .eyebrow { margin-bottom: 16px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.featured-grid:has(.feat-card:only-child) { max-width: 820px; grid-template-columns: 1fr; }
.feat-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 29, 45, 0.97), rgba(10, 16, 26, 0.99));
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.featured-grid:has(.feat-card:only-child) .feat-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
}
.featured-grid:has(.feat-card:only-child) .feat-thumb { aspect-ratio: 16 / 10; }
.featured-grid:has(.feat-card:only-child) .feat-body { justify-content: center; padding: 28px; }
.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.8);
}
.feat-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #05080f;
  overflow: hidden;
}
.feat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}
.feat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #eaf2ff;
  background: rgba(10, 14, 23, 0.78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 999px;
}
.feat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.feat-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.feat-desc { color: var(--text-dim); font-size: 0.95rem; }
.feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.feat-meta { color: var(--text-mute); font-size: 0.85rem; }
.feat-link { color: var(--accent-2); font-size: 0.9rem; font-weight: 600; }
.feat-card:hover .feat-link { text-decoration: underline; }

/* Closing */
.closing { border-top: 1px solid var(--border); text-align: center; }
.closing-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: clamp(44px, 7vw, 72px) clamp(24px, 7vw, 80px);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -40%, rgba(47, 129, 247, 0.28), transparent 60%),
    linear-gradient(145deg, rgba(18, 29, 46, 0.96), rgba(9, 15, 25, 0.99));
  box-shadow: 0 35px 90px -55px rgba(47, 129, 247, 0.55);
}
.closing-inner::before,
.closing-inner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(88, 166, 255, 0.09);
  border-radius: 50%;
}
.closing-inner::before { left: -105px; top: -110px; }
.closing-inner::after { right: -120px; bottom: -115px; }
.closing-inner > * { position: relative; z-index: 1; }
.closing h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.closing p { margin: 0 0 28px; color: var(--text-dim); font-size: 1.1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #080d16;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-note { margin: 0; color: var(--text-mute); font-size: 0.92rem; }
.footer-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-link {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.15s var(--ease);
}
.footer-link:hover { color: var(--accent-2); }
.footer-social {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.footer-social:hover { border-color: var(--accent); background: var(--accent-soft); }
.footer-social img { width: 18px; height: 18px; display: block; }
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copy { margin: 0; color: var(--text-mute); font-size: 0.85rem; }

/* Responsive */
@media (min-width: 761px) {
  /* The mobile menu must never leak onto desktop, even if left open on resize */
  .mobile-nav { display: none !important; }
}

@media (max-width: 900px) {
  .how-grid, .use-grid { grid-template-columns: 1fr 1fr; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .primary-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header { padding-top: 7px; }
  .header-inner { height: 58px; border-radius: 14px; }
  .mobile-nav {
    margin: 7px 20px 0;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    box-shadow: 0 22px 50px -30px rgba(0, 0, 0, 0.95);
  }
  .br-desktop { display: none; }
  .product-visual { margin-bottom: -40px; }
  .window-body { padding: 14px; }
  .bw-map { height: clamp(200px, 46vw, 300px); }
  .scroll-hint { margin-top: 64px; }
  .featured-grid:has(.feat-card:only-child) .feat-card { grid-template-columns: 1fr; }
  .featured-grid:has(.feat-card:only-child) .feat-thumb { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  .how-grid, .use-grid, .types-grid, .featured-grid { grid-template-columns: 1fr; }
  .bw-callout { width: 64%; left: 18%; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
  .closing-inner { border-radius: 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint .chev { animation: none; }
  .btn, .how-card, .use-card, .type-card, .feat-card { transition: none; }
}
