/* ============================================================
   CatFunTool.com — Main Stylesheet
   Dark Luxury Minimalist · Tech Aesthetic · 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:    #07070f;
  --bg-secondary:  #0d0d1e;
  --bg-tertiary:   #111128;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);

  --accent-gold:        #c9a55a;
  --accent-gold-light:  #e8c97a;
  --accent-gold-dark:   #9a7a38;
  --accent-gold-glow:   rgba(201,165,90,0.18);
  --accent-cyan:        #00d4ff;
  --accent-cyan-dark:   #0088bb;
  --accent-cyan-glow:   rgba(0,212,255,0.15);
  --accent-purple:      #8b5cf6;

  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted:     rgba(255,255,255,0.42);

  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(201,165,90,0.22);
  --border-cyan: rgba(0,212,255,0.18);

  --gradient-gold: linear-gradient(135deg,#c9a55a 0%,#e8c97a 50%,#c9a55a 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,165,90,0.12) 0%, transparent 70%);
  --gradient-card: linear-gradient(135deg, rgba(201,165,90,0.06) 0%, rgba(0,212,255,0.03) 100%);

  --shadow-card: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 40px rgba(201,165,90,0.2);
  --shadow-cyan: 0 0 40px rgba(0,212,255,0.15);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --nav-h: 80px;
  --ease:  cubic-bezier(0.4,0,0.2,1);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Noise & Grid Overlay ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-sm { padding: 60px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-secondary); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 28px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ── Navigation ────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
#site-header.scrolled {
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img, .nav-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-cta {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.25s var(--ease);
  letter-spacing: 0.02em;
}
.nav-cta:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: var(--shadow-gold);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(24px);
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border);
  z-index: 999;
}
.nav-mobile.open { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile .nav-link { display: block; padding: 14px 16px; font-size: 1rem; }
.nav-mobile .nav-cta { margin-top: 12px; text-align: center; display: block; padding: 14px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::before { opacity: 1; }
.btn-gold {
  background: var(--gradient-gold);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201,165,90,0.3);
}
.btn-gold:hover { box-shadow: 0 6px 30px rgba(201,165,90,0.5); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn-outline:hover {
  background: var(--accent-gold-glow);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--border-gold); color: var(--text-primary); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ── Section Headers ───────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201,165,90,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.section-subheading {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-subheading { margin: 0 auto; }
.section-divider {
  width: 60px; height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin-bottom: 24px;
}
.section-header.center .section-divider { margin: 0 auto 24px; }

/* ── Hero Sections ─────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,165,90,0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent-cyan);
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  display: none;
}
.hero-scroll span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* Page sub-heroes (non-fullscreen) */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}
.page-hero .hero-title { font-size: clamp(2.2rem, 4vw, 3.5rem); }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,165,90,0.3), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(201,165,90,0.08);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(201,165,90,0.08);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s var(--ease);
}
.card:hover .card-icon {
  background: rgba(201,165,90,0.15);
  box-shadow: 0 0 24px rgba(201,165,90,0.2);
}
.card-icon svg { width: 26px; height: 26px; }
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 500;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* App showcase cards */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.app-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.app-card:hover { border-color: var(--border-gold); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.app-card:hover::after { transform: scaleX(1); }
.app-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  flex-shrink: 0;
}
.app-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.app-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.app-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  padding: 4px 10px;
  background: rgba(0,212,255,0.07);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ── Stats ─────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.stat-item {
  padding: 40px 32px;
  background: var(--bg-card);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.stat-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stat-item:hover { background: var(--bg-card-hover); border-color: var(--border-gold); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.05em; }

/* ── Philosophy / Values ───────────────────────────────────── */
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.35s var(--ease);
  position: relative;
}
.value-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  opacity: 0.6;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.value-card:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* ── Timeline ──────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-gold), transparent);
}
.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
  position: absolute;
  left: -34px; top: 4px;
  width: 12px; height: 12px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(201,165,90,0.5);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.timeline-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.timeline-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s var(--ease);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-gold);
  background: rgba(201,165,90,0.05);
  box-shadow: 0 0 0 3px rgba(201,165,90,0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 140px; resize: vertical; }

