/* =========================================================
   Aigentel — Landing Page Styles
   Rebuilt from the Figma design "Aigentel | Landing" (V.1)
   Dark, telco-native, Inter + Instrument Sans
   Brand: Aigentel Blue #2356FF · Deep Signal Blue #1233B8
   ========================================================= */

:root {
  --bg: #0c0c0c;
  --ink: #131311;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.5);
  --hairline: rgba(255, 255, 255, 0.1);
  --grey-ink: #616a88;
  --chip-ink: #434b64;
  --blue: #2356ff;
  --blue-deep: #1233b8;
  --blue-soft: #8ca7ff;
  --green: #20a852;
  --red: #e03c3c;
  --card-light: #f1f2f7; /* matches the micro-interaction video background */
  --r: 16px;
  --r-lg: 24px;
  --container: 1152px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Instrument Sans', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* land anchored sections flush under the 80px sticky nav */
section[id], footer[id] { scroll-margin-top: 81px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Type ---------- */
.section-title {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
}
.section-sub {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  text-align: center;
}
.section-title--dark { color: var(--ink); }
.section-sub--dark { color: var(--grey-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 0;
  font: 500 14px/1 var(--font);
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 14px; font-size: 12px; border-radius: 8px; }
.btn--primary { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); }
.btn--dark { background: #2a2a28; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.btn--loading { opacity: 0.6; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
}
.brand__mark { width: 24px; height: auto; }
.brand__name {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: 144px;
}
.nav__links a {
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.9;
}
.nav__links a:hover { opacity: 1; }
.nav__actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav--scrolled { background: rgba(12, 12, 12, 0.92); }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 0;
  border-bottom: 1px solid var(--hairline);
}
.hero__title {
  font-size: clamp(34px, 4.4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
}
.hero__sub {
  max-width: 580px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--white);
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* Hero visual — animated agent scene */
.hero-visual {
  position: relative;
  max-width: 1040px;
  margin: 26px auto 72px;
  aspect-ratio: 1040 / 428;
  border-radius: var(--r);
  background: url('assets/hero-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}
.hero-visual__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Trusted by ---------- */
.trusted {
  padding: 68px 0 72px;
}
.trusted__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fcfdff;
}
.trusted__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.trusted__logo {
  width: 200px;
  height: 72px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.trusted__logo img { width: 192px; height: 64px; object-fit: contain; }
a.trusted__logo { text-decoration: none; transition: border-color 0.2s ease, background 0.2s ease; }
a.trusted__logo:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03); }

/* ---------- Decisions (why agentize) ---------- */
.decisions { padding: 88px 0 60px; }
.decisions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 64px;
  border-radius: var(--r);
}
.dcard {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  min-height: 260px;
  border: 1px solid var(--hairline);
}
.dcard--tl { border-radius: var(--r) 0 0 0; border-right: 0; border-bottom: 0; }
.dcard--tr { border-radius: 0 var(--r) 0 0; border-bottom: 0; }
.dcard--bl { border-radius: 0 0 0 var(--r); border-right: 0; }
.dcard--br { border-radius: 0 0 var(--r) 0; }
.dcard__body { max-width: 300px; display: flex; flex-direction: column; }
.dcard__body h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.dcard__body p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.dcard__link {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.dcard__link:hover { color: #b0c3ff; }

/* Dot-matrix glyph — canvas rendered (see script.js); flowing hover wave. */
.dcard__glyph {
  width: 150px;
  height: 150px;
  flex: none;
  align-self: center;
}

/* ---------- Stats (light) ---------- */
.stats {
  background: var(--white);
  color: var(--ink);
  padding: 120px 0;
}
.stats .section-title,
.stats .section-sub {
  text-align: left;
  margin-left: 0;
}
.stats .section-sub { max-width: 340px; }
.stats__rows { margin-top: 64px; display: flex; flex-direction: column; gap: 56px; }
.stat {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 48px;
  align-items: center;
}
.stat__num {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.stat__info p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--grey-ink);
}
.stat__bars {
  display: flex;
  gap: clamp(3px, 0.65vw, 9px);
  height: 44px;
  align-items: stretch;
  overflow: hidden;
  min-width: 0;
}
.stat__bars i {
  flex: 1 1 2px;
  min-width: 1px;
  max-width: 4px;
  border-radius: 2px;
  background: var(--blue);
}
.stat__bars i.off { background: #e4e7ef; }

/* ---------- Portfolio (light) ---------- */
.portfolio {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: 40px 0 0;
  overflow: hidden;
  border-top: 1px solid #eef0f4;
}
.portfolio__watermark {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, rgba(35, 86, 255, 0.34), rgba(35, 86, 255, 0.04));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.portfolio__globe {
  width: 100px;
  margin: 96px auto 44px;
  position: relative;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 64px 0 96px;
  position: relative;
}
.pcard {
  background: var(--card-light);
  border-radius: var(--r-lg);
  padding: 48px 48px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pcard h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pcard p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--grey-ink);
  max-width: 440px;
}
.pcard__visual {
  /* full-bleed micro-interaction video: its own padding + bg match the card */
  display: block;
  width: calc(100% + 96px);
  margin: 12px -48px 0;
  aspect-ratio: 1128 / 820;
  object-fit: cover;
  object-position: center bottom;
}
.pcard__visual--center { object-position: center; }

/* ---------- Flagship ---------- */
.flagship { padding: 120px 0 72px; }
.flagship__grid {
  display: grid;
  grid-template-columns: minmax(380px, 556px) 1fr;
  gap: 20px;
  align-items: stretch;
}
.flagship__card {
  border-radius: var(--r);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #2356ff 0%, #16308f 38%, #060a1c 68%, #000 100%);
  background-origin: border-box;
  padding: 72px 44px 0;
  text-align: center;
  min-height: 560px;
}
.flagship__card h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.flagship__card p {
  margin: 22px auto 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.85);
}
.flagship__list { display: flex; flex-direction: column; gap: 12px; }
.frow {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
  padding: 20px 24px;
  min-height: 116px;
}
.frow img { width: 76px; height: 78px; flex: none; }
.frow h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.frow p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
}

