:root {
  --ink: #07111f;
  --ink-soft: #122033;
  --paper: #f6f8fb;
  --white: #ffffff;
  --line: #d9e0ea;
  --muted: #627086;
  --blue: #3157e8;
  --blue-bright: #5d79ff;
  --violet: #7755ef;
  --mint: #28d6a1;
  --amber: #ffbb52;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px rgba(7, 17, 31, .14);
  --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 35px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--blue-bright), var(--violet));
  box-shadow: 0 10px 26px rgba(49, 87, 232, .25);
}
.brand-mark i { width: 12px; height: 18px; border: 2px solid white; border-radius: 5px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .14em; }
.brand small { display: block; margin-top: 2px; font-size: 8px; letter-spacing: .3em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 650; }
.site-nav > a:not(.button) { color: #455268; transition: color .2s ease; }
.site-nav > a:hover { color: var(--blue); }
.site-nav .nav-login { padding-left: 20px; border-left: 1px solid var(--line); color: var(--ink); }

.lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-selector select {
  height: 36px;
  padding: 0 28px 0 12px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%20627086' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-selector select:hover, .lang-selector select:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(49, 87, 232, 0.12);
  outline: none;
}

.menu-toggle { display: none; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(49, 87, 232, .22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #2449d4; box-shadow: 0 16px 34px rgba(49, 87, 232, .3); }
.button.small { min-height: 39px; padding-inline: 15px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.hero {
  min-height: 750px;
  padding: 90px 0 86px;
  display: grid;
  grid-template-columns: minmax(400px, .86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 78px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero .eyebrow { display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.hero .eyebrow .eyebrow-line { width: 28px; height: 1px; flex-shrink: 0; background: var(--blue); }
.hero .eyebrow .eyebrow-text { width: auto; height: auto; flex: 1; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(46px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 730;
}
h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 570px; margin: 28px 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; }
.hero-stats div { padding-top: 16px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: 24px; font-weight: 780; }
.hero-stats dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.hero-visual { position: relative; min-width: 0; perspective: 1300px; }
.visual-glow { position: absolute; inset: 8% 0; background: linear-gradient(135deg, rgba(49,87,232,.3), rgba(119,85,239,.18)); filter: blur(80px); }
.console-frame {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 1px solid #26364c;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 40px 90px rgba(7, 17, 31, .28);
  transform: rotateY(-4deg) rotateX(1deg);
}
.frame-bar { height: 39px; padding: 0 14px; display: flex; align-items: center; gap: 6px; color: #8090a8; border-bottom: 1px solid #26364c; }
.frame-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #53617a; }
.frame-bar > span:nth-child(1) { background: #ff6c75; }
.frame-bar > span:nth-child(2) { background: #ffc65c; }
.frame-bar > span:nth-child(3) { background: #28d6a1; }
.frame-bar small { margin-left: auto; font-size: 8px; letter-spacing: .16em; }
.console-frame > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0 0 var(--radius) var(--radius); }
.floating-proof {
  position: absolute;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 1px 10px;
  min-width: 170px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 1px solid white;
  border-radius: 13px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}
.floating-proof > span { grid-row: 1 / 3; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #087456; background: #d9f9ee; }
.floating-proof strong { font-size: 12px; }
.floating-proof small { color: var(--muted); font-size: 10px; }
.proof-one { right: -25px; top: 24%; }
.proof-two { left: -32px; bottom: 13%; }

.trust-strip {
  padding: 24px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  gap: 32px;
  color: #d9e0ed;
  background: var(--ink);
  border-block: 1px solid #26364c;
}
.trust-strip p { flex: 0 0 auto; margin: 0; color: white; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.trust-strip div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.trust-strip span { font-size: 12px; }
.trust-strip span::before { content: "✓"; margin-right: 8px; color: var(--mint); }

.platform-intro { padding: 115px 0 85px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 90px; align-items: end; scroll-margin-top: 90px; }
h2 { margin: 0; font-size: clamp(38px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.052em; }
.platform-intro > p, .section-heading > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.demo-section { padding: 35px 0 120px; scroll-margin-top: 90px; }
.section-heading { margin-bottom: 38px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.section-heading h2 { font-size: clamp(36px, 3.5vw, 52px); }
.tour-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); border: 1px solid #24344c; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.chapter-list { max-height: 660px; padding: 13px; display: flex; flex-direction: column; gap: 3px; overflow: auto; border-right: 1px solid #24344c; scrollbar-width: thin; }
.chapter-button {
  min-height: 47px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 24px 27px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #8f9db2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
}
.chapter-button:hover { color: white; background: #111e31; }
.chapter-button.active { color: white; background: linear-gradient(90deg, rgba(49,87,232,.28), rgba(49,87,232,.08)); border-color: rgba(93,121,255,.3); }
.chapter-button > span { font-size: 9px; color: #65758d; }
.chapter-button.played > span { color: var(--mint); font-size: 12px; }
.chapter-button.played > i { color: var(--mint); background: rgba(40,214,161,.1); }
.chapter-button > i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #8fa4ff; background: rgba(49,87,232,.13); font-style: normal; }
.chapter-button strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-stage { min-width: 0; }
.video-meta { min-height: 78px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; color: white; }
.video-meta span { color: #7f91aa; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.video-meta h3 { margin: 5px 0 0; font-size: 21px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #2d405c; border-radius: 99px; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(40,214,161,.1); }
.video-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050b14; }
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-gradient { position: absolute; inset: auto 0 0; height: 30%; pointer-events: none; background: linear-gradient(transparent, rgba(7,17,31,.5)); }
.video-play {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: white;
  background: rgba(49,87,232,.92);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(7,17,31,.5);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play.hidden { opacity: 0; pointer-events: none; }
.video-controls { min-height: 103px; padding: 17px 20px; display: grid; grid-template-columns: 39px auto 39px minmax(0, 1fr) auto; align-items: center; gap: 9px; color: white; }
.video-controls > button { height: 38px; padding: 0 13px; color: white; background: #132138; border: 1px solid #2b3c55; border-radius: 8px; cursor: pointer; }
.video-controls > button:hover { border-color: var(--blue-bright); }
.video-controls .control-main { min-width: 96px; background: var(--blue); border-color: var(--blue); }
.video-copy { padding-left: 15px; }
.video-copy p { margin: 0; color: #99a7ba; font-size: 11px; line-height: 1.4; }
.video-copy strong { display: block; margin-top: 4px; color: #dae2ef; font-size: 11px; }
.chapter-count { color: #75869f; font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.modules-section { padding: 105px 0 130px; scroll-margin-top: 90px; }
.module-filters { margin-bottom: 25px; display: flex; gap: 8px; flex-wrap: wrap; }
.module-filters button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
}
.module-filters button.active { color: white; background: var(--ink); border-color: var(--ink); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.module-card.revealed { opacity: 1; transform: none; }
.module-card button {
  position: relative;
  width: 100%;
  min-height: 320px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.module-card button:hover { transform: translateY(-5px); border-color: #aebcf6; box-shadow: 0 24px 55px rgba(7,17,31,.1); }
.module-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--blue); background: #edf1ff; border-radius: 12px; font-weight: 800; }
.module-number { position: absolute; top: 28px; right: 25px; color: #b6c0ce; font-size: 11px; font-weight: 800; }
.module-card small { margin-top: 28px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.module-card h3 { margin: 8px 0 10px; font-size: 23px; letter-spacing: -.035em; }
.module-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.module-card button > strong { margin-top: auto; padding-top: 22px; font-size: 12px; }
.module-card button > strong i { margin-left: 7px; color: var(--blue); font-style: normal; }

.workflow-section { padding: 120px 0; color: white; background: var(--ink); scroll-margin-top: 90px; }
.workflow-section .section-shell { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: center; }
.workflow-copy h2 { font-size: clamp(38px, 4vw, 58px); }
.workflow-copy > p:not(.eyebrow) { margin: 25px 0; color: #9aa8bb; line-height: 1.7; }
.text-link.light { color: white; }
.evidence-path { position: relative; margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.evidence-path::before { content: ""; position: absolute; left: 27px; top: 35px; bottom: 35px; width: 1px; background: linear-gradient(var(--blue-bright), var(--mint)); }
.evidence-path li { position: relative; z-index: 1; padding: 15px; display: grid; grid-template-columns: 54px 1fr; gap: 17px; align-items: center; opacity: 0; transform: translateX(15px); border: 1px solid #26364c; border-radius: 13px; background: #0c1828; transition: opacity .45s ease, transform .45s ease, border-color .2s ease; }
.evidence-path li.revealed { opacity: 1; transform: none; }
.evidence-path li:hover { border-color: #4b64d9; }
.evidence-path li > span { width: 54px; height: 54px; display: grid; place-items: center; color: #aebcff; background: #172543; border: 1px solid #314675; border-radius: 12px; font-weight: 800; }
.evidence-path strong { display: block; margin-bottom: 5px; }
.evidence-path small { color: #8d9bb0; line-height: 1.4; }

.proof-section { padding: 125px 0; display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; scroll-margin-top: 90px; }
.proof-card { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.proof-card.revealed { opacity: 1; transform: none; }
.proof-main { padding: 58px; color: white; background: linear-gradient(145deg, #152848, #0a1525); border-radius: var(--radius-lg); }
.proof-main h2 { font-size: clamp(38px, 4vw, 56px); }
.proof-main > p:not(.eyebrow) { margin: 24px 0; color: #a3afc0; line-height: 1.7; }
.proof-main ul { margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; }
.proof-main li { padding: 12px; font-size: 12px; border: 1px solid #30425d; border-radius: 9px; background: rgba(255,255,255,.03); }
.proof-main li::before { content: "✓"; margin-right: 8px; color: var(--mint); }
.certificate-card { padding: 45px; display: flex; flex-direction: column; align-items: center; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.certificate-head { width: 100%; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.certificate-head span { color: #087456; }
.certificate-seal { width: 95px; height: 95px; margin: 42px 0 25px; display: grid; place-items: center; color: #087456; background: #e6fbf4; border: 1px solid #98e8ce; border-radius: 50%; font-size: 40px; box-shadow: 0 0 0 12px #f3fcf9; }
.certificate-card h3 { margin: 0; font-size: 27px; }
.certificate-card p { max-width: 400px; color: var(--muted); line-height: 1.6; }
.hash-lines { width: 78%; margin: 20px 0 35px; display: grid; gap: 8px; }
.hash-lines i { height: 5px; border-radius: 99px; background: linear-gradient(90deg, #dce3ed 75%, transparent 75%); }
.hash-lines i:nth-child(2) { width: 85%; }
.hash-lines i:nth-child(3) { width: 92%; }
.hash-lines i:nth-child(4) { width: 70%; }
.certificate-card footer { width: 100%; padding-top: 17px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }

.cta-section { margin-bottom: 80px; padding: 65px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; color: white; background: linear-gradient(120deg, var(--blue), var(--violet)); border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(49,87,232,.24); }
.cta-section .eyebrow { color: #dce3ff; }
.cta-section h2 { max-width: 800px; font-size: clamp(36px, 4vw, 55px); }
.cta-section > div:last-child { display: grid; gap: 18px; justify-items: start; }
.light-button { color: var(--ink); background: white; border-color: white; box-shadow: none; }
.light-button:hover { color: var(--ink); background: #eef1ff; }
.site-footer { min-height: 115px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.site-footer > div { display: flex; gap: 22px; }

@media (max-width: 1080px) {
  .site-nav { gap: 15px; }
  .site-nav > a:not(.button):not(.nav-login) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(800px, 94%); margin-inline: auto; }
  .platform-intro, .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-section .section-shell { grid-template-columns: 1fr; }
  .proof-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 30px, 1240px); }
  .site-header { min-height: 66px; padding-inline: 15px; }
  .menu-toggle { display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; }
  .site-nav {
    position: absolute;
    inset: 66px 12px auto;
    padding: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.button):not(.nav-login) { display: block; padding: 8px; }
  .site-nav .nav-login { padding: 8px; border-left: 0; }
  .hero { min-height: 0; padding: 60px 0 70px; gap: 55px; }
  h1 { font-size: 45px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-stats { gap: 9px; }
  .hero-stats dt { font-size: 20px; }
  .floating-proof { display: none; }
  .trust-strip { align-items: flex-start; flex-direction: column; }
  .trust-strip div { display: grid; grid-template-columns: 1fr 1fr; }
  .platform-intro { padding: 80px 0 55px; }
  .demo-section, .modules-section, .proof-section { padding-block: 70px; }
  .tour-layout { grid-template-columns: 1fr; }
  .chapter-list { padding: 9px; flex-direction: row; border-right: 0; border-bottom: 1px solid #24344c; }
  .chapter-button { min-width: 51px; grid-template-columns: 1fr; justify-items: center; }
  .chapter-button > span, .chapter-button > strong { display: none; }
  .video-meta { min-height: 66px; }
  .video-meta h3 { font-size: 17px; }
  .video-controls { grid-template-columns: 36px 1fr 36px auto; }
  .video-copy { grid-column: 1 / -1; grid-row: 2; padding: 8px 0 0; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card button { min-height: 285px; }
  .workflow-section { padding-block: 75px; }
  .proof-main, .certificate-card { padding: 30px; }
  .proof-main ul { grid-template-columns: 1fr; }
  .cta-section { margin-bottom: 50px; padding: 35px 25px; grid-template-columns: 1fr; }
  .site-footer { padding: 30px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .console-frame { transform: none; }
}
