/* ================================================
   nex-resume.com — Midnight Blueprint Design System
   WCAG AA Accessible — All text meets 4.5:1 contrast
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;600;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Backgrounds */
  --bg-primary:    #050a1a;
  --bg-secondary:  #080f22;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(59,130,246,0.08);

  /* Borders */
  --border:        rgba(255,255,255,0.12);
  --border-accent: rgba(59,130,246,0.35);
  --border-hover:  rgba(59,130,246,0.5);

  /* Accent */
  --accent:        #3b82f6;
  --accent-light:  #93c5fd;   /* boosted for AA on dark bg */
  --accent-glow:   rgba(59,130,246,0.3);

  /* Text — all WCAG AA on #050a1a */
  --text-primary:   #ffffff;          /* 21:1 */
  --text-secondary: #c9d6e8;          /* ~9:1 — was rgba(255,255,255,0.55) which failed */
  --text-muted:     #8da0b8;          /* ~4.6:1 — was rgba(255,255,255,0.3) which failed */
  --text-on-accent: #ffffff;          /* white on #3b82f6 = 3.2:1 — use only large/bold text */

  /* Status */
  --success:  #4ade80;    /* AA on dark bg */
  --warning:  #fbbf24;    /* AA on dark bg */
  --danger:   #f87171;    /* AA on dark bg */
  --info:     #93c5fd;

  /* Typography */
  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Spatial */
  --radius:    12px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.55);
  --shadow-blue: 0 0 30px rgba(59,130,246,0.2);
  --transition: 0.2s ease;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- GRID BACKGROUND ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none; z-index: 0;
}

/* =======================================
   NAVBAR
   ======================================= */
.navbar {
  position: sticky; top: 0;
  background: rgba(5,10,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-hex {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 900;
  color: #fff; flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--accent-light); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-links a.active { color: var(--accent-light); }

.nav-cta {
  background: var(--accent); color: #fff;
  padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: #2563eb; transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--text-secondary);
  border-radius: 2px; display: block; transition: var(--transition);
}
.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(5,10,26,0.99); border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 99; flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none;
}
.nav-mobile a:hover { color: var(--text-primary); background: var(--bg-card-hover); }

/* =======================================
   HERO
   ======================================= */
.hero-section {
  padding: 80px 40px 70px;
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  filter: blur(60px); pointer-events: none;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent-light); font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero-chip::before { content: '⚡'; font-size: 11px; }
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.5vw, 48px); font-weight: 900;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 20px;
  color: var(--text-primary);
}
.hero-h1 span { color: var(--accent-light); }
.hero-sub {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: 32px; max-width: 460px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* =======================================
   BUTTONS
   ======================================= */
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 13px 28px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; transition: var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-primary:focus-visible {
  outline: 3px solid var(--accent-light); outline-offset: 3px;
}

.btn-secondary {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-secondary); padding: 13px 28px; border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: var(--accent-light); color: var(--text-primary); background: var(--bg-card-hover); }
.btn-secondary:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }

/* =======================================
   CARDS
   ======================================= */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: var(--transition);
}
.card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); box-shadow: var(--shadow-blue); }

/* =======================================
   SECTIONS
   ======================================= */
.section {
  padding: 70px 40px; position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
}
.section-label {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px);
  font-weight: 900; letter-spacing: -1px; color: var(--text-primary);
  margin-bottom: 14px; line-height: 1.15;
}
.section-sub { font-size: 15px; color: var(--text-secondary); max-width: 540px; line-height: 1.7; }

/* =======================================
   TOOL CARDS
   ======================================= */
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; margin-top: 40px;
}
.tool-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition); cursor: pointer; text-decoration: none; display: block;
}
.tool-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-3px); box-shadow: var(--shadow-blue); }
.tool-card:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.tool-card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(59,130,246,0.14); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.tool-card-name { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.tool-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.tool-card-badge { display: inline-block; margin-top: 12px; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tool-card-badge.ai { background: rgba(147,197,253,0.15); color: var(--accent-light); }
.tool-card-badge.free { background: rgba(74,222,128,0.12); color: var(--success); }

/* =======================================
   STATS BAR
   ======================================= */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin: 60px 0;
}
.stat-item { background: var(--bg-secondary); padding: 32px 24px; text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: 32px; font-weight: 900;
  color: var(--accent-light); letter-spacing: -1px; margin-bottom: 6px;
}
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }

/* =======================================
   HOW-IT-WORKS STEPS
   ======================================= */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.step-card {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.step-num { font-family: var(--font-head); font-size: 40px; font-weight: 900; color: rgba(59,130,246,0.14); letter-spacing: -2px; margin-bottom: 16px; }
.step-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* =======================================
   FOOTER
   ======================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px 32px;
  position: relative; z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(3,7,18,0.6) 100%);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
}

