/* ============================================================
   Cloud Elevate — Homepage component styles
   ============================================================ */

/* ===== HERO ===== */

.hero {
  position: relative;
  padding-block: clamp(72px, 10vw, 120px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 400px at 80% -10%, oklch(64% 0.18 268 / 0.18), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, oklch(82% 0.13 215 / 0.10), transparent 60%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(28% 0.014 264 / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(28% 0.014 264 / 0.35) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  opacity: 0.5;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 28px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero__assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-1);
  margin-top: 8px;
}
.assurance__item { display: flex; gap: 10px; align-items: flex-start; }
.assurance__check {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid;
  place-items: center;
  margin-top: 3px;
  border: 1px solid oklch(82% 0.13 215 / 0.4);
}
.assurance__title { font-size: 13.5px; font-weight: 500; color: var(--fg-1); letter-spacing: -0.005em; }
.assurance__sub { font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* Hero panel ===== */

.hero__panel {
  position: relative;
}
.panel-frame {
  background: oklch(13% 0.012 270 / 0.72);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 0 oklch(100% 0 0 / 0.04) inset,
    0 30px 80px -20px oklch(0% 0 0 / 0.6),
    0 10px 30px -10px oklch(64% 0.18 268 / 0.25);
  backdrop-filter: blur(8px);
}
.panel-frame__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-1);
  background: linear-gradient(180deg, oklch(15.5% 0.014 268), oklch(13% 0.012 270));
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--r { background: oklch(70% 0.16 25); }
.dot--y { background: oklch(82% 0.14 80); }
.dot--g { background: oklch(72% 0.16 145); }
.panel-frame__url {
  margin-left: 12px;
  color: var(--fg-3);
  font-size: 11px;
}

.panel-frame__body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 420px;
}

.panel-rail {
  border-right: 1px solid var(--line-1);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  background: oklch(14% 0.012 268);
}
.panel-rail__brand { color: var(--fg-3); margin-bottom: 18px; }
.panel-rail__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.panel-rail__nav li {
  font-size: 12.5px;
  color: var(--fg-3);
  padding: 7px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.005em;
}
.panel-rail__nav li.active {
  color: var(--fg-1);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-1);
}
.panel-rail__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.panel-rail__foot { color: var(--fg-4); padding-top: 12px; border-top: 1px dashed var(--line-1); }

.panel-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.panel-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-title { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; color: var(--fg-1); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-1);
  border-radius: 10px;
  background: oklch(15.5% 0.014 268);
  overflow: hidden;
}
.kpi { padding: 14px 16px; border-right: 1px solid var(--line-1); }
.kpi:last-child { border-right: 0; }
.kpi__label { color: var(--fg-3); font-size: 10.5px; letter-spacing: 0.05em; }
.kpi__val {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 4px;
  color: var(--fg-1);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi__unit { font-size: 12px; color: var(--fg-3); font-weight: 400; }
.kpi__delta { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); margin-top: 2px; }
.kpi__delta.good { color: var(--good); }
.kpi__delta.muted { color: var(--fg-4); }

.spark-card {
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 14px 16px 8px;
  background: oklch(15.5% 0.014 268);
}
.spark-card__head { display: flex; justify-content: space-between; font-size: 11px; }
.spark { width: 100%; height: 56px; margin-top: 4px; display: block; }

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-1);
}
.event-list li {
  display: grid;
  grid-template-columns: 14px 56px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-1);
  font-size: 12.5px;
  color: var(--fg-2);
}
.event-list li:last-child { border-bottom: 0; }
.event-list b { color: var(--fg-1); font-weight: 500; }
.event-list__dot { width: 7px; height: 7px; border-radius: 50%; justify-self: center; }
.event-list__dot.good { background: var(--good); box-shadow: 0 0 0 3px oklch(74% 0.16 155 / 0.18); }
.event-list__dot.accent { background: var(--cyan); box-shadow: 0 0 0 3px oklch(82% 0.13 215 / 0.18); }
.event-list__time { color: var(--fg-3); font-size: 11px; }
.event-list__by { color: var(--fg-4); font-size: 11px; }

/* Trust bar */
.trust {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: 36px;
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.trust__label { color: var(--fg-3); flex: 0 0 auto; }
.trust__logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.85;
}
.trust__logos span {
  white-space: nowrap;
  filter: grayscale(1) contrast(0.9);
}

