@font-face { font-family: 'Noto Display'; src: url('/fonts/NotoSansDisplay-Regular.ttf') format('truetype'); font-display: swap; font-weight: 400; }
@font-face { font-family: 'Noto Display'; src: url('/fonts/NotoSansDisplay-Bold.ttf') format('truetype'); font-display: swap; font-weight: 700; }
@font-face { font-family: 'Noto Text'; src: url('/fonts/NotoSans-Regular.ttf') format('truetype'); font-display: swap; font-weight: 400; }

:root {
  color-scheme: dark;
  --ink: #080a0f;
  --panel: #0e1118;
  --panel-2: #141822;
  --bone: #f3efe7;
  --muted: #a5a8af;
  --line: rgba(255,255,255,.12);
  --red: #ff3855;
  --ice: #8de7f4;
  --radius: 22px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: 'Noto Text', sans-serif; line-height: 1.5; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 99; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 110; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { width: var(--shell); height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--red); color: white; border-radius: 9px; font: 700 20px/1 'Noto Display'; transform: skew(-6deg); }
.brand > span:last-child { display: grid; line-height: 1; gap: 3px; }
.brand strong { font: 700 15px/1 'Noto Display'; letter-spacing: .11em; }
.brand small { color: var(--muted); font: 400 8px/1 'Noto Display'; letter-spacing: .24em; }
nav { display: flex; gap: 30px; color: #c9c9cd; font: 400 13px/1 'Noto Display'; }
nav a { transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: white; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; color: #c9c9cd; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.1); }

.hero { width: var(--shell); min-height: 670px; margin: auto; display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; position: relative; }
.hero::after { content: 'PLAY'; position: absolute; right: -100px; bottom: -50px; font: 700 250px/.7 'Noto Display'; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.04); pointer-events: none; }
.eyebrow { margin: 0 0 18px; color: var(--red); font: 700 11px/1 'Noto Display'; letter-spacing: .18em; text-transform: uppercase; }
.hero h1, .section-heading h2, .catalog-heading h2, .method h2 { font-family: 'Noto Display', sans-serif; letter-spacing: -.055em; margin: 0; }
.hero h1 { font-size: clamp(58px, 7.2vw, 104px); line-height: .91; max-width: 780px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead { max-width: 640px; margin: 30px 0 0; color: #b5b7bd; font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--line); border-radius: 10px; font: 700 12px/1 'Noto Display'; letter-spacing: .05em; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--bone); color: var(--ink); }
.button-primary span { color: var(--red); font-size: 18px; }
.button-ghost:hover { border-color: rgba(255,255,255,.35); }

.release-tape { position: relative; padding: 18px 20px 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); border-radius: var(--radius); box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.release-tape::before { content: ''; position: absolute; width: 130px; height: 6px; top: -3px; left: 50%; transform: translateX(-50%); background: var(--red); border-radius: 9px; box-shadow: 0 0 28px rgba(255,56,85,.45); }
.tape-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 3px 2px 17px; color: var(--muted); font: 700 10px/1 'Noto Display'; letter-spacing: .16em; }
.tape-head b { color: var(--bone); }
.release-tape ol { list-style: none; padding: 12px 0 5px; margin: 0; position: relative; }
.release-tape ol::before { content: ''; position: absolute; left: 22px; top: 36px; bottom: 39px; width: 1px; background: linear-gradient(var(--red) 75%, var(--line) 75%); }
.release-tape li { display: grid; grid-template-columns: 46px 1fr; align-items: center; min-height: 74px; position: relative; }
.release-tape li > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted); font: 700 10px/1 'Noto Display'; z-index: 1; }
.release-tape li.done > span { border-color: rgba(255,56,85,.65); color: var(--red); }
.release-tape li.live > span { background: var(--red); color: white; border-color: var(--red); box-shadow: 0 0 0 7px rgba(255,56,85,.1); }
.release-tape li div { padding-left: 18px; display: grid; gap: 5px; }
.release-tape li b { font: 700 15px/1 'Noto Display'; }
.release-tape li small { color: var(--muted); font-size: 12px; }
.tape-foot { margin-top: 10px; background: var(--bone); color: var(--ink); border-radius: 12px; padding: 15px 16px; display: flex; align-items: baseline; gap: 10px; font: 700 11px/1 'Noto Display'; text-transform: uppercase; letter-spacing: .08em; }
.tape-foot span { color: var(--red); font-size: 25px; letter-spacing: -.04em; }

