/* The 28 Group — brand stylesheet v1
   Palette: ink #0A0A0A, charcoal #1A1A1A, orange #FF7A00, deep orange #D76F00,
   off-white #F5F2EE, slate #9AA0A6. Headings Archivo, body Inter. */

:root {
  --ink: #0A0A0A;
  --charcoal: #1A1A1A;
  --card: #161616;
  --orange: #FF7A00;
  --orange-deep: #D76F00;
  --paper: #F5F2EE;
  --slate: #9AA0A6;
  --line: #2A2A2A;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

::selection { background: var(--orange); color: var(--ink); }

h1, h2, h3, h4 { font-family: 'Archivo', 'Inter', Arial, sans-serif; line-height: 1.15; }

img { max-width: 100%; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-deep); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header::after {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 30%, #FFB25E 50%, var(--orange) 70%, transparent 100%);
  opacity: 0.85;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1120px; margin: 0 auto;
}
.logo {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 1.35rem;
  color: var(--paper); letter-spacing: -0.02em;
}
.logo span { color: var(--orange); }
.logo-svg { display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--paper); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--orange); }
.nav-links a.btn { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; color: var(--ink);
  background: linear-gradient(180deg, #FF8E24 0%, var(--orange) 55%, var(--orange-deep) 100%);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 8px; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover {
  color: var(--ink); filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 122, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.ghost {
  background: transparent; color: var(--paper);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); filter: none; box-shadow: none; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: -120px -40vw 0 auto;
  width: 70vw; height: 480px; pointer-events: none;
  background: radial-gradient(ellipse at 70% 20%, rgba(255, 122, 0, 0.14), transparent 60%);
}
.hero > * { position: relative; }
.hero .kicker {
  color: var(--orange); font-family: 'Archivo', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 900;
  letter-spacing: -0.03em; margin: 18px 0 22px; color: var(--paper);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { font-size: 1.25rem; color: var(--slate); max-width: 680px; margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- hero band: full-bleed blended background (K9-style) ---------- */
.hero-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 15%, rgba(255, 122, 0, 0.14), transparent 55%),
    linear-gradient(180deg, #111111 0%, var(--ink) 100%);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  opacity: 0.45; filter: saturate(0.65) brightness(0.7);
  pointer-events: none;
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.split-img {
  border-radius: 14px; border: 1px solid var(--line);
  width: 100%; max-height: 420px; object-fit: cover; object-position: center 30%;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.hero-art {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: min(820px, 88vw); height: auto; opacity: 0.85; pointer-events: none;
}
.hero-band.subtle .hero-art { opacity: 0.5; }
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 10, 10, 0.5) 30%, rgba(10, 10, 10, 0.02) 60%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0) 62%, var(--ink) 99%);
}
.hero-band .wrap { position: relative; z-index: 2; }

