/* coreXvia public site. Layout: dark, full-bleed bands. Hero video first, then statement, services grid, platform band, login call-to-action, footer. Single committed dark look from the brand guideline (black + yellow, blue for detail). */
:root {
  --cx-ink: #000;
  --cx-surface: #111114;
  --cx-surface-2: #19191d;
  --cx-line: #2a2a30;
  --cx-line-soft: #1e1e23;
  --cx-text: #f1f1ee;
  --cx-text-2: #b9b9b6;
  --cx-muted: #a7a7a6;
  --cx-yellow: #f7b417;
  --cx-yellow-ink: #1a1405;
  --cx-blue: #347fc2;
  --cx-blue-soft: #6aa6dc;
  --cx-font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --cx-font-accent: "Montserrat Alternates", "Cairo", sans-serif;
  --cx-r-sm: 4px;
  --cx-r-md: 8px;
  --cx-gutter: clamp(16px, 4vw, 48px);
  --cx-maxw: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  background: var(--cx-ink); color: var(--cx-text);
  font-family: var(--cx-font); font-size: 16px; line-height: 1.7;
  padding-left: 0; padding-right: 0; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cx-yellow); outline-offset: 3px; }
.wrap {
  max-width: var(--cx-maxw); margin-inline: auto;
  padding-left: max(var(--cx-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cx-gutter), env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
.hl { color: var(--cx-yellow); }
.eyebrow {
  font-family: var(--cx-font-accent); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cx-yellow);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--cx-font); font-size: 14px; font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px; border-radius: var(--cx-r-sm);
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--cx-yellow); color: var(--cx-yellow-ink); }
.btn-primary:hover { background: #ffc43a; }
.btn-ghost { border-color: var(--cx-line); color: var(--cx-text); background: transparent; }
.btn-ghost:hover { border-color: var(--cx-yellow); color: var(--cx-yellow); }
.btn-outline { border-color: var(--cx-yellow); color: var(--cx-yellow); background: transparent; min-height: 40px; padding: 0 20px; }
.btn-outline:hover { background: var(--cx-yellow); color: var(--cx-yellow-ink); }
.arrow { width: 16px; height: 16px; flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(6,6,7,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #5a4410;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--cx-ink); }
.head-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { display: block; height: 44px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-inline-start: auto; align-items: center; }
.nav a { font-size: 15px; font-weight: 600; color: var(--cx-text-2); padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cx-yellow); }
.nav a[aria-current="page"] { border-bottom-color: var(--cx-yellow); }
.head-tools { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--cx-line); border-radius: var(--cx-r-sm);
  min-width: 44px; min-height: 40px; padding: 0 10px; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--cx-yellow); letter-spacing: .06em;
}
.lang:hover { border-color: var(--cx-yellow); }
.menu-btn { display: none; background: none; border: 1px solid var(--cx-line); border-radius: var(--cx-r-sm); width: 44px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--cx-text); fill: none; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cx-ink); border-bottom: 1px solid #5a4410; padding: 6px max(var(--cx-gutter), env(safe-area-inset-left, 0px)) 14px;
    display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--cx-line-soft); }
  .head-tools { margin-inline-start: 0; }
  .head-in { gap: 12px; }
  .head-in .btn-outline { padding: 0 14px; }
}
@media (max-width: 480px) { .logo img { height: 36px; } .head-in .btn-outline span.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .head-in .btn-outline { padding: 0 12px; } }

