﻿/* ═══════════════════════════════════════════════════════════
   POSTER TOOLS — HOMEPAGE STYLES
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary:          #00d4c8;
  --accent:           #9945ff;
  --primary-gradient: linear-gradient(135deg, #00d4c8, #9945ff);
  --card-bg:          rgba(255, 255, 255, 0.025);
  --card-border:      rgba(255, 255, 255, 0.08);
  --text:             #ffffff;
  --text-muted:       #8a8aaa;
  --page-max:         1380px;
  --page-pad:         2.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Gabarito', sans-serif;
  background-color: #060511;
  background-image:
    radial-gradient(ellipse 75% 55% at 12% 0%, rgba(0, 212, 200, 0.13) 0%, transparent 58%),
    radial-gradient(ellipse 58% 38% at 96% 24%, rgba(153, 69, 255, 0.055) 0%, transparent 52%),
    radial-gradient(ellipse 95% 70% at 50% 100%, rgba(35, 24, 88, 0.35) 0%, transparent 62%),
    linear-gradient(180deg, #090714 0%, #090714 24%, #0c0a1d 58%, #090813 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(255,255,255,0.24), transparent 72%);
  opacity: 0.12;
}

/* ── HEADER ─────────────────────────────────────────────────── */

header {
  padding: 0 2.5rem;
  min-height: 76px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(28, 34, 62, 0.96), rgba(18, 22, 42, 0.94));
  border-bottom: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--page-max);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.88rem;
  text-decoration: none;
  padding-right: 0.3rem;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(135deg, rgba(20, 26, 56, 0.98), rgba(9, 11, 28, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 28px rgba(0,0,0,0.26);
  isolation: isolate;
}

.logo-container::before {
  content: '';
  position: absolute;
  inset: -12px -16px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 50%, rgba(153, 69, 255, 0.28), rgba(79, 125, 255, 0.1) 48%, transparent 74%);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -2;
}

.logo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 48%);
  z-index: -1;
}

.logo-container img {
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(153,69,255,0.4));
  transition: filter 0.3s, transform 0.3s;
}
.logo-container img:hover {
  filter: drop-shadow(0 0 18px rgba(153,69,255,0.65));
  transform: scale(1.06);
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(100deg, #ffffff 0%, #c8aaff 40%, #9945ff 75%, #6610ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(153, 69, 255, 0.35));
}

.nav-links {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,240,0.12), rgba(166,0,255,0.12));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,255,240,0.6), rgba(166,0,255,0.6));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: white;
  border-color: rgba(0,255,240,0.34);
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07));
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-mobile-menu {
  display: none;
  position: absolute;
  right: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1.1rem;
  transition: background 0.2s;
  color: var(--text);
}
.header-mobile-menu:hover { background: rgba(255,255,255,0.14); }

