/* ═══════════════════════════════════════════════════════════
   الباشمبرمج · Bashmobarmeg · Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:          #0A0C0F;
  --bg-elev:     #11141A;
  --bg-soft:     #161A20;
  --bg-card:     #0E1116;
  --bg-deep:     #07080A;
  --line:        #232830;
  --line-soft:   #1A1E25;
  --line-gold:   rgba(212, 172, 116, 0.25);
  --fg:          #F2EDDF;
  --fg-muted:    #8F8A7E;
  --fg-dim:      #888378;
  --gold:        #D4AC74;
  --gold-soft:   #E8C896;
  --gold-deep:   #A8884F;
  --gold-glow:   rgba(212, 172, 116, 0.18);
  --green:       #3AFF85;
  --red:         #FF5F57;
  --yellow:      #FEBC2E;
  --max-w:       1320px;
}

body {
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0; }
.ltr  { direction: ltr; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
a { color: inherit; }

/* ───────── Background Layers ───────── */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,0,0,0.9), transparent 80%);
}
.bg-glow-top {
  position: fixed; top: -300px; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 700px;
  background: radial-gradient(ellipse, rgba(212, 172, 116, 0.18), transparent 60%);
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.bg-glow-bot {
  position: fixed; bottom: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(58, 255, 133, 0.05), transparent 70%);
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 12, 15, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.logo {
  font-weight: 700; font-size: 1.3rem; color: var(--fg);
  text-decoration: none; display: flex; align-items: center; gap: 0.6rem;
}
.logo-mark {
  font-family: 'JetBrains Mono', monospace; color: var(--gold);
  background: rgba(212, 172, 116, 0.1);
  padding: 0.15rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--line-gold);
  font-size: 1rem; font-weight: 600;
}
.nav-menu { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-menu a {
  color: var(--fg-muted); text-decoration: none;
  font-size: 0.95rem; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-menu a .num {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--fg-dim);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--fg); }
.nav-menu a:hover .num, .nav-menu a.active .num { color: var(--gold); }
.nav-cta {
  padding: 0.65rem 1.3rem;
  background: var(--fg); color: var(--bg);
  border-radius: 999px; text-decoration: none;
  font-size: 0.92rem; font-weight: 600; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.nav-cta:hover { background: var(--gold); }

/* Hamburger toggle — hidden on desktop, button injected by main.js */
.nav-toggle { display: none; }

@media (max-width: 1000px) {
  /* show the hamburger */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 11px 9px; flex: 0 0 auto;
    background: rgba(212, 172, 116, 0.06);
    border: 1px solid var(--line-gold); border-radius: 10px;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--gold);
    border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* keep the logo pinned to the start; group EN + CTA + burger at the end */
  .nav-inner { gap: 0.5rem; }
  .nav-inner .logo { margin-inline-end: auto; }
  .nav-cta { padding: 0.6rem 1rem; font-size: 0.86rem; }

  /* the section links become a full-width dropdown panel */
  .nav-menu {
    display: flex; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 15, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    padding: 0.4rem 0;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.38s;
  }
  .nav.nav-open .nav-menu { max-height: 24rem; opacity: 1; visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    width: 100%; padding: 1.05rem 1.5rem; font-size: 1.05rem;
    color: var(--fg); border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  }
  .nav-menu li:last-child a { border-bottom: 0; }
  .nav-menu a .num { font-size: 0.82rem; }
}

.lang-toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: var(--bg-elev);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.6rem;
  position: relative;
  overflow: hidden;
}
.lang-toggle::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AC74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><line x1='3' y1='12' x2='21' y2='12'/><path d='M12 3a14 14 0 0 1 4 9 14 14 0 0 1-4 9 14 14 0 0 1-4-9 14 14 0 0 1 4-9z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}
.lang-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 172, 116, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(212, 172, 116, 0.2);
}
.lang-toggle:hover::before {
  transform: rotate(20deg);
}
.lang-toggle .flag {
  color: inherit;
  font-weight: 700;
}
@media (max-width: 600px) {
  .lang-toggle {
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    margin: 0 0.3rem;
    gap: 0.4rem;
  }
  .lang-toggle::before {
    width: 11px;
    height: 11px;
  }
}