/* Hero: a bounded stage (max 1440px) so the video keeps its proportions on any screen; its edges fade into the page black and the copy sits below the X. */
.hero { max-width: 1440px; margin-inline: auto; }
.hero-media {
  position: relative; aspect-ratio: 16 / 7.4; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(#000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(#000 78%, transparent);
  mask-composite: intersect;
}
.hero-media video, .hero-media .hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-in { position: relative; margin-top: calc(-1 * clamp(24px, 4vw, 64px)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 0 clamp(40px, 6vw, 88px); }
.hero h1 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; }
.hero .sub { max-width: 60ch; color: var(--cx-text-2); font-size: clamp(15px, 1.7vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 10px; }
@media (max-width: 640px) {
  .hero-media { aspect-ratio: 16 / 10; }
  .hero-media video, .hero-media .hero-still { object-position: 50% 30%; }
  .hero-in { margin-top: -20px; padding-block: 0 36px; }
}

/* Statement */
.statement { padding-block: clamp(56px, 8vw, 104px); text-align: center; }
.statement p { max-width: 38ch; margin-inline: auto; font-size: clamp(22px, 3.1vw, 36px); font-weight: 300; line-height: 1.55; color: #e8e8e5; }
.statement .hl { font-weight: 600; }

/* Services */
.band { background: var(--cx-surface); border-block: 1px solid var(--cx-line-soft); }
.services { padding-block: clamp(48px, 6vw, 80px); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.sec-head p { color: var(--cx-text-2); max-width: 62ch; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.svc { padding: 30px clamp(18px, 2.4vw, 34px); display: flex; flex-direction: column; gap: 10px; border-inline-start: 1px solid var(--cx-line); }
.svc:nth-child(3n + 1) { border-inline-start: 0; padding-inline-start: 0; }
.svc:nth-child(n + 4) { border-top: 1px solid var(--cx-line); }
.ico { width: 52px; height: 52px; border-radius: 12px; background: var(--cx-surface-2); border: 1px solid var(--cx-line); display: grid; place-items: center; transition: border-color .2s; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--cx-blue-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .ico { border-color: var(--cx-yellow); }
.svc-all { margin-top: 28px; }
.svc-all .btn { gap: 10px; }
.svc h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.svc p { color: var(--cx-text-2); font-size: 15px; }
@media (max-width: 860px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(3n + 1) { border-inline-start: 1px solid var(--cx-line); padding-inline-start: clamp(18px, 2.4vw, 34px); }
  .svc:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .svc:nth-child(n + 3) { border-top: 1px solid var(--cx-line); }
}
@media (max-width: 540px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(odd), .svc:nth-child(3n + 1) { border-inline-start: 0; padding-inline: 0; }
  .svc:nth-child(n + 2) { border-top: 1px solid var(--cx-line); }
}

/* Platform */
.plat-banner { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.plat-banner img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 52%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.plat-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,6,7,.92) 0%, rgba(6,6,7,.55) 55%, rgba(6,6,7,.3) 100%); }
.plat-banner img { -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%); }
[dir="rtl"] .plat-banner img { -webkit-mask-image: linear-gradient(to left, transparent, #000 40%); mask-image: linear-gradient(to left, transparent, #000 40%); }
[dir="rtl"] .plat-banner::after { background: linear-gradient(270deg, rgba(6,6,7,.92) 0%, rgba(6,6,7,.55) 55%, rgba(6,6,7,.3) 100%); }
.plat-in { padding-block: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.plat-in h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.wordmark { font-family: var(--cx-font-accent); font-weight: 600; letter-spacing: -.01em; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wordmark i { font-style: normal; color: var(--cx-yellow); }
.plat-in p { color: #d7d7d3; font-size: clamp(16px, 1.6vw, 18px); max-width: 56ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 10px; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: 26px; font-weight: 800; color: var(--cx-yellow); line-height: 1.2; }
.facts span { font-size: 13px; color: var(--cx-text-2); }
@media (max-width: 760px) { .plat-banner img { width: 100%; opacity: .45; } }
@media (max-width: 560px) { .mod-grid { grid-template-columns: 1fr; } }

/* Programs: one tile per dnaXpro program (same idea as the system selector after sign-in), the programs page and a program's own page */
.progs { padding-block: clamp(48px, 6vw, 84px); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prog-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md);
  padding: 24px 22px 58px; transition: border-color .2s, transform .2s;
}
.prog-tile:hover { border-color: #6b5214; transform: translateY(-2px); }
.prog-brand { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px; line-height: 1.1; margin-block-end: 8px; }
.prog-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 6px; background: var(--cx-yellow); color: #000; }
.prog-mark svg { width: 22px; height: 22px; }
.prog-brand .wordmark { font-size: 22px; color: var(--cx-text); }
.prog-suffix { font-family: var(--cx-font-accent); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-blue-soft); border: 1px solid rgba(52, 127, 194, .45); border-radius: 999px; padding: 2px 9px; }
.prog-tile h3 { font-size: 19px; font-weight: 700; }
.prog-tile p { color: var(--cx-text-2); font-size: 15px; }
.prog-go { position: absolute; inset-inline-end: 22px; bottom: 22px; color: var(--cx-yellow); }
.prog-more { justify-content: center; border-color: #5a4410; background: linear-gradient(135deg, #17130a 0%, var(--cx-surface) 70%); padding-bottom: 24px; }
.prog-more b { font-size: 46px; font-weight: 800; color: var(--cx-yellow); line-height: 1; }
.prog-more-t { color: var(--cx-text-2); font-size: 15px; }
.prog-more-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--cx-yellow); font-weight: 700; }
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--cx-line-soft); background: linear-gradient(180deg, #0d0b05 0%, var(--cx-ink) 100%); }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.page-head p { color: var(--cx-text-2); max-width: 62ch; margin-top: 10px; }
.page-head .prog-tag { color: var(--cx-yellow); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--cx-muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--cx-yellow); }
.prog-brand-lg .prog-mark { width: 52px; height: 52px; }
.prog-brand-lg .prog-mark svg { width: 30px; height: 30px; }
.prog-brand-lg .wordmark { font-size: 32px; }
.prog-body { padding-block: clamp(36px, 5vw, 64px); }
.prog-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.prog-intro { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.8; margin-bottom: 30px; }
.prog-main h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.feat { list-style: none; margin: 0; padding: 0; }
.feat li { position: relative; padding: 12px 0; padding-inline-start: 26px; border-top: 1px solid var(--cx-line-soft); color: var(--cx-text-2); }
.feat li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.2em; width: 9px; height: 9px; border-radius: 2px; background: var(--cx-yellow); }
.prog-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 20px; }
.side-card h3 { font-size: 15px; font-weight: 700; color: var(--cx-yellow); margin-bottom: 6px; }
.side-card p { color: var(--cx-text-2); font-size: 15px; }
.side-cta { border-color: #5a4410; background: linear-gradient(135deg, #17130a 0%, var(--cx-surface) 70%); }
.side-cta h3 { color: var(--cx-text); font-size: 18px; }
.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.progs-other { border-top: 1px solid var(--cx-line-soft); }
.prog-all { margin-top: 24px; }
@media (max-width: 960px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } .prog-cols { grid-template-columns: 1fr; } .prog-side { position: static; } }
@media (max-width: 600px) { .prog-grid { grid-template-columns: 1fr; } }

/* Services pages */
a.svc { color: inherit; }
a.svc:hover h3 { color: var(--cx-yellow); }
.ico-lg { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 14px; }
.ico-lg svg { width: 32px; height: 32px; }
.feat-gap { margin-top: 36px; }
.fit { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fit li { position: relative; padding-inline-start: 22px; color: var(--cx-text-2); font-size: 15px; }
.fit li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .65em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--cx-blue-soft); }
.how { padding-block: clamp(48px, 6vw, 84px); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps li { counter-increment: step; border-top: 2px solid var(--cx-line); padding-top: 16px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cx-yellow); color: #000; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--cx-text-2); font-size: 14.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about-idea { padding-block: clamp(40px, 5vw, 72px); }
.about-idea .sec-head { margin-bottom: 0; max-width: 78ch; }
.about-idea h2 { font-size: clamp(24px, 3vw, 34px); }
.about-idea p { font-size: 17px; }
.about-name { padding-block: clamp(48px, 6vw, 84px); }
.mean-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mean { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.mean-k { font-family: var(--cx-font-accent); font-size: 40px; font-weight: 600; line-height: 1; color: var(--cx-text); letter-spacing: .02em; direction: ltr; text-align: start; }
.mean-x { color: var(--cx-yellow); }
.mean h3 { font-size: 18px; font-weight: 700; margin-top: 8px; }
.mean p { color: var(--cx-text-2); font-size: 15px; }
.mean-note { margin-top: 22px; color: var(--cx-text-2); max-width: 70ch; }
.tagline { margin-top: 22px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; color: var(--cx-yellow); }
.about-values { padding-block: clamp(48px, 6vw, 84px); }
.vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.vals article { border-top: 2px solid var(--cx-line); padding-top: 16px; }
.vals h3 { font-size: 20px; font-weight: 700; color: var(--cx-yellow); margin-bottom: 6px; }
.vals p { color: var(--cx-text-2); font-size: 15px; }
.about-do { padding-block: clamp(48px, 6vw, 84px); }
.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.do-card { display: flex; flex-direction: column; gap: 10px; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 26px 24px; transition: border-color .2s, transform .2s; }
.do-card:hover { border-color: #6b5214; transform: translateY(-2px); }
.do-card h3 { font-size: 24px; font-weight: 700; }
.do-card p { color: var(--cx-text-2); flex: 1; }
.do-go { display: inline-flex; align-items: center; gap: 8px; color: var(--cx-yellow); font-weight: 700; margin-top: 6px; }
@media (max-width: 960px) { .mean-grid { grid-template-columns: 1fr; } .vals { grid-template-columns: repeat(2, 1fr); } .do-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vals { grid-template-columns: 1fr; } }

/* About: figures, achievements, team */
.stats-band { border-block: 1px solid var(--cx-line-soft); }
.stats { list-style: none; margin: 0; padding: clamp(28px, 4vw, 44px) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.1; color: var(--cx-yellow); font-variant-numeric: tabular-nums; }
.stats span { color: var(--cx-text-2); font-size: 15px; }
.about-ach { padding-block: clamp(48px, 6vw, 84px); }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ach { background: var(--cx-surface-2); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ach-year { font-family: var(--cx-font-accent); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: #000; background: var(--cx-yellow); border-radius: 999px; padding: 2px 12px; }
.ach h3 { font-size: 18px; font-weight: 700; }
.ach p { color: var(--cx-text-2); font-size: 15px; }
.about-team { padding-block: clamp(48px, 6vw, 84px); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-empty { text-align: center; color: var(--cx-text-2); padding-block: 40px; }
.member { display: flex; flex-direction: column; gap: 6px; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 18px; transition: border-color .2s, transform .2s; }
.member:hover { border-color: #6b5214; transform: translateY(-2px); }
.member h3 { font-size: 18px; font-weight: 700; margin-top: 8px; }
.member p { color: var(--cx-text-2); font-size: 14.5px; }
.member:hover h3 { color: var(--cx-yellow); }
.member-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--cx-r-md); display: block; background: var(--cx-surface-2); }
.member-initial { display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: var(--cx-yellow); border: 1px solid var(--cx-line); }
.member-head { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); flex-wrap: wrap; }
.member-photo-lg { width: clamp(110px, 16vw, 168px); border-radius: 50%; flex: none; }
.member-head h1 { margin-top: 0; }
.member-bio { color: var(--cx-text-2); margin-bottom: 14px; max-width: 70ch; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } .ach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid, .ach-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr; } }

/* Contact */
.cf { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cf fieldset { border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 20px 22px 22px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--cx-surface); }
.cf legend { padding-inline: 8px; font-weight: 700; color: var(--cx-yellow); font-size: 15px; }
.cf-wide { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--cx-text-2); }
.cf-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--cx-text-2); }
.cf-field input, .cf-field select, .cf-field textarea { background: var(--cx-surface-2); border: 1px solid var(--cx-line); border-radius: var(--cx-r-sm); padding: 0 14px; min-height: 46px; font-size: 15px; color: var(--cx-text); }
.cf-field textarea { padding-block: 12px; resize: vertical; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: 2px solid var(--cx-yellow); outline-offset: 1px; border-color: var(--cx-yellow); }
.cf-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cx-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--cx-text-2); cursor: pointer; background: var(--cx-surface-2); }
.cf-choice:has(input:checked) { border-color: var(--cx-yellow); color: var(--cx-text); }
.cf-choice input { accent-color: var(--cx-yellow); }
.cf-alert { border: 1px solid #7f2a2a; background: #2a1212; color: #ffb4b4; border-radius: var(--cx-r-sm); padding: 12px 16px; }
.cf-note { color: var(--cx-muted); font-size: 13px; margin: 0; }
.cf-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf .btn { align-self: flex-start; }
.next { margin: 8px 0 0; padding-inline-start: 22px; color: var(--cx-text-2); font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.thanks { padding-block: clamp(64px, 10vw, 140px); text-align: center; }
.thanks .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.thanks h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.thanks p { color: var(--cx-text-2); max-width: 52ch; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--cx-yellow); color: #000; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
@media (max-width: 640px) { .cf fieldset { grid-template-columns: 1fr; } }

/* Helix and Nucleus: home section, product cards, product pages */
.nav-latin { font-family: var(--cx-font-accent); letter-spacing: .01em; direction: ltr; unicode-bidi: isolate; }
.do-and { color: var(--cx-text-2); font-weight: 400; font-size: .7em; }
.duo { padding-block: clamp(48px, 6vw, 84px); }
.duo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.duo-grid-one { grid-template-columns: minmax(0, 560px); }
.duo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--cx-ink); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: clamp(22px, 3vw, 32px); transition: border-color .2s, transform .2s; }
.duo-card:hover { border-color: #6b5214; transform: translateY(-2px); }
.duo-card h3 { font-family: var(--cx-font-accent); font-size: 28px; font-weight: 600; margin-top: 6px; unicode-bidi: isolate; }
.duo-role { font-size: 14px; font-weight: 700; color: var(--cx-yellow); }
.duo-card p { color: var(--cx-text-2); flex: 1; max-width: 46ch; }
.duo-mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: var(--cx-surface-2); border: 1px solid var(--cx-line); flex: none; }
.duo-mark .pm { width: 40px; height: 40px; }
.duo-mark-lg { width: 84px; height: 84px; border-radius: 20px; }
.duo-mark-lg .pm { width: 54px; height: 54px; }
.duo-more { padding-block: 0 clamp(48px, 6vw, 84px); }
.pm .strand { fill: none; stroke-width: 5.5; stroke-linecap: round; }
.pm-helix .strand-a { stroke: var(--cx-text); }
.pm-helix .strand-b { stroke: var(--cx-blue-soft); }
.pm-helix .rung { stroke: var(--cx-text); opacity: .3; stroke-width: 2.2; stroke-linecap: round; }
.pm-helix .eye { fill: var(--cx-ink); stroke: var(--cx-yellow); stroke-width: 1.6; }
.pm-helix .pupil { fill: var(--cx-yellow); }
.pm-nucleus .ring { fill: none; stroke: var(--cx-yellow); stroke-width: 4; }
.pm-nucleus .strand { stroke-width: 5; }
.pm-nucleus .strand-w { stroke: var(--cx-text); }
.pm-nucleus .strand-y { stroke: var(--cx-yellow); }
.prod-brand { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.prod-brand h1 { font-family: var(--cx-font-accent); margin-top: 0; unicode-bidi: isolate; }
.prod-intro { padding-block: clamp(36px, 5vw, 64px); }
.prod-intro-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.prod-intro .prog-intro { margin-bottom: 24px; }
.prod-cta { justify-content: flex-start; margin-top: 0; }
.prod-note { margin-top: 28px; padding: 16px 18px; border: 1px solid #5a4410; border-radius: var(--cx-r-md); background: linear-gradient(135deg, #17130a 0%, var(--cx-surface) 70%); color: var(--cx-text-2); font-size: 15px; }
.prod-feats { padding-block: clamp(48px, 6vw, 84px); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pf { background: var(--cx-ink); border: 1px solid var(--cx-line); border-radius: var(--cx-r-md); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pf h3 { font-size: 18px; font-weight: 700; color: var(--cx-yellow); }
.pf p { color: var(--cx-text-2); font-size: 15px; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.pv { margin: 0; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pv figcaption { color: var(--cx-muted); font-size: 12.5px; text-align: center; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--cx-line-soft); }
.pv-bar b { font-family: var(--cx-font-accent); font-size: 15px; font-weight: 600; }
.pv-dot { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; background: var(--cx-surface-2); border: 1px solid var(--cx-line); }
.pv-dot .pm { width: 20px; height: 20px; }
.pv-bar kbd { margin-inline-start: auto; font-family: var(--cx-font-accent); font-size: 12px; color: var(--cx-text-2); border: 1px solid var(--cx-line); border-radius: 6px; padding: 2px 8px; }
.pv-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.6; }
.pv-user { align-self: flex-end; background: var(--cx-yellow); color: var(--cx-yellow-ink); font-weight: 600; }
.pv-bot { align-self: flex-start; background: var(--cx-surface-2); border: 1px solid var(--cx-line); color: var(--cx-text); display: flex; flex-direction: column; gap: 12px; }
.pv-chart { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding: 8px 10px 0; border-bottom: 1px solid var(--cx-line); }
.pv-chart i { flex: 1; background: var(--cx-blue-soft); border-radius: 3px 3px 0 0; }
.pv-chart i:nth-child(1) { height: 92%; }
.pv-chart i:nth-child(2) { height: 74%; }
.pv-chart i:nth-child(3) { height: 58%; }
.pv-chart i:nth-child(4) { height: 40%; }
.pv-chart i:nth-child(5) { height: 26%; }
.pv-chip { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--cx-yellow); border: 1px solid #5a4410; border-radius: 999px; padding: 4px 14px; }
.pv-phone { max-width: 320px; margin-inline: auto; width: 100%; border-radius: 28px; padding: 18px 16px 14px; }
.pv-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pv-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 104px; padding: 14px; background: var(--cx-surface-2); border: 1px solid var(--cx-line); border-radius: 14px; font-weight: 700; font-size: 15px; }
.pv-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--cx-yellow); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) {
  .duo-grid { grid-template-columns: 1fr; }
  .prod-intro-in { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } .prod-brand { align-items: flex-start; } .duo-mark-lg { width: 64px; height: 64px; } .duo-mark-lg .pm { width: 40px; height: 40px; } }

/* Enter the platform */
.enter { padding-block: clamp(48px, 6vw, 80px); }
.enter-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; border: 1px solid #5a4410; border-radius: var(--cx-r-md); padding: clamp(24px, 4vw, 48px); background: linear-gradient(135deg, #17130a 0%, var(--cx-surface) 60%); }
.enter-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.enter-card p { color: var(--cx-text-2); margin-top: 10px; max-width: 52ch; }
.enter-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) { .enter-card { grid-template-columns: 1fr; } .enter-actions { justify-content: flex-start; } }

