
:root { --navy: #0f1624; --navy2: #162033; --ink: #14182A; --muted: #586274; --line: #DDE3EA; --bg: #F6F8FA; --card: #FFFFFF;
  --teal: #19B3AE; --teal-d: #0B6E78; --teal-ink: #0B8A92; --mint: #A6F2E8; --amber: #FFB547; --gold: #FFD166; --ok: #138a55; --bad: #c43b3b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--teal-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.word { font-family: 'Avenir Next', 'Montserrat', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.word b { font-weight: 800; } .word span { font-weight: 500; color: var(--teal-ink); }
.dark .word span, .top .word span, footer .word span { color: #4FD6CF; }
.mark { display: block; border-radius: 24%; }
/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15,22,36,.94); backdrop-filter: blur(8px); color: #eef2f8; border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 1.4rem; }
.top nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.top nav a { color: #c9d3e3; text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.btn.primary { background: var(--teal); color: #04201f; }
.btn.primary:hover { background: #22c6c0; }
.btn.ghost { background: transparent; color: #eef2f8; border: 1.5px solid rgba(255,255,255,.35); }
.btn.ghost:hover { border-color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.light .btn.ghost { color: var(--ink); border-color: var(--line); }
/* hero */
.dark { background: radial-gradient(1100px 500px at 75% 0%, rgba(25,179,174,.22), transparent 60%), var(--navy); color: #eef2f8; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #4FD6CF; margin: 0 0 12px; }
.light .kicker { color: var(--teal-ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: #c9d3e3; margin: 0 0 26px; max-width: 34em; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: .9rem; color: #9aa8bf; margin-top: 16px; }
.phone { width: min(320px, 100%); margin: 0 auto; border-radius: 40px; padding: 12px; background: #05080f; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2a3752; }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
/* sections */
section { padding: 72px 0; } section[id] { scroll-margin-top: 64px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 34px; font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.step .num { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #04201f; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 0; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
.step .shot { margin-top: auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--navy); aspect-ratio: 9 / 13; }
.step .shot img { width: 100%; display: block; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feat .ico { font-size: 1.6rem; } .feat h3 { margin: 8px 0 6px; font-size: 1.05rem; } .feat p { margin: 0; color: var(--muted); font-size: .96rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { padding-left: 1.2em; margin: 0 0 22px; } .split li { margin: .5em 0; }
.alt { background: #EDF6F6; }
/* demo */
.demo .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.game { background: var(--navy2); border-radius: 22px; padding: 24px; color: #eef2f8; box-shadow: 0 20px 50px rgba(0,0,0,.35); max-width: 520px; width: 100%; justify-self: center; }
.ghead { display: flex; justify-content: space-between; color: #9aa8bf; font-size: .9rem; margin-bottom: 14px; }
.gtile { width: 150px; height: 150px; margin: 4px auto 18px; border-radius: 18px; background: linear-gradient(#19B3AE, #0B6E78); color: #fff; position: relative; display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.gtile .z { position: absolute; top: 10px; left: 14px; font-weight: 700; font-size: 1rem; opacity: .92; }
.gtile .s { font-size: 4.2rem; font-weight: 800; letter-spacing: -.02em; }
.gq { text-align: center; margin: 0 0 14px; font-weight: 600; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { min-height: 54px; border-radius: 12px; border: 1.5px solid #2a3752; background: #1a2539; color: #eef2f8; font: inherit; font-weight: 600; cursor: pointer; }
.opt:hover:not(:disabled) { border-color: #4FD6CF; }
.opt.right { background: #0f3b2c; border-color: #3ecf8e; } .opt.wrong { background: #3b1717; border-color: #ff6b6b; }
.gfb { min-height: 4.8em; margin: 14px 0 0; font-size: .97rem; color: #c9d3e3; }
.gfb b { color: #fff; }
.gnext { margin-top: 10px; width: 100%; }
.gend { text-align: center; } .gend .big { font-size: 2.6rem; font-weight: 800; margin: 6px 0; }
.game .btn.ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.game .btn.ghost:hover { border-color: #fff; }
.game h3 { margin: 0 0 10px; font-size: 1.3rem; }
.gsub { text-align: center; color: #9aa8bf; font-size: .9rem; margin: 0 0 8px; }
.glist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.glist li { display: flex; gap: 12px; align-items: center; background: #1a2539; border: 1px solid #2a3752; border-radius: 12px; padding: 10px 12px; }
.glist .gi { font-size: 1.4rem; line-height: 1; width: 1.6em; text-align: center; flex: none; }
.glist b { display: block; } .glist .d { color: #9aa8bf; font-size: .92rem; }
.glist .r { margin-left: auto; text-align: right; font-weight: 700; color: #fff; font-size: .95rem; }
.gskip { display: block; margin: 12px auto 0; min-height: 40px; background: none; border: 0; color: #9aa8bf; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.gskip:hover { color: #fff; }
.gtile .n { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .9rem; font-weight: 600; }
.gtile.withname .s { margin-top: -14px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; color: #eef2f8; }
.clue { text-align: center; font-weight: 700; font-size: 1.15rem; margin: 0 0 12px; min-height: 1.6em; }
.htable { display: grid; grid-template-columns: 1.4em repeat(8, 1fr); gap: 4px; margin: 0 0 6px; }
.htable .lab { color: #9aa8bf; font-size: .72rem; display: grid; place-items: center; }
.hcell { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid #2a3752; background: #1a2539; color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; padding: 0; }
.hcell:hover:not(:disabled) { border-color: #4FD6CF; }
.hcell.seen { background: #23314a; color: #c9d3e3; }
.hcell.found { background: linear-gradient(#19B3AE, #0B6E78); border-color: transparent; color: #fff; }
.hcell.wrongtap { border-color: #ff6b6b; background: #3b1717; }
.hcell.answer { border-color: #3ecf8e; box-shadow: 0 0 0 2px #3ecf8e; }
.hnote { color: #9aa8bf; font-size: .85rem; text-align: center; margin: 0; }
.sortrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sortrow .opt { min-height: 50px; }
.memgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem { min-height: 72px; border-radius: 12px; border: 1.5px solid #2a3752; background: #1a2539; color: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; padding: 4px; overflow-wrap: anywhere; }
.mem:not(.up)::before { content: '?'; color: #4a5a78; font-size: 1.4rem; }
.mem.up { background: #23314a; border-color: #4FD6CF; }
.mem.done { background: #0f3b2c; border-color: #3ecf8e; cursor: default; }
.sword { text-align: center; font-size: 1.9rem; font-weight: 800; letter-spacing: .14em; margin: 2px 0 10px; }
.spellout { min-height: 60px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1.5px dashed #2a3752; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sp { width: 52px; height: 56px; border-radius: 10px; border: 0; background: linear-gradient(#19B3AE, #0B6E78); color: #fff; font: inherit; font-weight: 800; font-size: 1.2rem; position: relative; cursor: pointer; display: grid; place-items: center; padding: 0; }
.sp small { position: absolute; top: 3px; left: 6px; font-size: .62rem; font-weight: 600; opacity: .9; }
.spellout .sp { cursor: default; }
.spellout.good .sp { background: linear-gradient(#2fbf7f, #12784c); }
.grow { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* access + contact */
.access { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.access h3 { margin: 0 0 6px; } .access p { margin: 0 0 14px; color: var(--muted); }
form { display: grid; gap: 14px; max-width: 640px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .opt:focus-visible, a:focus-visible { outline: 3px solid #4FD6CF; outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.formnote { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #8a1f1f; font-weight: 600; }
.contact .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
/* footer */
footer { background: var(--navy); color: #9aa8bf; padding: 34px 0; font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer a { color: #c9d3e3; }
footer .brand { font-size: 1.15rem; color: #eef2f8; }
/* small screens */
@media (max-width: 900px) {
  .hero .wrap, .demo .wrap, .split, .contact .wrap, .access { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr 1fr; }
  .top nav a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; } .wrap { padding: 0 16px; }
  .game { padding: 18px 14px; } .mem { font-size: .8rem; min-height: 64px; } .sp { width: 46px; height: 50px; }
  .glist li.res { flex-wrap: wrap; row-gap: 2px; } .glist li.res .r { flex-basis: 100%; margin-left: 0; padding-left: calc(2.24rem + 12px); text-align: left; }
  .steps, .grid3, .row2 { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  section { padding: 56px 0; } .hero .wrap { padding-top: 40px; padding-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shake { animation: none; } }