/* English (LTR) overrides */
[dir="ltr"] .contact-form { text-align: left; direction: ltr; }
[dir="ltr"] .crumbs { direction: ltr; }
[dir="ltr"] .sec-num::after { margin-left: 0; margin-right: 0; }
[dir="ltr"] .manifesto-wrap { border-right: none; border-left: 3px solid var(--gold); border-radius: 18px 0 0 18px; }
[dir="ltr"] .eco-list li::before { transform: scaleX(-1); }
[dir="ltr"] .cs-prose ul, [dir="ltr"] .legal-body ul { padding-right: 0; padding-left: 1.5rem; }
[dir="ltr"] .cs-prose blockquote { border-right: none; border-left: 4px solid var(--gold); border-radius: 16px 0 0 16px; }

/* ───────── Buttons ───────── */
.btn {
  padding: 1rem 1.8rem; border-radius: 999px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s; cursor: pointer; border: none;
  font-family: inherit;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(212, 172, 116, 0.4); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--fg); background: var(--bg-elev); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1DA851; transform: translateY(-2px); }
.btn .arrow { font-family: 'JetBrains Mono', monospace; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(-4px); }

/* ───────── Section base ───────── */
section { position: relative; z-index: 2; }
.sec { padding: clamp(5rem, 12vh, 9rem) 0; }
.sec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; color: var(--gold);
  letter-spacing: 0.1em; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.sec-num::after { content: ''; flex: 0 0 60px; height: 1px; background: var(--gold); opacity: 0.4; }
.sec-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.12; max-width: 820px; margin-bottom: 1.2rem;
}
.sec-title .muted { color: var(--fg-muted); }
.sec-title .accent { color: var(--gold); }
.sec-lede { font-size: 1.1rem; color: var(--fg-muted); max-width: 620px; line-height: 1.75; }
.sec-head { margin-bottom: 4.5rem; }

/* ───────── Page Hero (for non-homepage pages) ───────── */
.page-hero {
  padding: clamp(4rem, 9vh, 6rem) 0 clamp(3rem, 6vh, 4.5rem);
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  color: var(--gold); letter-spacing: 0.1em; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.page-hero .eyebrow::after { content: ''; flex: 0 0 60px; height: 1px; background: var(--gold); opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.07; margin-bottom: 1.5rem;
}
.page-hero h1 .accent { color: var(--gold); }
.page-hero h1 .strike {
  position: relative; color: var(--fg-muted); font-weight: 500;
}
.page-hero h1 .strike::after {
  content: ''; position: absolute;
  top: 55%; right: -3%; left: -3%; height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: skewY(-2deg); border-radius: 4px;
}
.page-hero .lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: var(--fg-muted); max-width: 680px; line-height: 1.7;
  margin-bottom: 2rem;
}
.page-hero .lede strong { color: var(--fg); }
.page-hero .crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: var(--fg-dim);
  margin-bottom: 1.5rem;
  display: flex; gap: 0.5rem;
}
.page-hero .crumbs a { color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .crumbs .sep { color: var(--gold); }

/* ───────── Generic Cards (shared) ───────── */
.card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  transition: all 0.3s;
  position: relative;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }

/* ───────── CTA ───────── */
.cta { padding: clamp(4rem, 10vh, 7rem) 0; text-align: center; position: relative; z-index: 2; }
.cta-wrap {
  max-width: 820px; margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem);
  position: relative; overflow: hidden;
}
.cta-wrap::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212, 172, 116, 0.22), transparent 60%);
  filter: blur(60px); pointer-events: none;
}
.cta-wrap > * { position: relative; }
.cta-prompt { font-family: 'JetBrains Mono', monospace; color: var(--green); font-size: 0.9rem; margin-bottom: 1rem; }
.cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 1.5rem;
}
.cta h2 .accent { color: var(--gold); }
.cta p { color: var(--fg-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7; }

/* ───────── Contact Form ───────── */
.contact-form { margin-top: 2rem; text-align: right; direction: rtl; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.95rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg); font-family: inherit; font-size: 1rem;
  transition: all 0.2s; width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--bg-elev);
  box-shadow: 0 0 0 4px rgba(212, 172, 116, 0.08);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-dim); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-submit {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.form-alt { color: var(--fg-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem; }
.form-alt a { color: var(--green); text-decoration: none; font-weight: 600; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
.form-alt a:hover { color: var(--gold); }
.cta-form-wrap { max-width: 720px !important; padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem) !important; }
.cta-form-wrap h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-form-wrap p { font-size: 1.05rem; margin-bottom: 1rem; }

/* ───────── Footer ───────── */
footer { border-top: 1px solid var(--line); padding: 4rem 0 2rem; position: relative; z-index: 2; background: var(--bg-deep); }
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot-brand p { color: var(--fg-muted); max-width: 360px; margin-top: 1rem; line-height: 1.75; }
.foot-col h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--gold);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.foot-col ul { list-style: none; }
.foot-col li { padding: 0.4rem 0; }
.foot-col a { color: var(--fg-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--gold); }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--line-soft);
  flex-wrap: wrap; gap: 1rem;
}
.foot-bot .sig { font-family: 'JetBrains Mono', monospace; color: var(--fg-dim); font-size: 0.85rem; }
.foot-bot .sig .heart { color: var(--gold); }