.section-shell { width: var(--shell); margin: auto; padding: 110px 0; }
.systems { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 42px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .catalog-heading h2, .method h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1; }
.section-heading > p:last-child, .catalog-heading > p { color: var(--muted); max-width: 400px; justify-self: end; margin: 0 0 5px; }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.system-card { min-height: 250px; padding: 24px; text-align: left; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr auto; gap: 14px 18px; cursor: pointer; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.system-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); background: var(--panel-2); }
.system-code { width: 47px; height: 32px; display: grid; place-items: center; grid-row: 1; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 7px; font: 700 10px/1 'Noto Display'; letter-spacing: .12em; }
.system-state { justify-self: end; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.system-card strong { grid-column: 1 / -1; font: 700 clamp(26px, 3vw, 38px)/1 'Noto Display'; letter-spacing: -.03em; }
.system-description { grid-column: 1 / -1; color: var(--muted); max-width: 410px; }
.system-link { grid-column: 1 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; font: 700 12px/1 'Noto Display'; }
.system-link svg, .text-link svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.system-card.is-ready { background: transparent; border-style: dashed; }
.system-card.is-ready .system-link { color: #777b84; }

.catalog { padding-top: 30px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.catalog-tools { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin: 40px 0 28px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.02); }
.search-field { height: 44px; flex: 1; max-width: 570px; display: flex; align-items: center; gap: 12px; padding: 0 13px; background: #0b0e14; border: 1px solid var(--line); border-radius: 10px; }
.search-field:focus-within { border-color: rgba(141,231,244,.6); box-shadow: 0 0 0 3px rgba(141,231,244,.08); }
.search-field svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input { flex: 1; min-width: 0; color: var(--bone); background: none; border: 0; outline: 0; font-size: 13px; }
.search-field input::placeholder { color: #6f737d; }
kbd { color: #71757e; border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; font: 400 10px/1 'Noto Display'; }
.filter-list { display: flex; gap: 6px; }
.filter-list button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 10px 13px; cursor: pointer; font: 700 11px/1 'Noto Display'; }
.filter-list button[aria-pressed="true"] { color: var(--ink); background: var(--bone); }
.tutorial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tutorial-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tutorial-cover { width: 100%; aspect-ratio: 16/9; position: relative; padding: 0; border: 0; background: #050608; overflow: hidden; cursor: pointer; }
.tutorial-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tutorial-cover:hover img { transform: scale(1.035); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.7)); }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(243,239,231,.94); color: var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.28); transition: transform .2s ease, background .2s ease; }
.tutorial-cover:hover .play-button { transform: translate(-50%,-50%) scale(1.07); background: white; }
.play-button svg { width: 27px; fill: currentColor; }
.duration { position: absolute; right: 14px; bottom: 13px; padding: 5px 8px; background: rgba(0,0,0,.78); border-radius: 5px; color: white; font: 700 10px/1 'Noto Display'; }
.tutorial-card-body { padding: 23px; }
.card-kicker { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font: 700 10px/1 'Noto Display'; }
.card-kicker > span { color: var(--accent); }
.tutorial-card h3 { margin: 17px 0 12px; font: 700 clamp(24px, 3vw, 34px)/1.05 'Noto Display'; letter-spacing: -.035em; }
.tutorial-card p { color: var(--muted); margin: 0; min-height: 72px; }
.card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 20px 0; }
.card-tags span, .dialog-meta span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: #bdc0c7; font: 700 9px/1 'Noto Display'; letter-spacing: .06em; text-transform: uppercase; }
.card-tags span:first-child { color: #75df9c; border-color: rgba(117,223,156,.25); background: rgba(117,223,156,.04); }
.text-link { width: 100%; padding: 15px 0 0; display: flex; justify-content: space-between; align-items: center; border: 0; border-top: 1px solid var(--line); background: none; color: var(--bone); cursor: pointer; font: 700 11px/1 'Noto Display'; }
.empty-state { padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state span { color: var(--red); font: 700 50px/1 'Noto Display'; }
.empty-state h3 { margin: 14px 0 4px; font: 700 24px/1 'Noto Display'; }
.empty-state p { color: var(--muted); margin: 0; }

.method { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; border-top: 1px solid var(--line); }
.method-intro > p:last-child { margin-top: 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.method-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.method-steps li { display: grid; grid-template-columns: 58px 1fr; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.method-steps li > span { color: var(--red); font: 700 12px/1 'Noto Display'; padding-top: 3px; }
.method-steps b { font: 700 17px/1 'Noto Display'; }
.method-steps p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

footer { width: var(--shell); min-height: 120px; margin: auto; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: var(--muted); font-size: 11px; }
footer p { text-align: center; }
footer > span { text-align: right; }

.tutorial-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: #0d1017; color: var(--bone); box-shadow: 0 50px 130px rgba(0,0,0,.75); overflow: auto; }
.tutorial-dialog::backdrop { background: rgba(2,3,5,.86); backdrop-filter: blur(10px); }
.dialog-shell { position: relative; }
.dialog-close { position: sticky; float: right; top: 12px; margin: 12px 12px -54px 0; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: white; background: rgba(8,10,15,.82); cursor: pointer; font-size: 23px; line-height: 1; backdrop-filter: blur(12px); }
.dialog-video-wrap { background: #030405; aspect-ratio: 16/9; }
.dialog-video-wrap video { width: 100%; height: 100%; display: block; }
.dialog-content { padding: 32px; }
.dialog-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.dialog-meta span:first-child { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.dialog-content h2 { margin: 20px 0 13px; max-width: 780px; font: 700 clamp(32px, 5vw, 55px)/.98 'Noto Display'; letter-spacing: -.045em; }
.dialog-summary { max-width: 800px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.dialog-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 35px; padding-top: 30px; border-top: 1px solid var(--line); }
.dialog-columns h3 { margin: 0 0 17px; font: 700 15px/1 'Noto Display'; }
.dialog-columns ul, .dialog-columns ol { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: #c5c7cc; font-size: 13px; }
.dialog-columns li::marker { color: var(--red); font-weight: 700; }
.proof-strip { margin-top: 32px; padding: 16px; display: flex; gap: 13px; align-items: center; border: 1px solid rgba(117,223,156,.2); background: rgba(117,223,156,.04); border-radius: 12px; }
.proof-strip > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #08130d; background: #75df9c; font-weight: 700; }
.proof-strip p { margin: 0; display: grid; gap: 3px; }
.proof-strip b { font: 700 12px/1 'Noto Display'; }
.proof-strip small { color: var(--muted); }
.dialog-open { overflow: hidden; }

.reveal { animation: reveal .7s cubic-bezier(.2,.7,.2,1) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .18s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 30px, 720px); }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding: 80px 0; }
  .hero::after { display: none; }
  .release-tape { max-width: 520px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p:last-child { justify-self: start; }
  .system-grid, .tutorial-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 620px) {
  .site-header { height: 72px; }
  .live-pill { font-size: 0; }
  .live-pill i { width: 8px; height: 8px; }
  .hero { min-height: auto; padding: 70px 0 85px; }
  .hero h1 { font-size: clamp(52px, 16.2vw, 72px); }
  .hero-lead { font-size: 16px; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .release-tape { padding: 16px; }
  .section-shell { padding: 80px 0; }
  .catalog { padding-top: 10px; }
  .catalog-heading { align-items: start; flex-direction: column; }
  .catalog-tools { align-items: stretch; flex-direction: column; padding: 10px; }
  .search-field { max-width: none; }
  kbd { display: none; }
  .filter-list { overflow-x: auto; padding-bottom: 2px; }
  .filter-list button { white-space: nowrap; }
  .system-card { min-height: 230px; }
  .tutorial-card h3 { font-size: 28px; }
  .tutorial-card p { min-height: 0; }
  footer { grid-template-columns: 1fr auto; padding: 30px 0; gap: 22px; }
  footer p { display: none; }
  .dialog-content { padding: 23px 18px; }
  .dialog-columns { grid-template-columns: 1fr; gap: 28px; }
  .proof-strip { align-items: flex-start; }
}