.header-mobile-dropdown {
  position: absolute;
  top: 100%;
  right: 1rem;
  background: rgba(10, 8, 24, 0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  z-index: 1000;
  display: none;
  min-width: 200px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  animation: fadeDown 0.15s ease;
}
.header-mobile-dropdown.active { display: block; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-mobile-dropdown a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.header-mobile-dropdown a:last-child { border-bottom: none; }
.header-mobile-dropdown a:hover { background: rgba(0,212,200,0.07); }

/* ── HERO ───────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: 2.5rem var(--page-pad) 1.55rem;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(170px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}
.hero-glow-tl {
  width: 720px; height: 720px;
  background: rgba(0, 212, 200, 0.045);
  top: -180px; left: -180px;
}
.hero-glow-br {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.hero-text {
  flex: 0 1 530px;
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-eyebrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.56rem 0.94rem;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f2fffd;
  background: linear-gradient(135deg, rgba(0,212,200,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(0,212,200,0.2);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.14);
}

.hero-eyebrow span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00d4c8, #69f0e6);
  box-shadow: 0 0 12px rgba(0, 212, 200, 0.42);
}

.hero-title {
  font-size: clamp(3.7rem, 7vw, 6.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 1.65rem;
  animation: fadeUp 0.6s ease-out both;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.14rem;
  color: rgba(221, 220, 244, 0.82);
  line-height: 1.78;
  max-width: 560px;
  margin-bottom: 1.35rem;
  text-wrap: balance;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero-visual {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  animation: fadeUp 0.7s ease-out 0.25s both;
}

.hero-collage {
  position: relative;
  width: min(760px, 100%);
  min-height: 610px;
}

.hero-panel {
  --panel-accent: #35c7bd;
  --panel-tint: rgba(53, 199, 189, 0.06);
  position: absolute;
  background: rgba(11, 9, 24, 0.95);
  border: 1px solid color-mix(in srgb, var(--panel-accent) 14%, rgba(255,255,255,0.11));
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.025),
    0 0 0 1px color-mix(in srgb, var(--panel-accent) 10%, transparent),
    0 18px 42px color-mix(in srgb, var(--panel-accent) 14%, transparent);
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--panel-accent) 70%, transparent), var(--panel-accent));
  opacity: 0.55;
  z-index: 2;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--panel-accent) 20%, transparent), transparent 34%),
    radial-gradient(circle at 82% 84%, color-mix(in srgb, var(--panel-accent) 12%, transparent), transparent 38%);
  filter: blur(22px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}

.hero-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel-tint) 70%, rgba(255,255,255,0.03)), rgba(255,255,255,0.02));
  border-bottom: 1px solid color-mix(in srgb, var(--panel-accent) 10%, rgba(255,255,255,0.07));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--panel-accent) 8%, rgba(255,255,255,0.04));
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel-tint) 72%, rgba(255,255,255,0.03)), rgba(255,255,255,0.02));
  border: 1px solid color-mix(in srgb, var(--panel-accent) 18%, rgba(255,255,255,0.08));
  color: var(--panel-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-caption {
  color: rgba(255,255,255,0.42);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-panel img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center top;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--panel-accent) 10%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-tint) 36%, rgba(18, 16, 36, 0.92)), rgba(10, 9, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 0.55rem;
  cursor: zoom-in;
}

.hero-panel-showcase {
  --panel-accent: #00bfa5;
  --panel-tint: rgba(0, 191, 165, 0.08);
}

.hero-panel-overlay {
  --panel-accent: #4f7dff;
  --panel-tint: rgba(79, 125, 255, 0.08);
}

.hero-panel-cardlab {
  --panel-accent: #8e24aa;
  --panel-tint: rgba(142, 36, 170, 0.08);
}

.hero-panel-main {
  top: 76px;
  left: 8px;
  width: calc(100% - 134px);
  z-index: 2;
  transform: rotate(-4deg);
}

.hero-panel-main img {
  aspect-ratio: 2 / 1;
}

.hero-panel-top {
  top: 4px;
  right: 2px;
  width: 380px;
  z-index: 3;
  transform: rotate(4.5deg);
}

.hero-panel-top img {
  aspect-ratio: 2 / 1;
}

.hero-panel-bottom {
  right: 18px;
  bottom: 8px;
  width: 372px;
  z-index: 4;
  transform: rotate(3deg);
}

.hero-panel-bottom img {
  aspect-ratio: 2 / 1;
}

/* ── TOOLS MAIN ─────────────────────────────────────────────── */

.tools-main {
  max-width: calc(var(--page-max) + 84px);
  margin: 0 auto;
  padding: 1.4rem var(--page-pad) 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-transition {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.section-transition::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 780px);
  height: 72px;
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 127, 255, 0.08), transparent 56%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.035), transparent);
  filter: blur(12px);
  opacity: 0.9;
}

.section-transition-track {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.transition-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.transition-center {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.72), rgba(255,255,255,0.16));
  box-shadow: 0 0 18px rgba(79, 125, 255, 0.16);
}

.transition-center-wide {
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 212, 200, 0.72), rgba(79, 125, 255, 0.76), rgba(153, 69, 255, 0.72));
  box-shadow: 0 0 20px rgba(79, 125, 255, 0.18);
}

.section-transition-hero {
  margin: 0.1rem 0 0.55rem;
}

