/* UNIFIN website - light canon of the solution pages (Onest, navy/blue, white cards). */

@font-face { font-family: 'Onest'; src: url('../fonts/Onest-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../fonts/Onest-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Onest'; src: url('../fonts/Onest-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0018A8;
  --blue: #0F62FE;
  --ink: #0A1730;
  --ink2: #1A2B4C;
  --muted: #5C6B80;
  --muted2: #9AA5B0;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --line: #E1E5EA;
  --line2: #E9EDF1;
  --tint: #FAFBFC;
  --green: #15803D;
  --red: #DC2626;
  --amber: #B45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 26px rgba(10, 23, 48, .07);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 12px; }
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 500; }
p { margin: 0 0 12px; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; scroll-margin-top: 84px; }
.section-tint { background: linear-gradient(180deg, #FFFFFF 0%, var(--tint) 100%); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }

.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.section-lead { max-width: 780px; color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.lead { color: var(--muted); font-size: 18px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid rgba(15, 98, 254, .45); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 20px; font: inherit; font-weight: 500; font-size: 15px;
  cursor: pointer; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: rgba(0, 24, 168, .06); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #E8ECFF; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .glyph { width: 30px; height: 30px; color: var(--navy); }
.brand-word { font-weight: 700; font-size: 19px; letter-spacing: .02em; display: inline-flex; flex-direction: column; line-height: 1.05; background: linear-gradient(96deg, #2700FE 0%, #CC06FB 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #2700FE; }
.brand-word small { font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted2); background: none; -webkit-text-fill-color: var(--muted2); }
.nav { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.email-img { opacity: .85; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lang-switch-label { color: var(--muted); white-space: nowrap; }
.lang-select-wrap { position: relative; display: inline-flex; }
.lang-select { appearance: none; -webkit-appearance: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 30px 6px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.lang-select:hover { border-color: var(--blue); }
.lang-select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-select-wrap::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FF 60%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.product-hero-copy { display: flex; flex-direction: column; align-self: stretch; }
.product-hero-copy .hero-actions { margin-top: auto; padding-top: 26px; }
.stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat dt { order: 2; font-size: 13px; color: var(--muted); max-width: 150px; }
.stat dd { order: 1; margin: 0 0 2px; font-size: 26px; font-weight: 700; color: var(--navy); }
.stat { display: flex; flex-direction: column; }
.mission-plate { margin-top: 34px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FF 100%); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; box-shadow: var(--shadow); }
.mission-plate p { margin: 12px 0 0; color: var(--ink2); font-size: 16.5px; max-width: 980px; }
.chip { display: inline-block; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink2); }
.chip-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tagcloud li { background: #fff; border: 1px solid var(--line); color: var(--ink2); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; }

/* ---------- Product hero ---------- */
.product-hero { padding-top: 26px; background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FF 55%, var(--bg) 100%); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.product-title { display: flex; align-items: center; gap: 14px; font-size: 34px; }
.product-glyph { color: var(--navy); display: inline-flex; }
.product-glyph .glyph { width: 40px; height: 40px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(10, 23, 48, .03); }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-plain { background: #fff; }
.card-num { display: inline-block; font-weight: 700; font-size: 13px; color: var(--blue); letter-spacing: .08em; margin-bottom: 8px; }

.rule-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Screens ---------- */
.shot { margin: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shot-frame img { width: 100%; }
figure.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
/* Trade USSD AI: the phone frames run at a larger scale (single column). */
body[data-slug="trade-ussd"] .shots { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
body[data-slug="trade-ussd"] .shots .shot { width: 100%; max-width: 1020px; margin-left: auto; margin-right: auto; }

/* ---------- Solutions ---------- */
.solution-cards { margin-top: 8px; }
.solution-card { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(10, 23, 48, .03); }
.solution-card:hover { box-shadow: var(--shadow); }
.solution-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.solution-link:hover { text-decoration: none; }
.solution-glyph { color: var(--navy); }
.solution-glyph .glyph { width: 34px; height: 34px; }
.solution-name { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.solution-tagline { color: var(--muted); font-size: 14px; }
.solution-industries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.solution-industries a { font-size: 12px; color: var(--ink2); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.solution-industries a:hover { text-decoration: none; border-color: var(--navy); color: var(--navy); }
.solution-more { font-size: 14px; font-weight: 500; color: var(--blue); }

/* ---------- Industries ---------- */
.industry-card { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 20px; }
.industry-card h3 { font-size: 16.5px; font-weight: 700; }
.industry-card p { color: var(--muted); font-size: 14px; }
.industry-solutions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line2); }
.industry-solutions a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.industry-solutions a:hover { color: var(--navy); text-decoration: none; }
.mini-glyph { color: var(--navy); display: inline-flex; }
.mini-glyph .glyph { width: 16px; height: 16px; }

/* ---------- Directions, capabilities ---------- */
.module-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.module-chips li { font-family: Consolas, 'Courier New', monospace; font-size: 12px; color: var(--ink2); background: var(--tint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.serves { font-size: 13px; color: var(--muted); margin: 0; }
.serves span { font-weight: 700; color: var(--ink2); }

.capability { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 16px; }
.capability h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.capability p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Plan ---------- */
.stages { margin-top: 10px; }
.stage { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease; }
.stage-first { border-color: rgba(15, 98, 254, .45); }
.stage-first .stage-no { background: var(--blue); }
.stage header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.stage-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; flex: 0 0 auto; }
.stage-when { color: var(--muted); font-size: 14px; margin: 0; }
.stage ul { display: flex; flex-direction: column; gap: 8px; }
.stage li { padding-left: 22px; position: relative; color: var(--ink2); font-size: 15px; }
.stage li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- Performance ---------- */
.perf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 6px 0 26px; }
.perf-tile { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 18px; }
.perf-tile dd { font-size: 30px; font-weight: 700; color: var(--navy); margin: 0; }
.perf-tile dt { font-size: 13.5px; font-weight: 500; color: var(--ink2); }
.perf-tile p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.tiers { margin-bottom: 26px; }
.tier { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 20px; }
.tier-capacity { font-size: 15px; font-weight: 500; color: var(--ink2); margin: 6px 0 2px; }
.tier-nodes { font-size: 13.5px; color: var(--muted); margin: 0; }
.slo { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 22px; }
.slo h3 { margin-bottom: 10px; }
.slo ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.slo li { display: flex; gap: 10px; align-items: baseline; }
.slo span { color: var(--muted); font-size: 14px; }
.slo b { color: var(--navy); font-size: 15px; }
.perf-table { margin: 0 0 22px; }
.perf-table h3 { margin-bottom: 10px; }
.perf-grid { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.perf-grid-head, .perf-grid-row { display: grid; gap: 18px; padding: 12px 22px; border-bottom: 1px solid var(--line2); align-items: baseline; }
.perf-lat .perf-grid-head, .perf-lat .perf-grid-row { grid-template-columns: 1.5fr .6fr .6fr 1.2fr; }
.perf-cap .perf-grid-head, .perf-cap .perf-grid-row { grid-template-columns: .9fr 1.5fr 1fr; }
.perf-grid-head { padding: 9px 22px; background: var(--tint); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.perf-grid-row:last-child { border-bottom: 0; }
.perf-num { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 500; }
.perf-note { color: var(--muted); font-size: 13px; }
.perf-gov { margin-top: 18px; }
.perf-claim { margin: 20px 0 0; font-size: 15.5px; font-weight: 600; color: var(--navy); }
.perf-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.slo-wide ul { display: grid; gap: 10px; }
.slo-wide li { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.slo-wide b { font-size: 14.5px; }
.arch-examples { margin: 4px 0 26px; }
.arch-examples h3 { margin-bottom: 10px; }
.arch-examples h4 { font-size: 15.5px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
@media (max-width: 900px) {
  .perf-grid-head { display: none; }
  .perf-lat .perf-grid-row, .perf-cap .perf-grid-row { grid-template-columns: 1fr; gap: 4px; padding: 13px 18px; }
  .slo-wide li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Technology ---------- */
.tech-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 10px 24px; }
.tech-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.tech-row:last-child { border-bottom: 0; }
.tech-row dt { flex: 0 0 150px; color: var(--muted); font-size: 14px; }
.tech-row dd { margin: 0; font-size: 14.5px; color: var(--ink2); }

/* ---------- Connectivity ---------- */
.connect-col { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 22px; }
.connect-col ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.connect-col li { padding-left: 20px; position: relative; font-size: 14.5px; color: var(--ink2); }
.connect-col li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: start; }
.company-copy p { color: var(--ink2); font-size: 16px; }
.company-locations { color: var(--muted) !important; font-size: 14.5px !important; }
.company-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.company-card { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 18px; }
.company-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- History ---------- */
.history-note { margin-top: 8px; }
.history-cell { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 18px; }
.history-cell h3 { color: var(--navy); font-size: 15px; font-weight: 700; }
.history-cell p { font-size: 13.5px; color: var(--muted); margin: 0; }
.history-rows { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.history-row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line2); }
.history-row:last-child { border-bottom: 0; }
.history-row h3 { margin: 0; color: var(--navy); font-size: 15px; font-weight: 700; }
.history-row ul { display: flex; flex-direction: column; gap: 4px; }
.history-row li { color: var(--ink2); font-size: 14.5px; }

/* ---------- Scenario ---------- */
.scenario { display: flex; flex-direction: column; gap: 14px; counter-reset: none; }
.scenario-step { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 18px 20px; }
.scenario-no { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; background: var(--tint); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: 14px; }
.scenario-step h3 { margin-bottom: 2px; }
.scenario-step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Modules rows ---------- */
.module-rows { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.module-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line2); }
.module-row:last-child { border-bottom: 0; }
.module-row h3 { margin: 0; font-size: 15.5px; }
.module-row p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Business functions ---------- */
.bf-rows { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.bf-head, .bf-row { display: grid; grid-template-columns: 220px 1.05fr 1fr; gap: 20px; padding: 13px 22px; border-bottom: 1px solid var(--line2); }
.bf-head { padding: 9px 22px; background: var(--tint); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bf-row:last-child { border-bottom: 0; }
.bf-fn { font-weight: 500; color: var(--ink); font-size: 15px; }
.bf-do { color: var(--ink2); font-size: 14.5px; }
.bf-res { color: var(--muted); font-size: 14.5px; }
.gm-rows { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.gm-head, .gm-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; padding: 13px 22px; border-bottom: 1px solid var(--line2); }
.gm-head { padding: 9px 22px; background: var(--tint); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gm-row:last-child { border-bottom: 0; }
.gm-now { color: var(--muted); font-size: 14.5px; }
.gm-then { color: var(--ink); font-size: 15px; font-weight: 500; }

/* ---------- Solution brief: capabilities and overview ---------- */
.brief-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; margin-top: 26px; align-items: start; }
.brief-panel, .brief-overview { border: 1px solid var(--line2); border-radius: var(--radius); padding: 22px 24px; }
.brief-panel h3, .brief-overview h3 { margin: 0 0 14px; font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.brief-list { display: flex; flex-direction: column; gap: 8px; }
.brief-list li { padding-left: 20px; position: relative; font-size: 14.5px; color: var(--ink2); }
.brief-list li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.brief-overview p { margin: 0 0 10px; color: var(--ink2); font-size: 14.5px; }
.brief-overview p:last-child { margin-bottom: 0; }
.brief-related { margin-top: 18px; }
.brief-related h3 { margin: 0 0 12px; font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.brief-rel { display: block; border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 16px 18px; color: inherit; }
.brief-rel:hover { text-decoration: none; border-color: rgba(15, 98, 254, .45); }
.brief-rel h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.brief-rel p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Readiness ---------- */
.readiness-col { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 22px; }
.check-list, .next-list { display: flex; flex-direction: column; gap: 9px; }
.check-list li, .next-list li { padding-left: 24px; position: relative; font-size: 15px; color: var(--ink2); }
.check-list li::before { content: '✓'; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.next-list li::before { content: '→'; position: absolute; left: 2px; color: var(--blue); }

/* ---------- CTA ---------- */
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(90deg, var(--navy) 0%, #1444D8 100%); border-radius: var(--radius); padding: 34px 38px; color: #fff; }
.cta-panel h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.cta-panel p { margin: 0; color: rgba(255, 255, 255, .86); max-width: 640px; }
.cta-panel .btn { flex: 0 0 auto; }

/* ---------- Footer ---------- */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 28px 0 18px; margin-top: 8px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-left { display: flex; align-items: center; gap: 14px; }
.foot-brand { font-weight: 700; color: var(--ink2); }
.foot-right { display: flex; gap: 18px; }
.foot-right a { color: var(--ink2); font-size: 14px; }
.foot-sub { margin-top: 14px; color: var(--muted2); font-size: 13px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 23, 48, .52); }
.modal-card { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 480px; padding: 28px; box-shadow: 0 24px 60px rgba(10, 23, 48, .3); max-height: 92vh; overflow: auto; }
.modal-x { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-title { font-size: 22px; }
.modal-lead { color: var(--muted); font-size: 14.5px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 5px; color: var(--ink2); }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(15, 98, 254, .15); }
.form-error { color: var(--red); font-size: 13.5px; margin: 4px 0 10px; }
.form-note { color: var(--muted2); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- 404 ---------- */
.notfound { padding-top: 90px; padding-bottom: 90px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-rows { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  .hero-grid, .product-hero-grid, .company-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .top-actions { margin-left: auto; flex-wrap: wrap; row-gap: 6px; }
  .lang-switch { flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .history-row, .module-row { grid-template-columns: 1fr; gap: 8px; }
  .bf-head { display: none; }
  .bf-row { grid-template-columns: 1fr; gap: 5px; padding: 13px 18px; }
  .gm-head { display: none; }
  .gm-row { grid-template-columns: 1fr; gap: 5px; padding: 13px 18px; }
  .brief-grid { grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  h1 { font-size: 27px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .perf-tiles { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .stat dd { font-size: 22px; }
  .nav { display: none; }
  .email-img { display: none; }
  .lang-switch { font-size: 12.5px; gap: 6px; }
  .company-cards { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}

@media print {
  .top, .cta, .modal, .foot { display: none; }
  .section { padding: 22px 0; }
}

/* ---------- Header: dropdowns, language icon ---------- */
.nav-item { position: relative; }
.nav-link { color: var(--ink2); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(10, 23, 48, .14); padding: 9px; display: grid; z-index: 60; min-width: 230px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .28s; }
.nav-item.has-drop::after { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 12px; }
.drop-wide { min-width: 680px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; padding: 10px 12px; }
.drop-group { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 0 6px; }
.drop-group-title { padding: 4px 9px 3px; color: var(--navy); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.nav-item.has-drop:hover .drop, .nav-item.has-drop:focus-within .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px); transition-delay: 0s; }
.nav .drop-link { display: block; padding: 5px 9px; border-radius: 8px; color: var(--ink); font-size: 12.5px; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.nav .drop-link:hover { background: var(--tint); color: var(--accent, var(--blue)); text-decoration: none; }
.drop-name { display: block; overflow: hidden; text-overflow: ellipsis; }
.drop-glyph { color: var(--accent, var(--navy)); display: inline-flex; flex: 0 0 auto; }
.drop-glyph .glyph { width: 17px; height: 17px; }
.email-link { display: inline-flex; }
.email-link:hover .email-img { opacity: 1; }

/* ---------- Hypercube ---------- */
.hero-visual { position: relative; }
.hypercube { position: absolute; top: -46px; left: -34px; width: 132px; height: 132px; z-index: 2; pointer-events: none; opacity: .9; }
.hc-scene { width: 100%; height: 100%; perspective: 620px; }
.hc { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; transform-style: preserve-3d; animation: hc-spin 26s linear infinite; }
.hc-inner { width: 46px; height: 46px; margin: -23px 0 0 -23px; animation-duration: 18s; animation-direction: reverse; }
.hc .fc { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 1.3px solid rgba(15, 98, 254, .55); background: rgba(255, 255, 255, .05); }
.hc .fc-f { transform: translateZ(42px); } .hc .fc-b { transform: rotateY(180deg) translateZ(42px); }
.hc .fc-l { transform: rotateY(-90deg) translateZ(42px); } .hc .fc-r { transform: rotateY(90deg) translateZ(42px); }
.hc .fc-t { transform: rotateX(90deg) translateZ(42px); } .hc .fc-d { transform: rotateX(-90deg) translateZ(42px); }
.hc-inner .fc { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: rgba(0, 24, 168, .5); }
.hc-inner .fc-f { transform: translateZ(23px); } .hc-inner .fc-b { transform: rotateY(180deg) translateZ(23px); }
.hc-inner .fc-l { transform: rotateY(-90deg) translateZ(23px); } .hc-inner .fc-r { transform: rotateY(90deg) translateZ(23px); }
.hc-inner .fc-t { transform: rotateX(90deg) translateZ(23px); } .hc-inner .fc-d { transform: rotateX(-90deg) translateZ(23px); }
@keyframes hc-spin { from { transform: rotateX(24deg) rotateY(0deg); } to { transform: rotateX(24deg) rotateY(360deg); } }

/* ---------- Solutions cards v2 ---------- */
.solution-shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #0B0B0C; }
.solution-shot img { width: 100%; display: block; }
.shot-bare { display: block; }
.solution-head { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.solution-head:hover { text-decoration: none; color: var(--accent); }
.solution-glyph { color: var(--accent); display: inline-flex; }
.solution-card .solution-more { color: var(--accent); }

/* ---------- Deep dive gate ---------- */
.deep-dive { background: linear-gradient(180deg, #FFFFFF 0%, var(--tint) 100%); border-top: 1px solid var(--line2); }
.dd-content { display: none; }
.deep-dive.unlocked .dd-content { display: block; }
.deep-dive.unlocked .dd-gate { display: none; }
.dd-gate-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; }
.dd-gate-card p { color: var(--muted); margin: 12px 0 18px; }

/* ---------- Download modal ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ---------- Page hero ---------- */
.page-hero { padding-top: 64px; padding-bottom: 40px; background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FF 60%, var(--bg) 100%); }
.page-lead { max-width: 760px; }

/* ---------- Services ---------- */
.service-groups { align-items: start; }
.service-group { background: #fff; border: 1px solid var(--line2); border-radius: var(--radius); padding: 20px 22px; }
.service-group h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.service-group ul { display: flex; flex-direction: column; gap: 8px; }
.service-group li { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dashed var(--line2); }
.service-group li:last-child { border-bottom: 0; padding-bottom: 0; }
.service-name { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; color: var(--navy); }
.service-role { color: var(--muted); font-size: 13.5px; }
.section-note { color: var(--muted2); font-size: 13.5px; margin-top: 18px; }

/* ---------- Architecture diagram ---------- */
.arch { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.arch-band { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: stretch; }
.arch-band-name { display: flex; flex-direction: column; justify-content: center; padding: 12px 14px; background: var(--tint); border: 1px solid var(--line2); border-radius: 10px; }
.arch-band-name span { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.arch-band-name small { color: var(--muted2); font-size: 11.5px; margin-top: 3px; }
.arch-band-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.arch-box { border: 1px solid var(--line2); border-radius: 9px; padding: 10px 12px; background: #fff; }
.arch-box span { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); }
.arch-box small { color: var(--muted2); font-size: 11.5px; }

/* ---------- API surface ---------- */
.api-section { background: linear-gradient(180deg, #FBFCFE 0%, #F2F5FB 100%); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.api-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 24px; }
.api-stats li { background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; }
.api-stats b { color: var(--navy); font-size: 18px; }
.api-stats span { color: var(--muted); font-size: 12px; max-width: 210px; }
.api-board { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.api-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.api-tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; }
.api-tab .api-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--accent, var(--blue)); }
.api-tab.is-on { border-color: var(--accent, var(--blue)); box-shadow: 0 0 0 3px rgba(15, 98, 254, .08); color: var(--ink); }
.api-panel { display: none; }
.api-panel.is-on { display: block; }
.api-note { color: var(--muted); font-size: 14px; max-width: 860px; }
.api-domains { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.api-domain { border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; }
.api-domain-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.api-name { font-family: Consolas, 'Courier New', monospace; font-size: 13px; color: var(--navy); font-weight: 700; }
.api-base { color: var(--muted2); font-size: 12px; flex: 1; }
.api-count { background: var(--tint); border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; padding: 2px 9px; color: var(--ink2); }
.api-endpoints { display: flex; flex-direction: column; gap: 5px; }
.api-ep { display: flex; gap: 8px; align-items: center; font-family: Consolas, 'Courier New', monospace; font-size: 12px; color: var(--ink2); }
.api-ep i { font-style: normal; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px; color: #fff; background: var(--muted2); }
.api-ep .m-get { background: #15803D; } .api-ep .m-post { background: #1D4ED8; }
.api-ep .m-put { background: #B45309; } .api-ep .m-delete { background: #B91C1C; } .api-ep .m-patch { background: #6D28D9; }

/* ---------- Roadmap board ---------- */
.rm-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; }
.rm-legend li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.rm-mark { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.rm-mark.rm-done { background: var(--navy); } .rm-mark.rm-now { background: var(--blue); } .rm-mark.rm-next { background: #fff; border: 2px dashed var(--muted2); }
.rm-board { display: flex; flex-direction: column; gap: 12px; }
.rm-track { display: grid; grid-template-columns: 230px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(10, 23, 48, .03); }
.rm-track-name { display: flex; flex-direction: column; gap: 2px; }
.rm-track-name span { font-weight: 700; font-size: 14.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.rm-track-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent, var(--blue)); display: inline-block; }
.rm-track-name small { color: var(--muted2); font-size: 12px; }
.rm-lane { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rm-cell { border-radius: 10px; padding: 10px 12px; background: var(--tint); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 5px; }
.rm-cell .rm-q { font-size: 11px; letter-spacing: .06em; color: var(--muted2); text-transform: uppercase; }
.rm-cell p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.rm-cell.rm-done { background: #EFF3FB; border-color: #D9E2F4; }
.rm-cell.rm-now { background: #EAF1FF; border-color: rgba(15, 98, 254, .4); box-shadow: 0 0 0 3px rgba(15, 98, 254, .07); }
.rm-cell.rm-next { background: #fff; border-style: dashed; }

/* ---------- Footer v2 ---------- */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .72fr) minmax(0, .72fr); gap: 26px; padding-top: 12px; }
.foot-about { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.brand-foot .glyph { width: 26px; height: 26px; }
.foot-seo { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 430px; }
.foot-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted2); margin-bottom: 10px; }
.foot-col ul { display: flex; flex-direction: column; gap: 7px; }
.foot-col a { color: var(--ink2); font-size: 13.5px; }
.foot-col a:hover { color: var(--blue); text-decoration: none; }
.foot-more { color: var(--blue) !important; }
.foot-col ul.foot-sols { display: block; columns: 3; column-gap: 22px; }
.foot-sols li { break-inside: avoid; margin-bottom: 4px; }
.foot-sols a { font-size: 12.5px; line-height: 1.35; }
.foot-base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line2); color: var(--muted2); font-size: 12.5px; }

@media (max-width: 1100px) {
  .foot-col ul.foot-sols { columns: 2; }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hypercube { display: none; }
  .arch-band { grid-template-columns: 1fr; }
  .rm-track { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr; }
  .api-domains { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hc { animation: none; }
  .live-dot { animation: none; }
}

/* ---------- Hero screen rotator ---------- */
.hero-rotator { position: relative; margin: 0; aspect-ratio: 16 / 9.6; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #0B0B0C; box-shadow: var(--shadow); }
.hero-rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; animation: heroRot 36s linear infinite; }
.hero-rotator img:nth-child(2) { animation-delay: 6s; }
.hero-rotator img:nth-child(3) { animation-delay: 12s; }
.hero-rotator img:nth-child(4) { animation-delay: 18s; }
.hero-rotator img:nth-child(5) { animation-delay: 24s; }
.hero-rotator img:nth-child(6) { animation-delay: 30s; }
.hero-rotator figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 3; color: #E7EDF7; background: rgba(11, 11, 12, .55); border: 1px solid rgba(231, 237, 247, .18); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; }
.hero-shots-cap { display: flex; align-items: center; gap: 7px; margin: 2px 2px 0; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, .14); animation: liveDot 2.2s ease-in-out infinite; }
@keyframes heroRot { 0% { opacity: 0; } 1.8% { opacity: 1; } 15% { opacity: 1; } 16.7% { opacity: 0; } 100% { opacity: 0; } }
@keyframes liveDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Product hero rotator: three light and two dark frames, six seconds each. */
.ph-rotator.n3 img { animation: phRot3 18s linear infinite; }
.ph-rotator.n4 img { animation: phRot4 24s linear infinite; }
.ph-rotator.n5 img { animation: phRot5 30s linear infinite; }
.ph-rotator img:nth-child(2) { animation-delay: 6s; }
.ph-rotator img:nth-child(3) { animation-delay: 12s; }
.ph-rotator img:nth-child(4) { animation-delay: 18s; }
.ph-rotator img:nth-child(5) { animation-delay: 24s; }
@keyframes phRot3 { 0% { opacity: 0; } 3% { opacity: 1; } 30% { opacity: 1; } 33.3% { opacity: 0; } 100% { opacity: 0; } }
@keyframes phRot4 { 0% { opacity: 0; } 2.5% { opacity: 1; } 22.5% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes phRot5 { 0% { opacity: 0; } 2% { opacity: 1; } 18% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- Solution cards: light and dark shots swap on their own ---------- */
.shot-swap { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.shot-swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-swap .sB { opacity: 0; }
.shot-swap.is-swap .sA { animation: shotSwapA 16s ease-in-out infinite; }
.shot-swap.is-swap .sB { animation: shotSwapB 16s ease-in-out infinite; }
@keyframes shotSwapA { 0%, 44% { opacity: 1; } 52%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes shotSwapB { 0%, 44% { opacity: 0; } 52%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* Solution screens gallery: the same light and dark swap, but the frame keeps
   the natural height of the shot (no fixed 16/10 crop of the full screen). */
.shot-frame .shot-swap { aspect-ratio: auto; }
.shot-frame .shot-swap .sA { position: relative; height: auto; }

/* ---------- Mission as a team quote ---------- */
.mission-quote { background: linear-gradient(160deg, #F4F8FF 0%, #FFFFFF 62%, #FBF8F0 100%); }
.mission-quote::before { content: '\201C'; display: block; font-size: 76px; line-height: .6; color: #B9CCEE; height: 26px; }
.mission-quote blockquote { margin: 0; }
.mission-quote blockquote p { margin: 12px 0 0; color: var(--ink2); font-size: 16.5px; max-width: 980px; }
.mission-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }

/* ---------- Soft gradients for metric blocks ---------- */
.perf-tiles .perf-tile:nth-child(1) { background: linear-gradient(165deg, #EEF4FF 0%, #FFFFFF 72%); }
.perf-tiles .perf-tile:nth-child(2) { background: linear-gradient(165deg, #EDF7F1 0%, #FFFFFF 72%); }
.perf-tiles .perf-tile:nth-child(3) { background: linear-gradient(165deg, #FFF4E9 0%, #FFFFFF 72%); }
.perf-tiles .perf-tile:nth-child(4) { background: linear-gradient(165deg, #F2F1FF 0%, #FFFFFF 72%); }
.tier { background: linear-gradient(170deg, #F7FAFF 0%, #FFFFFF 78%); }
.card { background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%); }

/* ---------- Barely-there gradient on every text block (site-wide style) ---------- */
.card, .card-plain, .solution-card, .industry-card, .capability, .stage, .tier, .slo,
.tech-rows, .connect-col, .company-card, .history-cell, .history-rows, .scenario-step,
.module-rows, .readiness-col, .service-group, .arch, .arch-box, .api-stats li, .api-board,
.brief-panel, .brief-overview, .brief-rel,
.dd-gate-card, .rm-cell, .product-card, .shot-frame, .dd-stack-item {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
}

/* ---------- Architecture scheme in the detailed description ---------- */
.dd-arch { margin: 8px 0 22px; padding: 22px 24px; border: 1px solid var(--line2); border-radius: 16px; background: linear-gradient(165deg, #F5F8FF 0%, #FFFFFF 55%, #FBF8F1 100%); box-shadow: var(--shadow); }
.dd-arch-title { margin: 0 0 14px; font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.dd-arch-band { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; }
.dd-arch-label { font-weight: 700; font-size: 13px; color: var(--navy); background: linear-gradient(180deg, #FFFFFF, #F5F8FF); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; text-align: center; }
.dd-arch-items { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dd-chip { background: linear-gradient(180deg, #FFFFFF, #F8FAFF); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--ink2); }
.dd-chip-core { border-color: var(--accent, var(--blue)); color: var(--accent, var(--blue)); font-weight: 600; }
.dd-arch-caption { flex-basis: 100%; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.dd-arch-arrow { width: 2px; height: 18px; margin: 4px 0 4px 104px; background: linear-gradient(180deg, #D9E4F7, var(--accent, var(--blue))); position: relative; }
.dd-arch-arrow::after { content: ''; position: absolute; bottom: -1px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); border-right: 2px solid var(--accent, var(--blue)); border-bottom: 2px solid var(--accent, var(--blue)); }
.dd-stack { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--line2); border-radius: 16px; background: linear-gradient(165deg, #FFFFFF 0%, #F7FAFF 100%); }
.dd-stack h3 { margin: 0 0 12px; }
.dd-stack-grid { gap: 10px 18px; }
.dd-stack-item { margin: 0; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 10px; color: var(--ink2); font-size: 13.5px; }
@media (max-width: 900px) { .dd-arch-band { grid-template-columns: 1fr; } .dd-arch-arrow { margin-left: 24px; } }

/* ---------- Demo stand slot (live Desktop V12.1 widgets) ---------- */
.demo-slot { margin-top: 16px; }
.ds { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: #0A1224; box-shadow: var(--shadow); }
.ds-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: linear-gradient(90deg, #0A1730 0%, #12224A 100%); border-bottom: 1px solid rgba(124, 141, 255, .22); color: #E6EDFB; font-size: 12.5px; }
.ds-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #2700FE, #CC06FB); color: #FFF; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ds-brand { font-weight: 600; color: #F2F6FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-sp { flex: 1 1 auto; }
.ds-ctl { display: inline-flex; align-items: center; gap: 6px; color: #A9B8D6; white-space: nowrap; }
.ds-btn { border: 1px solid rgba(146, 163, 214, .35); background: rgba(255, 255, 255, .04); color: #D8E2F8; border-radius: 8px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; }
.ds-btn[aria-pressed="true"] { background: #0F62FE; border-color: #0F62FE; color: #FFF; }
.ds-btn:hover { border-color: #7C9CFF; }
.ds-btn:focus-visible { outline: 2px solid #9CD8FF; outline-offset: 2px; }
.ds-open { color: #9CD8FF; font-size: 12px; white-space: nowrap; }
.ds-open:hover { color: #FFF; }
.ds-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: #0C1730; border-bottom: 1px solid rgba(124, 141, 255, .14); }
.ds-tab { border: 1px solid rgba(124, 141, 255, .22); background: rgba(255, 255, 255, .03); color: #C9D6F2; border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.ds-tab[aria-selected="true"] { background: linear-gradient(90deg, #14337A, #1C2E66); border-color: #4C7DFF; color: #FFFFFF; }
.ds-tab:hover { border-color: #4C7DFF; }
.ds-tab:focus-visible { outline: 2px solid #9CD8FF; outline-offset: 2px; }
.ds-stage { position: relative; background: #0A0F1D; }
.ds-frame { position: relative; }
.ds-frame iframe { display: block; width: 100%; border: 0; height: 660px; background: #0B0B0C; }
.ds-shot { margin: 0; }
.ds-shot img { display: block; width: 100%; }
.ds-shot figcaption { padding: 8px 14px; background: #0C1730; color: #A9B8D6; font-size: 12.5px; }
.ds-phone { display: none; margin: 0; padding: 18px 0 22px; }
.ds-phone .ds-bezel { position: relative; width: min(340px, 86vw); margin: 0 auto; padding: 14px 12px; border-radius: 46px; background: #05070C; border: 1px solid #2A3242; box-shadow: 0 18px 40px rgba(4, 10, 24, .45), inset 0 0 0 2px #01030A; }
.ds-phone .ds-bezel::before { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 86px; height: 20px; border-radius: 999px; background: #05070C; border: 1px solid #232B3A; }
.ds-phone img { display: block; width: 100%; border-radius: 32px; background: #0B0B0C; }
.ds-phone figcaption { text-align: center; color: #A9B8D6; font-size: 12.5px; margin-top: 10px; }
.ds.ds-phone-mode .ds-frame { display: none; }
.ds.ds-phone-mode .ds-shot { display: none; }
.ds.ds-phone-mode .ds-phone { display: block; }
.ds-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 760px) { .ds-frame { display: none; } .ds-shot { display: none; } .ds-phone { display: block; } .ds-ctl { display: none; } }
@media print { .demo-slot { display: none; } .hero-mission { display: none; } }

/* ---------- Hero mission plate (top right, UNIFIN logo gradient) ---------- */
.hero-side { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.hero-mission { width: 100%; padding: 0; border-radius: 0; background: none; border: 0; box-shadow: none; }
.hero-mission-tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #2700FE, #CC06FB); color: #FFF; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-mission p { margin: 0; font-size: 13px; line-height: 1.6; font-weight: 600; background: linear-gradient(94deg, #2700FE 0%, #6E0DF2 55%, #CC06FB 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #2700FE; }
.hero-mission-sign { display: block; margin-top: 6px; color: #7A0DF5; font-size: 10.5px; font-weight: 600; text-align: right; }

/* Promoted link band (landing: the low-code builder). */
.promo { display: grid; grid-template-columns: 1.5fr auto; gap: 26px; align-items: center; background: linear-gradient(120deg, #F5F8FF, #FFFFFF); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; }
.promo h2 { margin: 0 0 6px; }
.promo p { margin: 0; color: var(--muted); }
.promo-chips { margin: 12px 0 0; }
.promo-link { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; font-weight: 700; padding: 14px 22px; border-radius: 12px; white-space: nowrap; box-shadow: 0 10px 24px rgba(15, 98, 254, .2); }
.promo-link:hover { filter: brightness(1.06); text-decoration: none; }
.promo-link small { display: block; font-weight: 400; opacity: .85; }
@media (max-width: 820px) { .promo { grid-template-columns: 1fr; gap: 18px; } }

/* Media info block (product detail with screenshots and a link). */
.mediainfo-paras { max-width: 900px; }
.mediainfo-paras p { color: var(--ink2); }
.mediainfo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 9px; }
.mediainfo-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mediainfo-grid img { display: block; width: 100%; height: auto; }
.mediainfo-grid figcaption { padding: 10px 13px; color: var(--muted); font-size: 13px; }
.mediainfo-link { margin-top: 18px; }
@media (max-width: 760px) { .mediainfo-grid { grid-template-columns: 1fr; } }

/* Scroll table (long feature list or comparison, light scrollbar). */
.scroll-table { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.scroll-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scroll-table th, .scroll-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scroll-table thead th { position: sticky; top: 0; background: #F5F8FF; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scroll-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.scroll-table tbody tr:nth-child(even) td { background: #F8FAFF; }
.scroll-note { margin-top: 10px; color: var(--muted); font-size: 13px; }

/* ---------- architecture scheme frame (solutions, platform, builder) ---------- */
.arch-view { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0B0F1A; box-shadow: var(--shadow); }
.arch-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #0B0F1A; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #C7D3EA; font-size: 12.5px; }
.arch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(76, 141, 255, .4); color: #9CC2FF; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.arch-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4C8DFF; box-shadow: 0 0 8px rgba(76, 141, 255, .9); }
.arch-note { color: #8FA0BF; }
.arch-sp { flex: 1 1 auto; }
.arch-open { color: #9CD8FF; font-size: 12.5px; white-space: nowrap; }
.arch-open:hover { color: #FFF; }
.arch-frame { position: relative; aspect-ratio: 16 / 10; min-height: 480px; background: #0A0F1D; }
.arch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .arch-note { display: none; } .arch-frame { aspect-ratio: 4 / 3; min-height: 440px; } }
@media print { .arch-view { display: none; } }

@media (max-width: 900px) {
  .hero-rotator { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotator img { animation: none; }
  .hero-rotator img:first-child { opacity: 1; }
  .hero-rotator img:not(:first-child) { display: none; }
  .ph-rotator.n3 img, .ph-rotator.n4 img, .ph-rotator.n5 img { animation: none; }
  .ph-rotator img:first-child { opacity: 1; }
  .ph-rotator img:not(:first-child) { display: none; }
  .shot-swap.is-swap .sA, .shot-swap.is-swap .sB { animation: none; }
  .shot-swap .sB { display: none; }
}

/* Live terminal of the chart solution (S18): self-contained iframe. */
.term-frame{margin:22px 0 0;background:#0b1220;border:1px solid var(--line,#e1e5ea);border-radius:14px;overflow:hidden}
.term-frame iframe{display:block;width:100%;height:880px;border:0;background:#0b1220}
.section-note{margin:10px 0 0;font-size:13.5px;color:var(--mut,#5b7099)}
