/* ==========================================================================
   Datacellia — Flagship Editorial & Technical Design System
   Brand Palette: Deep Obsidian/Navy (#0B1220 / #1E3A5F) + Emerald (#10B981)
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-stage: #0b1220;
  --bg-stage-card: #111b2e;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-stage: rgba(148, 163, 184, 0.16);

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --navy: #1e3a5f;
  --navy-hover: #142a47;
  --emerald: #059669;
  --emerald-bright: #10b981;
  --teal: #14b8a6;
  --emerald-soft: rgba(16, 185, 129, 0.11);
  --emerald-border: rgba(16, 185, 129, 0.28);

  --grid-line: rgba(15, 23, 42, 0.045);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 14px -4px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 18px 40px -16px rgba(15, 23, 42, 0.14), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  --shadow-stage: 0 36px 90px -24px rgba(11, 18, 32, 0.42), 0 12px 28px -12px rgba(11, 18, 32, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #070d18;
  --bg-elevated: #0e1729;
  --bg-subtle: #152138;
  --bg-stage: #050a14;
  --bg-stage-card: #0e182b;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --border-stage: rgba(148, 163, 184, 0.18);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --navy: #38bdf8;
  --navy-hover: #7dd3fc;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --teal: #2dd4bf;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(52, 211, 153, 0.32);

  --grid-line: rgba(148, 163, 184, 0.055);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 22px 48px -16px rgba(0, 0, 0, 0.65);
  --shadow-stage: 0 40px 100px -24px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: var(--shadow-xs);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--bg-subtle);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Compact Globe Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lang-trigger:hover,
.lang-dropdown.is-open .lang-trigger {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-subtle);
}

.lang-chevron {
  transition: transform 0.18s ease;
  opacity: 0.7;
}

.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.lang-dropdown.is-open .lang-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-option:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.lang-option[aria-current="true"] {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 600;
}

.lang-code {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text);
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

.mobile-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15.5px;
  border-radius: 12px;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.3);
}

.btn-primary:hover {
  background: #1e3a5f;
  box-shadow: 0 8px 20px -4px rgba(30, 58, 95, 0.35);
}

[data-theme="dark"] .btn-primary {
  background: #10b981;
  color: #031d15;
  box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.38);
}

[data-theme="dark"] .btn-primary:hover {
  background: #34d399;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

/* ---------- Centered Cinematic Hero + Full-Width Product Stage ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 88px;
  background-image:
    radial-gradient(ellipse 68% 50% at 50% -8%, rgba(16, 185, 129, 0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(30, 58, 95, 0.1), transparent 60%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  border-bottom: 1px solid var(--border);
}

.hero-center {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-accent {
  display: inline-block;
  background: linear-gradient(110deg, #059669 0%, #10b981 48%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero-accent {
  background: linear-gradient(110deg, #34d399 0%, #2dd4bf 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 auto 32px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.check-icon {
  color: var(--emerald-bright);
  flex-shrink: 0;
}

/* Dramatic Full-Width Product Stage */
.hero-stage-wrap {
  position: relative;
  margin-top: 40px;
}

.hero-stage-glow {
  position: absolute;
  inset: -24px 6% auto 6%;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.28), rgba(30, 58, 95, 0.14) 52%, transparent 74%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

.hero-stage {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  background: var(--bg-stage);
  border: 1px solid var(--border-stage);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  padding: 8px;
}

.stage-badge-float {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #34d399;
}

.stage-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px 14px;
  color: #94a3b8;
  font-size: 12px;
}

.stage-dots {
  display: flex;
  gap: 7px;
}

