:root {
  /* Primary colors - electric cyan from logo glow */
  --color-primary: #00c8ff;
  --color-primary-hover: #40d8ff;
  --color-primary-dark: #0077aa;
  --color-primary-glow: rgba(0, 200, 255, 0.35);
  --color-primary-glow-strong: rgba(0, 200, 255, 0.6);

  /* Accent - orange arrow from logo */
  --color-accent: #ff8c35;
  --color-accent-hover: #ffaa60;
  --color-accent-glow: rgba(255, 140, 53, 0.35);

  /* Green - digital side of logo */
  --color-green: #00ff88;
  --color-green-glow: rgba(0, 255, 136, 0.25);

  /* Dark backgrounds - deep navy from logo */
  --color-bg-primary: #080e1a;
  --color-bg-secondary: rgba(8, 20, 48, 0.85);
  --color-bg-dark: #050b14;
  --color-bg-card: rgba(10, 25, 55, 0.6);
  --color-bg-card-hover: rgba(0, 40, 80, 0.75);

  /* Text */
  --color-text-primary: #c8e8f0;
  --color-text-secondary: #7ab8cc;
  --color-text-light: #eef6fa;

  /* Borders */
  --color-border: rgba(0, 200, 255, 0.12);
  --color-border-hover: rgba(0, 200, 255, 0.4);
  --color-border-accent: rgba(255, 140, 53, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px var(--color-primary-glow);
  --shadow-glow-strong: 0 0 30px var(--color-primary-glow), 0 0 60px rgba(0, 200, 255, 0.2);
  --shadow-accent-glow: 0 0 20px var(--color-accent-glow), 0 0 40px rgba(255, 140, 53, 0.15);

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", sans-serif;
  --font-family-mono: "JetBrains Mono", "Fira Code", "Monaco", "Menlo", monospace;

  /* Spacing */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-64: 64px;
  --space-80: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ─── CIRCUIT BOARD BACKGROUND ─── */
body {
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color-bg-primary);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(0, 200, 255, 0.04) 59px,
      rgba(0, 200, 255, 0.04) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(0, 200, 255, 0.04) 59px,
      rgba(0, 200, 255, 0.04) 60px
    );
  color: var(--color-text-primary);
  margin: 0;
  min-height: 100vh;
  position: relative;
}

/* Ambient glow overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(0, 200, 255, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 140, 53, 0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 30, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Scanning light effect */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  z-index: 200;
  animation: scanline 10s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  5% { opacity: 0.5; }
  95% { opacity: 0.2; }
  100% { top: 100vh; opacity: 0; }
}

html { scroll-behavior: smooth; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 20%, var(--color-primary) 60%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-light);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* ─── LAYOUT ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  height: 100px;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-primary) 30%, var(--color-accent) 70%, transparent 100%);
  opacity: 0.6;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text-light);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.logo:hover { transform: scale(1.02); color: var(--color-text-light); }

.logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.5));
}

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

nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

nav a:hover {
  color: var(--color-text-light);
  background: rgba(0, 200, 255, 0.08);
}

nav a:hover::after { left: 16px; right: 16px; }

/* ─── HERO ─── */
.hero {
  padding: 80px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden; /* clip the flanking cards on small screens */
}

.hero-center {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Flanking character cards */
.hero-card {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.hero-card-left  { left: clamp(8px, 4vw, 60px); }
.hero-card-right { right: clamp(8px, 4vw, 60px); }

/* Hide flanking cards on small screens so they don't overlap content */
@media (max-width: 900px) {
  .hero-card { display: none; }
}

/* Big centered logo in hero */
.hero-logo-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  width: clamp(120px, 18vw, 180px);
  height: auto;
  filter:
    drop-shadow(0 0 24px rgba(0, 200, 255, 0.6))
    drop-shadow(0 0 60px rgba(0, 200, 255, 0.25));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 24px rgba(0, 200, 255, 0.6))
      drop-shadow(0 0 60px rgba(0, 200, 255, 0.25));
  }
  50% {
    filter:
      drop-shadow(0 0 36px rgba(0, 200, 255, 0.85))
      drop-shadow(0 0 80px rgba(0, 200, 255, 0.35))
      drop-shadow(0 0 12px rgba(255, 140, 53, 0.3));
  }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 48px auto 0;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 700px;
}

.stat-item {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  transition: background 0.2s ease;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0, 200, 255, 0.06); }

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  text-shadow: 0 0 20px var(--color-primary-glow);
  display: block;
  font-family: var(--font-family-mono);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

