/* ============================================
   TheWorkSurface — Theme CSS
   Brand: TheWorkSurface | Tagline: Gear that works.
   ============================================ */

/* --- Variables --- */
:root {
  --cream: #FAF8F4;
  --charcoal: #1C1C1E;
  --amber: #E07B39;
  --warm-gray: #8A8680;
  --light-warm: #F0EDE6;
  --border: #E4E0D8;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

/* --- Layout Helpers --- */
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--charcoal); }

.header-search {
  display: flex;
  align-items: center;
  color: var(--warm-gray);
  transition: color 0.2s;
  padding: 4px;
}

.header-search:hover { color: var(--charcoal); }

/* ============================================
   HERO CATEGORIES STRIP
   ============================================ */
.hero-categories {
  background: var(--charcoal);
  padding: 0;
  border-top: 1px solid rgba(250,248,244,0.08);
  border-bottom: 1px solid rgba(250,248,244,0.08);
}

.hero-categories-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-categories-inner::-webkit-scrollbar { display: none; }

.hero-cat-link {
  display: inline-block;
  padding: 14px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(250,248,244,0.6);
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.hero-cat-link:hover { color: var(--cream); }

.hero-cat-sep {
  color: rgba(250,248,244,0.15);
  font-size: 0.75rem;
  flex-shrink: 0;
  padding: 0 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--charcoal);
  margin-bottom: 28px;
  line-height: 1.1;
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #2c2c2e; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--warm-gray);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }

/* Hero Visual — CSS desk illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desk-illustration {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: var(--light-warm);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.desk-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
}

.desk-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(224,123,57,0.15), transparent);
  border-radius: 50%;
}

/* Monitor */
.monitor {
  position: absolute;
  bottom: 45%;
  left: 50%;
  transform: translateX(-50%);
}

.monitor-screen {
  width: 160px;
  height: 96px;
  background: #E8E5DF;
  border: 3px solid var(--charcoal);
  border-radius: 6px;
  overflow: hidden;
}

.screen-content {
  padding: 10px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-line {
  height: 4px;
  background: var(--charcoal);
  border-radius: 2px;
  opacity: 0.25;
}
.screen-line.short { width: 45%; }
.screen-line.long { width: 85%; }
.screen-line.medium { width: 60%; }

.screen-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-top: 4px;
}

.chart-bar {
  flex: 1;
  background: var(--amber);
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
}

.monitor-stand {
  width: 8px;
  height: 24px;
  background: var(--charcoal);
  margin: 0 auto;
}

.monitor-base {
  width: 48px;
  height: 6px;
  background: var(--charcoal);
  border-radius: 2px;
  margin: 0 auto;
}

/* Keyboard */
.keyboard {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: #D8D5CE;
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 140px;
}

.key-row {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.key {
  width: 14px;
  height: 10px;
  background: #EAE8E2;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 2px;
}
.key.wide { width: 28px; }
.key.space { width: 80px; }
.space-row { justify-content: center; }

/* Chair */
.chair-icon {
  position: absolute;
  bottom: 10%;
  left: 10%;
}

.chair-back {
  width: 32px;
  height: 48px;
  background: var(--charcoal);
  border-radius: 6px 6px 0 0;
}

.chair-seat {
  width: 40px;
  height: 12px;
  background: var(--charcoal);
  border-radius: 0 0 4px 4px;
  margin-top: -2px;
  margin-left: -4px;
}

.chair-base {
  display: flex;
  justify-content: space-between;
  width: 36px;
  margin-left: -2px;
  margin-top: 2px;
}

.chair-leg {
  width: 3px;
  height: 16px;
  background: var(--charcoal);
  border-radius: 0 0 2px 2px;
}

/* Lamp */
.lamp {
  position: absolute;
  bottom: 38%;
  right: 8%;
}

.lamp-arm {
  width: 3px;
  height: 40px;
  background: #C8C4BC;
  transform: rotate(-15deg);
  transform-origin: bottom left;
  margin-left: 4px;
}

.lamp-head {
  width: 24px;
  height: 14px;
  background: var(--warm-gray);
  border-radius: 4px 12px 4px 4px;
  margin-top: -2px;
  margin-left: -2px;
}

.lamp-glow {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(224,123,57,0.12) 0%, transparent 70%);
}

/* Light beam */
.light-beam {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, rgba(224,123,57,0.2) 0%, transparent 100%);
  transform: rotate(15deg);
}

/* ============================================
   SCORE SECTION
   ============================================ */
.score-section {
  padding: 100px 0;
  background: var(--charcoal);
  color: var(--cream);
}

.score-section .section-title { color: var(--cream); }
.score-section .section-sub { color: rgba(250,248,244,0.6); }

.score-header {
  text-align: center;
  margin-bottom: 64px;
}

