/* ============================================================
   مُدرك — Landing
   System: Editorial RTL · Deep green & paper · Plex Arabic + Tajawal
   ============================================================ */

:root {
  color-scheme: light;
  /* surfaces */
  --paper:     #fbfcf8;
  --paper-2:   #f3f6ee;
  --surface:   #ffffff;
  --ink:       #0e1f1b;
  --ink-2:     #1a2e29;
  --muted:     #5d6f69;
  --muted-2:   #8a9893;
  --line:      #dde5dc;
  --line-2:    #e9efe5;
  /* brand */
  --green:        #117d6c;
  --green-dark:   #07594e;
  --green-deep:   #0a3d34;
  --green-night:  #06231f;
  --green-mist:   #e5efe9;
  --cream:       #f6efd9;
  --coral:       #e4553f;
  --coral-soft:  #fde8e3;
  --amber:       #d2941d;
  --amber-soft:  #fbecc7;
  /* effects */
  --shadow-sm: 0 2px 0 rgba(14, 31, 27, 0.04), 0 8px 28px rgba(14, 31, 27, 0.06);
  --shadow-md: 0 2px 0 rgba(14, 31, 27, 0.05), 0 24px 60px rgba(14, 31, 27, 0.10);
  --shadow-lg: 0 30px 90px rgba(7, 89, 78, 0.18);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 28px;

  --serif: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --sans:  "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--green); color: #fff; }

/* ===================== UTILITY BAR ===================== */
.utility-bar {
  background: var(--green-night);
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  font-family: var(--mono);
  letter-spacing: .01em;
}
.util-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfe6df;
}
.status-pill .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(74, 222, 128, .05); }
}
.util-meta { color: rgba(255,255,255,.55); }
.util-link {
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  padding: 2px 10px;
  border-radius: 4px;
}
.util-link:hover { background: rgba(255,255,255,.08); }

@media (max-width: 720px) {
  .util-meta { display: none; }
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  width: 40px; height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand-text .tagline {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: .94rem;
  color: var(--ink-2);
}
.site-nav a {
  position: relative;
  padding: 6px 2px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--green); }
.site-nav a:hover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--green);
}

.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===================== BUTTONS ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  cursor: pointer;
}
.button.lg { min-height: 54px; padding: 0 26px; font-size: 1.04rem; border-radius: 10px; }
.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 30px rgba(17, 125, 108, 0.28);
}
.button.primary:hover { background: var(--green-dark); }

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.ghost:hover { background: var(--surface); border-color: #c8d3cc; }

.button.cream {
  background: var(--cream);
  color: var(--green-deep);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}
.button.cream:hover { background: #fff7e0; }

.button.outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.36);
}
.button.outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  margin-inline-end: 2px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 72px);
  mask-image: radial-gradient(ellipse at 20% 40%, #000 30%, transparent 75%);
  opacity: .8;
}
.hero-glyph {
  position: absolute;
  inset-inline-start: -80px;
  bottom: -120px;
  width: 640px;
  height: 640px;
  color: var(--green);
  opacity: .12;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .96rem;
  color: var(--muted);
}
.hero-quick span { display: inline-flex; align-items: baseline; gap: 6px; }
.hero-quick b {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--green-mist);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .72rem;
}