/* ─── TRUST BADGES ─── */
.trust-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trust-badge.cyan {
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  color: var(--color-primary);
}

.trust-badge.orange {
  background: rgba(255, 140, 53, 0.1);
  border: 1px solid rgba(255, 140, 53, 0.3);
  color: var(--color-accent);
}

.trust-badge.green {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--color-green);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes floatRight {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0, 150, 200, 0.9), rgba(0, 200, 255, 0.8));
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--color-primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--color-primary-hover);
  color: #fff;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(200, 100, 20, 0.85), rgba(255, 140, 53, 0.75));
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--color-accent-glow);
  text-decoration: none;
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent-glow);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0, 200, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(0, 20, 50, 0.4), transparent);
}

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  padding: 4px 12px;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-tag.orange {
  color: var(--color-accent);
  background: rgba(255, 140, 53, 0.1);
  border-color: rgba(255, 140, 53, 0.2);
}

/* ─── HOW IT WORKS ─── */
.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.how-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.how-step:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.how-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.how-step-icon.cyan {
  background: rgba(0, 200, 255, 0.15);
  border: 2px solid rgba(0, 200, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.how-step-icon.orange {
  background: rgba(255, 140, 53, 0.15);
  border: 2px solid rgba(255, 140, 53, 0.4);
  box-shadow: 0 0 20px rgba(255, 140, 53, 0.2);
}

.how-step-icon.green {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.how-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 0 0 8px;
}

.how-step p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.how-arrow {
  font-size: 1.8rem;
  color: var(--color-accent);
  text-shadow: 0 0 15px var(--color-accent-glow);
  padding: 0 8px;
  text-align: center;
}

/* ─── PLATFORM PILLS ─── */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 32px 0;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.2s ease;
  text-decoration: none;
}

.platform-pill:hover { transform: translateY(-2px); filter: brightness(1.2); }

.pill-sillytavern  { background: rgba(255,140,53,.1); border-color: rgba(255,140,53,.4); color: #ff9d50; }
.pill-characterai  { background: rgba(0,200,255,.1);  border-color: rgba(0,200,255,.4);  color: var(--color-primary); }
.pill-kobold       { background: rgba(148,100,200,.12); border-color: rgba(148,100,200,.4); color: #b480e0; }
.pill-voxta        { background: rgba(0,255,136,.08); border-color: rgba(0,255,136,.3); color: var(--color-green); }
.pill-backyard     { background: rgba(255,200,60,.1); border-color: rgba(255,200,60,.35); color: #ffc83c; }
.pill-pygmalion    { background: rgba(255,80,120,.1); border-color: rgba(255,80,120,.35); color: #ff6080; }
.pill-agnai        { background: rgba(80,180,255,.1); border-color: rgba(80,180,255,.35); color: #60c0ff; }
.pill-textgen      { background: rgba(180,180,60,.1); border-color: rgba(180,180,60,.3);  color: #d0d060; }

/* ─── CARDS / GRID ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0,200,255,.12);
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
}

.card:hover::before { opacity: 0.7; }

/* ─── TOOL LAYOUT ─── */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.tool-interface {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

/* ─── INPUTS ─── */
.input-group { margin-bottom: 24px; }

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(0, 10, 30, 0.7);
  color: var(--color-text-primary);
  font-size: 16px;
  font-family: var(--font-family-base);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,200,255,.15), 0 0 20px rgba(0,200,255,.1);
  background: rgba(0, 20, 50, 0.85);
}

input::placeholder, textarea::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.5;
}

textarea {
  font-family: var(--font-family-mono);
  font-size: 13px;
  min-height: 200px;
  resize: vertical;
}

.action-bar { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ─── TOOL CATEGORY ─── */
.tool-category { margin-bottom: 60px; }

.tool-category h3 {
  color: var(--color-text-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  margin-bottom: 24px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-category h3 span,
.tool-category h3 .cat-badge {
  font-size: 0.6em;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #000;
}

.grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

/* ─── LINK CARDS ─── */
.link-card {
  display: block;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  color: var(--color-primary);
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.25s ease;
}

.link-card:hover {
  border-color: rgba(0,200,255,.35);
  background: rgba(0,40,80,.6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.4), 0 0 15px rgba(0,200,255,.08);
  text-decoration: none;
  padding-right: 36px;
}

.link-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

.link-card h4 {
  margin: 0 0 5px;
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.link-card:hover h4 { color: var(--color-primary-hover); }

.link-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.link-card.featured {
  border: 1px solid rgba(0,200,255,.4);
  background: rgba(0,50,90,.5);
  box-shadow: 0 0 20px rgba(0,200,255,.08), inset 0 1px 0 rgba(0,200,255,.1);
}

/* ─── INTERACTIVE CHARACTER CARDS ─── */
.interactive-card {
  position: relative;
  width: 200px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0,200,255,.15);
  border: 1px solid rgba(0,200,255,.15);
  transition: box-shadow 0.3s ease;
}

.interactive-card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,200,255,.25);
}

.interactive-card img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

@keyframes expressionSwap {
  0%, 45% { opacity: 0; }
  55%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

.interactive-card .alt-img {
  opacity: 0;
  z-index: 2;
  animation: expressionSwap 5s infinite;
}

.floating-card-left .alt-img  { animation-delay: 0s; }
.floating-card-right .alt-img { animation-delay: 1.5s; }
.floating-card-bottom .alt-img { animation-delay: 3s; }

/* ─── CARD STAGGER LAYOUT ─── */
.card-stagger-container {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 24px;
}

.card-stagger-container.card-stagger-rail-right {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.card-stagger {
  position: relative;
  display: flex;
  pointer-events: none;
  z-index: 1;
  grid-row: 1 / -1;
}

.card-stagger-left {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 12px 0 0 12px;
  grid-column: 1;
  align-self: start;
}

.card-stagger-right {
  justify-content: flex-end;
  align-items: center;
  padding: 0 12px 0 0;
  grid-column: 2;
  justify-self: end;
  align-self: center;
}

.card-stagger-bottom {
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0 0 12px 12px;
  grid-column: 1;
  align-self: end;
}

.card-stagger .interactive-card { pointer-events: auto; }

.card-stagger-container > *:not(.card-stagger) { position: relative; z-index: 1; grid-column: 2; min-width: 0; }
.card-stagger-container.card-stagger-rail-right > *:not(.card-stagger) { grid-column: 1; }

.floating-card-left  { animation: float 6s ease-in-out infinite; }
.floating-card-right { animation: floatRight 7s ease-in-out infinite; }
.floating-card-bottom { animation: float 8s ease-in-out infinite 2s; }

/* ─── UTILITIES ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  margin: 0;
  opacity: 0.4;
}

/* ─── FOOTER ─── */
footer {
  background: linear-gradient(180deg, transparent, rgba(0,5,15,.98));
  color: var(--color-text-secondary);
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: 0.5;
}

footer h3 { color: var(--color-text-light); font-size: 17px; margin-bottom: 20px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 12px; }
footer a { color: var(--color-text-secondary); transition: all 0.2s ease; font-size: 0.9rem; }
footer a:hover { color: var(--color-primary); padding-left: 5px; }

/* ─── SUBSCRIBE ─── */
#stayInformedForm {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

#stayInformedForm input[type="email"] { flex: 2; min-width: 230px; }
#stayInformedForm button { flex: 1; min-width: 110px; }

.subscribe-section {
  background: radial-gradient(ellipse at center, rgba(0,80,120,.3) 0%, transparent 70%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .grid-3 { grid-template-columns: 1fr; }
  nav { display: none; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; }
  header { height: 80px; }
  .logo img { height: 48px; }
  .section { padding: 60px 0; }

  .card-stagger-container,
  .card-stagger-container.card-stagger-rail-right { grid-template-columns: 1fr; }

  .card-stagger {
    position: static;
    grid-row: auto;
    grid-column: 1;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0;
  }

  .card-stagger-left,
  .card-stagger-right,
  .card-stagger-bottom {
    justify-content: center;
    align-items: center;
    grid-column: 1;
    justify-self: center;
    align-self: center;
  }

  .card-stagger-container > *:not(.card-stagger),
  .card-stagger-container.card-stagger-rail-right > *:not(.card-stagger) { grid-column: 1; }

  .how-steps { grid-template-columns: 1fr; max-width: 340px; }
  .how-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ═══ LATEST UPDATES / NEWS ═══ */
.latest-updates-section {
  padding: 60px 0;
}

.update-card {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.update-card:hover {
  background: var(--color-bg-card-hover);
  transform: translateX(4px);
}

.update-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.update-card h3 {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.update-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ═══ NEWS PAGE LAYOUT ═══ */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}

.sidebar .card {
  background: var(--color-bg-card);
  border-radius: 8px;
  padding: 20px;
}

.sidebar h3 {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0 0 12px 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.sidebar ul li a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.sidebar ul li a:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}