/* Top row: logo + columns */
.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer-brand {}
.footer-logo {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  color: var(--text-primary); display: inline-block; margin-bottom: 12px;
}
.footer-logo span { color: var(--accent-light); }
.footer-tagline {
  font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px;
}
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: var(--accent-light);
}

/* Link columns */
.footer-col-title {
  font-family: var(--font-head); font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.footer-col-links a:hover { color: var(--accent-light); padding-left: 4px; }

/* Bottom row */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-legal a {
  font-size: 12px; color: var(--text-muted); text-decoration: none; transition: var(--transition);
}
.footer-legal a:hover { color: var(--text-secondary); }

@media (max-width: 900px) {
  .footer { padding: 40px 20px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* =======================================
   PAGE HEADER (inner pages)
   ======================================= */
.page-header { padding: 48px 40px 40px; position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.page-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.page-breadcrumb a { color: var(--accent-light); text-decoration: none; }
.page-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -1px; color: var(--text-primary); margin-bottom: 10px; line-height: 1.15; }
.page-title span { color: var(--accent-light); }
.page-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.65; }

/* =======================================
   FORM ELEMENTS
   ======================================= */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 7px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px; transition: var(--transition); outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-light); background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select { cursor: pointer; }
.form-select option { background: #0d1829; color: var(--text-primary); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* =======================================
   PROGRESS / SCORE BARS
   ======================================= */
.score-bar-wrap { background: rgba(255,255,255,0.08); border-radius: 4px; height: 6px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width 0.8s ease; }
.score-bar.good { background: linear-gradient(90deg, #16a34a, #4ade80); }
.score-bar.warn { background: linear-gradient(90deg, #d97706, #fbbf24); }
.score-bar.bad  { background: linear-gradient(90deg, #dc2626, #f87171); }

/* =======================================
   ALERTS
   ======================================= */
.alert { padding: 13px 16px; border-radius: 10px; font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-info    { background: rgba(147,197,253,0.1); border: 1px solid rgba(147,197,253,0.25); color: var(--accent-light); }
.alert-success { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.25);  color: var(--success); }
.alert-warn    { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.25);  color: var(--warning); }

/* =======================================
   LOADING
   ======================================= */
.loading-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =======================================
   CHIP TAGS
   ======================================= */
.chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(147,197,253,0.12); border: 1px solid rgba(147,197,253,0.25); color: var(--accent-light); padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.chip.green  { background: rgba(74,222,128,0.1);  border-color: rgba(74,222,128,0.25);  color: var(--success); }
.chip.orange { background: rgba(251,191,36,0.1);  border-color: rgba(251,191,36,0.25);  color: var(--warning); }
.chip.red    { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.25); color: var(--danger); }

/* =======================================
   DIVIDER
   ======================================= */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* =======================================
   SKIP TO CONTENT (accessibility)
   ======================================= */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--accent); color: #fff; padding: 8px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* =======================================
   NAV DROPDOWN
   ======================================= */
.nav-dropdown { position: relative; list-style: none; }

.nav-drop-toggle {
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: var(--transition); background: none; border: none;
  font-family: var(--font-body); white-space: nowrap;
}
.nav-drop-toggle:hover,
.nav-drop-toggle.active { color: var(--text-primary); background: var(--bg-card-hover); }
.nav-drop-toggle.active { color: var(--accent-light); }
.nav-drop-arrow { font-size: 9px; transition: transform 0.2s; display: inline-block; }
.nav-dropdown:hover .nav-drop-arrow { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(8,15,34,0.98); border: 1px solid rgba(59,130,246,0.25);
  border-radius: 12px; padding: 6px; min-width: 240px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(20px); z-index: 200;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.1);
  /* Push down 8px and bridge the gap with padding-top */
  margin-top: 8px;
}
/* Invisible bridge to prevent hover gap */
.nav-drop-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-dropdown:hover .nav-drop-menu {
  opacity: 1; pointer-events: auto;
}

.nav-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  transition: var(--transition); white-space: nowrap;
}
.nav-drop-item:hover { color: var(--text-primary); background: rgba(59,130,246,0.1); }
.nav-drop-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-drop-badge {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 2px 6px; border-radius: 4px;
  background: rgba(59,130,246,0.15); color: var(--accent-light);
}

/* Mobile nav extras */
.nav-mobile-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 14px 4px;
}
.nav-mobile-divider {
  height: 1px; background: var(--border); margin: 8px 14px;
}
.nav-mobile-cta {
  color: var(--accent-light) !important; font-weight: 700 !important;
  margin-top: 4px;
}

/* =======================================
   RATE LIMIT BADGES (shared across AI tools)
   ======================================= */
.rl-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 6px; letter-spacing: 0.2px;
}
.rl-ok    { color: #4ade80; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.2); }
.rl-low   { color: #f59e0b; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.rl-empty { color: #f87171; background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); }

/* =======================================
   AI TOOL PAGE SHARED LAYOUT
   ======================================= */
.ai-tool-layout { max-width: 980px; margin: 0 auto; padding: 44px 32px; position: relative; z-index: 1; }
.ai-tool-header { margin-bottom: 36px; }
.ai-tool-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent-light); font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; margin-bottom: 14px;
}
.ai-tool-title { font-family: var(--font-head); font-size: 36px; font-weight: 900; color: var(--text-primary); letter-spacing: -1.2px; margin-bottom: 10px; line-height: 1.1; }
.ai-tool-title span { color: var(--accent-light); }
.ai-tool-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.65; max-width: 600px; }

