/* NUTAMI design system v2. Dark "deep-tech" hero bands + light content, gradient accents, motion with restraint.
   System fonts only, no external requests, transform/opacity animations only, honours prefers-reduced-motion. */
:root {
  --ink: #0b1220; --ink2: #1a2236; --muted: #5b6577; --line: #e3e8f1; --bg: #f5f7fb; --card: #fff;
  --blue: #2563eb; --cyan: #22d3ee; --violet: #7c3aed; --green: #16a34a; --amber: #d97706;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #22d3ee 120%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --r: 20px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: clip; }
a { color: var(--blue); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #7aa2ff; outline-offset: 3px; border-radius: 6px; }
.w { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7,11,22,.8); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav .w { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .01em; font-size: 19px; }
.logo .mark { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: 0 0 18px rgba(34,211,238,.45); position: relative; }
.logo .mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #070b16; }
#menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
#menu a { color: #b9c3d8; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
#menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
#menu a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
#menu a.cta { background: #fff; color: var(--ink); margin-left: 6px; }
#menu a.cta:hover { background: #e7ecf7; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: #b9c3d8; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.burger { display: none; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; border-radius: 10px; font-size: 18px; padding: 4px 11px; cursor: pointer; }
@media (max-width: 1020px) {
  .burger { display: block; margin-left: auto; }
  #menu { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; margin: 0; padding: 12px 20px 20px; background: #070b16; border-bottom: 1px solid rgba(255,255,255,.1); }
  #menu.open { display: flex; }
  #menu a { padding: 13px 12px; font-size: 16px; }
  #menu a.cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; background:
  radial-gradient(900px 520px at 85% 8%, rgba(124,58,237,.4), transparent 60%),
  radial-gradient(800px 500px at 0% 100%, rgba(37,99,235,.36), transparent 60%),
  radial-gradient(600px 400px at 60% 115%, rgba(34,211,238,.2), transparent 60%), #070b16; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.hero .spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(122,162,255,.16), transparent 62%); }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .w { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 36px; align-items: center; padding-top: 80px; padding-bottom: 104px; }
.hero.small .w { grid-template-columns: 1fr; padding-top: 68px; padding-bottom: 76px; }
.chip { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #dbe6ff; backdrop-filter: blur(6px); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); line-height: 1.03; letter-spacing: -.04em; margin: 22px 0 20px; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7aa2ff, #22d3ee, #a78bfa, #7aa2ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 9s linear infinite; }
@keyframes shift { to { background-position: 300% 0; } }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: #b9c3d8; margin: 0; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .alt { margin-top: 18px; font-size: 15px; color: #b9c3d8; }
.hero .alt a { color: #8fb3ff; font-weight: 600; }
.rise > * { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.rise > *:nth-child(2) { animation-delay: .08s; } .rise > *:nth-child(3) { animation-delay: .16s; } .rise > *:nth-child(4) { animation-delay: .24s; } .rise > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scrollcue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; transform: translateX(-50%); }
.scrollcue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70%, 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 900px) { .hero .w { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 80px; } .scrollcue { display: none; } }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; min-height: 44px; transition: transform .15s, box-shadow .25s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(79,70,229,.42); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.btn.primary:hover::after { left: 130%; transition: left .7s ease; }
.btn.ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* constellation */
.art { position: relative; perspective: 1000px; }
.art svg { width: 100%; height: auto; display: block; overflow: visible; transform: rotateY(calc(var(--px, 0) * 7deg)) rotateX(calc(var(--py, 0) * -6deg)); transition: transform .25s ease-out; }
.art .ln { stroke: rgba(122,162,255,.5); stroke-width: 1.4; stroke-dasharray: 4 7; animation: flow 3.2s linear infinite; }
.art .ring { fill: none; stroke: rgba(255,255,255,.12); stroke-dasharray: 2 8; transform-origin: 260px 230px; animation: spin 70s linear infinite; }
.art .nd { transform-box: fill-box; transform-origin: center; animation: pulse 4.5s ease-in-out infinite; cursor: pointer; outline: none; }
.art .nd:nth-of-type(2n) { animation-delay: -1.3s; } .art .nd:nth-of-type(3n) { animation-delay: -2.4s; }
.art .nd rect { fill: #0f1830; stroke: rgba(122,162,255,.8); stroke-width: 1.6; transition: fill .2s, stroke .2s, stroke-width .2s; }
.art .nd text { fill: #dbe6ff; font: 700 13px var(--font); text-anchor: middle; pointer-events: none; }
.art .nd:hover rect, .art .nd:focus-visible rect { fill: #1b2a57; stroke: #22d3ee; stroke-width: 2.4; filter: drop-shadow(0 0 12px rgba(34,211,238,.6)); }
.art .core .a { fill: url(#cg); filter: drop-shadow(0 0 24px rgba(124,58,237,.75)); }
.art .core text { fill: #fff; font: 800 15px var(--font); letter-spacing: .02em; text-anchor: middle; }
.art .core text.s { font: 600 10.5px var(--font); letter-spacing: .06em; fill: #cfd8ee; }
.art .wave { fill: none; stroke: rgba(122,162,255,.55); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: wave 4.8s ease-out infinite; }
.art .wave.b { animation-delay: -2.4s; }
.art .pk { fill: #7ee7ff; filter: drop-shadow(0 0 6px #22d3ee); }
@keyframes flow { to { stroke-dashoffset: -44; } } @keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes wave { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.tip { position: absolute; z-index: 5; width: 240px; padding: 14px 16px; border-radius: 16px; background: rgba(11,18,40,.92); border: 1px solid rgba(122,162,255,.4); box-shadow: 0 20px 50px rgba(0,0,0,.5); backdrop-filter: blur(10px); color: #dbe6ff; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s, transform .18s; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.tip span { display: block; margin-top: 8px; color: #7ee7ff; font-weight: 700; font-size: 13px; }
.hint { text-align: center; font-size: 12.5px; color: #8fa0c4; margin-top: 4px; }

/* marquee */
.marq { overflow: hidden; padding: 44px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq .tr { display: flex; width: max-content; gap: 12px; animation: marq 55s linear infinite; }
.marq:hover .tr { animation-play-state: paused; }
.marq a { color: #4a5568; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; background: #fff; transition: border-color .2s, color .2s, transform .2s; }
.marq a:hover { color: var(--ink); border-color: #9db8f5; transform: translateY(-2px); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.s { padding: 88px 0; }
section.s.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.s.dark { background: #070b16; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
section.s.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 90% 0%, rgba(124,58,237,.28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(37,99,235,.25), transparent 60%); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.dark .eyebrow { color: #7aa2ff; }
h2.t { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; margin: 10px 0 14px; font-weight: 800; text-wrap: balance; }
p.sub { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
.dark p.sub { color: #b9c3d8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -52px; position: relative; z-index: 2; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 22px 50px rgba(11,18,32,.1); color: var(--muted); font-size: 15px; }
.stats big { display: block; font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.grid { display: grid; gap: 20px; margin-top: 36px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g3, .g4, .g2 { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .25s, box-shadow .25s, border-color .25s; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card.glow:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11,18,32,.1); border-color: #cdd6e6; }
.glow::before, .card::before, .bt::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(124,58,237,.7), rgba(34,211,238,.4) 40%, transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.glow:hover::before, .card:hover::before, .bt:hover::before { opacity: 1; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; background: #eef3ff; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--blue); }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.dark .card p { color: #b9c3d8; } .dark .card .ic { background: rgba(255,255,255,.08); }
.lessons .card { padding: 20px; }
.lessons .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.lessons .ico { font-size: 28px; display: block; margin-bottom: 6px; }
.lessons h3 { font-size: 18px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 38px; }
.bt { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.bt:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(11,18,32,.1); }
.bt.s3 { grid-column: span 3; } .bt.s6 { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.bt h3 { margin: 12px 0 8px; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.bt p { margin: 0; color: var(--muted); }
.bt .k { font: 700 12px var(--mono); letter-spacing: .08em; color: var(--blue); text-transform: uppercase; }
.bt .viz { margin-top: 22px; background: linear-gradient(180deg, #f7f9fe, #eef3ff); border-radius: 18px; padding: 14px; border: 1px solid #e6ecf9; }
.bt.s6 .viz { margin: 0; }
.viz svg { width: 100%; height: auto; display: block; }
.viz text { font: 700 11px var(--font); fill: #3a4458; text-anchor: middle; }
.viz .st { fill: #dfe6f5; stroke: #b9c6e3; stroke-width: 1.5; }
.viz .l1 { animation: lit1 8s infinite; } .viz .l2 { animation: lit2 8s infinite; } .viz .l3 { animation: lit3 8s infinite; } .viz .l4 { animation: lit4 8s infinite; }
@keyframes lit1 { 0%, 8% { fill: #dfe6f5; } 12%, 90% { fill: #22c55e; } 100% { fill: #dfe6f5; } }
@keyframes lit2 { 0%, 28% { fill: #dfe6f5; } 32%, 90% { fill: #22c55e; } 100% { fill: #dfe6f5; } }
@keyframes lit3 { 0%, 50% { fill: #dfe6f5; } 54%, 90% { fill: #22c55e; } 100% { fill: #dfe6f5; } }
@keyframes lit4 { 0%, 72% { fill: #dfe6f5; } 76%, 90% { fill: #22c55e; } 100% { fill: #dfe6f5; } }
.viz .spin { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.viz .pulse { transform-box: fill-box; transform-origin: center; animation: wave 3.6s ease-out infinite; fill: none; stroke: #7c3aed; stroke-width: 2; }
.viz .pulse.b { animation-delay: -1.8s; }
@media (max-width: 860px) { .bt.s3, .bt.s6 { grid-column: span 6; } .bt.s6 { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pills span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #eef3ff; color: #2c4fbf; }

/* cycle */
.cycle { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; --p: 0; }
.cycle::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); }
.cycle::after { content: ""; position: absolute; left: 24px; top: 23px; height: 3px; border-radius: 3px; width: calc((100% - 48px) * var(--p)); background: var(--grad); box-shadow: 0 0 14px rgba(34,211,238,.6); }
.cycle .st { position: relative; padding-top: 64px; opacity: .45; transition: opacity .5s, transform .5s; }
.cycle .st.on { opacity: 1; }
.cycle .st .n { position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--mono); background: #0f1830; border: 2px solid rgba(255,255,255,.2); color: #8fa0c4; transition: all .5s; z-index: 1; }
.cycle .st.on .n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 26px rgba(124,58,237,.6); }
.cycle b { display: block; font-size: 20px; margin-bottom: 6px; letter-spacing: -.01em; }
.cycle span.d { color: #b9c3d8; font-size: 15.5px; }
.light .cycle::before { background: #dfe6f5; } .light .cycle .st .n { background: #fff; border-color: #cdd6e6; color: #7a8498; } .light .cycle span.d { color: var(--muted); }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr 1fr; row-gap: 34px; } .cycle::before, .cycle::after { display: none; } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }

/* live demo */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 38px; align-items: start; }
.tabs { display: grid; gap: 10px; }
.tabs button { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.tabs button:hover { transform: translateX(3px); }
.tabs button[aria-selected="true"] { border-color: var(--blue); background: #eef3ff; }
.tabs b { display: block; font-size: 16px; } .tabs small { color: var(--muted); font-size: 13.5px; }
.frame { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(11,18,32,.14); }
.frame .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f1f4fa; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e6; } .frame .bar i:nth-child(1) { background: #ff6b6b; } .frame .bar i:nth-child(2) { background: #ffd166; } .frame .bar i:nth-child(3) { background: #3ddc97; }
.frame .url { margin-left: 10px; font: 600 12.5px var(--mono); color: #6b7690; background: #fff; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame iframe { display: block; width: 100%; height: 450px; border: 0; background: #fff; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } .tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; } .tabs button { flex: none; padding: 10px 16px; border-radius: 999px; } .tabs button:hover { transform: none; } .tabs small { display: none; } .frame iframe { height: 560px; } }
@media (max-width: 640px) { .frame iframe { height: 640px; } }

/* misc blocks */
.callout { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #fff7e8, #fff); border: 1px solid #f1d9a8; border-radius: var(--r); padding: 22px 26px; margin-top: 34px; }
.callout .ic { font-size: 28px; line-height: 1; } .callout b { display: block; font-size: 18px; margin-bottom: 4px; } .callout span { color: #5a4a22; } .callout a { font-weight: 700; }
.band { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; isolation: isolate; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .12; mix-blend-mode: overlay; }
.band h2 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.1; } .band p { margin: 0; opacity: .92; }
.band .btn { background: #fff; color: var(--ink); }
.list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; color: var(--ink2); } .list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 26px; } }
.chat { display: grid; gap: 12px; }
.chat div { max-width: 88%; padding: 14px 18px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; box-shadow: 0 10px 26px rgba(11,18,32,.07); }
.chat .q { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat .a { margin-left: auto; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.chat small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; } .reveal:nth-child(3) { transition-delay: .14s; } .reveal:nth-child(4) { transition-delay: .21s; }
.static .reveal, .static .reveal * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .rise > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- footer ---------- */
footer.f { background: #070b16; color: #b9c3d8; padding: 60px 0 30px; font-size: 14.5px; }
footer.f .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { footer.f .cols { grid-template-columns: 1fr; } }
footer.f a { color: #b9c3d8; text-decoration: none; } footer.f a:hover { color: #fff; }
footer.f h4 { color: #fff; margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
footer.f ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.f .fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: #8390ab; }
footer.f .full { color: #8390ab; font-size: 13px; margin-top: 10px; max-width: 46ch; }

/* ---------- forms ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: 0 22px 54px rgba(11,18,32,.08); }
.form label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form .f { margin-bottom: 16px; }
.form input[type=text], .form input[type=email], .form select, .form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe; transition: border-color .2s, box-shadow .2s; min-height: 46px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.form textarea { min-height: 140px; resize: vertical; }
.form .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); } .form .chk input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.msg.ok { display: block; background: #effaf2; color: #14532d; border: 1px solid #bfe6cb; } .msg.err { display: block; background: #fff1f0; color: #7f1d1d; border: 1px solid #f3c5c0; }
.notice { display: none; margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: #fff7e8; border: 1px solid #f1d9a8; color: #5a4a22; }
.notice.show { display: block; } .notice b { display: block; margin-bottom: 2px; color: #3f3210; }

/* ---------- assessment ---------- */
.quiz { max-width: 860px; margin: 0 auto; }
.qbar { height: 8px; background: #e6ebf5; border-radius: 99px; overflow: hidden; margin: 0 0 8px; } .qbar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s ease; }
.qmeta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.qdim { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.qtext { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; line-height: 1.2; margin: 6px 0 22px; font-weight: 800; }
.opts { display: grid; gap: 12px; }
.opt { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; transition: border-color .15s, background .15s, transform .1s; min-height: 56px; }
.opt:hover { border-color: #9db8f5; background: #fafcff; transform: translateX(3px); } .opt.sel { border-color: var(--blue); background: #eef3ff; }
.opt b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef0f6; font-size: 13px; } .opt.sel b { background: var(--blue); color: #fff; }
.qnav { display: flex; justify-content: space-between; margin-top: 22px; gap: 12px; }
.res { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center; } @media (max-width: 820px) { .res { grid-template-columns: 1fr; } }
.score { font-size: 72px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level { display: inline-block; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: #eef3ff; color: var(--blue); margin: 8px 0 14px; }
.dim { margin: 12px 0; } .dim .h { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.dim .b { height: 10px; background: #e6ebf5; border-radius: 99px; overflow: hidden; } .dim .b i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.radar text { font: 700 12px var(--font); fill: #3a4458; }
.hidden { display: none !important; }
.prose h3 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.01em; } .prose p, .prose li { color: var(--ink2); }