/* ===== SECTION HEADER ===== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head > div { display: flex; flex-direction: column; gap: 18px; }
.section-head--row {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 28px;
}

/* ===== Capabilities ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-1);
  border-radius: 16px;
  overflow: hidden;
  background: oklch(14% 0.013 268);
}
.cap {
  padding: 32px 32px 28px;
  border-right: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 220ms var(--ease);
}
.cap:last-child { border-right: 0; }
.cap:hover { background: oklch(15.5% 0.014 268); }
.cap--featured { background: linear-gradient(180deg, oklch(64% 0.18 268 / 0.05), transparent 70%); }
.cap--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, oklch(82% 0.13 215 / 0.5), transparent 30%);
  height: 1px;
}
.cap__top { display: flex; align-items: center; justify-content: space-between; }
.cap__num { color: var(--fg-3); font-size: 11px; letter-spacing: 0.06em; }
.cap__title {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  color: var(--fg-1);
}
.cap__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cap__list li { display: flex; gap: 10px; font-size: 14px; color: var(--fg-2); align-items: flex-start; }
.cap__bullet {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  margin-top: 4px;
  position: relative;
}
.cap__bullet::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}
.cap__link { margin-top: 4px; align-self: flex-start; }

/* ===== Feat split ===== */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.feat__copy { display: flex; flex-direction: column; gap: 24px; }
.feat__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line-1);
}
.feat__cell { display: flex; flex-direction: column; gap: 8px; }
.feat__num { color: var(--cyan); font-size: 11px; letter-spacing: 0.05em; }
.feat__visual { position: sticky; top: 96px; }

.visual-card {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: oklch(14% 0.012 268);
  overflow: hidden;
}
.visual-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-1);
  font-size: 11px;
  color: var(--fg-3);
}
.visual-card__body { padding: 18px; }
.graph { width: 100%; height: auto; display: block; }
.visual-card__legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-1);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ===== Products ===== */
.products { display: flex; flex-direction: column; gap: 20px; }
.product {
  border: 1px solid var(--line-1);
  border-radius: 18px;
  background: var(--ink-1);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.product--featured {
  background:
    radial-gradient(700px 360px at 0% 0%, oklch(64% 0.18 268 / 0.18), transparent 60%),
    radial-gradient(500px 360px at 0% 100%, oklch(82% 0.13 215 / 0.10), transparent 60%),
    var(--ink-1);
}
.product__media {
  position: relative;
  border-right: 1px solid var(--line-1);
  min-height: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.product__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: oklch(13% 0.012 270 / 0.7);
  border: 1px solid var(--line-1);
  padding: 6px 10px; border-radius: 999px;
  font-size: 10.5px; color: var(--fg-2); align-self: flex-start;
}
.product__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
}
.phone-mock {
  position: relative;
  width: 150px;
  height: 290px;
  border-radius: 28px;
  background: linear-gradient(160deg, oklch(20% 0.018 268), oklch(13% 0.012 270));
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px oklch(0% 0 0 / 0.6), inset 0 0 0 1px oklch(100% 0 0 / 0.04);
  padding: 12px;
  z-index: 2;
}
.phone-mock__notch {
  width: 60px; height: 14px; border-radius: 0 0 10px 10px;
  background: oklch(8% 0.005 270);
  margin: -12px auto 8px;
}
.phone-mock__screen {
  background: oklch(15.5% 0.014 268);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  height: calc(100% - 16px);
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
  overflow: hidden;
}
.phone-mock__bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  width: 60%;
}
.phone-mock__row { display: flex; gap: 6px; align-items: center; }
.phone-mock__row span:first-child {
  width: 18px; height: 18px; border-radius: 5px;
  background: oklch(22% 0.018 264);
  border: 1px solid var(--line-2);
  flex: 0 0 auto;
}
.phone-mock__row span:last-child {
  flex: 1;
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--line-3), transparent);
}
.phone-mock__pulse {
  position: absolute;
  inset: auto 10px 10px 10px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, oklch(64% 0.18 268 / 0.4), oklch(82% 0.13 215 / 0.25));
  border: 1px solid oklch(82% 0.13 215 / 0.4);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.orbit {
  position: absolute;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  pointer-events: none;
}
.orbit--1 { width: 280px; height: 280px; opacity: 0.5; }
.orbit--2 { width: 380px; height: 380px; opacity: 0.3; }
.orbit--3 { width: 480px; height: 480px; opacity: 0.15; }