/* ───────── Preview banner ───────── */
.preview-banner {
  background: linear-gradient(135deg, rgba(212,172,116,0.14), rgba(212,172,116,0.02));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  margin: 2rem auto 0;
  max-width: var(--max-w);
  display: flex; align-items: center; gap: 1rem;
  position: relative; z-index: 3;
}
.preview-banner .badge {
  background: var(--gold); color: var(--bg);
  padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
  letter-spacing: 0.1em;
}
.preview-banner .text { flex: 1; font-size: 0.95rem; color: var(--fg-muted); line-height: 1.65; }
.preview-banner strong { color: var(--fg); }

/* ───────── Animations ───────── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s, transform 0.9s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═════════ HOMEPAGE-SPECIFIC ═════════ */

/* Hero */
.hero { position: relative; padding: clamp(3rem, 8vh, 6rem) 0 clamp(4rem, 10vh, 7rem); z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  color: var(--fg-muted);
  padding: 0.45rem 0.95rem;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 2rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.hero-prompt-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--gold); margin-bottom: 1.5rem;
  direction: ltr; text-align: right;
}
.hero-prompt-big .arrow { color: var(--green); margin-left: 0.4rem; }
.hero-prompt-big .cursor {
  display: inline-block; width: 10px; height: 1em;
  background: var(--gold); animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom; margin-right: 4px;
}

.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.hero-title .accent { color: var(--gold); }
.hero-title .strike { position: relative; color: var(--fg-muted); font-weight: 500; }
.hero-title .strike::after {
  content: ''; position: absolute;
  top: 55%; right: -3%; left: -3%; height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: skewY(-2deg); border-radius: 4px;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--fg-muted); max-width: 580px;
  margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-sub strong { color: var(--fg); font-weight: 600; }
.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Hero Visual: Code Editor */
.editor-wrap { position: relative; }
.editor {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; direction: ltr;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 0 100px -30px rgba(212, 172, 116, 0.2);
  position: relative;
}
.editor-bar { display: flex; align-items: center; padding: 0.8rem 1rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.editor-dots { display: flex; gap: 0.4rem; margin-right: 0.8rem; }
.editor-dots span { width: 11px; height: 11px; border-radius: 50%; }
.editor-dots span:nth-child(1) { background: var(--red); }
.editor-dots span:nth-child(2) { background: var(--yellow); }
.editor-dots span:nth-child(3) { background: var(--green); }
.editor-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--fg-muted);
  padding: 0.35rem 0.85rem; background: var(--bg-card);
  border-radius: 6px 6px 0 0; border: 1px solid var(--line); border-bottom: none;
  margin-left: auto;
}
.editor-body {
  padding: 1.5rem 1.5rem 1.5rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; line-height: 1.9; min-height: 340px;
}
.editor-body .ln { color: var(--fg-dim); width: 1.8rem; display: inline-block; user-select: none; }
.editor-body .k { color: #FF79C6; }
.editor-body .s { color: var(--green); }
.editor-body .v { color: var(--gold); }
.editor-body .c { color: var(--fg-dim); font-style: italic; }
.editor-body .p { color: #8BE9FD; }
.editor-body .n { color: #FFB86C; }
.editor-foot {
  border-top: 1px solid var(--line); padding: 0.6rem 1rem; background: var(--bg-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--fg-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.editor-foot .ok { color: var(--green); }

.float-chip {
  position: absolute; background: var(--bg-elev);
  border: 1px solid var(--line-gold); border-radius: 12px;
  padding: 0.8rem 1.1rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 0.6rem;
  animation: float 5s ease-in-out infinite;
}
.float-chip .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--gold-glow); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; }
.float-chip-1 { top: -22px; left: -28px; animation-delay: 0s; }
.float-chip-2 { bottom: -22px; right: -22px; animation-delay: -2.5s; }
@media (max-width: 1024px) { .float-chip { display: none; } }

.hero-stats {
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}
.stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  color: var(--gold); font-weight: 700; line-height: 1; display: block;
}
.stat .label { font-size: 0.85rem; color: var(--fg-muted); margin-top: 0.7rem; display: block; }

/* Trust strip */
.trust { padding: 3rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; position: relative; z-index: 2; }
.trust-label { text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--fg-dim); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 2.2rem; }
.marquee { display: flex; gap: 4.5rem; animation: scroll 35s linear infinite; white-space: nowrap; align-items: center; }
.marquee-item { font-size: 1.4rem; color: var(--fg-dim); font-weight: 600; flex-shrink: 0; letter-spacing: 0.05em; transition: color 0.3s; }
.marquee:hover .marquee-item { color: var(--fg-muted); }

/* Manifesto */
.manifesto-wrap {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--bg-elev), transparent);
  border-right: 3px solid var(--gold);
  border-radius: 0 18px 18px 0;
}
.manifesto-text { font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.55; max-width: 1000px; color: var(--fg); }
.manifesto-text .mute { color: var(--fg-muted); }
.manifesto-text .gold { color: var(--gold); }
.manifesto-text .underline { background: linear-gradient(transparent 60%, rgba(212,172,116,0.28) 60%); padding: 0 0.2em; }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 2.5rem; position: relative; overflow: hidden;
  transition: all 0.3s; display: flex; flex-direction: column; min-height: 360px;
  text-decoration: none; color: inherit;
}
.cap-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 200px;
  background: radial-gradient(circle at top right, var(--gold-glow), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.cap-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.cap-card:hover::before { opacity: 1; }
.cap-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.8rem; }
.cap-num { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--fg-dim); }
.cap-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
}
.cap-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.6rem; }
.cap-desc { color: var(--fg-muted); margin-bottom: 1.5rem; font-size: 0.98rem; line-height: 1.65; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.cap-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  padding: 0.28rem 0.65rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; color: var(--fg-muted); transition: all 0.2s;
}
.cap-card:hover .cap-tag { border-color: var(--line-gold); color: var(--gold); }

