/* ========================================
   StackHerd AI — Custom Stylesheet
   ======================================== */

/* ---- Variables ---- */
:root {
  --bg:        #111214;
  --bg-2:      #18181B;
  --surface:   #222228;
  --border:    #2E2E38;
  --accent:    #F59E0B;
  --accent-lo: rgba(245,158,11,0.12);
  --text:      #F5F0E8;
  --text-2:    #A8A4A0;
  --text-3:    #6B6865;
  --hot:       #EF4444;
  --hot-bg:    rgba(239,68,68,0.08);
  --font-d:    'Syne', system-ui, sans-serif;
  --font-b:    'DM Sans', system-ui, sans-serif;
  --r-sm:      8px;
  --r-md:      12px;
  --r-lg:      20px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-d); line-height: 1.15; }
a { color: inherit; text-decoration: none; }

/* ---- Navbar ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,18,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.brand-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 48px 80px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -150px; left: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: #7C3AED;
  bottom: -80px; right: 10%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-lo);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
.headline-accent {
  color: var(--accent);
  display: block;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

/* ---- Agent Dashboard Widget ---- */
.agent-dashboard {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.08);
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(245,158,11,0.04);
}
.dash-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
  font-family: var(--font-d);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse 2s infinite;
}
.dash-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: var(--bg-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-val {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-hot { color: var(--accent); }
.stat-key {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-feed {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface);
}
.feed-hot { background: var(--accent-lo); color: var(--text); }
.feed-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.feed-icon-call { color: #22C55E; }
.feed-icon-email { color: #60A5FA; }
.feed-icon-cal { color: var(--accent); }
.feed-icon-ai { color: #A78BFA; }
.dash-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
}
.ai-bar-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ai-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.ai-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #FB923C);
  border-radius: 100px;
  transition: width 1s ease;
}

/* ---- Proof Bar ---- */
.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 28px 48px;
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.proof-num {
  font-family: var(--font-d);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}
.proof-desc {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  font-weight: 500;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- Features ---- */
.features {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 56px;
  color: var(--text);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-2); }
.feature-card-wide { grid-column: span 2; }
.feature-icon {
  margin-bottom: 4px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.feature-list li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-card-cta {
  background: var(--accent-lo);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.feature-card-cta:hover { background: rgba(245,158,11,0.16); }
.cta-inner { max-width: 260px; }
.cta-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-card-cta h3 { font-size: 20px; color: var(--text); }
.feature-card-cta p { font-size: 13px; color: var(--text-2); }

/* ---- Process ---- */
.process {
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-num {
  font-family: var(--font-d);
  font-size: 64px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  letter-spacing: -2px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.step-art {
  margin-top: 8px;
  opacity: 0.6;
}
.step-connector {
  flex: 0 0 40px;
  align-self: center;
  padding-top: 40px;
}

/* ---- Outcomes ---- */
.outcomes {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 48px;
}
.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.outcomes-text h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.outcomes-text > p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.outcome-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.outcome-item svg { flex-shrink: 0; margin-top: 2px; }

/* ---- Comparison Chart ---- */
.comparison-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.chart-bar { display: flex; flex-direction: column; gap: 8px; }
.bar-label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
  font-family: var(--font-d);
}
.bar-track {
  height: 12px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: var(--w, 30%);
  background: var(--text-3);
  border-radius: 100px;
  transition: width 1.5s ease;
}
.bar-fill-accent {
  background: linear-gradient(90deg, var(--accent), #FB923C);
}
.bar-val {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.chart-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-style: italic;
}

/* ---- Closing ---- */
.closing {
  padding: 120px 48px;
  text-align: center;
}
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: var(--bg-2);
}
.closing-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.closing-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features { padding: 64px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; }
  .process-steps { flex-direction: column; gap: 40px; }
  .step-connector { display: none; }
  .outcomes-inner { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; gap: 24px; }
  .proof-divider { display: none; }
  .navbar { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .hero { padding: 64px 24px 48px; }
  .process, .outcomes, .closing { padding: 64px 24px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .nav-brand span { font-size: 15px; }
  .hero-headline { font-size: 36px; }
}