.product__copy {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product__head { display: flex; align-items: center; gap: 14px; }
.product__logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600; color: white;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px oklch(80% 0.16 270 / 0.4);
}
.product__logo--alt {
  background: linear-gradient(135deg, oklch(20% 0.018 268), oklch(15.5% 0.014 268));
  color: var(--fg-1);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 14px;
  font-weight: 500;
}
.product__name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg-1); }
.product__tagline { color: var(--fg-3); font-size: 11px; margin-top: 2px; letter-spacing: 0.04em; }
.product__features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
}
.product__features li { display: flex; gap: 10px; font-size: 14px; color: var(--fg-2); align-items: flex-start; }

.products__sub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-sub {
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px;
  background: var(--ink-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.product-sub:hover { border-color: var(--line-2); background: var(--ink-2); }
.product-sub__head { display: flex; align-items: center; justify-content: space-between; }
.product-sub .cap__title { font-size: 19px; }

@media (max-width: 1024px) {
  .product { grid-template-columns: 1fr; }
  .product__media { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .products__sub { grid-template-columns: 1fr; }
}

/* ===== Sectors ===== */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
}
.sector {
  padding: 26px 24px;
  border-right: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 200ms var(--ease);
  position: relative;
}
.sector:last-child { border-right: 0; }
.sector:hover { background: var(--ink-1); }
.sector__label { color: var(--fg-4); font-size: 10.5px; letter-spacing: 0.06em; }
.sector__name { font-size: 18px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; color: var(--fg-1); margin-top: 4px; }
.sector__meta { font-size: 12.5px; color: var(--fg-3); margin-top: 12px; }
.sector::after {
  content: '→';
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 16px;
  color: var(--fg-4);
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}
.sector:hover::after { color: var(--cyan); transform: translateX(4px); }

/* ===== Proof / case ===== */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
}
.proof__case {
  border: 1px solid var(--line-1);
  border-radius: 16px;
  background: var(--ink-1);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  overflow: hidden;
}
.proof__media {
  background:
    radial-gradient(600px 240px at 0% 0%, oklch(64% 0.18 268 / 0.18), transparent 60%),
    linear-gradient(160deg, oklch(18% 0.016 266) 0%, oklch(13% 0.012 270) 100%);
  border-right: 1px solid var(--line-1);
  padding: 28px;
  display: flex;
  align-items: stretch;
}
.proof__media-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.proof__metric {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg-1);
  margin-top: 24px;
  display: flex;
  align-items: baseline;
}
.proof__metric .kpi__unit { font-size: 18px; margin-left: 2px; }
.proof__metric-label { color: var(--fg-3); font-size: 13px; margin-top: 6px; max-width: 24ch; }
.proof__metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proof__small { font-size: 14px; color: var(--fg-1); margin-top: 4px; font-weight: 500; letter-spacing: -0.01em; }
.proof__copy { padding: 28px; display: flex; flex-direction: column; }

.quote {
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 28px;
  background: var(--ink-1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote__mark { color: var(--cyan); opacity: 0.6; }
.quote__text {
  font-size: 21px;
  line-height: 1.4;
  color: var(--fg-1);
  margin: 0;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-1); }
.quote__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: white; letter-spacing: -0.01em;
}
.quote__name { font-size: 14px; font-weight: 500; color: var(--fg-1); }
.quote__role { color: var(--fg-3); font-size: 11px; margin-top: 2px; }

/* ===== Metrics strip ===== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
}
.metric {
  padding: 28px 28px;
  border-right: 1px solid var(--line-1);
}
.metric:last-child { border-right: 0; }
.metric__val {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg-1);
  display: inline-flex;
  align-items: baseline;
}
.metric__plus { font-size: 28px; color: var(--cyan); margin-left: 2px; }
.metric__label { color: var(--fg-3); font-size: 13px; margin-top: 12px; max-width: 24ch; line-height: 1.4; }

/* ===== Resources ===== */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.res {
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-1);
  display: flex;
  flex-direction: column;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.res:hover { border-color: var(--line-2); transform: translateY(-2px); }