/* Headline */
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .92;
  font-size: clamp(3.4rem, 9.5vw, 9.5rem);
  color: var(--ink);
}
.hero h1 .line-1,
.hero h1 .line-2,
.hero h1 .line-3 {
  display: block;
}
.hero h1 .line-1 { color: var(--green); }
.hero h1 .line-2 {
  padding-inline-start: clamp(20px, 8vw, 96px);
  color: var(--ink);
}
.hero h1 .line-3 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero h1 em {
  position: relative;
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--cream) 60% 92%, transparent 92%);
  padding: 0 .12em;
}
.cursor {
  display: inline-block;
  width: clamp(10px, 1.5vw, 18px);
  height: clamp(48px, 8vw, 96px);
  background: var(--coral);
  margin-inline-start: 6px;
  margin-bottom: -.12em;
  animation: blink 1.05s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lead {
  max-width: 56ch;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero card */
.hero-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.hero-card::before {
  content: "";
  position: absolute; inset-inline-end: -40px; top: -40px;
  width: 160px; height: 160px;
  background: var(--green-mist);
  border-radius: 999px;
  z-index: 0;
}
.card-tab {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-tab-num { color: var(--green-dark); font-weight: 700; }
.proof-stack {
  position: relative; z-index: 1;
  list-style: none;
  margin: 0; padding: 0;
}
.proof-stack li {
  padding: 18px 22px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-stack li:last-child { border-bottom: 0; }
.proof-stack strong {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
}
.proof-stack span { color: var(--muted); font-size: .94rem; }

.card-foot {
  padding: 14px 22px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--green-dark);
  font-weight: 600;
  border-top: 1px solid var(--line);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 18px;
  border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .94rem;
}
.stat-label .muted { color: var(--muted-2); font-size: .82rem; }

/* ===================== TICKER ===================== */
.ticker {
  background: var(--green-deep);
  color: var(--cream);
  border-block: 1px solid var(--green-night);
  overflow: hidden;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 16px 0;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.ticker-track span { padding-inline: 6px; }
.ticker-track i {
  font-style: normal;
  color: var(--coral);
  font-size: 1.4em;
  line-height: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); } /* RTL: positive moves left visually */
}
[dir="rtl"] .ticker-track {
  animation-name: marquee-rtl;
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================== SECTIONS COMMON ===================== */
.section {
  padding: clamp(64px, 7vw, 110px) clamp(20px, 5vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}
.section-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 4vw, 64px);
}
.sec-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sec-num { color: var(--green); font-weight: 700; }
.sec-tag {
  margin-inline-start: auto;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .98;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  color: var(--ink);
}
.section-header h2 em {
  font-style: normal;
  color: var(--green);
}
.section-header p {
  margin: 0;
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-header.on-dark h2 { color: #fff; }
.section-header.on-dark h2 em { color: var(--cream); }
.section-header.on-dark p { color: rgba(255,255,255,.7); }
.section-header.on-dark .sec-meta { border-color: rgba(255,255,255,.14); }
.section-header.on-dark .sec-num { color: var(--cream); }
.section-header.on-dark .sec-tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.78); }

/* ===================== AUDIT (REPORT + SCREEN) ===================== */
.audit-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.audit-report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.audit-report::before {
  content: "REPORT";
  position: absolute;
  top: 14px;
  inset-inline-start: -32px;
  transform: rotate(-90deg);
  transform-origin: left top;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted-2);
  letter-spacing: .3em;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.report-label {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.report-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.score strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--coral);
}
.score .of { font-size: 1rem; color: var(--muted-2); font-weight: 600; }
.score span { display: block; font-size: .82rem; color: var(--muted); }

.audit-list {
  list-style: none;
  margin: 0;
  padding: clamp(8px, 2vw, 14px) clamp(16px, 3vw, 24px);
}
.audit-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.audit-list li:last-child { border-bottom: 0; }
.audit-list .lvl {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.lvl-high .lvl { background: var(--coral-soft); color: var(--coral); }
.lvl-mid  .lvl { background: var(--amber-soft); color: var(--amber); }
.lvl-low  .lvl { background: var(--green-mist); color: var(--green-dark); }
.audit-list .lbl { color: var(--ink-2); font-weight: 500; }
.audit-list strong {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.report-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--surface));
}
.foot-text { display: flex; flex-direction: column; gap: 2px; }
.foot-text span {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foot-text strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Screenshot frame */
.audit-screen,
.model-screen {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.window-chrome span {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: #d8dfd9;
}
.window-chrome span:nth-child(1) { background: #ec6a5e; }
.window-chrome span:nth-child(2) { background: #f3bf4d; }
.window-chrome span:nth-child(3) { background: #61c554; }
.window-chrome em {
  margin-inline-start: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
}
.window-chrome.dark { background: #0e2622; border-color: #103029; }
.window-chrome.dark em { color: rgba(255,255,255,.6); }

.audit-screen img,
.model-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.screen-tag {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(14, 31, 27, .9);
  color: #fff;
  border-radius: 999px;
  font-size: .82rem;
  font-family: var(--mono);
  backdrop-filter: blur(6px);
}
.screen-tag .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(228, 85, 63, .25);
}

/* ===================== WORKFLOWS ===================== */
.workflow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 14px;
}
.workflow-card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c8d3cc;
}
.workflow-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wf-num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--green-mist);
  color: var(--green-dark);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
}
.wf-tag {
  font-family: var(--mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.wf-tag.dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.workflow-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.workflow-card p { margin: 0; color: var(--muted); }
.wf-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.wf-mini span {
  font-family: var(--mono);
  font-size: .76rem;
  padding: 4px 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}

.workflow-card.big {
  grid-row: span 2;
  background: var(--cream);
  border-color: #e6dec1;
}
.workflow-card.big .wf-num { background: var(--ink); color: var(--cream); }
.workflow-card.big h3 { font-size: 2rem; }

.workflow-card.highlight {
  grid-column: span 2;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.workflow-card.highlight .wf-num { background: var(--cream); color: var(--ink); }
.workflow-card.highlight h3 { color: #fff; font-size: 1.7rem; }
.workflow-card.highlight p { color: rgba(255,255,255,.72); }
.workflow-card.highlight .wf-mini span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--cream); }

/* ===================== MODEL (DARK) ===================== */
.section-model {
  background: linear-gradient(180deg, var(--green-night), var(--green-deep));
  color: #fff;
  padding: clamp(64px, 7vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.section-model::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(228, 85, 63, .12), transparent 50%);
  pointer-events: none;
}
.model-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.layer-card {
  position: relative;
  padding: clamp(22px, 2.5vw, 32px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.layer-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.layer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: .8rem;
}
.layer-en {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
}
.layer-num { color: rgba(255,255,255,.45); }
.layer-card h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.layer-card > p {
  margin: 0;
  color: rgba(255,255,255,.72);
}
.layer-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px dashed rgba(255,255,255,.18);
}
.layer-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: rgba(255,255,255,.85);
  border-bottom: 1px dashed rgba(255,255,255,.1);
  font-size: .96rem;
}
.layer-card li:last-child { border-bottom: 0; }
.layer-card li span { color: var(--coral); font-weight: 700; }

.layer-skills   { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.layer-agents   { background: linear-gradient(180deg, rgba(228, 85, 63, .12), rgba(255,255,255,.02)); border-color: rgba(228,85,63,.25); }
.layer-services { background: linear-gradient(180deg, rgba(246, 239, 217, .1), rgba(255,255,255,.02)); border-color: rgba(246, 239, 217, .22); }

/* ===================== SECURITY ===================== */
.section-security { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.svc-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-mist);
  color: var(--green-dark);
  margin-bottom: 4px;
}
.service-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.service-card p { margin: 0; color: var(--muted); }
.svc-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ===================== QUOTE ===================== */
.section-quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(64px, 7vw, 96px) clamp(20px, 5vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
}
.section-quote blockquote {
  margin: 0;
  position: relative;
  padding-inline-start: clamp(32px, 5vw, 80px);
}
.quote-mark {
  position: absolute;
  inset-inline-start: 0;
  top: -40px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(7rem, 14vw, 14rem);
  line-height: 1;
  color: var(--green);
  opacity: .18;
}
.section-quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-quote blockquote em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 65%, var(--cream) 65% 92%, transparent 92%);
  padding: 0 .12em;
}
.section-quote blockquote footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.section-quote .avatar {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.2rem;
}
.section-quote footer strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.section-quote footer span {
  display: block;
  font-size: .9rem;
  color: var(--muted);
}
.quote-side {
  text-align: center;
  padding: 28px 36px;
  background: var(--green-mist);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.qs-num {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--green-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.qs-lbl {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: .92rem;
}

/* ===================== FINAL CTA ===================== */
.final-cta {
  background: var(--green);
  color: #fff;
  padding: clamp(64px, 7vw, 110px) clamp(20px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset-inline-end: -80px; bottom: -120px;
  width: 460px; height: 460px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(246,239,217,.22), transparent 70%);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}
.eyebrow.on-green {
  color: var(--cream);
  margin-bottom: 16px;
  display: inline-flex;
  font-family: var(--mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cta-text h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .98;
  font-size: clamp(2.4rem, 5.5vw, 5.4rem);
}
.cta-text h2 em {
  font-style: normal;
  color: var(--cream);
}
.cta-text > p {
  margin: 22px 0 0;
  max-width: 56ch;
  color: rgba(255,255,255,.84);
  font-size: 1.08rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.cta-fine {
  margin-top: 18px !important;
  font-family: var(--mono);
  font-size: .82rem;
  color: rgba(255,255,255,.6) !important;
}

.cta-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  backdrop-filter: blur(8px);
}
.cta-card-eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
}
.cta-card ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
}
.cta-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,.18);
}
.cta-card li:last-child { border-bottom: 0; }
.cta-card .step {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-deep);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1rem;
}
.cta-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.cta-card span {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: .94rem;
  margin-top: 2px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--green-night);
  color: rgba(255,255,255,.78);
  padding: clamp(56px, 6vw, 84px) clamp(20px, 5vw, 64px) 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px 12px;
}
.foot-brand .brand-mark { background: var(--green); color: #fff; }
.foot-brand strong {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}
.foot-brand span:last-child {
  grid-column: 1 / -1;
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-title {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cream);
  margin-bottom: 8px;
}
.foot-col a { color: rgba(255,255,255,.78); transition: color .12s; }
.foot-col a:hover { color: #fff; }

.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 28px;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  font-family: var(--mono);
}
.foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
}
.foot-pill .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .15);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .audit-stage { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-card.big { grid-row: auto; grid-column: span 2; }
  .workflow-card.highlight { grid-column: span 2; }
  .model-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .section-quote { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section-header { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { gap: 12px; padding: 12px 16px; grid-template-columns: auto 1fr; }
  .site-nav { display: none; }
  .site-actions .ghost { display: none; }
  .brand-text .tagline { display: none; }
  .hero { padding: 32px 16px 48px; }
  .hero h1 { font-size: 4.4rem; }
  .hero h1 .line-2 { padding-inline-start: 28px; }
  .hero-quick { flex-direction: column; gap: 10px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card.big, .workflow-card.highlight { grid-column: auto; }
  .report-head { flex-direction: column; align-items: flex-start; }
  .report-foot { flex-direction: column; align-items: stretch; }
  .report-foot .button { justify-content: center; }
  .audit-list li { grid-template-columns: auto auto; row-gap: 4px; }
  .audit-list .lbl { grid-column: 1 / -1; order: 3; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; gap: 12px; }
  .ticker { font-size: 1.1rem; }
  .ticker-track { gap: 22px; }
  .section-quote blockquote { padding-inline-start: 16px; }
  .quote-mark { top: -20px; font-size: 6rem; }
}