/* Ecosystem */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 900px) { .eco-grid { grid-template-columns: 1fr; } }
.eco-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: all 0.3s;
}
.eco-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s;
}
.eco-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.eco-card:hover::before { transform: scaleX(1); }
.eco-name { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.12em; margin-bottom: 0.8rem; text-transform: uppercase; }
.eco-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.25; }
.eco-desc { color: var(--fg-muted); font-size: 0.97rem; margin-bottom: 2rem; min-height: 80px; }
.eco-list { list-style: none; }
.eco-list li { padding: 0.6rem 0; border-top: 1px solid var(--line-soft); color: var(--fg-muted); font-size: 0.92rem; display: flex; align-items: center; gap: 0.7rem; }
.eco-list li::before { content: '▸'; color: var(--gold); font-size: 0.8rem; }

/* Sprints */
.sprint-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1100px) { .sprint-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sprint-grid { grid-template-columns: 1fr; } }
.sprint {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 20px; padding: 2rem 1.8rem;
  display: flex; flex-direction: column; position: relative; transition: all 0.3s;
}
.sprint:hover { border-color: var(--gold); transform: translateY(-3px); }
.sprint.featured { background: linear-gradient(180deg, rgba(212,172,116,0.08), var(--bg-card)); border-color: var(--gold); }
.sprint-badge {
  position: absolute; top: -10px; right: 1.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  background: var(--gold); color: var(--bg);
  padding: 0.25rem 0.7rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.05em;
}
.sprint-name { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.sprint-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.7rem; line-height: 1.3; }
.sprint-desc { color: var(--fg-muted); font-size: 0.92rem; margin-bottom: 1.3rem; line-height: 1.6; }
.sprint-meta { display: flex; gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin-bottom: 1.2rem; }
.sprint-meta div { flex: 1; }
.sprint-meta .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--fg-dim); margin-bottom: 0.2rem; display: block; letter-spacing: 0.05em; }
.sprint-meta .val { color: var(--fg); font-weight: 700; font-size: 0.95rem; }
.sprint-meta .val-egp {
  display: block; color: var(--fg-muted);
  font-size: 0.72rem; font-weight: 500;
  margin-top: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.sprint-disclaimer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--fg-dim);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-soft);
  line-height: 1.5;
}
.sprint-feats { list-style: none; margin-bottom: 1.3rem; }
.sprint-feats li { padding: 0.35rem 0; color: var(--fg-muted); font-size: 0.88rem; display: flex; gap: 0.5rem; }
.sprint-feats li::before { content: '✓'; color: var(--green); font-weight: 700; }
.sprint-cta {
  margin-top: auto; padding: 0.75rem 1.1rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--fg); border-radius: 999px;
  text-decoration: none; text-align: center;
  font-weight: 600; font-size: 0.92rem; transition: all 0.2s;
}
.sprint.featured .sprint-cta { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.sprint-cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: all 0.3s; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.work-visual { aspect-ratio: 16/10; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-visual.v1 { background: linear-gradient(135deg, #3a2d6b 0%, #C9A876 100%); }
.work-visual.v2 { background: linear-gradient(135deg, #0c3d4a 0%, #3AFF85 100%); }
.work-visual.v3 { background: linear-gradient(135deg, #4a172e 0%, #FEBC2E 100%); }
.work-visual.v4 { background: linear-gradient(135deg, #143d57 0%, #D4AC74 100%); }
.work-visual.v5 { background: linear-gradient(135deg, #4a2d1a 0%, #FF79C6 100%); }
.work-visual.v6 { background: linear-gradient(135deg, #1a4a3d 0%, #8BE9FD 100%); }
.work-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 50%),
              linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
}
.work-visual .wm {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700;
  color: rgba(255,255,255,0.88); letter-spacing: -0.03em; mix-blend-mode: overlay;
}
.work-meta { padding: 1.8rem 2rem; }
.work-tags { display: flex; gap: 0.45rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.work-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  padding: 0.22rem 0.6rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; color: var(--fg-muted);
}
.work-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.3; }
.work-desc { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 1.2rem; line-height: 1.65; }
.work-result { display: flex; align-items: baseline; gap: 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.work-result .big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.3rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.work-result .what { color: var(--fg-muted); font-size: 0.9rem; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 2.2rem 2rem; display: flex; flex-direction: column;
  position: relative; transition: all 0.3s;
}
.testi:hover { border-color: var(--gold); transform: translateY(-3px); }
.testi-quote-mark { font-family: 'JetBrains Mono', monospace; font-size: 3.5rem; color: var(--gold); line-height: 0.5; margin-bottom: 1rem; opacity: 0.85; }
.testi-text { font-size: 1.02rem; color: var(--fg); line-height: 1.7; margin-bottom: 2rem; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
.testi-meta { flex: 1; }
.testi-name { font-weight: 600; color: var(--fg); font-size: 0.95rem; }
.testi-role { color: var(--fg-muted); font-size: 0.82rem; margin-top: 0.15rem; font-family: 'JetBrains Mono', monospace; }
.testi-company { color: var(--gold); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px dashed var(--line-soft); }

/* Stack */
.stack-wrap { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px; padding: clamp(2rem, 4vw, 4rem); }
.stack-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .stack-cols { grid-template-columns: repeat(2, 1fr); } }
.stack-col :is(h3,h4) { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.stack-col ul { list-style: none; }
.stack-col li { padding: 0.55rem 0; color: var(--fg); font-size: 0.95rem; border-top: 1px solid var(--line-soft); font-family: 'JetBrains Mono', monospace; }
.stack-col li:first-of-type { border-top: none; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  padding: 2rem; border: 1px solid var(--line);
  border-radius: 16px; background: var(--bg-elev);
  display: flex; gap: 1.2rem; transition: all 0.3s;
}
.why-item:hover { border-color: var(--gold); }
.why-item .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--gold-glow); border: 1px solid var(--line-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: 'JetBrains Mono', monospace;
  font-weight: 700; flex-shrink: 0;
}
.why-item :is(h3,h4) { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-item p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.65; }

/* ═════════ PAGE-SPECIFIC STYLES ═════════ */

/* About page */
.founder-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (max-width: 900px) { .founder-wrap { grid-template-columns: 1fr; gap: 2.5rem; } }
.founder-photo {
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, #3a2d6b 0%, #D4AC74 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.founder-photo::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
}
.founder-photo .placeholder {
  position: relative; z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 5rem; font-weight: 700;
  color: rgba(255,255,255,0.9); mix-blend-mode: overlay;
}
.founder-story h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.founder-story h2 .accent { color: var(--gold); }
.founder-story p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.founder-story p strong { color: var(--fg); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  padding: 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s;
}
.value:hover { border-color: var(--gold); }
.value .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem; color: var(--gold);
  font-weight: 700; margin-bottom: 1rem;
  display: block; line-height: 1;
}
.value :is(h3,h4) { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.value p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.65; }

.timeline-wrap { max-width: 760px; margin: 0 auto; }
.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-soft);
}
.tl-item:first-of-type { border-top: none; }
.tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem; color: var(--gold);
  font-weight: 700;
}
.tl-content :is(h3,h4) { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.tl-content p { color: var(--fg-muted); font-size: 0.95rem; }

/* Service detail page */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: proc;
}
@media (max-width: 900px) { .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-step {
  padding: 2rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
  counter-increment: proc;
}
.proc-step::before {
  content: '0' counter(proc);
  font-family: 'JetBrains Mono', monospace;
  position: absolute;
  top: 1rem; left: 1.2rem;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
}
.proc-step :is(h3,h4) { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; margin-top: 1.5rem; }
.proc-step p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.6; }

.deliver-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .deliver-grid { grid-template-columns: 1fr; } }
.deliver-item {
  padding: 1.2rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; gap: 1rem; align-items: center;
  transition: all 0.2s;
}
.deliver-item:hover { border-color: var(--gold); }
.deliver-item .check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.deliver-item span { color: var(--fg); font-size: 0.97rem; }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}
.faq-q {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold); }
.faq-q::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold);
  font-size: 1.4rem;
  transition: transform 0.2s;
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding-top: 1rem;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Case study detail */
.cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
@media (max-width: 700px) { .cs-results { grid-template-columns: 1fr; } }
.cs-result {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
}
.cs-result:hover { border-color: var(--gold); }
.cs-result .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.5rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  margin-bottom: 1rem; display: block;
}
.cs-result .what { color: var(--fg-muted); font-size: 0.97rem; line-height: 1.6; }

.cs-prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--fg);
}
.cs-prose :is(h2,h3) {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin: 3rem 0 1.2rem;
  letter-spacing: -0.02em;
}
.cs-prose :is(h2,h3) .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.cs-prose p { color: var(--fg-muted); margin-bottom: 1.5rem; }
.cs-prose p strong { color: var(--fg); font-weight: 600; }
.cs-prose ul { color: var(--fg-muted); padding-right: 1.5rem; margin-bottom: 1.5rem; }
.cs-prose ul li { padding: 0.4rem 0; }
.cs-prose blockquote {
  border-right: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  background: var(--bg-elev);
  border-radius: 0 16px 16px 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--fg);
}
.cs-prose blockquote .author {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  color: var(--gold);
  font-size: 0.9rem;
}