.section-transition-hero::before {
  width: min(100%, 960px);
  height: 104px;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 125, 255, 0.12), transparent 56%),
    radial-gradient(circle at 30% 50%, rgba(0, 212, 200, 0.08), transparent 38%),
    radial-gradient(circle at 70% 50%, rgba(153, 69, 255, 0.08), transparent 38%);
  filter: blur(18px);
}

.section-transition-mid {
  margin: 0.12rem 0 0.3rem;
}

.section-transition-mid .transition-center {
  background: linear-gradient(90deg, rgba(0, 212, 200, 0.12), rgba(0, 212, 200, 0.76), rgba(0, 212, 200, 0.12));
  box-shadow: 0 0 18px rgba(0, 212, 200, 0.14);
}

.section-transition-mid-alt .transition-center {
  background: linear-gradient(90deg, rgba(142, 36, 170, 0.12), rgba(142, 36, 170, 0.76), rgba(142, 36, 170, 0.12));
  box-shadow: 0 0 18px rgba(142, 36, 170, 0.14);
}

.section-transition-closing {
  margin: -0.05rem 0 -0.45rem;
}

.section-transition-closing::before {
  width: min(100%, 1040px);
  height: 72px;
  background:
    radial-gradient(circle at 50% 50%, rgba(79, 125, 255, 0.1), transparent 58%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  filter: blur(14px);
}

.tool-section {
  background: linear-gradient(180deg, rgba(18, 16, 36, 0.86), rgba(12, 10, 26, 0.9));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 2.35rem 2.7rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  --tool-accent: #00d4c8;
  --tool-tint-1: rgba(0, 212, 200, 0.18);
  --tool-tint-2: rgba(153, 69, 255, 0.16);
  --tool-border-strong: rgba(0, 212, 200, 0.22);
  --tool-border-soft: rgba(255,255,255,0.1);
  --tool-card-bg: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  --tool-card-hover: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  --tool-section-glow-a: rgba(153, 69, 255, 0.07);
  --tool-section-glow-b: rgba(0, 212, 200, 0.05);
}

.tool-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--tool-section-glow-a), transparent 32%),
    radial-gradient(circle at 0% 100%, var(--tool-section-glow-b), transparent 30%);
  pointer-events: none;
}

.tool-section:hover {
  border-color: rgba(255,255,255,0.13);
  box-shadow: 0 18px 56px rgba(0,0,0,0.26);
}

.tool-section-inner {
  display: block;
  max-width: none;
  margin: 0 auto;
}

.tool-info {
  width: 100%;
  max-width: none;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.tool-intro {
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: center;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Tool label tag */
.tool-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tool-accent) 72%, #eef3ff);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tool-tint-1) 72%, rgba(255,255,255,0.025)), rgba(255,255,255,0.02));
  border: 1px solid color-mix(in srgb, var(--tool-border-strong) 72%, rgba(255,255,255,0.06));
  padding: 0.28rem 0.72rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.tool-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--tool-accent);
  box-shadow: 0 0 8px var(--tool-tint-1);
}

.tool-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

#poster-lab .tool-title {
  white-space: nowrap;
}

.tool-description {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin-bottom: 1.25rem;
  max-width: none;
}

.tool-experience {
  display: block;
  padding-top: 1.1rem;
}

.tool-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 760px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--tool-card-bg);
  border: 1px solid var(--tool-border-soft);
  border-radius: 24px;
  padding: 0.22rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 12px 26px rgba(0,0,0,0.1);
}

.tool-fact {
  min-width: 0;
  padding: 0.82rem 1rem 0.86rem;
  border-radius: 18px;
  background: transparent;
  border: 0;
}

.tool-fact + .tool-fact {
  border-top: 1px solid rgba(255,255,255,0.07);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.tool-fact-label {
  display: block;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tool-accent) 70%, rgba(255,255,255,0.66));
  margin-bottom: 0.42rem;
}

.tool-fact-value {
  margin: 0;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.52;
  color: rgba(255,255,255,0.8);
  text-wrap: pretty;
}