/* ── News / Blog ───────────────────────────────────────────── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.news-card:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-thumb {
  width: 100%; height: 200px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}
.news-thumb svg, .news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 28px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.news-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-date { font-size: 0.78rem; color: var(--text-muted); }
.news-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.news-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Contact ───────────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.contact-info-item:hover { border-color: var(--border-gold); background: var(--bg-card-hover); }
.contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(201,165,90,0.08);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.contact-info-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }

/* ── Footer ────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; text-decoration: none; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-link:hover { color: var(--accent-gold); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-legal { display: flex; align-items: center; gap: 24px; }
.footer-legal a { font-size: 0.82rem; color: var(--text-muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent-gold); }

/* ── Badges & Tags ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.badge-gold { background: rgba(201,165,90,0.12); border: 1px solid var(--border-gold); color: var(--accent-gold); }
.badge-cyan { background: rgba(0,212,255,0.08); border: 1px solid var(--border-cyan); color: var(--accent-cyan); }
.badge-purple { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); color: var(--accent-purple); }

/* ── Tech Stack / Pills ────────────────────────────────────── */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: all 0.25s;
}
.tech-pill:hover { border-color: var(--border-gold); color: var(--text-primary); }
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Code / Terminal ───────────────────────────────────────── */
.terminal-block {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-line { color: var(--text-muted); }
.terminal-line.cmd { color: var(--accent-cyan); }
.terminal-line.out { color: var(--accent-gold-light); }
.terminal-line.comment { color: rgba(255,255,255,0.3); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent-cyan);
  animation: blink 1.2s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* ── Process Steps ─────────────────────────────────────────── */
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  opacity: 0.6;
  padding-top: 4px;
  min-width: 40px;
}
.process-content {}
.process-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.process-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Quote / Highlight Block ───────────────────────────────── */
.quote-block {
  padding: 48px;
  background: linear-gradient(135deg, rgba(201,165,90,0.06) 0%, rgba(0,212,255,0.03) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: var(--accent-gold);
  opacity: 0.08;
  line-height: 1;
}
.quote-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}
.quote-text strong { color: var(--text-primary); font-style: normal; }

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-page { padding: 140px 0 80px; min-height: 100vh; }
.legal-container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.legal-header { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.legal-meta { font-size: 0.85rem; color: var(--text-muted); }
.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}
.legal-toc h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--accent-gold); letter-spacing: 0.05em; }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s; }
.legal-toc a:hover { color: var(--accent-gold); }

.legal-part { margin-bottom: 64px; }
.legal-part-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 16px 24px;
  background: rgba(201,165,90,0.06);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 40px;
}
.legal-section { margin-bottom: 48px; scroll-margin-top: 100px; }
.legal-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.85; }
.legal-body p { margin-bottom: 16px; }
.legal-body h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 24px 0 10px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 16px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--text-primary); }
.legal-body a { color: var(--accent-gold); text-decoration: underline; }
.legal-highlight {
  background: rgba(201,165,90,0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal-highlight p { margin: 0; }
.legal-region {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.legal-region h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Misc / Utilities ──────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 60px 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.hidden { display: none !important; }
.overflow-hidden { overflow: hidden; }
.glow-gold { box-shadow: var(--shadow-gold); }
.glow-cyan { box-shadow: var(--shadow-cyan); }

/* scroll reveal base state */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid .stat-item:nth-child(1) { border-radius: var(--radius) 0 0 0; }
  .stats-grid .stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .stats-grid .stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .stats-grid .stat-item:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card { padding: 24px; }
  .quote-block { padding: 32px 28px; }
  .legal-page { padding: 100px 0 60px; }
  .page-hero { padding: 120px 0 60px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 16px; }
  .stat-num { font-size: 2rem; }
  .section-heading { font-size: 1.75rem; }
}