.cs-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 2rem 0 4rem;
}
@media (max-width: 700px) { .cs-meta-bar { grid-template-columns: repeat(2, 1fr); } }
.cs-meta-item .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--fg-dim);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.5rem; display: block;
}
.cs-meta-item .val { color: var(--fg); font-weight: 600; font-size: 1rem; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  padding: 2.5rem;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 24px;
  position: sticky; top: 100px;
}
.contact-method {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 1rem; align-items: center;
}
.contact-method:first-of-type { border-top: none; padding-top: 0; }
.contact-method .ico-wrap {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gold-glow); border: 1px solid var(--line-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
}
.contact-method .info { flex: 1; }
.contact-method .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-method .val { color: var(--fg); font-weight: 600; margin-top: 0.15rem; }
.contact-method a { color: var(--fg); text-decoration: none; transition: color 0.2s; }
.contact-method a:hover { color: var(--gold); }

.contact-form-card {
  padding: 2.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.contact-form-card :is(h2,h3,h4) {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-form-card p {
  color: var(--fg-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Services overview */
.services-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .services-intro-grid { grid-template-columns: 1fr; } }

/* 404 */
.err-wrap {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 0;
  position: relative; z-index: 2;
}
.err-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}
.err-msg {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}
.err-sub { color: var(--fg-muted); max-width: 500px; margin: 0 auto 2.5rem; font-size: 1.05rem; line-height: 1.7; }

/* Legal page */
.legal-body {
  max-width: 760px; margin: 0 auto;
  padding: 4rem 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--fg-muted);
}
.legal-body h2 {
  color: var(--fg);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { margin-bottom: 1.2rem; }
.legal-body ul { padding-right: 1.5rem; margin-bottom: 1.5rem; }
.legal-body li { padding: 0.3rem 0; }

/* ───────── Accessibility ───────── */
/* Distinguish in-text links by more than colour (WCAG 1.4.1) */
main p a:not(.btn):not(.sprint-cta),
.legal-body a, .cs-prose a, .faq-a a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
/* Visible keyboard focus indicator (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}