/* Feature list: 2-col icon + name + desc */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.95rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: flex-start;
  column-gap: 0.8rem;
  row-gap: 0.42rem;
  min-height: 0;
  height: 100%;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    var(--tool-card-bg);
  border: 1px solid var(--tool-border-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 12px 26px rgba(0,0,0,0.1);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--tool-accent) 16%, transparent), transparent 38%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--tool-accent) 14%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.035), transparent 42%);
  opacity: 1;
  pointer-events: none;
}

.feature-item::after {
  content: none;
}

.feature-item:hover {
  transform: translateY(-2px);
  border-color: var(--tool-border-strong);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.016)),
    var(--tool-card-hover);
  box-shadow: 0 16px 30px rgba(0,0,0,0.14);
}

.fi-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  grid-column: 1;
  grid-row: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tool-accent) 78%, rgba(255,255,255,0.08)), color-mix(in srgb, var(--tool-accent) 58%, rgba(12,16,28,0.18)));
  border: 1px solid var(--tool-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.12);
  margin-left: 0;
  margin-top: 0;
}

.fi-text {
  display: contents;
}
.fi-text strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-height: 0;
  display: flex;
  align-items: center;
  font-size: 0.91rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.22;
  white-space: normal;
  text-wrap: balance;
}
.fi-text span {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  min-height: 0;
  font-size: 0.77rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.64);
}

.tool-launch-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--tool-border-soft) 80%, rgba(255,255,255,0.08));
  background: linear-gradient(180deg, color-mix(in srgb, var(--tool-accent) 14%, rgba(255,255,255,0.05)), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.tool-launch-btn:hover {
  transform: translateY(-1px);
  border-color: var(--tool-border-strong);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tool-accent) 20%, rgba(255,255,255,0.07)), rgba(255,255,255,0.035));
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

#showcase-lab {
  --tool-accent: #00bfa5;
  --tool-tint-1: rgba(0, 191, 165, 0.18);
  --tool-tint-2: rgba(0, 191, 165, 0.12);
  --tool-border-strong: rgba(0, 191, 165, 0.26);
  --tool-border-soft: rgba(0, 191, 165, 0.14);
  --tool-card-bg: linear-gradient(180deg, rgba(22, 36, 50, 0.84), rgba(16, 22, 38, 0.62));
  --tool-card-hover: linear-gradient(180deg, rgba(28, 44, 60, 0.9), rgba(19, 25, 42, 0.68));
  --tool-section-glow-a: rgba(0, 191, 165, 0.08);
  --tool-section-glow-b: rgba(0, 191, 165, 0.1);
}

#poster-lab {
  --tool-accent: #4f7dff;
  --tool-tint-1: rgba(79, 125, 255, 0.18);
  --tool-tint-2: rgba(79, 125, 255, 0.12);
  --tool-border-strong: rgba(79, 125, 255, 0.28);
  --tool-border-soft: rgba(79, 125, 255, 0.14);
  --tool-card-bg: linear-gradient(180deg, rgba(29, 30, 52, 0.84), rgba(25, 18, 34, 0.64));
  --tool-card-hover: linear-gradient(180deg, rgba(35, 37, 63, 0.92), rgba(29, 21, 38, 0.72));
  --tool-section-glow-a: rgba(79, 125, 255, 0.12);
  --tool-section-glow-b: rgba(79, 125, 255, 0.08);
}

#card-lab {
  --tool-accent: #8e24aa;
  --tool-tint-1: rgba(142, 36, 170, 0.18);
  --tool-tint-2: rgba(142, 36, 170, 0.12);
  --tool-border-strong: rgba(142, 36, 170, 0.24);
  --tool-border-soft: rgba(142, 36, 170, 0.14);
  --tool-card-bg: linear-gradient(180deg, rgba(38, 25, 58, 0.84), rgba(22, 18, 38, 0.64));
  --tool-card-hover: linear-gradient(180deg, rgba(46, 31, 69, 0.92), rgba(25, 20, 41, 0.72));
  --tool-section-glow-a: rgba(142, 36, 170, 0.12);
  --tool-section-glow-b: rgba(142, 36, 170, 0.08);
}

