/* ==========================================================================
   Rabbet Theme Landing Page Stylesheet
   Spiggle Ecosystem — Forest-Green Filament 5 Theme & Starter Kit
   ========================================================================== */

:root {
  /* Typography */
  --font-serif: "Source Serif 4", Georgia, Cambria, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Color Palette - Forest & Sage Editorial (Light) */
  --bg-page: #f7f9f7;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #edf3ee;
  --bg-tinted: #e8f3ec;
  --bg-header: rgba(247, 249, 247, 0.88);

  --line-border: #e0eae3;
  --line-subtle: #ebf2ed;
  --line-strong: #c2d8cc;

  --text-main: #131c17;
  --text-muted: #4e6157;
  --text-dim: #7d9387;

  /* Brand Colors */
  --primary: #1b4332;
  --primary-hover: #143527;
  --primary-subtle: #e8f4ed;
  --primary-glow: rgba(27, 67, 50, 0.12);

  --accent-sage: #bfe3d8;
  --accent-mint: #2d6a4f;
  --accent-emerald: #40916c;
  --accent-gold: #c9933e;
  --accent-gold-subtle: #fcf6e9;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(19, 28, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(19, 28, 23, 0.06), 0 1px 3px rgba(19, 28, 23, 0.04);
  --shadow-lg: 0 12px 32px rgba(19, 28, 23, 0.08), 0 2px 6px rgba(19, 28, 23, 0.04);
  --shadow-xl: 0 24px 60px -12px rgba(19, 28, 23, 0.12), 0 8px 24px -4px rgba(19, 28, 23, 0.06);

  /* Radius Tokens */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1160px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  /* Color Palette - Forest Slate (Dark) */
  --bg-page: #0b120f;
  --bg-surface: #111a15;
  --bg-surface-elevated: #16221c;
  --bg-subtle: #18261f;
  --bg-tinted: #132219;
  --bg-header: rgba(11, 18, 15, 0.88);

  --line-border: #1e3027;
  --line-subtle: #182820;
  --line-strong: #2a4437;

  --text-main: #f0f7f3;
  --text-muted: #a3b8ad;
  --text-dim: #6d8276;

  /* Brand Colors */
  --primary: #52b788;
  --primary-hover: #74c69d;
  --primary-subtle: #142a1f;
  --primary-glow: rgba(82, 183, 136, 0.2);

  --accent-sage: #2a4c3d;
  --accent-mint: #52b788;
  --accent-emerald: #74c69d;
  --accent-gold: #e2b05b;
  --accent-gold-subtle: #2d2414;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 28px 70px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  width: min(var(--container-max), calc(100% - 40px));
  margin: 0 auto;
}

/* ==========================================================================
   Typography Helpers
   ========================================================================== */

h1, h2, h3, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-mint);
  margin-bottom: 12px;
}

[data-theme="dark"] .eyebrow {
  color: var(--accent-emerald);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 48ch;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

[data-theme="dark"] .btn-primary {
  color: #0c120f;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--line-border);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--line-strong);
}

[data-theme="dark"] .pill-badge {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

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

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
  border-color: var(--line-strong);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 64px 0 52px;
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 480px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.6rem, 4.3vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent-mint);
  font-style: italic;
}

[data-theme="dark"] .hero-title span {
  color: var(--accent-emerald);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-trust-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.84rem;
  color: var(--text-dim);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-item svg {
  color: var(--accent-mint);
  flex-shrink: 0;
}

[data-theme="dark"] .hero-trust-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Hero Interactive Light/Dark Comparison Stage
   ========================================================================== */

.hero-stage-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stage-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  gap: 12px;
}