.stage-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stage-dots span:nth-child(1) { background: #ef4444; opacity: 0.78; }
.stage-dots span:nth-child(2) { background: #f59e0b; opacity: 0.78; }
.stage-dots span:nth-child(3) { background: #10b981; opacity: 0.78; }

.stage-address {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.stage-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #34d399;
}

.stage-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070d18;
}

.stage-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Stats Strip ---------- */
.stats-band {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-item {
  padding: 6px 20px;
  border-left: 1px solid var(--border);
}

.stat-item:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-value {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.08;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
}

.section-head-center {
  text-align: center;
  margin-inline: auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 800;
}

.section-subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Interactive Visual Studios Showcase ---------- */
.studio-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.studio-tabs-wrap {
  display: flex;
  justify-content: center;
}

.studio-tab {
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.studio-tab:hover {
  color: var(--text);
}

.studio-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.studio-panel {
  display: none;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.studio-panel.is-active {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.studio-copy {
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.studio-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  margin-bottom: 16px;
}

.studio-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.studio-copy p {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}

.studio-media-col {
  background: var(--bg-stage);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border-left: 1px solid var(--border);
}

.studio-img-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #070d18;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.65);
}

.studio-img-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.studio-panel:hover .studio-img-frame img {
  transform: scale(1.015);
}

.studio-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
}

.kpi-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.kpi-val {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-top: 2px;
}

.kpi-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  margin-top: 2px;
}

/* ---------- Bento Visual Highlight Strip ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-border);
  box-shadow: var(--shadow-md);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }

.bento-media {
  background: var(--bg-stage);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.bento-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.bento-body {
  padding: 24px 26px;
}

.bento-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.bento-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------- Privacy Architectural Split Showcase ---------- */
.privacy-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: stretch;
}

.privacy-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-stage);
  border: 1px solid var(--border-stage);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.privacy-visual-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.privacy-visual-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.privacy-visual-caption code {
  font-family: var(--font-mono);
  color: #34d399;
  font-weight: 600;
}

/* ---------- Category Grid ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-bright);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.category-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.category-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.category-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  white-space: nowrap;
}

.category-examples {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Feature Cards ---------- */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------- CTA Band ---------- */
.cta-band {
  padding: 84px 0;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.25), transparent 52%),
    linear-gradient(135deg, #0b1220 0%, #162e4d 62%, #0e3a38 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-stage);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.cta-box p {
  margin: 0;
  color: #cbd5e1;
  max-width: 560px;
  font-size: 16.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-box .btn-primary {
  background: #10b981;
  color: #031d15;
}

.cta-box .btn-primary:hover {
  background: #34d399;
}

.cta-box .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.cta-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Subpages Hero ---------- */
.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  background-image:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(16, 185, 129, 0.08), transparent 65%),
    linear-gradient(to bottom, var(--bg-elevated), var(--bg));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-hero p {
  margin: 0;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 720px;
}

/* ---------- Tools Catalog Page ---------- */
.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.catalog-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  flex: 1 1 320px;
}

.search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 15px;
  box-shadow: var(--shadow-xs);
}

.search-input:focus {
  outline: none;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.group-select {
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 14.5px;
  font-weight: 500;
  min-width: 220px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-pill.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

[data-theme="dark"] .filter-pill.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #031d15;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tool-card:hover {
  border-color: var(--emerald-bright);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.tool-card[hidden] {
  display: none;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tool-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.tool-cat-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.tool-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tool-id {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* ---------- Install Page ---------- */
.manifest-box {
  background: var(--bg-elevated);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.manifest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.manifest-url {
  flex: 1 1 320px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-stage);
  color: #34d399;
  border: 1px solid var(--border-stage);
  overflow-x: auto;
  white-space: nowrap;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.install-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.install-card h2 {
  margin: 10px 0 16px;
  font-size: 19px;
  line-height: 1.25;
}

.step-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}

.faq-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------- Changelog & Legal ---------- */
.release-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.release-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.release-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
}

.release-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.release-scope {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--emerald);
  font-weight: 600;
}

.prose {
  max-width: 800px;
}

.prose-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-xs);
}

.prose h2 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.prose h2:first-of-type {
  margin-top: 20px;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-tagline {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--emerald);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .studio-panel.is-active,
  .privacy-showcase {
    grid-template-columns: 1fr;
  }

  .studio-media-col {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-6 {
    grid-column: span 12;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 18px;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 14px 18px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .hero {
    padding: 52px 0 68px;
  }

  .hero-stage {
    padding: 8px;
    border-radius: 18px;
  }

  .stage-address {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item {
    border-left: none;
    padding: 8px 0;
  }

  .section {
    padding: 68px 0;
  }

  .studio-copy {
    padding: 28px 22px;
  }

  .studio-media-col {
    padding: 18px;
  }

  .studio-kpis {
    grid-template-columns: 1fr;
  }

  .cards-2,
  .cards-3,
  .install-grid,
  .tools-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 36px 24px;
  }
}
