:root { 
  --dark: #0F1115; --on-dark: #E2E8F0; --paper: #F8FAFC; --alt: #F1F5F9; 
  --ink: #0F172A; --muted: #64748B; --rule: #E2E8F0;
  --accent: #0EA5E9; --accent-d: #0284C7; --accent-l: #38BDF8; 
  --head: 'Space Grotesk', system-ui, sans-serif; 
  --body: 'Inter', system-ui, sans-serif; 
  --max: 1200px;
  --on-dark-muted: #94A3B8;
  --dark-line: #1E293B;
  --dark-line2: #334155;
  --dark-field: #1E293B;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.05rem/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Typography */
h1, h2, h3, .brand { font-family: var(--head); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem); background: rgba(15, 17, 21, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--dark-line); color: #fff; }
.brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 700; }
.mark { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.5; }
nav { display: flex; align-items: center; gap: 2rem; font-size: 0.95rem; font-weight: 500; }
nav a { color: var(--on-dark-muted); }
nav a:hover { color: #fff; }
.nav-cta { padding: 0.6rem 1.25rem; border: 1px solid var(--accent-l); border-radius: 6px; color: var(--accent-l); font-weight: 600; }
.nav-cta:hover { background: var(--accent-l); color: var(--dark); }

/* Hero */
.hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 2rem); display: grid; grid-template-columns: 1fr; align-items: center; }
.hero.has-img { background-image: linear-gradient(to right, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.8) 50%, rgba(15, 17, 21, 0.4) 100%), var(--hero-img); background-size: cover; background-position: center; }
.hero-art { display: none; } /* Hide the placeholder SVG art */
.hero h1 { max-width: 900px; }
.hero p { max-width: 600px; margin: 0 0 2.5rem; color: var(--on-dark-muted); font-size: 1.25rem; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn { display: inline-block; padding: 1rem 2rem; border-radius: 6px; font-weight: 600; font-size: 1.05rem; background: var(--accent); color: #fff; border: none; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.btn:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-ghost { display: inline-block; padding: 1rem 2rem; border-radius: 6px; font-weight: 600; font-size: 1.05rem; background: transparent; color: #fff; border: 1px solid var(--dark-line2); }
.btn-ghost:hover { border-color: #fff; }

/* Sections */
.block { padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 2rem); }
.block > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.block.alt { background: var(--alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lede { color: var(--muted); font-size: 1.2rem; max-width: 700px; margin-top: 0; margin-bottom: 3rem; }

/* Facts */
.facts { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); padding: 0 clamp(1.5rem, 5vw, 2rem); }
.facts div { padding: 2rem 1rem; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; }
.facts span { display: block; font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 0.5rem; }
.facts strong { font-size: 1.1rem; font-weight: 600; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.offer { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 2rem; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.offer:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1); }
.price { margin: 0 0 1rem; font: 700 1.1rem var(--body); color: var(--accent-d); }
.offer h3 { margin-bottom: 0.5rem; }
.who { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; flex-grow: 1; }
.offer ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.offer li { position: relative; padding: 0.5rem 0 0.5rem 1.5rem; font-size: 0.95rem; }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* Evidence / Matrix */
.evidence { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.matrix th, .matrix td { text-align: left; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); }
.matrix th { background: var(--alt); color: var(--ink); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.matrix tr:last-child td { border-bottom: none; }
.matrix tr:hover td { background: #F8FAFC; }

/* Form */
.cta { background: var(--dark); color: #fff; padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 2rem); }
.cta > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.cta h2 { margin-bottom: 0.5rem; }
.cta p { color: var(--on-dark-muted); margin-bottom: 3rem; font-size: 1.15rem; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 800px; }
.quote-form label { display: grid; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--on-dark-muted); }
.quote-form .wide { grid-column: 1 / -1; }
.quote-form input, .quote-form textarea { width: 100%; font: inherit; padding: 1rem; background: var(--dark-field); color: #fff; border: 1px solid var(--dark-line2); border-radius: 6px; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent-l); }
.quote-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 1rem; }
.form-status { grid-column: 1 / -1; color: var(--accent-l); font-weight: 500; }
.hp { display: none; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 4rem clamp(1.5rem, 5vw, 2rem); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
.footer-grid p { color: var(--muted); max-width: 400px; margin-top: 1rem; }
.contact, .cols ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.contact li { margin-bottom: 0.75rem; }
.cols h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); margin-bottom: 1.5rem; }
.cols li { margin-bottom: 0.75rem; }
.cols a { color: var(--muted); }
.cols a:hover { color: var(--accent-d); }
.footer-base { max-width: var(--max); margin: 0 auto; padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner, .evidence, .footer-grid, .cta .quote-form { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; } 
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; } 
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  nav a:not(.nav-cta) { display: none; }
}

/* New Intro & Steps */
.what-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: start; }
.what-in h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 1rem; }
.what-in .lede { font-size: 1.15rem; }
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { padding: 1rem 0; border-top: 1px solid var(--rule); font-weight: 600; font-size: 1.05rem; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 0; padding: 0; }
.steps li { counter-increment: s; border-top: 4px solid var(--accent); padding-top: 1.5rem; }
.steps li::before { content: "0" counter(s); font: 700 2rem var(--head); color: var(--accent); display: block; margin-bottom: 1rem; }
.steps h3 { margin: 0 0 0.75rem; font-size: 1.3rem; } .steps p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 860px) {
  .what-in, .steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* Target Audience Grid */
.what-in { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.what-in .lede { font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.who-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: #fff; border: 1px solid var(--rule); border-radius: 8px; font-weight: 600; font-size: 1.05rem; }
.who-list li::before { content: "→"; color: var(--accent); font-weight: bold; }

/* Premium Steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 0; padding: 0; }
.steps li { counter-increment: s; padding: 2rem; background: var(--dark); color: #fff; border-radius: 12px; position: relative; overflow: hidden; }
.steps li::before { content: "0" counter(s); position: absolute; top: -10px; right: 10px; font: 800 6rem var(--head); color: rgba(255,255,255,0.05); line-height: 1; }
.steps h3 { margin: 0 0 1rem; font-size: 1.3rem; color: var(--accent-l); position: relative; z-index: 1; }
.steps p { margin: 0; color: var(--on-dark-muted); position: relative; z-index: 1; font-size: 0.95rem; }

/* Matrix Pills */
.status { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--alt); color: var(--muted); }
.status.done { background: #10B981; color: #fff; }
.status.planned { background: #F59E0B; color: #fff; }

@media (max-width: 860px) {
  .what-in, .steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* Offer Card Button */
.offer-btn { margin-top: 1.5rem; width: 100%; text-align: center; padding: 0.8rem; font-size: 0.95rem; background: var(--alt); color: var(--ink); border: 1px solid var(--rule); }
.offer-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Case Study Grid */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.case-card { display: flex; flex-direction: column; justify-content: flex-end; height: 400px; border-radius: 12px; background-size: cover; background-position: center; position: relative; overflow: hidden; text-decoration: none; }
.case-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.4) 50%, rgba(15,17,21,0) 100%); z-index: 1; transition: opacity 0.3s; }
.case-card:hover::before { opacity: 0.8; }
.case-content { position: relative; z-index: 2; padding: 2rem; transform: translateY(10px); transition: transform 0.3s; }
.case-card:hover .case-content { transform: translateY(0); }
.case-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--accent); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.case-content h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; }
.case-content p { color: var(--on-dark-muted); font-size: 0.95rem; margin: 0; }

/* Ensure SVG placeholders display properly */
.hero-img img, .img-grid-2 img, .img-grid-3 img { background: var(--dark); }
.case-card { background-size: cover; background-position: center; background-color: var(--dark); }

/* Clean text-only case card */
.case-card { display: flex; flex-direction: column; justify-content: flex-end; height: 400px; border-radius: 12px; position: relative; overflow: hidden; text-decoration: none; border: 1px solid var(--dark-line); transition: transform 0.2s; }
.case-card:hover { transform: translateY(-4px); }
.case-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dark); background: var(--accent-l); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.case-content h3 { color: #fff; }

footer .mark {
  background: transparent;
  padding: 0;
  border-radius: 0;
  filter: invert(1) contrast(1.2);
}
