@font-face {
  font-family: Poppins;
  src: url('./fonts/poppins-800-pingy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171c2a;
  --muted: #555f72;
  --blue: #083bef;
  --line: #dce2ef;
  --paper: #f8f9fc;
  --white: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #687fff; outline-offset: 4px; }
[id] { scroll-margin-top: 28px; }
.wrap { width: min(100% - 96px, 1280px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 3; top: 10px; left: 10px; padding: 12px; background: var(--white); }

.site-header { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .14em; width: fit-content; font-size: clamp(33px, 4vw, 43px); }
.brand > img { width: 1em; height: 1em; flex: none; }
.brand-wordmark { color: #000; font: 800 1em/1 Poppins, 'Century Gothic', 'Segoe UI', sans-serif; letter-spacing: -.045em; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 38px); font-size: 14px; color: #374054; }
.site-header nav a:hover, .site-footer > a:last-child:hover { color: var(--blue); }
.site-header > .button { justify-self: end; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 500; transition: background-color .18s, color .18s; white-space: nowrap; }
.button span { font-size: 17px; line-height: 1; }
.button-small { min-height: 40px; padding-inline: 14px; font-size: 13px; }
.button-primary { color: var(--white); background: var(--blue); }
.button-primary:hover { background: #0030c9; }
.button-text { color: var(--blue); padding-inline: 11px; }
.button-text:hover { background: #edf1ff; }

.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(36px, 5.4vw, 80px); padding-block: 52px 66px; }
.hero-copy { max-width: 610px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .045em; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(-12deg); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(48px, 6vw, 92px); line-height: 1.03; letter-spacing: -.055em; font-weight: 400; }
.hero h1 em { display: block; color: var(--blue); font-style: normal; }
.lead { max-width: 470px; color: var(--muted); font-size: clamp(17px, 1.55vw, 22px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }

.hero-stage { position: relative; isolation: isolate; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; padding: 22px clamp(19px, 3vw, 45px); min-height: 495px; overflow: hidden; border-radius: 24px; color: #fff; background: radial-gradient(ellipse at 80% 20%, #5679ff, transparent 58%), linear-gradient(155deg, #133ae6, #081e91); }
.hero-stage::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(100deg, #0626a938, #09286c12), url('./cobalt.webp') center / cover; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; font-size: 11px; font-weight: 500; text-shadow: 0 1px 4px #061244; }
.stage-top span:first-child { display: flex; align-items: center; gap: 7px; }
.stage-top i { width: 7px; height: 7px; border-radius: 50%; background: #c3d1ff; }
.app-window { margin: auto 0; overflow: hidden; border: 1px solid #dfe5ff; border-radius: 15px; color: var(--ink); background: #fafbff; box-shadow: 0 24px 52px #051b7860, 0 3px 12px #08114534; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #ebeff7; font-size: 13px; font-weight: 500; }
.window-bar .brand-wordmark { font-size: 18px; }
.window-mode { margin-left: auto; color: #52617e; font-size: 11px; font-weight: 400; }
.window-content { display: grid; align-content: start; gap: 14px; min-height: 254px; padding: 20px; }
.message { justify-self: end; max-width: 95%; padding: 10px 13px; border-radius: 12px 12px 3px; color: #173269; background: #e9eeff; font-size: 13px; line-height: 1.45; }
.reply { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.55; }
.reply img { margin-top: 1px; }
.demo-art { margin-left: 28px; }
.demo-document { display: flex; align-items: center; gap: 15px; min-height: 102px; padding: 10px 13px; border: 1px solid #e0e7f8; border-radius: 11px; background: #f1f4ff; }
.demo-document strong { display: block; color: #182957; font-size: 13px; font-weight: 500; }
.demo-document small { display: block; margin-top: 4px; color: #556789; font-size: 11px; }
.demo-document .mini-slide { display: grid; flex-shrink: 0; width: 105px; height: 68px; padding: 9px; gap: 4px; grid-template-columns: repeat(4, 12px); transform: none; box-shadow: 0 3px 10px #2c48712d; }
.demo-document .mini-slide i { max-height: 23px; }
.demo-code { display: grid; align-content: center; min-height: 102px; padding: 14px; border: 1px solid #dfe7fa; border-radius: 10px; background: #eef2ff; color: #35496c; font-size: 12px; line-height: 1.6; }
.demo-code del, .demo-code ins { display: block; text-decoration: none; overflow-wrap: anywhere; }
.demo-code del { color: #853b52; }
.demo-code ins { color: #0b5c46; }
.demo-note { min-height: 102px; padding: 14px 16px; border-left: 3px solid #617ffe; border-radius: 0 10px 10px 0; background: #eff3ff; color: #35496c; font-size: 13px; line-height: 1.55; }
.demo-note strong { display: block; margin-bottom: 4px; color: #172a56; font-weight: 500; }
.demo-switch { display: flex; justify-content: center; gap: 6px; align-self: center; padding: 5px; border: 1px solid #b2c5ff80; border-radius: 12px; background: #0c267ebd; }
.demo-switch button { min-width: 70px; min-height: 36px; padding: 4px 12px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; }
.demo-switch button:hover { background: #ffffff26; }
.demo-switch button[aria-pressed='true'] { color: #132b7a; background: var(--white); }
.demo-switch button:focus-visible { outline-color: #fff; }

.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: end; margin-bottom: 30px; }
h2 { font-size: clamp(35px, 4.55vw, 66px); line-height: 1.08; letter-spacing: -.048em; font-weight: 400; }
.section-head > p { justify-self: end; width: 100%; max-width: 382px; padding-bottom: 3px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capability { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.cap-visual { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; height: 168px; padding: 20px; overflow: hidden; }
.cap-chat { background: #e1e9ff; }
.cap-chat span { padding: 9px 13px; border-radius: 10px; font-size: 12px; box-shadow: 0 7px 17px #163d9020; }
.cap-chat span:first-child { align-self: flex-end; margin-right: 9%; color: #fff; background: #2849b9; }
.cap-chat span:last-child { align-self: flex-start; margin-left: 6%; color: #1c2d55; background: var(--white); }
.cap-work { background: #e6e8f8; }
.mini-slide { display: grid; grid-template-columns: repeat(4, 16px); align-content: end; align-items: end; justify-content: center; gap: 5px; width: 139px; height: 96px; padding: 12px; border-radius: 5px; background: #fff; color: #152d6c; transform: rotate(-8deg); box-shadow: 0 10px 22px #2837702a; }
.mini-slide b { grid-column: span 4; align-self: start; white-space: nowrap; font-size: 11px; font-weight: 500; }
.mini-slide i { height: 12px; border-radius: 2px; background: #9fb2ff; }
.mini-slide i:nth-child(3) { height: 19px; background: #6c8bff; }
.mini-slide i:nth-child(4) { height: 26px; background: #4165fb; }
.mini-slide i:nth-child(5) { height: 33px; background: #083bef; }
.cap-work > span { position: absolute; right: 12%; bottom: 23px; padding: 7px 10px; border: 1px solid #eaedfa; border-radius: 6px; color: #344c86; background: #fdfdff; font-size: 10px; box-shadow: 0 4px 12px #23336f23; }
.cap-code { background: #122458; }
.mini-code { width: min(100%, 260px); padding: 12px; border: 1px solid #62749e; border-radius: 8px; color: #e8eeff; background: #1a2f64; font-size: 11px; line-height: 1.55; }
.mini-code b { color: #a3baff; font-weight: 400; }
.cap-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 21px; }
.cap-copy h3, .access h3 { margin-bottom: 7px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.cap-copy p { margin-bottom: 16px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.cap-copy a { margin-top: auto; color: var(--blue); font-size: 14px; font-weight: 500; }
.cap-copy a:hover { text-decoration: underline; }
.cap-copy a span { margin-left: 4px; }

.examples .section-head { align-items: center; }
.example-list { border-top: 1px solid var(--line); }
.example-list a, .rubik-case summary { display: grid; grid-template-columns: minmax(150px, .6fr) 2fr auto; align-items: center; gap: 20px; padding: 17px 12px; border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.55vw, 21px); transition: background-color .18s; }
.example-list a:hover, .rubik-case summary:hover { background: #edf2ff; }
.example-kind { color: var(--muted); font-size: 13px; }
.example-arrow { color: var(--blue); font-size: 22px; }
.rubik-case summary { list-style: none; }
.rubik-case summary::-webkit-details-marker { display: none; }
.rubik-case summary .example-arrow::before { content: '+'; }
.rubik-case[open] summary .example-arrow::before { content: '−'; }
.rubik-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 54px); padding: clamp(20px, 3vw, 38px); border-bottom: 1px solid var(--line); background: #edf1fc; }
.rubik-body h3 { margin-bottom: 12px; font-size: 19px; font-weight: 500; }
.face-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.face-gallery figure { margin: 0; }
.face-gallery figcaption { margin-top: 5px; color: var(--muted); font-size: 12px; }
.face-photo { display: grid; place-items: center; aspect-ratio: 1.32; border: 1px solid #d3daea; border-radius: 8px; background: radial-gradient(at 32% 24%, #fff6e8, #d8dadf 72%); }
.face-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 54%; max-width: 65px; aspect-ratio: 1; padding: 3px; border-radius: 5px; background: #252630; transform: rotate(-7deg); box-shadow: 2px 4px 7px #292d4460; }
.face-gallery figure:nth-child(even) .face-grid { transform: rotate(5deg); }
.face-grid i { border-radius: 2px; background: var(--sticker); box-shadow: inset 0 1px #ffffff55; }
.rubik-answer p { margin-bottom: 12px; color: var(--muted); line-height: 1.52; }
.move-sequence { display: flex; gap: 6px; }
.move-sequence kbd { min-width: 33px; padding: 5px 7px; border: 1px solid #c3d3fa; border-radius: 6px; color: #133795; background: var(--white); text-align: center; font-weight: 500; }
.access { padding-bottom: 64px; }
.access-panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 28px; overflow: hidden; padding: clamp(26px, 4vw, 58px); border-radius: 22px; background: #10234c; color: #fff; }
.access .eyebrow { margin-bottom: 16px; color: #c2d0f9; }
.access .eyebrow > span { background: #86a3ff; }
.access-details { display: grid; gap: 20px; }
.access-details > div { padding-left: 18px; border-left: 2px solid #809aff; }
.access-details p { color: #d0d9f4; font-size: 15px; line-height: 1.55; }
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 63px; padding-block: 13px; font-size: 16px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 23px; font-weight: 450; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > p { max-width: 510px; color: var(--muted); padding: 0 18px 17px 0; line-height: 1.55; }
.closing { display: grid; justify-items: center; gap: 21px; padding: 58px 24px; border-radius: 20px; text-align: center; background: #e9eeff; }
.closing h2 { font-size: clamp(34px, 4.2vw, 58px); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.site-footer .brand { font-size: 30px; }
.site-footer > a:last-child { color: var(--muted); font-size: 14px; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 30px; }
  .hero-stage { min-height: 445px; }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 66px; grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 38px 46px; }
  .hero h1 { font-size: clamp(47px, 9vw, 74px); }
  .hero-stage { min-height: 425px; padding-inline: clamp(18px, 6vw, 62px); }
  .section { padding-block: 46px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
  .section-head > p { justify-self: start; }
  .capabilities { gap: 10px; }
  .cap-visual { height: 140px; padding: 10px; }
  .cap-copy { padding: 15px; }
  .access { padding-bottom: 46px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { margin-block: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-stage { gap: 16px; min-height: 395px; border-radius: 17px; padding: 17px 12px; }
  .stage-top { padding-inline: 4px; }
  .window-content { min-height: 237px; padding: 13px; }
  .demo-art { margin-left: 0; }
  .capabilities, .access-panel, .faq, .rubik-body { grid-template-columns: 1fr; }
  .capabilities { gap: 12px; }
  .cap-visual { height: 151px; padding-inline: 25px; }
  .cap-copy { padding: 17px; }
  .example-list a, .rubik-case summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-inline: 2px; }
  .example-kind { grid-column: 1; }
  .example-list a > span:nth-child(2), .rubik-case summary > span:nth-child(2) { grid-column: 1; }
  .example-arrow { grid-area: 1 / 2 / 3; }
  .access-panel, .faq { gap: 22px; }
  .closing { padding-block: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
