/* =========================================================
   Mostly Harmless Solutions — Corporate Stylesheet
   ========================================================= */

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

:root {
  --navy:       #0b0f1e;
  --navy-mid:   #111827;
  --navy-light: #1e2a3a;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --white:      #f8f9fa;
  --off-white:  #e2e8f0;
  --muted:      #94a3b8;
  --border:     rgba(255,255,255,0.08);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:      1160px;
  --radius:     4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--off-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--off-white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--off-white);
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,15,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--off-white); }
.nav-links .btn { margin-left: 0.5rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 7rem;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    var(--navy);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.75rem;
}
.hero-headline .accent {
  color: var(--gold);
}

.hero-mission {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-bg-text {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(12rem, 30vw, 26rem);
  font-weight: 700;
  color: rgba(201,168,76,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.05em;
}

/* ---- Quote band ---- */
.quote-band {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.pull-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.quote-author {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(148,163,184,0.4);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.quote-author:hover {
  color: rgba(148,163,184,0.7);
}

/* ---- Stats ---- */
.stats-band {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat { padding: 1rem; }
.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Section headings ---- */
.section-header {
  max-width: 560px;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- Services ---- */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--navy);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.2s;
}
.service-card:hover {
  background: var(--navy-light);
}

.service-icon {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.service-product {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ---- About ---- */
.about {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text .section-eyebrow { margin-bottom: 0.75rem; }
.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.about-text p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.value-item:first-child { border-top: 1px solid var(--border); }
.value-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.value-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- CTA band ---- */
.cta-band {
  padding: 7rem 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    var(--navy);
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.cta-inner > p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.cta-fine-print {
  margin-top: 1.5rem !important;
  font-size: 0.75rem !important;
  color: rgba(148,163,184,0.5) !important;
  font-style: italic;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--off-white);
}
.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-legal {
  font-size: 0.75rem;
  color: rgba(148,163,184,0.5);
  text-align: right;
  line-height: 1.6;
}
.footer-legal small { opacity: 0.7; }

/* ---- 418 Teapot ---- */
.teapot-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--navy);
}

.teapot-terminal {
  width: 100%;
  max-width: 640px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.teapot-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.teapot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.teapot-dot:nth-child(1) { background: #ff5f57; }
.teapot-dot:nth-child(2) { background: #febc2e; }
.teapot-dot:nth-child(3) { background: #28c840; }
.teapot-bar-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  font-family: monospace;
}

.teapot-body {
  padding: 2rem 2.5rem 2.5rem;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
}

.teapot-proto {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.35rem;
}
.teapot-code {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}
.teapot-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}

.teapot-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.5rem 0;
}

.teapot-headline {
  font-family: var(--font);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.teapot-desc {
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.teapot-sig {
  font-family: var(--font);
  font-size: 0.8rem;
  color: rgba(148,163,184,0.5);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.teapot-sig span {
  font-size: 0.7rem;
  opacity: 0.7;
}

.teapot-back {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.teapot-back:hover { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 5rem 0 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
  .logo-text { display: none; }
}
