@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0D0D0D;
  --bg-deep: #080808;
  --surface: #161616;
  --surface-2: #1b1b1b;
  --line: #242424;
  --line-soft: rgba(255,255,255,.09);
  --text: #F9F9F7;
  --muted: #9CA3AF;
  --muted-2: #64748B;
  --teal: #00C2A8;
  --teal-dark: #009D88;
  --gold: #C8A96B;
  --danger: #e77979;
  --max: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --heading: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(0,194,168,.28); color: var(--text); }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 9999;
  transform: translateY(-140%); background: var(--teal); color: #08110f;
  padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 780px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,13,13,.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-shell { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 136px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: #c9c9c7; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .01em; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.mobile-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); align-items: center; justify-content: center; cursor: pointer;
}
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after {
  content: ''; display: block; width: 18px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.mobile-toggle span { margin: 5px 0; }
.mobile-toggle[aria-expanded="true"] span { opacity: 0; }
.mobile-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--teal); font-family: var(--heading); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow.gold { color: var(--gold); }
.display, h1, h2, h3 { font-family: var(--heading); letter-spacing: -.035em; }
h1 { margin: 18px 0 24px; font-size: clamp(44px, 6.3vw, 82px); line-height: 1.01; font-weight: 600; max-width: 900px; }
h2 { margin: 16px 0 20px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; font-weight: 600; }
h3 { margin: 0 0 12px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: #c7c7c4; max-width: 720px; }
.copy { color: var(--muted); max-width: 680px; }
.small { font-size: 14px; color: var(--muted); }
.kicker { font-family: var(--heading); font-weight: 600; color: #d7d7d3; }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 9px; border: 1px solid transparent;
  font-family: var(--heading); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #07110f; }
.btn-primary:hover { background: #09d1b5; }
.btn-secondary { background: transparent; color: var(--text); border-color: #4a4a4a; }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-quiet { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-gold { background: var(--gold); color: #15120d; }
.btn-arrow::after { content: '↗'; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Layout primitives */
.section { padding: 132px 0; border-top: 1px solid var(--line); }
.section.compact { padding: 92px 0; }
.section:first-of-type { border-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.65fr); gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head .copy { justify-self: end; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* Hero */
.hero { min-height: calc(100vh - 78px); display: flex; align-items: center; padding: 72px 0 86px; position: relative; overflow: clip; }
.hero::after {
  content: ''; position: absolute; width: 650px; height: 650px; right: -270px; top: -250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,168,.16), rgba(0,194,168,0) 68%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(420px,.94fr); gap: 70px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-copy .lead { max-width: 630px; margin-bottom: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 32px; color: #9f9f9b; font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 5px rgba(0,194,168,.08); }
.hero-media { position: relative; }
.hero-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid #2a2a2a; border-radius: 16px; z-index: -1; }
.hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 1px solid #303030; border-radius: 16px; }
.hero-media .media-label {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px;
  background: rgba(8,8,8,.72); backdrop-filter: blur(10px); font-size: 12px; color: #dededb;
}

/* Proof strip */
.proof-strip { border-block: 1px solid var(--line); background: #101010; }
.proof-inner { min-height: 88px; display: grid; grid-template-columns: repeat(4,1fr); }
.proof-item { display: flex; align-items: center; gap: 13px; padding: 20px 28px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-icon { width: 30px; height: 30px; border: 1px solid rgba(0,194,168,.28); border-radius: 50%; display: grid; place-items: center; color: var(--teal); font-size: 13px; flex: 0 0 auto; }
.proof-item strong { display: block; font-family: var(--heading); font-size: 13px; letter-spacing: -.01em; }
.proof-item span { display: block; font-size: 12px; color: var(--muted); }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 32px; }
.card.clean { background: transparent; }
.card:hover .card-link { color: var(--teal); }
.card-no { color: var(--muted-2); font-family: var(--heading); font-size: 12px; letter-spacing: .12em; margin-bottom: 34px; }
.card p { color: var(--muted); margin: 0 0 24px; }
.card-link { display: inline-flex; gap: 8px; color: #ddd; font-family: var(--heading); font-size: 13px; font-weight: 700; text-decoration: none; }
.service-card { min-height: 330px; display: flex; flex-direction: column; }
.service-card .card-link { margin-top: auto; }

/* Statement */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; }
.statement-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.statement-copy blockquote { margin: 0; font-family: var(--heading); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.14; letter-spacing: -.03em; font-weight: 500; }
.statement-copy p { margin: 28px 0 0; color: var(--muted); }

/* Work */
.work-feature { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #111; }
.work-visual { min-height: 500px; background: #0f0f0f; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.muse-panel {
  padding: 54px; color: #1A1A1A; background: #F8EFE8; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
}
.muse-panel::after { content: '✦'; position: absolute; right: 34px; bottom: 22px; color: #B8965A; font-size: 26px; }
.muse-word { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(58px,7vw,100px); line-height: .85; letter-spacing: .1em; }
.muse-tag { font-family: Georgia, serif; font-size: 18px; color: #5c5149; }
.muse-note { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(26,26,26,.2); padding-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.work-copy { padding: 54px; display: flex; flex-direction: column; justify-content: center; background: #121212; }
.work-copy .status { color: var(--gold); font: 700 12px var(--heading); letter-spacing: .12em; text-transform: uppercase; }
.work-copy p { color: var(--muted); max-width: 520px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.tag { border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; font-size: 11px; color: #bcbcb8; text-transform: uppercase; letter-spacing: .08em; }

.system-showcase { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 24px; }
.system-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 22px; }
.system-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.system-browser { border: 1px solid #303030; border-radius: 12px; overflow: hidden; background: #f4f6f8; color: #17233e; }
.browser-bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #1c2739; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #8fa0b9; opacity: .8; }
.platform-ui { padding: 20px; }
.platform-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.platform-title { font: 700 18px var(--heading); }
.platform-pill { background: #d6b24a; color: #14233f; border-radius: 6px; padding: 7px 10px; font: 700 10px var(--heading); }
.platform-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.platform-stat { background: white; border: 1px solid #d8dde4; border-radius: 7px; padding: 10px; }
.platform-stat b { display: block; font-size: 16px; }
.platform-stat span { font-size: 8px; color: #69758a; text-transform: uppercase; letter-spacing: .08em; }
.platform-table { background: white; border: 1px solid #d8dde4; border-radius: 7px; overflow: hidden; }
.platform-row { display: grid; grid-template-columns: 1.2fr 1fr .35fr .6fr .65fr; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e7eaee; font-size: 9px; }
.platform-row:last-child { border-bottom: 0; }
.platform-row.head { background: #f2f0e8; color: #6d7481; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.score { display: inline-flex; width: 28px; height: 22px; background: #e8f4ee; color: #28724f; border-radius: 5px; align-items: center; justify-content: center; font-weight: 700; }
.decision { color: #636b7a; }

/* Value grid */
.value { padding: 34px 28px; min-height: 230px; border-right: 1px solid var(--line); background: #101010; }
.value:last-child { border-right: 0; }
.value .num { color: var(--teal); font: 700 12px var(--heading); margin-bottom: 50px; }
.value p { color: var(--muted); margin: 0; font-size: 14px; }

/* Process */
.process-line { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); }
.process-step { padding: 28px 24px 6px 0; border-right: 1px solid var(--line); min-height: 210px; }
.process-step + .process-step { padding-left: 24px; }
.process-step:last-child { border-right: 0; }
.process-step .num { font: 700 12px var(--heading); color: var(--teal); letter-spacing: .08em; }
.process-step h3 { margin-top: 44px; font-size: 18px; }
.process-step p { color: var(--muted); font-size: 13px; margin: 0; }

/* Feature band */
.feature-band { background: #101817; border-block: 1px solid #17302c; }
.feature-band .section { border-top: 0; }
.feature-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 76px; align-items: center; }
.feature-list { display: grid; gap: 0; border-top: 1px solid #21403a; }
.feature-list div { padding: 20px 0; border-bottom: 1px solid #21403a; display: grid; grid-template-columns: 130px 1fr; gap: 24px; }
.feature-list b { font-family: var(--heading); font-size: 13px; color: var(--teal); }
.feature-list span { color: #b4c2bf; font-size: 14px; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(320px,.78fr) minmax(0,1.22fr); gap: 78px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.founder-photo::after { content: 'FOUNDER · CREDIRA'; position: absolute; left: 18px; bottom: 18px; background: rgba(8,8,8,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; padding: 8px 10px; font: 700 10px var(--heading); letter-spacing: .12em; color: #ddd; }
.founder-copy p { color: var(--muted); }

/* Founding */
.founding { border: 1px solid rgba(200,169,107,.32); border-radius: 14px; background: linear-gradient(180deg, rgba(200,169,107,.06), rgba(200,169,107,.018)); padding: 48px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 48px; align-items: center; }
.founding p { color: #b8b0a1; max-width: 720px; margin-bottom: 0; }

/* CTA */
.cta-panel { position: relative; overflow: hidden; padding: 82px; border: 1px solid var(--line); border-radius: 16px; background: #101010; }
.cta-panel::after { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -200px; bottom: -270px; background: radial-gradient(circle, rgba(0,194,168,.14), transparent 66%); }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 900px; }
.cta-panel .lead { margin-bottom: 30px; }

/* Page hero */
.page-hero { padding: 116px 0 84px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; }
.page-hero .lead { max-width: 760px; }

/* Services */
.package-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.package { border: 1px solid var(--line); border-radius: 14px; padding: 34px; background: var(--surface); display: flex; flex-direction: column; min-height: 560px; }
.package.featured { border-color: rgba(0,194,168,.5); background: linear-gradient(180deg, rgba(0,194,168,.07), var(--surface) 34%); }
.package-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 38px; font: 700 11px var(--heading); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.package-label span:last-child { color: var(--teal); }
.package p { color: var(--muted); }
.check-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: #c9c9c5; font-size: 14px; }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 700; }
.package .btn { margin-top: auto; }

.compare { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 17px 18px; border-right: 1px solid var(--line); font-size: 13px; }
.compare-row > div:last-child { border-right: 0; }
.compare-row.header { background: #111; font-family: var(--heading); font-weight: 700; }
.compare-row .yes { color: var(--teal); font-weight: 700; }
.compare-row .muted { color: var(--muted-2); }

/* About */
.about-manifesto { display: grid; grid-template-columns: .8fr 1.2fr; gap: 84px; align-items: start; }
.about-manifesto .big-quote { font: 500 clamp(32px,4.5vw,58px)/1.08 var(--heading); letter-spacing: -.035em; }
.about-manifesto .copy p { color: var(--muted); margin: 0 0 20px; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.principle { min-height: 240px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle:nth-child(3n) { border-right: 0; }
.principle:nth-last-child(-n+3) { border-bottom: 0; }
.principle b { display: block; font: 700 12px var(--heading); color: var(--teal); letter-spacing: .08em; margin-bottom: 46px; }
.principle p { color: var(--muted); margin: 0; font-size: 14px; }

/* Forms */
.form-shell { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 78px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 700 12px var(--heading); color: #cfcfcb; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #343434; border-radius: 8px; background: #101010; color: var(--text); padding: 13px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 138px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,194,168,.08); }
.form-note { font-size: 12px; color: var(--muted-2); margin: 16px 0 0; }
.form-status { min-height: 24px; color: var(--teal); font-size: 13px; margin-top: 12px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 36px; }
.contact-list a, .contact-list div { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #c9c9c4; text-decoration: none; font-size: 14px; }
.contact-list span:last-child { color: var(--muted); text-align: right; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font: 600 16px var(--heading); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--teal); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: -4px 0 24px; max-width: 760px; }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 30px; margin-top: 50px; }
.legal h3 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--teal); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 54px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 14px; }
.footer-col h4 { margin: 0 0 16px; font: 700 11px var(--heading); color: #777; text-transform: uppercase; letter-spacing: .12em; }
.footer-col a { display: block; color: #bcbcb8; text-decoration: none; font-size: 14px; margin: 10px 0; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; color: #686864; font-size: 12px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .container, .narrow { width: min(calc(100% - 36px), var(--max)); }
  .nav-actions .btn { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; }
  .nav-links {
    position: absolute; left: 18px; right: 18px; top: 86px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; background: rgba(16,16,16,.98); border: 1px solid var(--line); border-radius: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 12px; }
  .nav-links .mobile-only { display: block; }
  .hero { min-height: auto; padding: 82px 0; }
  .hero-grid, .statement, .feature-grid, .founder, .form-shell, .about-manifesto { grid-template-columns: 1fr; gap: 50px; }
  .hero-media { max-width: 720px; }
  .section { padding: 104px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .copy { justify-self: start; }
  .grid-3, .package-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-line { grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; min-height: 0; }
  .process-step:last-child { border-bottom: 0; }
  .process-step h3 { margin-top: 20px; }
  .work-visual { grid-template-columns: 1fr; }
  .muse-panel { min-height: 360px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3n) { border-right: 1px solid var(--line); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .principle:nth-last-child(-n+2) { border-bottom: 0; }
  .proof-inner { grid-template-columns: repeat(2,1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .compare { overflow-x: auto; }
  .compare-row { min-width: 760px; }
}

@media (max-width: 680px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { height: 70px; }
  .brand img { width: 116px; }
  .page-hero { padding: 86px 0 64px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  h2 { font-size: clamp(32px, 9vw, 44px); }
  .hero { padding: 66px 0 74px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .hero-media::before { display: none; }
  .hero-meta { gap: 10px 18px; }
  .section { padding: 84px 0; }
  .section.compact { padding: 68px 0; }
  .grid-2, .grid-4, .principles, .form-grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); min-height: 190px; }
  .value:last-child { border-bottom: 0; }
  .value .num { margin-bottom: 34px; }
  .proof-inner { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .work-copy, .muse-panel { padding: 34px 26px; }
  .muse-panel { min-height: 320px; }
  .system-showcase { padding: 14px; overflow: hidden; }
  .system-browser { min-width: 660px; transform: scale(.82); transform-origin: top left; margin-bottom: -70px; }
  .founding { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .cta-panel { padding: 50px 24px; }
  .package { padding: 28px 22px; min-height: auto; }
  .principle { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; min-height: 190px; }
  .principle:last-child { border-bottom: 0 !important; }
  .feature-list div { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Credira V3 refinements — brighter rhythm, tighter branding
   ========================================================= */
:root {
  --paper: #F9F9F7;
  --paper-2: #F2F3EF;
  --ink: #101313;
  --ink-muted: #596361;
  --light-line: #DDE1DC;
}

/* Header logo: compact white brand tile on dark navigation */
.site-header { background: rgba(13,13,13,.94); }
.nav-shell { height: 72px; }
.brand {
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.72);
}
.brand img { width: auto; height: 42px; }

/* Hero: keep the atmosphere, but avoid a flat wall of black */
.hero {
  min-height: calc(100vh - 72px);
  background:
    radial-gradient(circle at 83% 20%, rgba(0,194,168,.10), transparent 30%),
    linear-gradient(135deg, #0D0D0D 0%, #101615 58%, #0D0D0D 100%);
}
.hero-grid { grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr); gap: 54px; }
.hero h1 { font-size: clamp(44px,5.7vw,74px); }
.hero-media { max-width: 590px; justify-self: end; }
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 18px;
  border-color: #303b39;
}
.hero-media::before { inset: 14px -14px -14px 14px; border-radius: 18px; }

/* Proof strip: numbers are optically centered */
.proof-item .proof-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Balanced light sections — closer to the intended Credira 55/25/15 rhythm */
.section.light {
  background: var(--paper);
  color: var(--ink);
  border-top-color: var(--light-line);
}
.section.light h1,
.section.light h2,
.section.light h3,
.section.light blockquote,
.section.light .kicker,
.section.light strong { color: var(--ink); }
.section.light .copy,
.section.light .small,
.section.light .statement-copy p,
.section.light .founder-copy p,
.section.light .card p,
.section.light .package p,
.section.light .principle p,
.section.light .legal p,
.section.light .legal li { color: var(--ink-muted); }
.section.light .eyebrow { color: var(--teal-dark); }
.section.light .btn-secondary {
  color: var(--ink);
  border-color: #B9C0BB;
  background: rgba(255,255,255,.72);
}
.section.light .btn-secondary:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.section.light .card,
.section.light .package,
.section.light .form-card {
  background: #fff;
  border-color: var(--light-line);
}
.section.light .package.featured {
  border-color: rgba(0,157,136,.45);
  background: linear-gradient(180deg, rgba(0,194,168,.08), #fff 34%);
}
.section.light .package-label,
.section.light .card-no { color: #77817E; }
.section.light .check-list li { color: #3E4745; }
.section.light .grid-4,
.section.light .principles { border-color: var(--light-line); }
.section.light .value,
.section.light .principle {
  background: #fff;
  border-color: var(--light-line);
}
.section.light .value p { color: var(--ink-muted); }
.section.light .statement-media img,
.section.light .founder-photo img { border-color: var(--light-line); }
.section.light .form-card { box-shadow: 0 22px 60px rgba(24,36,33,.06); }
.section.light .field label { color: #3B4442; }
.section.light .field input,
.section.light .field textarea,
.section.light .field select {
  background: #fff;
  color: var(--ink);
  border-color: #CED4D0;
}
.section.light .contact-list { border-top-color: var(--light-line); }
.section.light .contact-list a,
.section.light .contact-list div {
  color: var(--ink);
  border-bottom-color: var(--light-line);
}
.section.light .contact-list span:last-child { color: var(--ink-muted); }
.section.light .faq { border-top-color: var(--light-line); }
.section.light details { border-bottom-color: var(--light-line); }
.section.light summary { color: var(--ink); }
.section.light details p { color: var(--ink-muted); }
.section.light .legal a { color: var(--teal-dark); }

/* MUSE presentation: use the approved lock-up structure and palette, not a fabricated logo graphic */
.muse-panel {
  background: #F8EFE8;
  color: #1A1A1A;
  align-items: center;
  text-align: center;
}
.muse-lockup { margin: auto 0; }
.muse-word {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(54px,7vw,94px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: .95;
}
.muse-diamond { color: #B8965A; font-size: 20px; margin: 13px 0 4px; }
.muse-tag {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: .01em;
}
.muse-note { width: 100%; text-align: left; }

/* Footer brand tile + no exposed email address */
.footer-brand img {
  width: auto;
  height: 72px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 9px;
}

/* Page heroes get a slight tonal gradient instead of uniform black */
.page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(0,194,168,.09), transparent 25%),
    linear-gradient(135deg, #0D0D0D 0%, #111817 100%);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; max-width: 640px; }
}

@media (max-width: 680px) {
  .nav-shell { height: 66px; }
  .brand { padding: 3px 7px; }
  .brand img { height: 37px; width: auto; }
  .hero { min-height: auto; }
  .hero-media { max-width: 100%; }
  .footer-brand img { height: 62px; }
}
