/* ============================================================
   ZIDOSOFT — COMPONENTS
   Section layouts for marketing pages. Inherits from theme.css.
   ============================================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  padding: 20px 0;
  transition:
    padding var(--dur-base) var(--ease),
    transform 400ms var(--ease-out),
    background-color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: opacity var(--dur-fast) var(--ease);
}

.logo:hover { opacity: 0.85; }

.logo img {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 200ms var(--ease);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--text); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link .chevron {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75em;
  transition: transform 250ms var(--ease-out);
}

.nav-link[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hide-mobile { display: none !important; }
}

@media (min-width: 901px) {
  .show-mobile { display: none !important; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-headline {
  margin: var(--space-6) 0 0;
}

.hero-sub {
  max-width: 640px;
  margin-top: var(--space-6);
  color: var(--text-muted);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section-head .label {
  margin-bottom: var(--space-4);
}

.section-head h2 {
  margin-bottom: var(--space-5);
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-8) 0;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

/* ---------- CAPABILITY GRID ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.capability-grid .capability-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: inherit;
}

.capability-grid .capability-card h3 {
  font-size: 1.125rem;
  margin: 0;
}

.capability-grid .capability-card p {
  font-size: 0.9375rem;
  flex: 1;
}

.capability-card .cap-num {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.capability-card .cap-subservices ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capability-card .cap-subservices li {
  color: var(--text-muted);
  padding: 3px 0;
  font-size: 0.875rem;
}

.capability-card .cap-arrow {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: auto;
}

.capability-grid .cap-wide {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid .cap-wide { grid-column: auto; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid .cap-wide { grid-column: span 2; }
}

/* ---------- NUMBERS ---------- */
.numbers-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.number-item {
  text-align: center;
}

.number-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  min-height: 1em;
  display: block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.number-label {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- PROCESS ---------- */
.process-track {
  position: relative;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  border-radius: var(--radius-pill);
  margin: var(--space-8) 0;
}

.process-track-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.process-step .step-num {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.process-step h4 {
  font-size: 1.0625rem;
  margin: 0;
}

.process-step p {
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .process-track { display: none; }
}

/* ---------- SECURITY SECTION ---------- */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}

.security-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.security-badge {
  padding: var(--space-5);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.security-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.badge-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.badge-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* ---------- CTA ---------- */
.cta-section {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--line);
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-9) 0 var(--space-6);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

.footer-brand {
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-3);
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover { color: var(--text); }

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-socials a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- MEGA MENU ---------- */
.mega-menu {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms var(--ease),
    transform 240ms var(--ease-out);
  z-index: 100;
}

.mega-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
}

.mega-menu-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition:
    background-color 180ms var(--ease),
    opacity 260ms var(--ease),
    transform 260ms var(--ease-out);
  opacity: 0;
  transform: translateY(6px);
  align-items: center;
}

.mega-menu-item:hover { background: var(--bg-elev-2); }

.mega-menu-item .mono {
  grid-row: 1 / 3;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  align-self: start;
  padding-top: 2px;
}

.mega-menu-item strong {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.mega-menu-item .text-sm {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mega-menu.open .mega-menu-item {
  opacity: 1;
  transform: translateY(0);
}

.mega-menu.open .mega-menu-item:nth-child(1) { transition-delay: 30ms; }
.mega-menu.open .mega-menu-item:nth-child(2) { transition-delay: 60ms; }
.mega-menu.open .mega-menu-item:nth-child(3) { transition-delay: 90ms; }
.mega-menu.open .mega-menu-item:nth-child(4) { transition-delay: 120ms; }
.mega-menu.open .mega-menu-item:nth-child(5) { transition-delay: 150ms; }
.mega-menu.open .mega-menu-item:nth-child(6) { transition-delay: 180ms; }
.mega-menu.open .mega-menu-item:nth-child(7) { transition-delay: 210ms; }

.mega-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 14px 4px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.mega-footer a {
  font-size: 0.8125rem;
  font-weight: 500;
}

.mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
  z-index: 90;
}

.mega-backdrop.open { opacity: 1; pointer-events: auto; }

.nav-item-dropdown { position: relative; }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 96px var(--container-pad) var(--space-6);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .mobile-link {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  padding: var(--space-3) 0;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out);
}

.mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 160ms; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 220ms; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 280ms; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 340ms; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 400ms; }

/* Hamburger */
.hamburger {
  width: 32px;
  height: 32px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  position: absolute;
  left: 6px;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 300ms var(--ease);
}

.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 16px; }
.hamburger span:nth-child(3) { top: 21px; }

.hamburger.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  height: 32px;
}