/* ---------- stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin: 56px 0;
}
.stat { background: var(--card); padding: 28px 24px; }
.stat .num {
  font-family: 'Archivo', sans-serif; font-weight: 900;
  font-size: 2.4rem; color: var(--orange); letter-spacing: -0.02em;
}
.stat .label { color: var(--slate); font-size: 0.95rem; margin-top: 6px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--charcoal); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker {
  color: var(--orange); font-family: 'Archivo', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.02em; margin: 12px 0 14px;
}
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  background: linear-gradient(180deg, #1D1D1D 0%, #141414 100%);
  border: 1px solid var(--line); border-radius: 12px; padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px); border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--paper); }
.card p { color: var(--slate); font-size: 1rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }

/* ---------- pricing ---------- */
.price-card {
  background: linear-gradient(180deg, #1D1D1D 0%, #131313 100%);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 34px 30px;
  display: flex; flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.price-card:hover {
  transform: translateY(-3px); border-color: rgba(255, 122, 0, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.price-card.featured {
  border-color: var(--orange); position: relative;
  box-shadow: 0 0 0 1px rgba(255, 122, 0, 0.35), 0 8px 40px rgba(255, 122, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.price-card.featured::before {
  content: 'MOST COMPLETE'; position: absolute; top: -12px; left: 30px;
  background: var(--orange); color: var(--ink);
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.1em; padding: 4px 12px; border-radius: 20px;
}
.price-card .tier {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper);
}
.price-card .price {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 2.5rem;
  color: var(--orange); margin: 10px 0 2px; letter-spacing: -0.02em;
}
.price-card .per { color: var(--slate); font-size: 0.95rem; margin-bottom: 18px; }
.price-card .tagline { color: var(--paper); font-weight: 600; margin-bottom: 18px; font-size: 1rem; }
.price-card ul { list-style: none; margin: 0 0 22px; flex-grow: 1; }
.price-card ul li {
  padding: 7px 0 7px 28px; position: relative;
  color: var(--paper); font-size: 0.95rem; border-bottom: 1px solid var(--line);
}
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700;
}
.price-card details {
  margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px;
}
.price-card details summary {
  cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--orange);
  font-size: 0.95rem; list-style: none;
}
.price-card details summary::before { content: '→ '; }
.price-card details[open] summary::before { content: '↓ '; }
.price-card details .plain {
  padding: 4px 16px 16px; color: var(--paper); font-size: 0.95rem;
}
.price-card .btn { text-align: center; }

/* ---------- case study ---------- */
.case-band {
  background: var(--charcoal); border: 1px solid var(--line);
  border-radius: 14px; padding: 44px; display: grid; gap: 30px;
  grid-template-columns: 1.2fr 1fr; align-items: center;
}
.case-band h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; }
.case-band p { color: var(--slate); margin-bottom: 20px; }
.case-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case-nums .num-box { border-left: 3px solid var(--orange); padding-left: 16px; }
.case-nums .n {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 1.9rem; color: var(--paper);
}
.case-nums .l { color: var(--slate); font-size: 0.88rem; }

/* ---------- prose (case study page) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; font-weight: 800; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 18px; color: var(--paper); }
.prose p.muted { color: var(--slate); }
.prose ul { margin: 0 0 18px 22px; }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--orange); }
.prose .note {
  background: var(--charcoal); border-left: 3px solid var(--orange);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0;
  color: var(--paper); font-size: 0.98rem;
}

/* ---------- full-width photo band ---------- */
.photo-band { position: relative; overflow: hidden; padding: 110px 0; }
.photo-band-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.photo-band-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.3) 100%),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}
.photo-band-content { position: relative; }
.photo-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 14px; color: var(--paper);
}
.photo-band p { color: var(--paper); opacity: 0.85; font-size: 1.12rem; max-width: 560px; margin-bottom: 26px; }

/* ---------- comparison bars (APEX) ---------- */
.compare-bars { margin: 4px 0 20px; display: grid; gap: 12px; }
.cbar .cb-label { font-size: 0.85rem; color: var(--slate); margin-bottom: 5px; }
.cbar .cb-track { background: #242424; border-radius: 6px; height: 28px; overflow: hidden; }
.cbar .cb-fill {
  height: 100%; border-radius: 6px; display: flex; align-items: center;
  padding: 0 12px; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  color: var(--ink); background: linear-gradient(90deg, var(--orange-deep), var(--orange));
}
.cbar.grey .cb-fill { background: #3A3A3A; color: var(--paper); }

/* ---------- figure (charts in prose) ---------- */
.figure {
  background: var(--charcoal); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 24px 18px; margin: 28px 0;
}
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { color: var(--slate); font-size: 0.88rem; margin-top: 12px; }

/* ---------- client logo badge ---------- */
.client-logo { height: 72px; width: auto; display: block; margin-bottom: 20px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px;
  color: var(--slate); font-size: 0.9rem;
}
footer .foot-grid {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer .logo { font-size: 1.1rem; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .case-band { grid-template-columns: 1fr; padding: 30px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 52px 0; }
}