.res__media {
  aspect-ratio: 16/10;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--line-1);
  overflow: hidden;
}
.res__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(28% 0.014 264 / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(28% 0.014 264 / 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 80%);
  mask-image: linear-gradient(180deg, black, transparent 80%);
  opacity: 0.6;
}
.res__media--a { background: radial-gradient(500px 200px at 30% 0%, oklch(64% 0.18 268 / 0.35), transparent 60%), oklch(15.5% 0.014 268); }
.res__media--b { background: radial-gradient(500px 200px at 70% 100%, oklch(82% 0.13 215 / 0.28), transparent 60%), oklch(15.5% 0.014 268); }
.res__media--c { background: radial-gradient(500px 200px at 50% 0%, oklch(64% 0.18 295 / 0.28), transparent 60%), oklch(15.5% 0.014 268); }
.res__kind {
  position: relative;
  z-index: 1;
  color: var(--fg-2);
  background: oklch(13% 0.012 270 / 0.7);
  border: 1px solid var(--line-1);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.res__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.res__body .h-card { font-size: 17px; line-height: 1.3; }

/* ===== CTA section ===== */
.cta-section {
  background:
    radial-gradient(800px 300px at 80% 50%, oklch(64% 0.18 268 / 0.16), transparent 60%),
    radial-gradient(600px 200px at 0% 100%, oklch(82% 0.13 215 / 0.10), transparent 60%);
}
.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, auto);
  gap: 32px;
  align-items: end;
}
.cta-shell__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line-1);
  padding-top: 56px;
  padding-bottom: 28px;
  background: oklch(11% 0.010 270);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr);
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: 48px;
}
.site-footer__brand p { color: var(--fg-3); }
.site-footer__certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.site-footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.site-footer__h { font-size: 12px; color: var(--fg-2); font-weight: 500; margin-bottom: 6px; letter-spacing: -0.005em; }
.site-footer__cols a { font-size: 13px; color: var(--fg-3); transition: color 160ms var(--ease); }
.site-footer__cols a:hover { color: var(--fg-1); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-1);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom-links { display: flex; gap: 18px; font-size: 12px; }
.site-footer__bottom-links a { color: var(--fg-3); }
.site-footer__bottom-links a:hover { color: var(--fg-1); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__grid, .feat, .proof { grid-template-columns: 1fr; }
  .feat__visual { position: static; }
  .cap-grid, .sectors, .metrics { grid-template-columns: repeat(2, 1fr); }
  .cap, .sector, .metric { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .cap:nth-child(2n), .sector:nth-child(2n), .metric:nth-child(2n) { border-right: 0; }
  .cap:nth-child(odd), .sector:nth-child(odd), .metric:nth-child(odd) { border-right: 1px solid var(--line-1); }
  .res-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .proof__case { grid-template-columns: 1fr; }
  .proof__media { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero__assurance { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
  .cap-grid, .sectors, .metrics, .feat__grid { grid-template-columns: 1fr; }
  .cap, .sector, .metric { border-right: 0 !important; }
  .panel-frame__body { grid-template-columns: 1fr; }
  .panel-rail { display: none; }
  .h-display { font-size: 44px; }
}

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__form[hidden], .modal__success[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: oklch(8% 0.005 270 / 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 200ms var(--ease);
}
.modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 30px 80px -20px oklch(0% 0 0 / 0.7);
  animation: panelIn 280ms var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--fg-3);
  border: 1px solid var(--line-1);
  transition: all 160ms var(--ease);
}
.modal__close:hover { color: var(--fg-1); background: var(--ink-2); border-color: var(--line-2); }
.modal__head { margin-bottom: 24px; }
.modal__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--fg-3); font-weight: 500; letter-spacing: -0.005em; }
.field input, .field select, .field textarea {
  font: inherit;
  background: var(--ink-0);
  color: var(--fg-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--ink-2);
  box-shadow: 0 0 0 3px oklch(82% 0.13 215 / 0.15);
}
.field textarea { resize: vertical; min-height: 88px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%239aa4c3' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.modal__actions {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line-1);
  margin-top: 4px;
}
.modal__success {
  text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}