.ai-tool-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; }

/* Input panel */
.ai-input-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 80px;
}
.ai-input-header {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  background: rgba(59,130,246,0.04);
  display: flex; align-items: center; justify-content: space-between;
}
.ai-input-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ai-input-body { padding: 22px; }

.ai-generate-btn {
  width: 100%; margin-top: 6px;
  background: var(--accent); color: #fff;
  padding: 13px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  border: none; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow-blue);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ai-generate-btn:hover:not(:disabled) { background: var(--accent-light); transform: translateY(-1px); }
.ai-generate-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Output panel */
.ai-output-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; min-height: 400px;
}
.ai-output-header {
  padding: 14px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(59,130,246,0.04);
}
.ai-output-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ai-output-actions { display: flex; gap: 8px; }
.ai-copy-btn {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 6px 14px; border-radius: 7px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.ai-copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.ai-output-body { padding: 24px; }

/* Placeholder */
.ai-output-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center; gap: 14px;
}
.ai-placeholder-icon { font-size: 44px; opacity: 0.4; }
.ai-placeholder-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 280px; }

/* ── Ghost preview (sample output shown before AI runs) ── */
.ghost-preview { pointer-events: none; user-select: none; }
.ghost-preview * { cursor: default !important; }

/* All ghost text is visible but clearly faded */
.g-text {
  color: rgba(148, 170, 196, 0.45) !important;
  animation: ghost-pulse 2.4s ease-in-out infinite;
}
.g-text-sm  { font-size: 11px; }
.g-text-md  { font-size: 13px; }
.g-text-lg  { font-size: 15px; font-weight: 600; }
.g-text-xl  { font-size: 18px; font-family: var(--font-head); font-weight: 900; }

/* Ghost item containers */
.g-item {
  background: rgba(255,255,255,0.025) !important;
  border-color: rgba(255,255,255,0.07) !important;
}
.g-item-strong {
  background: rgba(59,130,246,0.05) !important;
  border-color: rgba(59,130,246,0.12) !important;
}

/* Ghost pills — visible text, faded */
.g-pill {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px;
  font-weight: 600;
  color: rgba(148, 170, 196, 0.4) !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  animation: ghost-pulse 2.4s ease-in-out infinite;
}
.g-bar {
  height: 4px; border-radius: 3px; background: rgba(255,255,255,0.08);
  animation: ghost-pulse 2.4s ease-in-out infinite;
}
.g-circle {
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 3px solid rgba(255,255,255,0.1) !important;
}
.g-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(148, 170, 196, 0.3) !important;
}
.ghost-hint {
  text-align: center; font-size: 11px; color: rgba(148,170,196,0.4);
  padding: 6px 0 16px; letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 16px;
}

@keyframes ghost-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* Worker notice */
.worker-notice {
  display: none; margin-bottom: 16px;
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25);
  border-radius: 10px; padding: 12px 16px;
  font-size: 12px; color: #fbbf24; line-height: 1.6;
}
.worker-notice strong { color: #fde68a; }

/* AI error */
.ai-error {
  background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px; padding: 14px 16px;
  font-size: 13px; color: #f87171; line-height: 1.6;
}

@media (max-width: 860px) {
  .ai-tool-layout { padding: 28px 20px; }
  .ai-tool-title  { font-size: 28px; }
  .ai-tool-grid   { grid-template-columns: 1fr; }
  .ai-input-panel { position: static; }
}

/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-section { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .section { padding: 50px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 32px 20px; }
}
@media (max-width: 600px) {
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
