:root {
  color-scheme: dark;
  --ink: #f4f6fb;
  --muted: #98a2b8;
  --panel: #151d2c;
  --panel-2: #1b2537;
  --line: rgba(255, 255, 255, .11);
  --accent: #70e0b0;
  --accent-2: #f4c65d;
  --bg: #0c111c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(87, 109, 214, .26), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(43, 172, 139, .14), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }
.topbar, main, footer { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line);
}
.eyebrow, .kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(24px, 3.1vw, 45px); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 58px); line-height: 1; letter-spacing: -.045em; }
.status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.status span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  padding: 86px 0 60px;
}
.gate-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.gate-summary div { min-height: 112px; padding: 22px; background: rgba(21, 29, 44, .72); border: 1px solid var(--line); }
.gate-summary strong { display: block; font-size: 30px; color: var(--accent-2); }
.gate-summary span { color: var(--muted); font-size: 13px; }

.method-section { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 0 0 72px; }
.method-section > i { align-self: center; color: var(--accent); font-style: normal; font-size: 24px; }
.method-step { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(21, 29, 44, .72); }
.method-step.is-current { border-color: rgba(112, 224, 176, .65); box-shadow: inset 0 0 0 1px rgba(112, 224, 176, .2); }
.method-step span, .method-step strong { display: block; }
.method-step span { margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.method-step strong { margin-bottom: 9px; font-size: 17px; }
.method-step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter, .event-actions button, .reset-demo {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}
.filter.is-active, .event-actions button:not(.secondary) { background: var(--ink); color: #0d1420; border-color: var(--ink); }

.creative-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.creative-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease;
}
.creative-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }
.creative-card[hidden] { display: none; }
.creative-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.creative-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,8,14,.12) 20%, rgba(4,8,14,.2) 45%, rgba(4,8,14,.95) 100%); }
.creative-card.tone-calm img { filter: saturate(.76) brightness(.87); }
.creative-card.tone-focus img { transform: scale(1.07); filter: contrast(1.08); }
.creative-card.tone-story img { filter: saturate(1.08) contrast(1.05); }
.creative-content { position: absolute; inset: auto 0 0; padding: 26px; }
.variant { display: inline-flex; padding: 7px 10px; margin-bottom: 12px; border-radius: 999px; background: rgba(12,17,28,.76); border: 1px solid rgba(255,255,255,.22); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.creative-content h3 { max-width: 12ch; margin-bottom: 8px; font-size: clamp(31px, 3.2vw, 50px); line-height: .96; letter-spacing: -.045em; text-shadow: 0 3px 22px rgba(0,0,0,.55); }
.creative-content p { max-width: 35ch; margin-bottom: 20px; color: #e7ebf4; line-height: 1.5; }
.creative-cta { width: 100%; padding: 13px; border: 0; border-radius: 13px; color: #0c111c; background: var(--accent); font-weight: 900; cursor: pointer; letter-spacing: .04em; }
.hypothesis { display: block; margin-top: 12px; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.45; }

.video-section { padding: 110px 0 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: var(--panel); }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #080d16; object-fit: cover; }
.video-card > div { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.video-card strong { color: var(--accent); letter-spacing: .08em; }
.video-card span { color: var(--muted); font-size: 12px; text-align: right; }

.score-section { padding: 110px 0 0; }
.score-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.score-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.score-toolbar input, .score-row select, .score-row textarea { border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--bg); font: inherit; }
.score-toolbar input { min-height: 44px; width: min(320px, 70vw); padding: 0 12px; }
.score-actions { display: flex; gap: 8px; }
.score-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: #0c111c; background: var(--accent); font-weight: 800; cursor: pointer; }
.score-actions .secondary { color: var(--ink); background: transparent; }
.concept-readiness { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.readiness-card { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(21, 29, 44, .72); }
.readiness-card strong, .readiness-card span { display: block; }
.readiness-card strong { margin-bottom: 5px; }
.readiness-card span { color: var(--muted); font-size: 12px; }
.readiness-card.is-pass { border-color: rgba(112, 224, 176, .65); }
.readiness-card.is-pass span { color: var(--accent); }
.score-grid { display: grid; gap: 10px; }
.score-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(3, minmax(110px, .7fr)) minmax(180px, 1.5fr) 70px; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.score-id strong, .score-id span { display: block; }
.score-id strong { color: var(--accent); }
.score-id span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.score-field { display: grid; gap: 5px; color: var(--muted); font-size: 10px; }
.score-row select { min-height: 44px; padding: 0 9px; }
.score-row textarea { min-height: 52px; padding: 9px; resize: vertical; }
.score-total { text-align: center; }
.score-total strong, .score-total span { display: block; }
.score-total strong { font-size: 22px; color: var(--accent-2); }
.score-total span { color: var(--muted); font-size: 9px; }

.prototype-section { padding: 110px 0 30px; }
.section-heading { max-width: 850px; margin-bottom: 34px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.prototype-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prototype { min-height: 440px; padding: 24px; border: 1px solid var(--line); border-radius: 25px; background: linear-gradient(155deg, rgba(31,43,63,.96), rgba(15,21,33,.96)); }
.prototype-copy span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.prototype-copy h3 { margin: 8px 0 6px; font-size: 26px; }
.prototype-copy p, .prototype-result { color: var(--muted); }
.mahjong-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 30px 0 20px; }
.mj-tile { min-height: 72px; border: 0; border-radius: 12px; background: #f6edda; color: #26304a; font-size: 38px; box-shadow: 0 7px 0 #c8b798; cursor: pointer; transition: transform .15s, opacity .2s; }
.mj-tile.target { outline: 3px solid #f7cc52; box-shadow: 0 0 24px rgba(247,204,82,.45), 0 7px 0 #c8b798; }
.mj-tile.selected { transform: translateY(4px); }
.mj-tile.matched { opacity: .08; pointer-events: none; }
.sort-board { display: grid; grid-template-columns: 62px 28px repeat(3, 1fr); gap: 10px; align-items: end; margin: 56px 0 30px; }
.loose-block { width: 58px; height: 58px; border: 0; border-radius: 14px; cursor: pointer; box-shadow: inset 0 -6px 0 rgba(0,0,0,.14); }
.sort-arrow { align-self: center; color: var(--accent-2); font-size: 28px; }
.lane { display: flex; flex-direction: column-reverse; gap: 5px; min-height: 142px; padding: 7px; border: 3px solid currentColor; border-radius: 16px; background: rgba(255,255,255,.06); cursor: pointer; }
.lane i { display: block; height: 26px; border-radius: 7px; background: currentColor; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.lane i.empty { background: transparent; border: 1px dashed currentColor; opacity: .35; }
.coral, .coral-lane { color: #ff7165; background-color: #ff7165; }
.aqua-lane { color: #5bd7d3; }
.violet-lane { color: #a677ef; }
.lane.completed { box-shadow: 0 0 24px currentColor; }
.merge-board { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin: 58px 0 26px; }
.merge-item, .merge-result { min-height: 98px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.07); color: var(--ink); font-size: 44px; }
.merge-item { cursor: pointer; }
.merge-item small { display: block; color: var(--muted); font-size: 11px; }
.merge-item.selected { outline: 3px solid var(--accent-2); transform: translateY(-3px); }
.merge-item.merged { opacity: .16; pointer-events: none; }
.merge-result { display: grid; place-items: center; }
.plus, .equals { color: var(--muted); font-size: 20px; }
.restore-meter { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.restore-meter span { display: block; width: 12%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s ease; }
.reset-demo { min-height: 44px; padding: 8px 14px; font-size: 12px; }

.measurement { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; margin: 90px 0 30px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--panel); }
.measurement h2 { font-size: 38px; }
.measurement p { color: var(--muted); }
.event-panel { padding: 20px; border-radius: 20px; background: var(--bg); }
.event-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.event-counts div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.event-counts strong, .event-counts span { display: block; }
.event-counts strong { font-size: 26px; color: var(--accent-2); }
.event-counts span { color: var(--muted); font-size: 11px; }
.event-actions { display: flex; gap: 8px; }
.event-actions button { border-radius: 12px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .intro, .measurement { grid-template-columns: 1fr; }
  .method-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-section > i { display: none; }
  .creative-grid, .video-grid, .prototype-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score-id, .score-row textarea { grid-column: 1 / -1; width: 100%; }
  .prototype:last-child { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  .topbar, main, footer { width: min(100% - 24px, 1440px); }
  .topbar { align-items: flex-start; flex-direction: column; padding-top: 22px; }
  .status { font-size: 11px; }
  .intro { padding: 58px 0 42px; gap: 28px; }
  .method-section, .concept-readiness { grid-template-columns: 1fr; }
  .gate-summary div { min-height: 92px; padding: 16px; }
  .gate-summary strong { font-size: 24px; }
  .creative-grid, .video-grid, .prototype-grid { grid-template-columns: 1fr; }
  .creative-card { min-height: 500px; }
  .prototype:last-child { grid-column: auto; }
  .prototype-section { padding-top: 82px; }
  .score-toolbar { align-items: stretch; flex-direction: column; }
  .score-toolbar input { width: 100%; }
  .score-actions { flex-direction: column; }
  .score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-row textarea, .score-id { grid-column: 1 / -1; }
  .measurement { margin-top: 70px; padding: 22px; }
  .event-counts { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