.stage-traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.light-red { background: #ff5f56; }
.light-yellow { background: #ffbd2e; }
.light-green { background: #27c93f; }

.stage-window-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-mode-presets {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.preset-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  color: var(--text-main);
}

.preset-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.stage-viewport {
  position: relative;
  aspect-ratio: 2880 / 1083;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f1613;
  user-select: none;
  cursor: ew-resize;
}

.stage-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.stage-viewport .img-dark {
  clip-path: inset(0 0 0 var(--split, 52%));
  transition: none;
}

.stage-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 52%);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}

.stage-handle {
  position: absolute;
  top: 50%;
  left: var(--split, 52%);
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #1b4332;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  border: 2px solid #ffffff;
  z-index: 5;
  transition: transform var(--transition-fast);
}

.stage-handle:hover, .stage-handle:focus-visible {
  transform: translate(-50%, -50%) scale(1.1);
  outline: 2px solid var(--accent-mint);
  outline-offset: 2px;
}

.stage-handle svg {
  width: 16px;
  height: 16px;
}

.stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.stage-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

section {
  padding: 80px 0;
  position: relative;
}

.section-band {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line-border);
  border-bottom: 1px solid var(--line-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-header .eyebrow {
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Pillars & Architecture (Shell vs Kit)
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.pillar-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .pillar-icon-box {
  color: var(--accent-emerald);
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.pillar-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
}

.pillar-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.pillar-feature-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Feature Cards Grid (What the theme carries)
   ========================================================================== */

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

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

[data-theme="dark"] .feature-box-icon {
  color: var(--accent-emerald);
}

.feature-box h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Alternating Deep-Dive Showcases
   ========================================================================== */

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-content h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  margin-bottom: 16px;
}

.showcase-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.showcase-frame {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.showcase-frame:hover {
  transform: translateY(-2px);
}

.showcase-frame img {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-subtle);
  width: 100%;
}

.showcase-frame-action {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(19, 28, 23, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
}

.showcase-frame:hover .showcase-frame-action {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Starter Kit Operations Grid
   ========================================================================== */

.operations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.op-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.op-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.op-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.op-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.op-card:hover .op-card-thumb img {
  transform: scale(1.03);
}

.op-card-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.op-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-mint);
  margin-bottom: 6px;
}

[data-theme="dark"] .op-card-badge {
  color: var(--accent-emerald);
}

.op-card-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.op-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Screenshot Gallery & Lightbox
   ========================================================================== */

.gallery-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.gallery-filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  color: var(--text-main);
  border-color: var(--line-strong);
}

.gallery-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .gallery-filter-btn.active {
  color: #0c120f;
}

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

.gallery-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.03);
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 28, 23, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-zoom-overlay {
  opacity: 1;
}

.gallery-zoom-badge {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-md);
}

.gallery-item-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.gallery-item-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* Lightbox Dialog */
.lightbox-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  background: rgba(11, 18, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-dialog[open] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog::backdrop {
  background: transparent;
}

.lightbox-container {
  position: relative;
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-border);
  background: var(--bg-surface);
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.lightbox-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lightbox-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-subtle);
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--line-border);
  color: var(--text-main);
}

.lightbox-media {
  position: relative;
  overflow: auto;
  padding: 16px;
  background: #0f1713;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ==========================================================================
   Installation Code Hub
   ========================================================================== */

.code-hub-card {
  background: #111a15;
  border: 1px solid #1e3027;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 840px;
  margin: 0 auto;
}

.code-hub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0b120f;
  border-bottom: 1px solid #1e3027;
  gap: 12px;
}

.code-hub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #8fa397;
  transition: all var(--transition-fast);
}

.code-tab-btn:hover {
  color: #ffffff;
}

.code-tab-btn.active {
  background: #1c2b22;
  color: #52b788;
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #1c2b22;
  color: #d8ede2;
  border: 1px solid #283e32;
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  background: #25392d;
  color: #ffffff;
}

.code-panel {
  display: none;
  padding: 20px 24px;
  overflow-x: auto;
}

.code-panel.active {
  display: block;
}

.code-panel pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #d8ede2;
}

.code-comment { color: #6a8275; }
.code-cmd { color: #52b788; }
.code-flag { color: #bfe3d8; }
.code-pkg { color: #e9c46a; }
.code-class { color: #74c69d; }

/* ==========================================================================
   Offers & Pricing Section
   ========================================================================== */

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}

.offer-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.offer-card.featured {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 12px 36px var(--primary-glow);
}

[data-theme="dark"] .offer-card.featured {
  border-color: var(--accent-emerald);
}

.offer-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--primary-glow);
}

[data-theme="dark"] .offer-badge {
  background: var(--accent-emerald);
  color: #0c120f;
}

.offer-header {
  margin-bottom: 16px;
}

.offer-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.offer-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.offer-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 16px;
}

.offer-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-main);
}

.offer-billing {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.offer-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
  flex-grow: 1;
}

.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.45;
}

.offer-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.offer-features li.included svg {
  color: var(--accent-emerald);
}

.offer-features li.excluded {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.65;
}

.offer-features li.excluded svg {
  color: var(--text-dim);
}

.offer-card .btn {
  width: 100%;
}

.offers-guarantee-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

.offers-guarantee-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--line-subtle);
  margin-top: -2px;
  padding-top: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line-border);
  background: var(--bg-page);
  padding: 60px 0 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 34ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line-subtle);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

[data-theme="dark"] .copy-toast {
  color: #0c120f;
  background: var(--accent-emerald);
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-cards-grid,
  .operations-grid,
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-bar {
    height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--line-border);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .pillars-grid,
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-row.reverse {
    direction: ltr;
  }

  .feature-cards-grid,
  .operations-grid,
  .offers-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