.theme-toggle button {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  cursor: pointer;
  transition:
    color 200ms var(--ease),
    background-color 200ms var(--ease),
    transform 200ms var(--ease);
}

.theme-toggle button:hover { color: var(--text); }
.theme-toggle button:active { transform: scale(0.9); }

.theme-toggle button[aria-pressed="true"] {
  background: var(--bg-elev-3);
  color: var(--text);
}

.theme-toggle svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .theme-toggle { display: none; }
}

/* ---------- PAGE PROGRESS BAR ---------- */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 999;
  transition: transform 400ms var(--ease-out);
  pointer-events: none;
}


/* ============================================================
   HERO SPLIT + ADMIN PREVIEW
   ============================================================ */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1000px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1000px) {
  .hero-preview {
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
  }
}

.hero-preview-frame {
  width: 100%;
  max-width: 560px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: heroPreviewIn 1200ms var(--ease-out) 700ms forwards;
}

@keyframes heroPreviewIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Browser chrome bar */
.hero-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
}

.hero-preview-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

.hero-preview-url {
  flex: 1;
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--bg-elev-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: center;
}

/* Body */
.hero-preview-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 340px;
}

/* Sidebar */
.hero-preview-sidebar {
  padding: 16px 12px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-preview-logo {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero-preview-nav-item {
  height: 20px;
  border-radius: 4px;
  background: var(--bg-elev-2);
}

.hero-preview-nav-item.active {
  background: var(--accent-dim);
  border: 1px solid rgba(201, 169, 97, 0.3);
  position: relative;
}

.hero-preview-nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%);
}

.hero-preview-nav-item:nth-child(3) { width: 90%; }
.hero-preview-nav-item:nth-child(4) { width: 70%; }
.hero-preview-nav-item:nth-child(5) { width: 85%; }
.hero-preview-nav-item:nth-child(6) { width: 60%; }

/* Main */
.hero-preview-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-preview-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-preview-kpi {
  padding: 12px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-preview-kpi .kpi-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-preview-kpi .kpi-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.hero-preview-kpi .kpi-value.accent {
  color: var(--accent);
}

.hero-preview-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hero-preview-row {
  height: 20px;
  background: var(--bg-elev-2);
  border-radius: 4px;
  opacity: 0.7;
}

.hero-preview-row.head {
  height: 14px;
  background: var(--bg-elev-3);
  opacity: 0.5;
}

.hero-preview-row:nth-child(3) { width: 92%; }
.hero-preview-row:nth-child(4) { width: 85%; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-preview-frame {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   FEATURED CASE STUDY
   ============================================================ */

.featured-case-section {
  padding: var(--space-9) 0;
}

.featured-case {
  padding: 64px 56px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.featured-case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.featured-case-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.featured-case-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 var(--space-5);
  max-width: 900px;
}

.featured-case-body {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 var(--space-7);
}

.featured-case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.featured-case-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.featured-case-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .featured-case {
    padding: 40px 28px;
  }
  .featured-case-stats {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ============================================================
   CLIENT PORTAL SHOWCASE
   ============================================================ */

.portal-showcase {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portal-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 1000px) {
  .portal-showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.portal-showcase-copy h2 {
  margin: var(--space-4) 0 var(--space-5);
}

.portal-showcase-list {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.portal-showcase-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.portal-showcase-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-showcase-list li strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

/* Portal preview */
.portal-showcase-preview {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1000px) {
  .portal-showcase-preview {
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
  }
}

.portal-preview-frame {
  width: 100%;
  max-width: 520px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.portal-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
}

.portal-preview-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.portal-preview-url {
  flex: 1;
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--bg-elev-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-align: center;
}

.portal-preview-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-preview-head {
  margin-bottom: 12px;
}

.portal-preview-greeting {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.portal-preview-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.portal-preview-card {
  padding: 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.portal-preview-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portal-preview-card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.portal-preview-card-ref {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.portal-preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: var(--radius-pill);
}

.portal-preview-progress {
  height: 4px;
  background: var(--bg-elev-3);
  border-radius: 2px;
  overflow: hidden;
}

.portal-preview-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  animation: portalPreviewFill 1400ms var(--ease-out) 1000ms both;
  transform-origin: left;
}

@keyframes portalPreviewFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.portal-preview-message {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  margin-top: 4px;
}

.portal-preview-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.portal-preview-message-author {
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.portal-preview-message-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .portal-preview-progress-fill {
    animation: none;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE — smaller screens
   ============================================================ */

@media (max-width: 900px) {
  .hero-preview-body {
    grid-template-columns: 1fr;
  }
  .hero-preview-sidebar {
    display: none;
  }
  .hero-preview-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}