.modal__success-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: oklch(74% 0.16 155 / 0.14);
  border: 1px solid oklch(74% 0.16 155 / 0.4);
  color: var(--good);
  display: grid; place-items: center;
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: oklch(70% 0.16 25);
  box-shadow: 0 0 0 3px oklch(70% 0.16 25 / 0.18);
}
.g-recaptcha {
  display: flex;
  justify-content: flex-start;
}
.g-recaptcha > div { max-width: 100%; }
@media (max-width: 560px) {
  .modal__panel { padding: 24px 20px; }
  .modal__form { grid-template-columns: 1fr; }
}

body.modal-open { overflow: hidden; }

/* ===== Color overrides for tweaks ===== */
[data-accent="cyan"] { --accent-h: 215; }
[data-accent="indigo"] { --accent-h: 268; }
[data-accent="violet"] { --accent-h: 295; }
[data-accent="emerald"] { --accent-h: 165; }

[data-accent] {
  --cyan: oklch(82% 0.13 var(--accent-h));
  --cyan-soft: oklch(82% 0.13 var(--accent-h) / 0.16);
}

[data-bg="ink"] { --ink-0: oklch(13% 0.012 270); }
[data-bg="charcoal"] { --ink-0: oklch(16% 0.005 270); --ink-1: oklch(19% 0.006 270); --ink-2: oklch(22% 0.008 268); }
[data-bg="midnight"] { --ink-0: oklch(11% 0.025 265); --ink-1: oklch(14% 0.025 265); --ink-2: oklch(17% 0.025 265); }

[data-density="compact"] .section { padding-block: clamp(48px, 6vw, 88px); }
[data-density="compact"] .cap { padding: 22px 22px 20px; }
[data-density="compact"] .h-display { font-size: clamp(40px, 5vw, 72px); }

/* ============================================================
   PAGE HERO (slimmer than homepage hero — for inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-1);
}
.page-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 880px;
}
.page-hero__title {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.page-hero__lede {
  max-width: 60ch;
}

/* ============================================================
   ABOUT STATS (used inside .visual-card)
   ============================================================ */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-stat__val {
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  line-height: 1;
}
.about-stat__label {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.45;
  max-width: 36ch;
}
.hairline {
  height: 1px;
  background: var(--line-1);
  width: 100%;
}

/* ============================================================
   GIJI tile mock (used on products.html and giji.html)
   ============================================================ */
.giji-tile {
  aspect-ratio: 9 / 16;
  border-radius: 4px;
  background: oklch(15% 0.012 270);
  border: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
}
.giji-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, oklch(20% 0.014 270) 0%, oklch(13% 0.012 270) 100%);
  opacity: 0.6;
}
.giji-tile::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-3);
}
.giji-tile--ok::after { background: oklch(72% 0.16 145); box-shadow: 0 0 6px oklch(72% 0.16 145 / 0.5); }
.giji-tile--busy::after { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); animation: gijiPulse 1.4s var(--ease) infinite; }
.giji-tile--idle::after { background: oklch(70% 0.13 80); }

/* ============================================================
   LEGAL prose (privacy.html, tos.html)
   ============================================================ */
.legal {
  max-width: 72ch;
  margin: 0 auto;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
}
.legal h2 {
  font-family: var(--ff-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line-1);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h3 {
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  margin: 28px 0 8px;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 6px 0 18px; padding-left: 20px; list-style: none; }
.legal ul li { position: relative; margin-bottom: 8px; padding-left: 4px; }
.legal ul li::before {
  content: '';
  position: absolute; left: -16px; top: 11px;
  width: 6px; height: 1px; background: var(--cyan); opacity: 0.7;
}
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { opacity: 0.8; }
.legal strong { color: var(--fg); font-weight: 500; }
.legal em { font-style: italic; color: var(--fg); }
.legal__meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  display: block;
}
.legal__toc {
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 48px;
  background: oklch(11% 0.012 270);
}
.legal__toc h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin: 0 0 12px;
}
.legal__toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
}
.legal__toc ol li { margin-bottom: 6px; break-inside: avoid; }
.legal__toc ol li a { color: var(--fg-2); text-decoration: none; }
.legal__toc ol li a:hover { color: var(--cyan); }
.legal__toc ol li::before { display: none; }

/* 404 hero */
.notfound {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.notfound__code {
  font-family: var(--ff-mono);
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: 24px;
}
@keyframes gijiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
