/* ============================================================
   HT99 TOOLS — PREMIUM DESIGN SYSTEM
   Deep organic colors | Glassmorphism | Live animations
   ============================================================ */

:root {
  /* ── Deep Organic Palette (NO transparent colors) ── */
  --bg-void:        #0A1410;     /* Deepest canvas */
  --bg-deep:        #0E1B16;     /* Primary body background */
  --bg-panel:       #14241D;     /* Card surface */
  --bg-panel-2:     #1A2F25;     /* Hover surface */
  --bg-elevated:    #1F3A2D;     /* Elevated panel */

  --emerald-900:    #052E21;     /* Emerald deep */
  --emerald-700:    #0A4F3A;     /* Emerald */
  --emerald-500:    #147158;     /* Emerald mid */
  --emerald-300:    #4FB38C;     /* Emerald light */

  --gold-900:       #5C4419;     /* Gold deep */
  --gold-700:       #8A6914;     /* Gold */
  --gold-500:       #D4A574;     /* Gold primary accent */
  --gold-300:       #E8C897;     /* Gold light */
  --gold-100:       #F4E5C8;     /* Gold pale */

  --cream-100:      #FAF7F0;     /* Primary text */
  --cream-300:      #E8E1D2;     /* Body text */
  --cream-500:      #B8AE9A;     /* Muted text */
  --cream-700:      #8A8170;     /* Faint text */

  --rose-500:       #C26B7A;
  --amber-500:      #D9A05B;
  --sky-500:        #5B9DBE;
  --violet-500:     #8E7DBE;
  --lime-500:       #9CC57E;
  --cyan-500:       #6FB6C2;
  --fuchsia-500:    #B673AB;
  --orange-500:     #D08A55;

  /* ── Type ── */
  --font-sans:      'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-display:   'Fraunces', 'Playfair Display', Georgia, serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;

  /* ── Effects ── */
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  --shadow-sm:      0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:      0 20px 50px rgba(0,0,0,0.45);
  --shadow-glow:    0 0 40px rgba(212,165,116,0.15);

  --transition-fast:    150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:    300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:    500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce:  400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--cream-300);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20,113,88,0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(212,165,116,0.10), transparent);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--cream-100);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--gold-500); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-300); }
img { max-width: 100%; height: auto; }
code, pre {
  font-family: var(--font-mono);
  background: var(--bg-void);
  border-radius: var(--radius-sm);
}
code { padding: 2px 6px; font-size: 0.92em; color: var(--gold-300); }
pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border-left: 3px solid var(--gold-700);
  margin: 1.2rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
pre code { padding: 0; background: transparent; color: var(--cream-300); }
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--gold-500);
  background: rgba(212,165,116,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--cream-100);
  font-style: italic;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 820px; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold-500); }
.text-emerald { color: var(--emerald-300); }
.text-cream { color: var(--cream-100); }
.text-muted { color: var(--cream-500); }
.text-faint { color: var(--cream-700); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
  color: var(--bg-void);
  box-shadow: 0 4px 16px rgba(212,165,116,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,165,116,0.45);
  color: var(--bg-void);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:active::after { width: 300px; height: 300px; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--cream-100);
  border: 1px solid var(--emerald-500);
}
.btn-secondary:hover {
  background: var(--emerald-700);
  color: var(--cream-100);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream-300);
  border: 1px solid rgba(212,165,116,0.3);
}
.btn-ghost:hover {
  background: rgba(212,165,116,0.08);
  border-color: var(--gold-500);
  color: var(--gold-300);
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 20, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20,113,88,0.25);
  transition: all var(--transition-base);
}
.site-header.scrolled {
  background: rgba(10, 20, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--cream-100);
  text-decoration: none;
}
.brand:hover { color: var(--gold-500); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-700), var(--gold-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-100);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(212,165,116,0.3);
  position: relative;
  overflow: hidden;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s;
}
.brand:hover .brand-mark::before { transform: translateX(100%); }

.nav-menu { display: flex; gap: 0.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  color: var(--cream-300);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--gold-300);
  background: rgba(212,165,116,0.08);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown > .dropdown-toggle::after {
  content: '▾';
  font-size: 0.65rem;
  margin-left: 0.3rem;
  opacity: 0.7;
}
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  background: var(--bg-panel);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  list-style: none;
  margin: 0;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--cream-300);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.dropdown-menu li a:hover { background: var(--bg-elevated); color: var(--gold-300); }

