/* ═══════════════════════════════════════════════════════════════════════════
   Dial Down — Computer Systems Design
   Proprietary stylesheet. All rights reserved Woven Purpose LLC.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --color-deep:    #111318;
  --color-slate:   #1e2028;
  --color-ink:     #1a1d23;
  --color-char:    #2b2d35;
  --color-steel:   #3f424d;
  --color-mist:    #6b6f7c;
  --color-fog:     #9a9ead;
  --color-cloud:   #c5c8d2;
  --color-ash:     #e5e6eb;
  --color-cream:   #f7f5f0;
  --color-white:   #fcfcfb;
  --color-amber:   #c47a20;
  --color-gold:    #d4943a;
  --color-honey:   #e8b454;
  --color-rust:    #a0581c;
  --color-bark:    #5c3a1e;
  --color-emerald: #2d6a4f;
  --color-sage:    #52796f;
  --font-display:  'Georgia', 'Times New Roman', serif;
  --font-body:     'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     14px;
  --shadow-card:   0 1px 3px hsla(0,0%,0%,0.08), 0 4px 16px hsla(0,0%,0%,0.06);
  --shadow-elevated: 0 2px 6px hsla(0,0%,0%,0.10), 0 8px 28px hsla(0,0%,0%,0.09);
  --transition-smooth: 220ms cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-deep);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-amber);
  text-decoration: none;
  transition: color var(--transition-smooth);
}
a:hover { color: var(--color-rust); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

pre {
  background: var(--color-deep);
  color: var(--color-ash);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* ── Header / Navigation ────────────────────────────────────────────────── */

.site-header {
  background: var(--color-deep);
  border-bottom: 1px solid var(--color-char);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-amber));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-cloud);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
  background: var(--color-char);
}

/* ── Main Content ───────────────────────────────────────────────────────── */

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: var(--color-deep);
  color: var(--color-white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-slate) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-amber), var(--color-rust));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero-lede {
  font-size: 1.2rem;
  color: var(--color-fog);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-tag {
  display: inline-block;
  background: var(--color-char);
  color: var(--color-honey);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: 5rem 0;
}

.section-light { background: var(--color-white); }
.section-warm  { background: var(--color-cream); }
.section-dark  { background: var(--color-slate); color: var(--color-ash); }
.section-dark h2,
.section-dark h3 { color: var(--color-white); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mist);
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 { margin-bottom: 0.6rem; }
.section-header p  { color: var(--color-mist); max-width: 560px; margin: 0 auto; }

/* ── Grid / Cards ───────────────────────────────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-cloud);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.card-icon.amber  { background: #fef3e2; color: var(--color-amber); }
.card-icon.emerald { background: #d8f3dc; color: var(--color-emerald); }
.card-icon.sage   { background: #e0ece7; color: var(--color-sage); }
.card-icon.rust   { background: #fde8d5; color: var(--color-rust); }

.card h3 { margin-bottom: 0.5rem; }
.card p  { color: var(--color-mist); font-size: 0.95rem; margin-bottom: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-deep);
  color: var(--color-mist);
  padding: 3rem 0 2rem;
  margin-top: auto;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-branding h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.footer-branding .legal-name {
  color: var(--color-fog);
  font-size: 0.82rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.35rem; }
.footer-links a  { color: var(--color-fog); font-size: 0.88rem; }
.footer-links a:hover { color: var(--color-honey); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--color-char);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-divider span { color: var(--color-steel); }

/* ── Legal Pages (Privacy & Terms) ──────────────────────────────────────── */

.legal-hero {
  background: var(--color-deep);
  color: var(--color-white);
  padding: 3.5rem 0;
  position: relative;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-amber));
}

.legal-hero h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.legal-hero p  { color: var(--color-fog); }

.legal-content {
  padding: 4rem 0;
  background: var(--color-white);
}

.legal-content .container {
  max-width: 780px;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-char);
  line-height: 1.75;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  color: var(--color-char);
}

.legal-content li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-mist);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-ash);
}

/* ── Status / Badge ─────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.badge-amber {
  background: #fef3e2;
  color: var(--color-rust);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-amber);
}

/* ── Page Hero (generic inner pages) ────────────────────────────────────── */

.page-hero {
  background: var(--color-deep);
  color: var(--color-white);
  padding: 3.5rem 0;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-amber));
}

.page-hero h1 { color: var(--color-white); }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  html { font-size: 16px; }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .nav-links a { font-size: 0.82rem; padding: 0.35rem 0.6rem; }

  .hero { padding: 3.5rem 0 3rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-divider {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .grid-3 { grid-template-columns: 1fr; }

  .brand { font-size: 1.1rem; }
}