/* ---------- Opportunity ---------- */
.opportunity { padding: 72px 0 120px; border-top: 1px solid var(--hairline); }
.opp__video {
  display: block;
  width: 100%;
  margin-top: 56px;
}
.opp__diagram {
  /* HTML fallback diagram — shown only below 1100px where video text is unreadable */
  display: none;
  position: relative;
  grid-template-columns: 300px 1fr 300px;
  gap: 36px;
  margin-top: 88px;
}
.opp__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.opp__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.opp__col--right { justify-content: center; }
.ocard {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  justify-content: center;
}
.opp__col--right .ocard { min-height: 182px; }
.ocard__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}
.ocard__name { font-size: 16px; }
.ocard__value {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--blue-soft);
  line-height: 1.05;
}
.opp__center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}
.opp__chip { position: relative; text-align: center; }
.opp__chip img { width: 168px; margin: 0 auto; mix-blend-mode: lighten; }
.opp__chip span {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.opp__engine { margin-top: 28px; width: min(370px, 100%); }
.opp__engine-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #131313;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  width: fit-content;
  margin: 0 auto;
  box-shadow: 0 0 24px 4px rgba(35, 86, 255, 0.55);
  position: relative;
  z-index: 1;
}
.opp__engine-pill img { width: 20px; height: 20px; border-radius: 50%; }
.opp__panel {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opp__panel-label {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.opp__panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.opp__panel-item--active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}
.opp__panel-item--dim { min-height: 44px; opacity: 0.4; }

/* ---------- Stall (light) ---------- */
.stall {
  background: var(--white);
  color: var(--ink);
  padding: 120px 0;
}
.stall .section-title,
.stall .section-sub {
  text-align: left;
  margin-left: 0;
}
.stall__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.stall__chips span {
  font-size: 12px;
  color: var(--chip-ink);
  background: #eff1f5;
  border-radius: 999px;
  padding: 8px 14px;
}
.stall__card {
  margin-top: 56px;
  background: var(--card-light);
  border-radius: var(--r-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 48px;
}
.stall__points { display: flex; flex-direction: column; gap: 40px; }
.stall__points h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.stall__points p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--grey-ink);
  max-width: 380px;
}
.stall__visual {
  position: relative;
  overflow: hidden;
  background: #d9dbdf;
  border-radius: var(--r-lg);
  min-height: 380px;
}
.stall__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.stall__prompt { z-index: 2; }
.stall__prompt {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: min(540px, 88%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(19, 19, 17, 0.92);
  border-radius: 999px;
  padding: 14px 14px 14px 24px;
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.stall__prompt button {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---------- Pipeline ---------- */
.pipeline { padding: 120px 0; }
.pipe__frame {
  margin-top: 88px;
  border-radius: var(--r);
  background:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  padding: 128px 48px 96px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 64px;
}
.pipe__steps {
  display: flex;
  flex-direction: column;
  gap: 200px;
}
.pipe__badge {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline);
}
.pipe__step h3 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pipe__step p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 340px;
}
.pipe__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.pipe__visual::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(35, 86, 255, 0), rgba(35, 86, 255, 0.5), rgba(35, 86, 255, 0));
}
.pipe__visual > * { position: relative; }
.pipe__sources { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pipe__pill {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline);
  padding: 10px 16px;
  border-radius: 10px;
}
.pipe__live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  margin-top: 22px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot--ok { background: var(--green); }
.pipe__chip { position: relative; margin-top: 14px; }
.pipe__chip img { width: 124px; mix-blend-mode: lighten; }
.pipe__chip span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 12px;
}
.pipe__card {
  width: 100%;
  background: #101012;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 22px 24px;
}
.pipe__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.pipe__flag {
  color: var(--blue-soft);
  background: rgba(35, 86, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
}
.pipe__score {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.pipe__thresh { font-size: 12px; color: rgba(255, 255, 255, 0.65); margin: 4px 0 18px; }
.pipe__meter {
  display: grid;
  grid-template-columns: 64px 1fr 36px;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  margin-top: 12px;
}
.pipe__meter b { font-weight: 500; text-align: right; }
.meter {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
}
.pipe__analyzing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: #131313;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 0 24px 4px rgba(35, 86, 255, 0.45);
  margin: 20px 0;
}
.pipe__analyzing img { width: 20px; height: 20px; border-radius: 50%; }
.pipe__campaign-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 6px;
}
.pipe__blue-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  flex: none;
}
.pipe__campaign-head strong { font-weight: 400; font-size: 16px; display: block; }
.pipe__campaign-head small { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.pipe__kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  margin-top: 14px;
}
.pipe__kv span { color: rgba(255, 255, 255, 0.7); }
.pipe__kv b { font-weight: 500; text-align: right; }
.pipe__card--route {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pipe__card--route strong { font-weight: 400; font-size: 16px; display: block; }
.pipe__card--route small { font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.pipe__flagicon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(224, 60, 60, 0.14);
  display: grid;
  place-items: center;
  flex: none;
}
.pipe__applied {
  margin-left: auto;
  font-size: 12px;
  color: var(--green);
  background: rgba(32, 168, 82, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
}
.pipe__card--reason small { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.pipe__card--reason p { margin-top: 10px; font-size: 16px; }
.pipe__complete {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
}
.pipe__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #0c0c0c;
  display: grid;
  place-items: center;
}

/* ---------- Principles ---------- */
.principles { padding: 24px 0 72px; border-top: 1px solid var(--hairline); }
.principles__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  padding: 48px;
  min-height: 556px;
  /* fallback tint behind the tower video */
  background: linear-gradient(100deg, #0d1236 0%, #1b3bb4 55%, #2356ff 100%);
}
/* Telecom-tower background video (full-bleed, stretched to cover) */
.principles__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Deep Signal Blue wash: solid over the copy (left), clearing to reveal the
   tower on the right — matches the Figma gradient overlay (#1233B8, α 0→1). */
.principles__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    #1233b8 0%,
    rgba(18, 51, 184, 0.9) 30%,
    rgba(18, 51, 184, 0) 66%
  );
}
.principles__content { position: relative; z-index: 2; }
.principles__card h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.principles__sub {
  margin-top: 22px;
  max-width: 430px;
  color: rgba(255, 255, 255, 0.85);
}
.principles__list {
  list-style: none;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 460px;
}
.principles__list li { display: flex; gap: 16px; align-items: flex-start; }
.pr__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.principles__list strong { font-size: 14px; font-weight: 500; display: block; }
.principles__list small { font-size: 12px; color: rgba(255, 255, 255, 0.75); }

/* ---------- Demo CTA ---------- */
.demo {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: url('assets/cta-bg.jpg') center / cover no-repeat;
  overflow: hidden;
}
.demo__inner {
  padding: 96px 24px 132px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.demo__inner h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.demo__inner > p {
  margin: 20px auto 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.85);
}
.demo__form {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.form__field { width: 100%; max-width: 440px; }
.demo__form .btn { width: 100%; max-width: 440px; }
.form__field input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font: 400 14px var(--font);
  outline: none;
}
.form__field input::placeholder { color: rgba(255, 255, 255, 0.75); }
.form__field input:focus { border-color: var(--white); }
.form__hint {
  flex-basis: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}
.form__error {
  width: 100%;
  max-width: 440px;
  font-size: 13px;
  color: #ffd7d7;
  background: rgba(150, 30, 30, 0.45);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 6px;
}
.form__success {
  width: 100%;
  max-width: 440px;
  font-size: 15px;
  color: var(--white);
  background: rgba(12, 12, 12, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 6px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: -48px;
  background: var(--bg);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand p {
  margin-top: 24px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.8);
}
.footer__col { display: flex; flex-direction: column; gap: 18px; }
.footer__col h4 {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.footer__col a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
}
.footer__col a:hover { color: var(--blue-soft); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0 44px;
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__social-link svg { flex: none; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { margin-left: 32px; }
  .flagship__grid { grid-template-columns: 1fr; }
  .flagship__card { min-height: 420px; padding-bottom: 56px; }
  .opp__video { display: none; }
  .opp__diagram { display: grid; }
  .opp__wires { display: none; }
  .opp__diagram { grid-template-columns: 1fr 1fr; }
  .opp__center { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .btn--ghost.btn--sm { display: none; }
  .decisions__grid { grid-template-columns: 1fr; }
  .dcard { border-radius: 0 !important; border: 1px solid var(--hairline) !important; margin-top: -1px; }
  .dcard--tl { border-radius: var(--r) var(--r) 0 0 !important; margin-top: 0; }
  .dcard--br { border-radius: 0 0 var(--r) var(--r) !important; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; gap: 20px; }
  .stall__card { grid-template-columns: 1fr; }
  .pipe__frame { grid-template-columns: 1fr; padding: 48px 20px; gap: 48px; }
  .pipe__steps { gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero__title br,
  .section-title br,
  .flagship__card h2 br,
  .principles__card h2 br,
  .demo__inner h2 br { display: none; }
  .hero__cta { flex-direction: column; align-items: center; }
  .pcard__visual { width: calc(100% + 48px); margin: 12px -24px 0; }
  .pcard { padding: 32px 24px 0; }
  .opp__diagram { grid-template-columns: 1fr; }
  .dcard { flex-direction: column; }
  .dcard__glyph { align-self: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .demo__inner { padding: 64px 20px 110px; }
}