.hero-collage::after {
  content: none;
}

/* ── CLOSING SECTION ────────────────────────────────────────── */

.closing-section {
  padding: 0.35rem var(--page-pad) 3rem;
}

.closing-card {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 1.15rem 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(18, 16, 36, 0.88), rgba(12, 10, 26, 0.92));
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,0.24);
}

.closing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 191, 165, 0.08), transparent 32%),
    radial-gradient(circle at 88% 100%, rgba(79, 125, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.025), transparent 44%);
  pointer-events: none;
}

.closing-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.closing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  min-width: 0;
}

.closing-text {
  font-size: 1.12rem;
  line-height: 1.42;
  color: rgba(236, 237, 248, 0.9);
  max-width: 72ch;
  font-weight: 500;
  margin-bottom: 0;
  text-wrap: pretty;
}

.closing-action-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.closing-support-btn {
  display: inline-flex;
  margin-bottom: 0;
  transition: transform 0.18s ease;
}

.closing-support-btn:hover {
  transform: translateY(-1px);
}

.bmc-large img { height: 42px; }

.closing-discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.closing-discord-icon {
  width: auto;
  height: 42px;
  display: block;
  flex-shrink: 0;
}

.closing-discord-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ── LIGHTBOX ───────────────────────────────────────────────── */

.home-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.home-lightbox.active { display: flex; opacity: 1; }

.home-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.home-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.6);
}

