/* Alazka Technologies — site styles (v2, "Split" identity)
   Warm paper background, ink type, brand gradient reserved for the apps side,
   pixel violet/pink reserved for the games side. */

:root {
  --paper: #f6f8fc;
  --paper-2: #eceff6;
  --ink: #0f1526;
  --ink-2: #2a3147;
  --muted: #5c6478;
  --rule: #e4e7ee;
  --white: #ffffff;
  --navy: #0b1020;
  --navy-2: #131a33;

  --teal: #17d6c4;
  --blue: #4f7cff;
  --violet: #7c5cff;
  --pink: #ff4fa3;
  --grad-apps: linear-gradient(160deg, #4f7cff, #17d6c4);
  --grad-z: linear-gradient(135deg, #17d6c4, #7c5cff);

  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: #ffd84d; color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); }
h3 { font-size: 1.15rem; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.z { background: var(--grad-z); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.rule-top { border-top: 1px solid var(--rule); }

/* Section labels: "01 — Apps" */
.label { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.label .n { font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: 0; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.label.on-dark { color: #a7aec4; } .label.on-dark .n { color: #fff; } .label.on-dark::after { background: rgba(255,255,255,0.14); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-play { background: var(--ink); color: #fff; border-color: var(--ink); padding: 10px 18px 10px 14px; }
.btn-play:hover { background: var(--ink-2); }
.btn-play .sm { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; line-height: 1; font-weight: 600; }
.btn-play .lg { display: block; font-size: 17px; line-height: 1.15; }
.btn-play svg { width: 26px; height: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { font-weight: 700; border-bottom: 2px solid var(--rule); padding-bottom: 2px; transition: border-color 0.15s; }
.link:hover { border-color: var(--ink); }
.link.on-dark { border-color: rgba(255,255,255,0.25); } .link.on-dark:hover { border-color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(246,248,252,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 38px; height: 38px; }
.brand .word { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; line-height: 1; }
.brand .sub { display: block; font-family: var(--body); font-size: 9.5px; font-weight: 700; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-cta { display: inline-flex; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 820px) {
  .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; font-size: 17px; }
}

/* Hero (home) */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; display: flex; gap: 10px; align-items: center; }
.hero .kicker i { width: 10px; height: 10px; border-radius: 2px; background: var(--grad-apps); display: inline-block; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-mark { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; }
.hero-mark svg { width: 100%; height: 100%; }
.hero-mark .px { opacity: 0; transform-origin: center; transform-box: fill-box; animation: pop 0.5s cubic-bezier(.2,.9,.3,1.3) forwards; }
.hero-mark .left { opacity: 0; animation: rise 0.9s ease forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-mark .px, .hero-mark .left { animation: none; opacity: 1; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-mark { max-width: 320px; } }

/* Ticker */
.ticker { border-block: 1px solid var(--rule); overflow: hidden; white-space: nowrap; background: var(--white); }
.ticker-track { display: inline-flex; gap: 48px; padding: 14px 0; animation: ticker 40s linear infinite; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ticker-track span::before { content: "■"; font-size: 9px; margin-right: 14px; color: var(--pink); vertical-align: middle; }
.ticker-track span:nth-child(odd)::before { color: var(--teal); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* The Split: apps | games */
.split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); }
.split > a { display: block; padding: clamp(28px, 4vw, 56px); min-height: 420px; position: relative; transition: transform 0.2s; }
.split > a:hover .arrow { transform: translateX(6px); }
.split .arrow { transition: transform 0.2s; display: inline-block; }
.split-apps { background: #f6f8fc; background-image: radial-gradient(ellipse 70% 55% at 100% 100%, rgba(23,214,196,0.28), transparent 70%), radial-gradient(ellipse 60% 50% at 0% 0%, rgba(79,124,255,0.18), transparent 70%); }
.split-games { background: var(--navy); color: #fff; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; }
.split h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 14px; }
.split p { max-width: 30em; color: inherit; opacity: 0.85; }
.split .glyph { position: absolute; right: 24px; bottom: 20px; width: clamp(90px, 14vw, 160px); opacity: 0.95; }
.split .count { font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; opacity: 0.75; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > a { min-height: 300px; } }

/* Product feature (Quran Companion on home / apps list) */
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.product .icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgba(15,21,38,0.18); margin-bottom: 22px; }
.product h2 { margin-bottom: 12px; }
.product .tagline { font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.product .sub-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.phones img { border-radius: 22px; border: 5px solid var(--ink); box-shadow: 0 24px 50px rgba(15,21,38,0.22); background: #000; }
.phones img:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .phones img:nth-child(2) { transform: none; } }

/* Editorial numbered list */
.numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.numbered > div { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.numbered .num { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.numbered .num::after { content: ""; display: block; width: 34px; height: 4px; margin-top: 10px; background: var(--grad-apps); border-radius: 2px; }
.numbered h3 { margin-bottom: 6px; }
.numbered p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Contact band */
.band { background: var(--ink); color: var(--paper); border-radius: 22px; padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; background: var(--grad-apps); opacity: 0.35; filter: blur(60px); border-radius: 50%; }
.band > * { position: relative; }
.band h2 { margin-bottom: 10px; }
.band p { color: #c7ccdb; max-width: 44em; }
.band .big-mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 3.4vw, 2.4rem); display: inline-block; margin-top: 10px; border-bottom: 3px solid var(--teal); padding-bottom: 6px; word-break: break-all; }
.band .big-mail:hover { border-color: var(--pink); }

/* Page header (inner pages) */
.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-head h1 { margin-bottom: 14px; }
.page-head.dark { background: transparent; color: #fff; }
.page-head.dark .lead { color: #c7ccdb; }
.page-head.dark .label { color: #a7aec4; } .page-head.dark .label .n { color: #fff; } .page-head.dark .label::after { background: rgba(255,255,255,0.14); }
.page-head.art { position: relative; isolation: isolate; }
.page-head.art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--art) center/cover no-repeat; opacity: 0.55; }
.page-head.art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,16,32,0.92) 0%, rgba(11,16,32,0.55) 55%, rgba(11,16,32,0.3) 100%); }
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.page-head.dark .breadcrumb { color: #a7aec4; } .page-head.dark .breadcrumb a:hover { color: #fff; }

/* App page */
.app-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 14px 36px rgba(15,21,38,0.22); margin-bottom: 22px; }
.app-hero .feature-art { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,21,38,0.22); border: 1px solid var(--rule); }
.app-hero .meta { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.app-hero .meta code { font-family: var(--mono); }
@media (max-width: 860px) { .app-hero { grid-template-columns: 1fr; } }
.screens { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screens figure { flex: 0 0 auto; width: 210px; margin: 0; scroll-snap-align: start; }
.screens img { border-radius: 24px; border: 5px solid var(--ink); box-shadow: 0 20px 44px rgba(15,21,38,0.2); background: #000; }
.screens figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; font-weight: 600; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; border-top: 1px solid var(--rule); }
.feature-list > div { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.feature-list h3 { margin-bottom: 4px; display: flex; gap: 12px; align-items: baseline; }
.feature-list h3 .k { font-family: var(--display); font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; }
.feature-list p { margin: 0; color: var(--muted); font-size: 15.5px; }
.legal-box { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.legal-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.legal-box li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: 12px; font-weight: 700; transition: border-color 0.15s, background 0.15s; }
.legal-box li a:hover { border-color: var(--ink); background: var(--paper); }
.legal-box li a span { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 760px) { .legal-box { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; padding: 18px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 18px; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 60em; }
.support-note { background: var(--paper-2); border-radius: 14px; padding: 20px 22px; margin-top: 28px; font-weight: 600; }
.support-note a { border-bottom: 2px solid var(--ink); }

/* Apps listing */
.product-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.product-row:first-of-type { border-top: 1px solid var(--rule); }
.product-row .icon { width: 110px; height: 110px; border-radius: 26px; box-shadow: 0 10px 30px rgba(15,21,38,0.18); }
.product-row h2 { font-size: 1.6rem; margin-bottom: 6px; }
.product-row p { color: var(--muted); margin: 0 0 10px; max-width: 48em; }
.product-row .tags { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.product-row .actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (max-width: 760px) { .product-row { grid-template-columns: 72px 1fr; } .product-row .icon { width: 72px; height: 72px; border-radius: 18px; } .product-row .actions { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
.soon-row { padding: 28px 0; color: var(--muted); display: flex; gap: 16px; align-items: center; }
.soon-row .dot { width: 14px; height: 14px; border-radius: 3px; background: var(--pink); flex: none; }

/* Games page */
.games-stage { background: var(--navy); color: #fff; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; }
.pixel-card { border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; padding: clamp(28px, 4vw, 48px); background: rgba(255,255,255,0.03); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.pixel-card h2 { margin-bottom: 10px; }
.pixel-card p { color: #c7ccdb; max-width: 40em; }
.progress { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; width: 180px; }
.progress i { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,0.12); }
.progress i.on { background: var(--pink); }
.progress i.on:nth-child(odd) { background: var(--violet); }
@media (max-width: 700px) { .pixel-card { grid-template-columns: 1fr; } }
.games-stage .numbered { border-color: rgba(255,255,255,0.14); }
.games-stage .numbered > div { border-color: rgba(255,255,255,0.14); }
.games-stage .numbered .num { color: #fff; } .games-stage .numbered .num::after { background: linear-gradient(90deg, var(--pink), var(--violet)); }
.games-stage .numbered h3 { color: #fff; } .games-stage .numbered p { color: #a7aec4; }

/* Documents */
.doc { max-width: 46rem; margin: 0 auto; padding-block: clamp(36px, 6vw, 72px) 80px; }
.doc header { padding-bottom: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; font-family: var(--body); font-weight: 800; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-2); }
.doc li { margin-bottom: 0.35rem; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc .summary { border-left: 4px solid var(--teal); padding: 14px 18px; background: var(--white); border-radius: 0 12px 12px 0; margin: 20px 0 26px; }
.doc .summary p { margin: 0; }
.doc .box { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; margin: 1.2rem 0; }
.doc .box.danger { border-color: #e7a8a8; }
.doc code { font-family: var(--mono); font-size: 0.93em; background: var(--white); border: 1px solid var(--rule); padding: 2px 6px; border-radius: 6px; user-select: all; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1rem 0; }
.doc th, .doc td { text-align: left; padding: 0.6rem 0.65rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.doc ol.steps { counter-reset: s; list-style: none; padding: 0; }
.doc ol.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 12px; }
.doc ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.doc-toc { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
.doc .app-tag { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.doc .app-tag img { width: 28px; height: 28px; border-radius: 8px; }

/* Footer */
.footer { background: var(--navy); color: #c7ccdb; padding: clamp(48px, 7vw, 88px) 0 32px; margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer .brand .word { color: #fff; } .footer .brand .sub { color: #8f97ad; }
.footer p { font-size: 15px; max-width: 32em; }
.footer h4 { font-family: var(--body); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-weight: 600; }
.footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .support { margin-top: 22px; font-size: 14.5px; color: #a7aec4; }
.footer .support strong { color: #fff; display: block; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.footer .support a { color: #fff; border-bottom: 1px solid var(--teal); }
.footer-mark { margin-top: 56px; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 10rem); line-height: 0.9; letter-spacing: -0.02em; color: #fff; opacity: 0.08; user-select: none; overflow: hidden; white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; font-size: 13px; color: #8f97ad; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dark header variant (games page) */
.nav-dark { background: color-mix(in srgb, var(--navy) 88%, transparent); border-bottom-color: rgba(255,255,255,0.12); }
.nav-dark .brand .word { color: #fff; } .nav-dark .brand .sub { color: #8f97ad; }
.nav-dark .nav-links a { color: #c7ccdb; }
.nav-dark .nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-dark .nav-links a[aria-current="page"] { background: #fff; color: var(--navy); }
.nav-dark .btn-ink { background: #fff; color: var(--navy); border-color: #fff; }
.nav-dark .btn-ink:hover { background: #e9ecf3; }
.nav-dark .menu-btn { border-color: #fff; color: #fff; }
@media (max-width: 820px) { .nav-dark .nav-links { background: var(--navy); border-bottom-color: rgba(255,255,255,0.12); } }

/* ===== Split hero (base = diagonal, S1) ===== */
.hero { background: linear-gradient(104deg, #ffffff 0 60%, var(--navy) 60% 100%); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid { grid-template-columns: 1.1fr 0.9fr; }
.hero .lead { max-width: 28em; }
.hero-mark { filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45)); }
@media (max-width: 860px) { .hero { background: linear-gradient(180deg, #ffffff 0 64%, var(--navy) 64% 100%); } }

/* S2: vertical seam, mark straddles it */
.v-seam .hero { background: linear-gradient(90deg, #ffffff 0 50%, var(--navy) 50% 100%); position: relative; overflow: visible; }
.v-seam .hero-grid { grid-template-columns: 1fr 1fr; position: relative; }
.v-seam .hero-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(220px, 26vw, 380px); margin: 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35)); }
.v-seam .hero-grid > div:first-child { padding-right: max(14vw, 150px); }
.v-seam .hero h1 { font-size: clamp(1.9rem, 4vw, 3.6rem); }
@media (max-width: 860px) { .v-seam .hero { background: linear-gradient(180deg, #ffffff 0 70%, var(--navy) 70% 100%); } .v-seam .hero-grid { grid-template-columns: 1fr; } .v-seam .hero-mark { position: static; transform: none; width: 280px; margin: 24px auto 0; } .v-seam .hero-grid > div:first-child { padding-right: 0; } }

/* S3: stacked, mark on a navy panel */
.stacked .hero { background: var(--paper); }
.stacked .hero-mark { background: var(--navy); border-radius: 28px; padding: clamp(28px, 4vw, 48px); background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.08) 0); background-size: 26px 26px; filter: none; box-shadow: 0 30px 70px rgba(11,16,32,0.25); }
.stacked .hero-mark svg { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }

/* ===== How we work, W1: ship / never ship board ===== */
.board { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); }
.board > div { padding: clamp(26px, 4vw, 48px); }
.board .yes { background: #f6f8fc; background-image: radial-gradient(ellipse 70% 55% at 100% 100%, rgba(23,214,196,0.28), transparent 70%); }
.board .no { background: var(--navy); color: #fff; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; }
.board h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 22px; letter-spacing: -0.01em; }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.board li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.board li i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; }
.board .yes li i { background: var(--grad-apps); color: var(--navy); }
.board .no li i { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; }
.board li b { display: block; font-size: 1.05rem; }
.board li span { font-size: 15px; color: var(--muted); }
.board .no li span { color: #b9bfd3; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }

/* ===== How we work, W2: the Alazka test scorecard ===== */
.scorecard { background: #fff; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(11,16,32,0.08); }
.scorecard .sc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px clamp(20px, 3vw, 36px); background: var(--navy); color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.scorecard .sc-head b { font-family: var(--display); font-size: 1.1rem; letter-spacing: 0; }
.scorecard .row { display: grid; grid-template-columns: 70px 1.1fr 1.6fr 120px; gap: 18px; align-items: center; padding: 22px clamp(20px, 3vw, 36px); border-top: 1px solid var(--rule); }
.scorecard .row .n { font-family: var(--display); font-size: 2rem; color: var(--ink); line-height: 1; }
.scorecard .row b { font-size: 1.1rem; display: block; }
.scorecard .row p { margin: 0; color: var(--muted); font-size: 15px; }
.scorecard .stamp { justify-self: end; font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; border: 2.5px solid var(--teal); color: #0a9c8e; border-radius: 8px; padding: 6px 12px; transform: rotate(-6deg); background: rgba(23,214,196,0.08); }
.scorecard .row:nth-child(odd) .stamp { transform: rotate(5deg); }
@media (max-width: 760px) { .scorecard .row { grid-template-columns: 50px 1fr; } .scorecard .row p { grid-column: 2; } .scorecard .stamp { grid-column: 2; justify-self: start; } }

/* ===== How we work, W3: expanding principle strip ===== */
.strip { display: flex; gap: 12px; min-height: 380px; }
.strip > div { flex: 1; border-radius: 22px; padding: 26px; position: relative; overflow: hidden; transition: flex 0.35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; justify-content: flex-end; cursor: default; }
.strip > div:hover { flex: 2.2; }
.strip > div:nth-child(1) { background: linear-gradient(160deg, #4f7cff, #17d6c4); color: var(--navy); }
.strip > div:nth-child(2) { background: var(--navy); color: #fff; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.08) 0); background-size: 22px 22px; }
.strip > div:nth-child(3) { background: linear-gradient(160deg, #ff4fa3, #7c5cff); color: #fff; }
.strip > div:nth-child(4) { background: #f2f4f8; color: var(--ink); border: 1px solid var(--rule); }
.strip .big { font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.7rem); line-height: 1.1; margin-bottom: 8px; }
.strip .more { font-size: 15px; opacity: 0; max-height: 0; transition: opacity 0.3s 0.1s, max-height 0.35s; }
.strip > div:hover .more { opacity: 0.92; max-height: 200px; }
.strip .k { position: absolute; top: 22px; left: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; opacity: 0.7; }
.strip svg { position: absolute; right: 18px; top: 18px; width: 54px; opacity: 0.9; }
@media (max-width: 760px) { .strip { flex-direction: column; min-height: 0; } .strip > div { min-height: 150px; } .strip > div:hover { flex: 1; } .strip .more { opacity: 0.92; max-height: none; } }

/* ===== Contact variants (no visible email) ===== */
.cta-band { background: var(--navy); color: #fff; border-radius: 22px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; }
.cta-band::after { content: ""; position: absolute; left: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: var(--grad-apps); opacity: 0.35; filter: blur(70px); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #c7ccdb; margin: 0; max-width: 36em; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-self: end; }
.btn-grad { background: var(--grad-apps); color: var(--navy); border-color: transparent; box-shadow: 0 14px 34px rgba(23,214,196,0.25); }
.btn-grad:hover { background: var(--grad-apps); color: var(--navy); transform: translateY(-2px); }
.cta-band .sub { font-size: 14px; color: #a7aec4; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-self: start; } }

.cta-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--rule); }
.cta-card .t { padding: clamp(28px, 4vw, 56px); background: #fff; }
.cta-card .v { background: var(--navy); display: grid; place-items: center; padding: 32px; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; }
.cta-card .env { width: 160px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.cta-card .env i { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,0.1); }
.cta-card .env i.a { background: var(--teal); } .cta-card .env i.b { background: var(--blue); } .cta-card .env i.c { background: var(--pink); } .cta-card .env i.d { background: var(--violet); }
.cta-card h2 { margin-bottom: 10px; } .cta-card p { color: var(--muted); max-width: 32em; }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; } }

.cta-giant { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.cta-giant a { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 6rem); letter-spacing: -0.03em; line-height: 1; display: inline-block; position: relative; padding-bottom: 10px; }
.cta-giant a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-radius: 4px; background: var(--grad-apps); transform: scaleX(0.35); transform-origin: left; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.cta-giant a:hover::after { transform: scaleX(1); }
.cta-giant p { color: var(--muted); margin: 18px auto 0; max-width: 40em; }

/* variant switcher (preview only) */
.switcher { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 999; background: #0f1526; border-radius: 999px; padding: 5px 7px; font: 600 12.5px/1 var(--body); display: flex; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); white-space: nowrap; }
.switcher a { color: #fff; padding: 9px 12px; border-radius: 999px; }
.switcher a.on { background: var(--blue); }

/* ===== S3 hero scene animation (10s loop) ===== */
.stacked .hero-mark { overflow: hidden; position: relative; }
.stacked .hero-mark::after { content: ""; position: absolute; left: 0; right: 0; top: -10%; height: 18%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent); animation: scan 10s linear infinite; pointer-events: none; }
@keyframes scan { 0% { top: -20%; } 60% { top: 110%; } 100% { top: 110%; } }
.scene { width: 100%; height: auto; overflow: visible; }
.scene .left { opacity: 1 !important; clip-path: inset(100% 0 0 0); animation: wipe 10s cubic-bezier(.2,.8,.2,1) infinite; }
@keyframes wipe { 0% { clip-path: inset(100% 0 0 0); } 10% { clip-path: inset(0 0 0 0); } 88% { clip-path: inset(0 0 0 0); } 95% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0 0 100% 0); } }
.scene .px { transform-box: fill-box; transform-origin: center; opacity: 0; animation: drop 10s cubic-bezier(.3,1.4,.4,1) infinite; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-48px) scale(.6); } 7% { opacity: 1; transform: translateY(0) scale(1); } 86% { opacity: 1; transform: translateY(0) scale(1); } 91% { opacity: 0; transform: translateY(14px) scale(.8); } 100% { opacity: 0; transform: translateY(14px) scale(.8); } }
.scene .gl { animation: glint 10s ease-in-out infinite; }
@keyframes glint { 0%, 22% { transform: skewX(-20deg) translateX(0); opacity: 0; } 24% { opacity: 1; } 40% { transform: skewX(-20deg) translateX(150px); opacity: 1; } 42%, 100% { transform: skewX(-20deg) translateX(150px); opacity: 0; } }
.scene .spark { transform-box: fill-box; transform-origin: center; animation: spark 10s ease-out infinite; }
@keyframes spark { 0%, 9% { opacity: 0; transform: scale(0); } 11% { opacity: 1; transform: scale(2.2); } 16% { opacity: 0; transform: scale(0); } 100% { opacity: 0; } }
.scene .pt { opacity: 0; animation-name: drift; animation-timing-function: ease-in-out; animation-iteration-count: infinite; transform-box: fill-box; }
@keyframes drift { 0% { opacity: 0; transform: translateY(12px); } 20% { opacity: .9; } 80% { opacity: .5; } 100% { opacity: 0; transform: translateY(-26px); } }
@media (prefers-reduced-motion: reduce) { .scene .left, .scene .px, .scene .gl, .scene .spark, .scene .pt, .stacked .hero-mark::after { animation: none !important; opacity: 1; clip-path: none; } .scene .gl, .scene .spark, .scene .pt { opacity: 0; } }

/* ===== Games-first components ===== */

.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; border-radius: 2px; opacity: .85; animation: cf linear infinite; }
@keyframes cf { 0% { transform: translateY(-20px) rotate(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .7; } 100% { transform: translateY(80px) rotate(90deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti i { animation: none; opacity: .6; } }
.handheld { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(11,16,32,0.35)); }
.handheld .fr { opacity: 0; animation: spr 1.2s steps(1) infinite; }
.handheld .fr1 { animation-delay: .4s; } .handheld .fr2 { animation-delay: .8s; }
@keyframes spr { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0; } }
.handheld .bt { animation: blink 1.2s steps(1) infinite; }
.handheld .b1 { animation-delay: .4s; } .handheld .b2 { animation-delay: .8s; } .handheld .b3 { animation-delay: .2s; }
@keyframes blink { 0%, 30% { filter: brightness(1.6); } 31%, 100% { filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .handheld .fr0 { opacity: 1; } .handheld .fr, .handheld .bt { animation: none; } }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.kicker i { width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(135deg, var(--pink), var(--violet)); display: inline-block; }
.btn-pink { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; border-color: transparent; box-shadow: 0 14px 34px rgba(255,79,163,0.3); }
.btn-pink:hover { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; transform: translateY(-2px); }
/* games list */
.cart { background: #fff; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 24px 60px rgba(11,16,32,0.08); }
.cart .scr { background: var(--navy); background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 22px 22px; padding: 28px; display: grid; place-items: center; }
.cart .scr svg { width: min(100%, 360px); }
.cart .t { padding: clamp(24px, 3.5vw, 44px); }
.cart .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); background: rgba(255,79,163,0.1); border-radius: 999px; padding: 6px 12px; margin-bottom: 14px; }
.cart h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.cart p { color: var(--muted); margin-bottom: 18px; }
.prog { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; max-width: 260px; margin: 0 0 22px; }
.prog i { aspect-ratio: 1; border-radius: 2px; background: var(--paper-2); }
.prog i.on { background: var(--pink); } .prog i.on:nth-child(odd) { background: var(--violet); }
@media (max-width: 760px) { .cart { grid-template-columns: 1fr; } }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shelf > div { border-radius: 18px; border: 1.5px dashed var(--rule); padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); }
.shelf b { color: var(--ink); font-size: 1.05rem; }
.shelf .px { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 60px; }
.shelf .px i { aspect-ratio: 1; border-radius: 1px; background: var(--paper-2); }
@media (max-width: 760px) { .shelf { grid-template-columns: 1fr; } }
/* apps aside */
.aside { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 20px 24px; }
.aside img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 24px rgba(11,16,32,0.15); }
.aside p { margin: 0; color: var(--muted); font-size: 15px; }
.aside b { display: block; font-size: 1.1rem; }
@media (max-width: 700px) { .aside { grid-template-columns: 56px 1fr; } .aside .btn { grid-column: 1 / -1; justify-self: start; } }

/* stage hero (home) */

.stage { background: var(--navy); color: #fff; position: relative; overflow: hidden; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; padding: clamp(56px, 8vw, 110px) 0 0; }
.stage .lead { color: #c7ccdb; }
.stage .kicker { color: #a7aec4; }
.stage .wrap { text-align: center; position: relative; }
.stage h1 { max-width: 14em; margin-inline: auto; }
.stage .lead { margin-inline: auto; }
.stage .btn-row { justify-content: center; margin-bottom: 48px; }
.stage .btn { border-color: #fff; color: #fff; } .stage .btn:hover { background: #fff; color: var(--navy); }
.stage .btn-pink { border-color: transparent; }
.stage .handheld { width: min(100%, 640px); margin: 0 auto -60px; display: block; filter: drop-shadow(0 -20px 60px rgba(255,79,163,0.25)); }
.stage .mk { position: absolute; width: 120px; left: 8%; bottom: 20%; animation: bob 7s ease-in-out infinite; opacity: .9; }
.stage .mk2 { position: absolute; width: 90px; right: 9%; top: 18%; animation: bob 9s ease-in-out infinite reverse; opacity: .9; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.after-stage { padding-top: 100px; }
@media (max-width: 760px) { .stage .mk, .stage .mk2 { display: none; } }

/* level cards (games page) */

.hero { position: relative; overflow: hidden; }
.hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.levels { display: grid; gap: 14px; }
.lvl { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(11,16,32,0.08); transition: transform .2s, box-shadow .2s; }
.lvl:hover { transform: translateX(8px); box-shadow: 0 24px 50px rgba(11,16,32,0.14); }
.lvl:nth-child(2) { margin-left: 36px; } .lvl:nth-child(3) { margin-left: 72px; }
.lvl .ico { width: 64px; height: 64px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.1) 0); background-size: 10px 10px; }
.lvl .ico .px { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 36px; }
.lvl .ico .px i { aspect-ratio: 1; background: rgba(255,255,255,0.12); }
.lvl .ico .px i.on { background: var(--pink); } .lvl .ico .px i.on:nth-child(odd) { background: var(--violet); }
.lvl b { display: block; font-size: 1.05rem; } .lvl span { font-size: 14px; color: var(--muted); }
.lvl .st { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--pink); font-weight: 700; }
.lvl.locked { opacity: .55; } .lvl.locked .st { color: var(--muted); }
.press { font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 14px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* light console hero (inner pages) */

.hero { position: relative; overflow: hidden; }
.hero-grid { grid-template-columns: 1fr 1fr; }
.g1-stage { position: relative; }
.g1-stage .handheld { transform: rotate(-6deg) translateX(6%); }
.g1-stage .mk { position: absolute; left: -16%; bottom: -14%; width: 140px; filter: drop-shadow(0 20px 40px rgba(11,16,32,0.3)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ===== home: expect cards, first-play band; contact row ===== */
.expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.expect > div { background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 28px; box-shadow: 0 16px 40px rgba(11,16,32,0.06); transition: transform .2s, box-shadow .2s; }
.expect > div:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(11,16,32,0.12); }
.expect .ic { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 44px; margin-bottom: 18px; }
.expect .ic i { aspect-ratio: 1; border-radius: 4px; display: block; }
.expect h3 { margin-bottom: 6px; }
.expect p { color: var(--muted); margin: 0; font-size: 15.5px; }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr; } }
.first-play { background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.5fr auto; gap: 28px; align-items: center; box-shadow: 0 30px 70px rgba(124,92,255,0.28); }
.first-play h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.first-play p { margin: 0; color: rgba(255,255,255,0.85); max-width: 40em; }
.first-play .label.on-dark { color: rgba(255,255,255,0.8); } .first-play .label.on-dark .n { color: #fff; } .first-play .label.on-dark::after { background: rgba(255,255,255,0.3); }
@media (max-width: 760px) { .first-play { grid-template-columns: 1fr; } }
.contact-row { margin-top: 40px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 22px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.contact-row b { display: block; } .contact-row span { color: var(--muted); font-size: 15px; }

/* ===== expect bento (home 01) ===== */
.expect2 { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.expect2 > div { border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.expect2 h3 { margin-bottom: 6px; } .expect2 p { margin: 0; font-size: 15.5px; }
.x-big { grid-row: span 2; background: var(--navy); color: #fff; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 22px 22px; display: grid; grid-template-rows: 1fr auto; gap: 22px; min-height: 480px; }
.x-big p { color: #c7ccdb; }
.x-big .phone { width: min(62%, 240px); margin: 0 auto; aspect-ratio: 9 / 17; border-radius: 28px; background: #05070d; border: 6px solid #1b2238; box-shadow: 0 30px 60px rgba(0,0,0,0.5); overflow: hidden; position: relative; transform: rotate(-4deg); }
.x-big .scr { position: absolute; inset: 0; background: linear-gradient(180deg, #121a33, #0b1020); }
.x-big .pixf i { position: absolute; width: 8%; height: 4.2%; border-radius: 1px; opacity: .85; animation: pxfall 7s linear infinite; }
.x-big .pixf i:nth-child(odd) { animation-duration: 9s; animation-delay: -3s; }
.x-big .pixf i:nth-child(3n) { animation-delay: -6s; }
@keyframes pxfall { 0% { transform: translateY(-40px); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(420px); opacity: 0; } }
.x-big .rc { position: absolute; left: 10%; right: 10%; top: 32%; background: rgba(11,16,32,0.85); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 16px 12px; text-align: center; display: grid; gap: 6px; backdrop-filter: blur(4px); }
.x-big .rc .l { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: #a7aec4; }
.x-big .rc .t { font-family: var(--display); font-size: 1.9rem; line-height: 1; background: var(--grad-apps); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-big .rc .s { color: #ffd84d; letter-spacing: .2em; font-size: 14px; }
.x-big .rc .n { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
.x-fair { background: #fff; border: 1px solid var(--rule); }
.x-fair p { color: var(--muted); }
.receipt { list-style: none; margin: 0 0 20px; padding: 0; font-family: var(--mono); font-size: 13.5px; border-top: 1px dashed var(--rule); }
.receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.receipt li span { color: var(--muted); } .receipt li b { color: var(--ink); } .receipt li b.no { color: var(--pink); text-decoration: line-through; text-decoration-color: rgba(255,79,163,.6); }
.x-feel { background: linear-gradient(160deg, #4f7cff, #17d6c4); color: var(--navy); }
.x-feel p { color: rgba(11,16,32,0.75); }
.tap { position: relative; width: 120px; height: 120px; margin: 0 0 18px; }
.tap i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); animation: ripple 2.4s ease-out infinite; }
.tap i:nth-child(2) { animation-delay: .8s; } .tap i:nth-child(3) { animation-delay: 1.6s; }
.tap b { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 8px 20px rgba(0,0,0,0.25); animation: press 2.4s ease-in-out infinite; }
@keyframes ripple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
@keyframes press { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 8% { transform: translate(-50%, -50%) scale(.82); } 20% { transform: translate(-50%, -50%) scale(1); } }
@media (max-width: 820px) { .expect2 { grid-template-columns: 1fr; } .x-big { grid-row: auto; min-height: 0; } .x-big .phone { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .x-big .pixf i, .tap i, .tap b, .x-big .rc .n { animation: none; } .x-big .pixf i { opacity: .7; } }

/* ===== process strip: no reflow, smooth reveal ===== */
.strip > div { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; min-height: 300px; }
.strip > div:hover { flex: 1; transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 60px rgba(11,16,32,0.18); }
.strip .big { text-wrap: balance; }
.strip .more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.2,.8,.2,1), opacity .35s; margin-top: 0; }
.strip > div:hover .more { max-height: 220px; opacity: .92; margin-top: 10px; transition: max-height .5s cubic-bezier(.2,.8,.2,1), opacity .4s .12s, margin-top .3s; }

/* ===== first-play: full-bleed navy band ===== */
.first-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 26px 26px; padding: clamp(48px, 7vw, 88px) 0; }
.first-band .first-play { background: transparent; box-shadow: none; padding: 0 var(--gutter); border-radius: 0; position: relative; }
.first-band .first-play p { color: #c7ccdb; }

/* ===== app page on dark head ===== */
.page-head.dark .app-hero .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-lite { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 13px; font-weight: 600; color: #e6e9f2; }
.page-head.dark .feature-art { border-color: rgba(255,255,255,0.12); box-shadow: 0 30px 70px rgba(0,0,0,0.45); }
.page-head.dark .btn { border-color: #fff; color: #fff; } .page-head.dark .btn:hover { background: #fff; color: var(--navy); }
.page-head.dark .btn-play { background: #fff; color: var(--navy); border-color: #fff; } .page-head.dark .btn-play:hover { background: #e9ecf3; }

/* ===== apps page: product card ===== */
.app-card { background: #fff; border: 1px solid var(--rule); border-radius: 24px; box-shadow: 0 24px 60px rgba(11,16,32,0.08); display: grid; grid-template-columns: 1.2fr 0.8fr; grid-template-rows: auto auto; overflow: hidden; }
.app-card-main { grid-column: 1; padding: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) 0; display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; }
.app-card-main .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 12px 30px rgba(11,16,32,0.18); }
.app-card-main h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.app-card-main p { color: var(--muted); margin: 0 0 14px; max-width: 46em; }
.app-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-lite.dark { border-color: var(--rule); color: var(--ink-2); background: var(--paper); }
.app-card-actions { grid-column: 1; padding: 22px clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-card-actions .btn-play, .app-card-actions .btn-ink { height: 52px; }
.app-card-shots { grid-column: 2; grid-row: 1 / span 2; background: var(--navy); background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.07) 0); background-size: 22px 22px; padding: 28px 24px 0; display: flex; gap: 12px; align-items: flex-end; justify-content: center; overflow: hidden; }
.app-card-shots img { width: 30%; border-radius: 16px 16px 0 0; border: 4px solid #1b2238; border-bottom: 0; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.app-card-shots img:nth-child(2) { transform: translateY(-18px); }
@media (max-width: 820px) { .app-card { grid-template-columns: 1fr; } .app-card-shots { grid-column: 1; grid-row: auto; } .app-card-main { grid-template-columns: 72px 1fr; } .app-card-main .icon { width: 72px; height: 72px; border-radius: 18px; } }
.side-note { margin-top: 18px; display: flex; gap: 12px; align-items: center; background: var(--navy); color: #c7ccdb; border-radius: 14px; padding: 16px 20px; font-size: 15px; background-image: conic-gradient(from 90deg at 1px 1px, transparent 90deg, rgba(255,255,255,0.06) 0); background-size: 22px 22px; }
.side-note .dot { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--pink), var(--violet)); flex: none; }
.side-note .link { color: #fff; border-color: var(--teal); }

/* ===== apps page: side-quest banner ===== */
.quest { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 24px 60px rgba(11,16,32,0.08); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.quest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,214,196,0.14), rgba(79,124,255,0.08) 40%, transparent 70%); pointer-events: none; }
.quest:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(11,16,32,0.14); }
.quest > * { position: relative; }
.q-art { position: relative; height: 120px; }
.q-art svg { position: absolute; width: 110px; height: 110px; top: 5px; }
.q-art svg:first-child { left: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.q-art svg:last-child { left: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.quest:hover .q-art svg:first-child { transform: translateX(-10px) rotate(-6deg); }
.quest:hover .q-art svg:last-child { transform: translateX(36px) rotate(6deg); }
.q-k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: #0a9c8e; font-weight: 700; display: block; margin-bottom: 8px; }
.quest h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.quest p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .quest { grid-template-columns: 1fr; } .q-art { height: 100px; } }

/* ===== top-bar CTA: flips to 'Press start' on hover ===== */
.nav-cta { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; position: relative; overflow: hidden; isolation: isolate; }
.nav-cta::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, var(--teal), var(--blue), var(--violet), var(--pink), var(--teal)); opacity: 0; transition: opacity .3s; animation: spin 4s linear infinite; z-index: -2; }
.nav-cta::after { content: ""; position: absolute; inset: 2px; border-radius: 999px; background: var(--navy); z-index: -1; }
.nav-cta:hover::before { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-cta .led { width: 8px; height: 8px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 0 3px rgba(255,79,163,0.25); animation: led 1.4s steps(2) infinite; }
@keyframes led { 50% { background: var(--teal); box-shadow: 0 0 0 3px rgba(23,214,196,0.25); } }
.nav-cta .flip { display: inline-grid; height: 20px; overflow: hidden; line-height: 20px; }
.nav-cta .flip span { display: block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav-cta:hover .flip span { transform: translateY(-20px); }
.nav-cta .flip span:last-child { color: var(--teal); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; }
.nav-dark .nav-cta { background: #fff; color: var(--navy); } .nav-dark .nav-cta::after { background: #fff; }
@media (prefers-reduced-motion: reduce) { .nav-cta::before, .nav-cta .led { animation: none; } }