/* Footer */
.site-foot { border-top: 1px solid #5a4410; background: #000; padding-block: clamp(40px, 5vw, 64px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 28px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--cx-text); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-grid li, .foot-grid a { font-size: 14px; color: var(--cx-text-2); }
.foot-grid a:hover { color: var(--cx-yellow); }
.foot-brand img { height: 46px; width: auto; display: block; margin-bottom: 14px; }
.foot-brand p { font-size: 14px; color: var(--cx-text-2); max-width: 32ch; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sprite { position: absolute; }
.copy { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--cx-line-soft); text-align: center; font-size: 13px; color: var(--cx-muted); }
@media (max-width: 1020px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Login dialog */
dialog { border: 1px solid #5a4410; border-radius: var(--cx-r-md); background: var(--cx-surface); color: var(--cx-text); padding: 0; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.72); }
.dlg-in { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.dlg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlg-top h2 { font-size: 22px; font-weight: 700; }
.dlg-top p { color: var(--cx-text-2); font-size: 14px; margin-top: 4px; }
.x-close { background: none; border: 1px solid var(--cx-line); border-radius: var(--cx-r-sm); width: 36px; height: 36px; cursor: pointer; color: var(--cx-text-2); font-size: 18px; line-height: 1; flex: none; }
.x-close:hover { border-color: var(--cx-yellow); color: var(--cx-yellow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--cx-text-2); }
.field input { background: var(--cx-surface-2); border: 1px solid var(--cx-line); border-radius: var(--cx-r-sm); min-height: 46px; padding: 0 14px; font-size: 15px; }
.field input:focus { outline: 2px solid var(--cx-yellow); outline-offset: 1px; border-color: var(--cx-yellow); }
.field .hint { font-size: 12px; color: var(--cx-muted); }
.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cx-text-2); }
.remember input { accent-color: var(--cx-yellow); width: 16px; height: 16px; }
.dlg-foot { font-size: 14px; color: var(--cx-text-2); text-align: center; }
.dlg-foot a { color: var(--cx-yellow); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