.home-lightbox-close {
  position: absolute;
  top: -44px; right: -44px;
  color: white;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.home-lightbox-close:hover { background: rgba(200,0,0,0.6); }

/* ── ANIMATIONS ─────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 1280px) {
  :root { --page-pad: 2rem; }
  .tool-section { padding: 2.15rem 2.2rem; }
  .tool-grid { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
  .section-transition-track { width: min(100%, 680px); }
}

@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .tool-intro {
    max-width: 760px;
  }

  .tool-experience {
    padding-top: 0;
  }

  .section-transition {
    margin: 0;
  }

  .section-transition::before {
    width: min(100%, 520px);
  }

  .closing-section {
    padding-top: 0.25rem;
  }

  .closing-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .closing-text {
    max-width: 100%;
  }
}

@media (max-width: 1100px) {
  .hero-inner { gap: 2.5rem; }
  .hero-title { font-size: clamp(3.4rem, 7vw, 5.4rem); }
  .hero-collage { min-height: 560px; }
  .hero-eyebrow { justify-content: center; }
  .hero-panel-main { width: calc(100% - 120px); }
  .hero-panel-top { width: 344px; }
  .hero-panel-bottom { width: 332px; }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    position: absolute;
  }

  header {
    padding: 0.78rem 1.15rem;
    min-height: 64px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .header-desktop {
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-links { display: none; }

  .brand-lockup {
    gap: 0.78rem;
    padding-right: 0;
  }

  .logo-container {
    padding: 0.46rem;
    border-radius: 16px;
  }

  .logo-container::before {
    inset: -10px -12px;
    filter: blur(8px);
    opacity: 0.55;
  }

  .logo-container img {
    height: 30px;
  }

  .site-title {
    font-size: 1.65rem;
  }

  .header-mobile-menu {
    display: block;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .header-mobile-dropdown {
    right: 0.85rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.42);
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 1.35rem 1.2rem;
  }

  .hero-glow {
    display: none;
  }

  .hero-inner { flex-direction: column; gap: 1.9rem; text-align: center; }
  .hero-text {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle { max-width: 100%; }
  .hero-visual {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    min-height: 0;
    margin-top: 0;
  }
  .hero-collage {
    width: 100%;
    min-height: 0 !important;
    display: grid;
    gap: 0.9rem;
    margin-top: 0;
  }
  .hero-panel {
    position: static !important;
    inset: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 18px;
    margin: 0;
  }
  .hero-panel-main,
  .hero-panel-top,
  .hero-panel-bottom {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
    margin: 0;
  }

  .hero-eyebrow span,
  .tool-section {
    backdrop-filter: none;
  }
}

@media (max-width: 768px) {
  :root { --page-pad: 1.2rem; }

  header {
    padding: 0.72rem 1rem;
    min-height: 58px;
  }

  .header-desktop {
    gap: 0.68rem;
  }

  .site-title {
    font-size: 1.45rem;
    letter-spacing: 0.05em;
  }

  .logo-container {
    padding: 0.44rem;
    border-radius: 14px;
  }

  .logo-container img {
    height: 28px;
  }

  .header-mobile-menu {
    right: 0.8rem;
    padding: 0.34rem 0.58rem;
    font-size: 1rem;
  }

  .header-mobile-dropdown {
    right: 0.7rem;
    min-width: 180px;
  }

  .hero-section {
    padding: 1.45rem 1rem 0.9rem;
  }

  .hero-inner {
    gap: 1.45rem;
  }

  .hero-title {
    font-size: clamp(2.7rem, 13vw, 3.35rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.62;
    margin-bottom: 1rem;
  }

  .hero-eyebrow {
    gap: 0.45rem;
  }

  .hero-eyebrow span {
    min-height: 34px;
    padding: 0.45rem 0.78rem;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .hero-collage {
    gap: 0.82rem;
  }
  .hero-panel-bar { padding: 0.72rem 0.82rem; }
  .hero-panel::before { display: none; }
  .panel-chip {
    padding: 0.28rem 0.58rem;
    font-size: 0.6rem;
  }
  .hero-panel img { aspect-ratio: 2 / 1; }
  .hero-panel img { padding: 0.38rem; }
  .panel-caption { display: none; }
  .hero-collage::after {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    margin-top: 0.3rem;
    text-align: center;
  }

  .tools-main { padding: 0.85rem 1rem 2rem; gap: 1rem; }
  .tool-section { padding: 1.35rem 1rem; border-radius: 18px; }
  .tool-grid { gap: 1.2rem; }
  .section-transition-track {
    width: min(100%, 320px);
    gap: 0.6rem;
  }
  .section-transition::before {
    height: 54px;
    filter: blur(10px);
  }
  .transition-center-wide {
    width: 34px;
  }
  .tool-label {
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.8rem;
  }
  .tool-title {
    font-size: 1.58rem;
    margin-bottom: 0.75rem;
  }
  #poster-lab .tool-title { white-space: normal; }
  .tool-description {
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 1rem;
  }
  .tool-facts {
    padding: 0.28rem;
    border-radius: 20px;
  }
  .tool-fact { padding: 0.95rem 0.95rem 0.98rem; }
  .tool-fact-label { font-size: 0.68rem; }
  .tool-fact-value {
    max-width: none;
    font-size: 0.91rem;
    line-height: 1.58;
  }
  .tool-launch-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
  }

  .closing-section { padding: 0.75rem 1.2rem 2.75rem; }
  .closing-card {
    width: 100%;
    padding: 1.1rem 1rem;
  }
  .closing-bar {
    gap: 0.9rem;
  }
  .closing-copy {
    align-items: center;
    text-align: center;
  }
  .closing-action-group {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .closing-text {
    font-size: 1rem;
  }

  .home-lightbox-close { top: -44px; right: 0; }
}

@media (max-width: 480px) {
  :root { --page-pad: 0.9rem; }

  header {
    padding: 0.65rem 0.85rem;
  }

  .site-title {
    font-size: 1.28rem;
    letter-spacing: 0.045em;
  }

  .logo-container {
    padding: 0.42rem;
  }

  .logo-container img {
    height: 26px;
  }

  .hero-section {
    padding: 1.2rem 0.9rem 0.7rem;
  }

  .hero-title { font-size: 2.35rem; }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .tools-main {
    padding: 0.75rem 0.9rem 1.8rem;
  }

  .tool-section {
    padding: 1.15rem 0.85rem;
    border-radius: 16px;
  }

  .tool-title {
    font-size: 1.42rem;
  }
}