.nav-cta {
  display: flex; align-items: center; gap: 0.6rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--cream-100);
  font-size: 1.2rem;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: 72px;
  right: -100%;
  width: min(320px, 90vw);
  height: calc(100vh - 72px);
  background: var(--bg-panel);
  border-left: 1px solid var(--emerald-700);
  padding: 1.5rem;
  overflow-y: auto;
  transition: right var(--transition-base);
  z-index: 99;
}
.mobile-nav.open { right: 0; }
.mobile-nav details { margin-bottom: 0.4rem; }
.mobile-nav summary {
  padding: 0.7rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--cream-100);
  font-weight: 500;
}
.mobile-nav summary:hover { background: var(--bg-elevated); }
.mobile-nav a {
  display: block;
  padding: 0.5rem 1rem 0.5rem 2rem;
  color: var(--cream-300);
  font-size: 0.9rem;
}
.mobile-nav a:hover { color: var(--gold-300); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}
.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
.hero-bg-orb.orb-1 { width: 380px; height: 380px; background: var(--emerald-500); top: -100px; left: -80px; }
.hero-bg-orb.orb-2 { width: 320px; height: 320px; background: var(--gold-700); bottom: -100px; right: -60px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(20,113,88,0.15);
  border: 1px solid var(--emerald-500);
  border-radius: 999px;
  color: var(--emerald-300);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--emerald-300);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--cream-100) 0%, var(--gold-300) 60%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .accent { font-family: var(--font-display); font-style: italic; }
.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--cream-300);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(20,113,88,0.25);
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-stat .label { color: var(--cream-500); font-size: 0.9rem; }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.search-input {
  width: 100%;
  padding: 1rem 1.4rem 1rem 3.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-md);
  color: var(--cream-100);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all var(--transition-base);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}
.search-input::placeholder { color: var(--cream-700); }
.search-input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212,165,116,0.15), inset 0 1px 4px rgba(0,0,0,0.3);
  background: var(--bg-panel-2);
}
.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-500);
  font-size: 1.1rem;
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-md);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: var(--cream-300);
  border-bottom: 1px solid rgba(20,113,88,0.2);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--bg-elevated); color: var(--gold-300); padding-left: 1.4rem; }
.search-results a .badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: rgba(20,113,88,0.3);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--emerald-300);
  margin-left: 0.4rem;
  text-transform: capitalize;
}
.search-results .no-results {
  padding: 1.2rem;
  text-align: center;
  color: var(--cream-500);
  font-size: 0.9rem;
}

/* ============================================================
   CARDS — GLASSMORPHIC
   ============================================================ */
.glass-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
  border: 1px solid rgba(20,113,88,0.35);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: all var(--transition-base);
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-700);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212,165,116,0.08);
}
.glass-card:hover::before { opacity: 1; }

/* Tool card grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  text-decoration: none;
  color: var(--cream-300);
}
.tool-card .tool-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: var(--gold-300);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(20,113,88,0.3);
}
.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--gold-700), var(--gold-900));
  color: var(--cream-100);
}
.tool-card .tool-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream-100);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.tool-card:hover .tool-title { color: var(--gold-300); }
.tool-card .tool-desc {
  font-size: 0.88rem;
  color: var(--cream-500);
  line-height: 1.55;
  flex-grow: 1;
}
.tool-card .tool-cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-500);
  transition: gap var(--transition-fast);
}
.tool-card:hover .tool-cta { gap: 0.7rem; }

/* Category card */
.category-card {
  display: block;
  padding: 1.8rem 1.6rem;
  text-decoration: none;
  color: var(--cream-300);
  position: relative;
}
.category-card .cat-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--emerald-500);
}
.category-card .cat-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream-100);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.category-card .cat-desc {
  font-size: 0.9rem;
  color: var(--cream-500);
  margin-bottom: 0.8rem;
}
.category-card .cat-count {
  font-size: 0.8rem;
  color: var(--gold-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.category-card:hover .cat-name { color: var(--gold-300); }

/* Article card */
.article-card {
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream-300);
  height: 100%;
}
.article-card .article-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--emerald-700), var(--gold-900));
  position: relative;
  overflow: hidden;
}
.article-card .article-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}
.article-card .article-body { padding: 1.4rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-card .article-meta {
  display: flex; gap: 0.7rem; align-items: center;
  font-size: 0.78rem;
  color: var(--cream-700);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.article-card .article-meta .tag {
  background: rgba(20,113,88,0.25);
  color: var(--emerald-300);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}
.article-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--cream-100);
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.35;
}
.article-card:hover h3 { color: var(--gold-300); }
.article-card .article-excerpt {
  font-size: 0.9rem;
  color: var(--cream-500);
  line-height: 1.55;
  flex-grow: 1;
}
.article-card .article-cta {
  margin-top: 1rem;
  color: var(--gold-500);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ============================================================
   TOOL INTERFACE — INPUT / OUTPUT
   ============================================================ */
.tool-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 980px) { .tool-shell { grid-template-columns: 1fr; } }
.tool-main { min-width: 0; }
.tool-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.tool-interface {
  background: var(--bg-panel);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.tool-interface::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold-500));
}
.tool-interface h2 {
  font-size: 1.5rem;
  margin-top: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-100);
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--gold-500); }
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-void);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-sm);
  color: var(--cream-100);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.18);
}
.form-control::placeholder { color: var(--cream-700); }
textarea.form-control { resize: vertical; min-height: 120px; font-family: var(--font-mono); font-size: 0.9rem; }
select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4A574' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.input-group {
  display: flex; align-items: stretch;
}
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .input-suffix {
  padding: 0 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--emerald-700);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex; align-items: center;
  color: var(--cream-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.tool-result {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(20,113,88,0.15), rgba(212,165,116,0.06));
  border: 1px solid var(--gold-700);
  border-radius: var(--radius-md);
  display: none;
  animation: slideUp 0.4s ease-out;
}
.tool-result.show { display: block; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.tool-result h4 { margin-top: 0; color: var(--gold-300); }
.result-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-500);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.3rem 0;
}
.result-row {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(20,113,88,0.25);
  font-size: 0.95rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--cream-500); }