.score-header .section-sub {
  margin: 0 auto;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.score-card {
  padding: 28px 20px;
  background: rgba(250,248,244,0.06);
  border: 1px solid rgba(250,248,244,0.1);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.score-card:hover { border-color: rgba(224,123,57,0.4); }

.score-icon {
  margin-bottom: 16px;
}

.score-card h3 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
}

.score-card p {
  font-size: 0.8125rem;
  color: rgba(250,248,244,0.55);
  line-height: 1.6;
}

.score-note {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(250,248,244,0.4);
  border-top: 1px solid rgba(250,248,244,0.08);
  padding-top: 32px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.score-note span {
  color: var(--amber);
  font-weight: 600;
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 100px 0;
  background: var(--light-warm);
}

.manifesto-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 40px;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 32px;
  font-style: italic;
  border-left: 3px solid var(--amber);
  padding-left: 28px;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 40px;
}

.manifesto-signature {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sig-line {
  width: 40px;
  height: 1px;
  background: var(--amber);
}

.manifesto-signature span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.02em;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
  padding: 100px 0;
}

.categories-header {
  margin-bottom: 56px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  display: block;
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 12px 32px rgba(28,28,30,0.08);
}

.category-icon {
  width: 48px;
  height: 48px;
  color: var(--amber);
  margin-bottom: 20px;
}

.category-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
}

/* ============================================
   INSPIRATION
   ============================================ */
.inspiration-section {
  padding: 100px 0;
  background: var(--light-warm);
}

.inspiration-header {
  text-align: center;
  margin-bottom: 64px;
}

.inspiration-header .section-sub { margin: 0 auto; }

.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.inspiration-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.inspiration-card:hover {
  box-shadow: 0 16px 48px rgba(28,28,30,0.1);
  transform: translateY(-2px);
}

.inspiration-image {
  height: 200px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Setup visualizers */
.setup-viz {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.setup-desk-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--charcoal);
  border-radius: 2px;
}

.setup-monitor {
  position: absolute;
  bottom: calc(50% + 3px);
  width: 64px;
  height: 40px;
  background: #E8E5DF;
  border: 2px solid var(--charcoal);
  border-radius: 4px;
}
.setup-monitor.slim { width: 48px; height: 32px; }
.setup-monitor.wide { width: 100px; height: 48px; }
.setup-monitor.vertical { width: 32px; height: 56px; bottom: calc(50% + 3px); right: 25%; }

.setup-chair-compact {
  position: absolute;
  bottom: calc(50% - 32px);
  left: 12%;
  width: 28px;
  height: 36px;
  background: var(--charcoal);
  border-radius: 4px 4px 0 0;
}

.setup-chair-full {
  position: absolute;
  bottom: calc(50% - 44px);
  left: 8%;
  width: 36px;
  height: 52px;
  background: var(--charcoal);
  border-radius: 6px 6px 0 0;
}

.setup-keyboard {
  position: absolute;
  bottom: calc(50% + 3px);
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 16px;
  background: #D8D5CE;
  border: 1.5px solid var(--charcoal);
  border-radius: 3px;
}

.setup-lamp {
  position: absolute;
  bottom: calc(50% + 3px);
  right: 12%;
  width: 20px;
  height: 44px;
  background: #C8C4BC;
  border-radius: 3px;
}

.plant-element {
  position: absolute;
  bottom: calc(50% + 3px);
  right: 14%;
  width: 20px;
  height: 28px;
  background: #8A9A7A;
  border-radius: 50% 50% 30% 30%;
}

.under-desk-item {
  position: absolute;
  bottom: calc(50% - 60px);
  right: 20%;
  width: 60px;
  height: 30px;
  background: #2c2c2e;
  border-radius: 4px;
}

.warm .setup-desk-line { background: #8B6914; }

.plant-large {
  position: absolute;
  bottom: calc(50% + 3px);
  left: 16%;
  width: 28px;
  height: 40px;
  background: #6B8A5A;
  border-radius: 50% 50% 20% 20%;
}

.shelf-element {
  position: absolute;
  top: 20%;
  right: 12%;
  width: 32px;
  height: 4px;
  background: var(--charcoal);
  border-radius: 2px;
  box-shadow: 0 8px 0 var(--charcoal), 0 16px 0 var(--charcoal);
}

.ambient-light {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(224,123,57,0.08) 0%, transparent 70%);
}

.inspiration-content {
  padding: 28px;
}

.setup-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.inspiration-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.inspiration-content p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
  margin-bottom: 20px;
}

.inspiration-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.2s, gap 0.2s;
}

.inspiration-link:hover { color: var(--amber); gap: 10px; }

/* ============================================
   CLOSING
   ============================================ */
.closing-section {
  padding: 100px 0;
  background: var(--charcoal);
  text-align: center;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 20px;
}

.closing-body {
  font-size: 1rem;
  color: rgba(250,248,244,0.55);
  line-height: 1.75;
  margin-bottom: 56px;
}

.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(250,248,244,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(250,248,244,0.12);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.footer-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--charcoal);
}

.social-proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--charcoal); }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .score-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .inspiration-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-brand { max-width: 100%; }
}

@media (max-width: 768px) {
  .section-inner,
  .header-inner,
  .hero-inner,
  .manifesto-inner,
  .closing-inner,
  .footer-inner,
  .footer-bottom { padding-left: 20px; padding-right: 20px; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }

  .score-grid { grid-template-columns: repeat(2, 1fr); }

  .categories-grid { grid-template-columns: 1fr; }

  .closing-stats { flex-direction: column; gap: 24px; }
  .stat-divider { width: 40px; height: 1px; }

  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .header-nav { display: none; }
}

@media (max-width: 480px) {
  .score-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.25rem; }
  .hero { padding: 60px 0 80px; }
}