.result-row .value { color: var(--cream-100); font-weight: 600; font-family: var(--font-mono); }

.tool-options {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-bottom: 1rem;
}
.checkbox-pill, .radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-void);
  border: 1px solid var(--emerald-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--cream-300);
  transition: all var(--transition-fast);
  user-select: none;
}
.checkbox-pill:hover, .radio-pill:hover { border-color: var(--gold-500); }
.checkbox-pill input, .radio-pill input { accent-color: var(--gold-500); }
.checkbox-pill.checked, .radio-pill.checked {
  background: rgba(212,165,116,0.1);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.range-control {
  width: 100%;
  accent-color: var(--gold-500);
  height: 6px;
}
.range-label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--cream-500);
  margin-bottom: 0.3rem;
}
.range-label .val { color: var(--gold-500); font-weight: 700; font-family: var(--font-mono); }

.copy-btn {
  background: transparent;
  border: 1px solid var(--emerald-700);
  color: var(--cream-300);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}
.copy-btn:hover { border-color: var(--gold-500); color: var(--gold-300); }
.copy-btn.copied { background: var(--emerald-700); border-color: var(--emerald-300); color: var(--cream-100); }

/* ============================================================
   EDITORIAL CONTENT (Article body)
   ============================================================ */
.prose {
  color: var(--cream-300);
  font-size: 1.06rem;
  line-height: 1.8;
}
.prose h2 { margin-top: 2.5rem; color: var(--cream-100); }
.prose h2::before {
  content: '◆';
  color: var(--gold-500);
  margin-right: 0.5rem;
  font-size: 0.8em;
}
.prose h3 { margin-top: 2rem; color: var(--gold-300); font-family: var(--font-sans); font-weight: 600; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--cream-100); font-weight: 600; }
.prose em { color: var(--gold-300); }
.prose a { color: var(--gold-500); text-decoration: underline; text-decoration-color: rgba(212,165,116,0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold-500); }
.prose table {
  width: 100%; border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prose th, .prose td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(20,113,88,0.25);
  text-align: left;
  font-size: 0.92rem;
}
.prose th { background: var(--bg-elevated); color: var(--gold-300); font-weight: 600; }
.prose tr:last-child td { border-bottom: none; }
.prose tr:hover td { background: rgba(20,113,88,0.08); }

.callout {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-500);
  background: rgba(212,165,116,0.06);
}
.callout-tip { border-left-color: var(--emerald-300); background: rgba(20,113,88,0.1); }
.callout-warn { border-left-color: var(--rose-500); background: rgba(194,107,122,0.08); }
.callout-title { font-weight: 700; color: var(--cream-100); margin-bottom: 0.4rem; font-family: var(--font-sans); }

.faq-item {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(20,113,88,0.25);
  padding-bottom: 1.2rem;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--cream-100);
  font-size: 1.05rem;
  padding: 0.6rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.4rem;
  color: var(--gold-500);
  transition: transform var(--transition-base);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--gold-300); }
.faq-item p { margin: 0.6rem 0 0; color: var(--cream-300); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--emerald-900);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand h4 { color: var(--cream-100); margin-bottom: 1rem; }
.footer-brand p { color: var(--cream-500); font-size: 0.9rem; }
.footer-col h5 {
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--cream-500); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
  border-top: 1px solid var(--emerald-900);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--cream-700);
  font-size: 0.85rem;
}
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--emerald-700);
  align-items: center; justify-content: center;
  color: var(--cream-300);
  margin-left: 0.4rem;
  transition: all var(--transition-base);
}
.footer-social a:hover {
  background: var(--gold-700);
  border-color: var(--gold-500);
  color: var(--bg-void);
  transform: translateY(-2px);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--gold-700);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; animation: slideUp 0.4s ease-out; }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex-grow: 1; }
.cookie-banner .actions { display: flex; gap: 0.5rem; }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out both; }

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Counter animation */
.counter { display: inline-block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(212,165,116,0.15);
  color: var(--gold-300);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-emerald { background: rgba(20,113,88,0.2); color: var(--emerald-300); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald-500), transparent);
  margin: 3rem 0;
}

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--emerald-700);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--cream-300);
  margin: 0 0.3rem 0.3rem 0;
}

/* Section heading */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow {
  color: var(--gold-500);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.section-head h2 { margin-bottom: 0.8rem; }
.section-head p { color: var(--cream-500); max-width: 640px; margin: 0 auto; }

/* Mobile menu */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.8rem; }
  .tool-interface { padding: 1.4rem; }
  .section { padding: 2.5rem 0; }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-cta, .tool-sidebar { display: none; }
  body { background: white; color: black; }
}

/* Focus accessibility */
*:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--emerald-700); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }

/* Selection */
::selection { background: var(--gold-500); color: var(--bg-void); }
