/* Self-hosted Google Fonts (latin subset, variable weight). */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/unbounded.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* beratmehmetoglu.com — design tokens, base styles and motion.
   Change --acc to re-theme the whole site. */


:root {
  color-scheme: dark;

  /* Color */
  --bg: #0D0D0F;
  --surface: #141418;
  --surface-hover: #18181D;
  --nav-active: #1E1E23;
  --line: #1E1E23;
  --border: #24242A;
  --border-strong: #2E2E34;
  --border-button: #34343B;
  --text: #F2F1EC;
  --text-2: #B9B9C0;
  --text-3: #8E8E96;
  --acc: #4D7CFF;          /* Electric blue. Alternates tried: #D2FF45 lime, #FF6B4A coral, #B69CFF lilac */
  --on-acc: #0D0D0F;
  --syntax: #B9A6FF;
  --header-bg: rgba(13, 13, 15, 0.72);
  --nav-bg: rgba(22, 22, 26, 0.6);

  /* Type */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --fs-display: clamp(44px, 7vw, 100px);
  --fs-h1: clamp(44px, 6.4vw, 92px);
  --fs-game: clamp(52px, 8vw, 120px);
  --fs-door: clamp(52px, 6.4vw, 92px);
  --fs-h2: clamp(32px, 4vw, 54px);
  --fs-lead: 20px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-label: 13px;
  --track-display: -0.045em;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;
  --section-y: clamp(80px, 9vw, 120px);
  --gap: 16px;

  /* Radius */
  --r-pill: 999px;
  --r-tile: 22px;
  --r-card: 28px;
  --r-panel: 34px;

  /* Elevation */
  --shadow-float: 0 30px 60px rgba(0, 0, 0, 0.5);
  --glow: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 18%, transparent), transparent 70%);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .25s;
  --t-med: .45s;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: var(--acc); }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.label { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-3); }
.display { font-family: var(--font-display); letter-spacing: var(--track-display); }

/* Decoration */
.glow { background: var(--glow); border-radius: 50%; pointer-events: none; }
.dot-grid { background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px; }
.line-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }

/* Motion */
@keyframes rise   { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float  { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes pulse  { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes ring   { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes words  { 0%, 26% { transform: translateY(0); } 33%, 59% { transform: translateY(-1.1em); } 66%, 92% { transform: translateY(-2.2em); } 100% { transform: translateY(-3.3em); } }
@keyframes marquee{ from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scan   { 0% { top: -2px; } 100% { top: 100%; } }
@keyframes caret  { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes blink  { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes cue    { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(220%); } }

.anim-rise    { animation: rise .9s var(--ease) both; }
.anim-float   { animation: float 6s ease-in-out infinite; }
.anim-spin    { animation: spin 30s linear infinite; }
.anim-pulse   { animation: pulse 1.8s ease-in-out infinite; }
.anim-ring    { animation: ring 2s ease-out infinite; }
.anim-words   { animation: words 7.5s cubic-bezier(.7, 0, .3, 1) infinite; }
.anim-marquee { animation: marquee 36s linear infinite; }
.anim-scan    { animation: scan 5s linear infinite; }
.anim-caret   { animation: caret 1s steps(1) infinite; }
.anim-blink   { animation: blink 2.4s steps(1) infinite; }

/* Scroll reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

/* Door card hover (landing) */
.door { transition: background var(--t-med) var(--ease), color var(--t-med), transform var(--t-med) var(--ease), border-color var(--t-med); }
.door:hover { background: var(--acc); color: var(--on-acc); border-color: var(--acc); transform: translateY(-6px); }
.door .door-arrow { transition: transform var(--t-med) var(--ease), background var(--t-med), color var(--t-med); }
.door:hover .door-arrow { background: var(--on-acc); color: var(--acc); transform: rotate(-45deg); }

/* Generic card hover */
.card-hover { transition: transform var(--t-med) var(--ease), border-color var(--t-med); }
.card-hover:hover { transform: translateY(-6px); border-color: var(--acc); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* beratmehmetoglu.com — components and pages. Reads every value from tokens.css; the accent
   comes only from --acc. Order: base, shared components, then one block per page. */

:root {
  /* A few greys the reference uses for decoration only (never for text below --text-3). */
  --nav-border: #26262B;
  --border-soft: #2A2A30;
  --deep: #121215;
  --deco: #3A3A42;
  --muted: #5A5A62;
  --doc-text: #C4C4CA;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
/* Glows reach past the page edge on purpose; clip them here (clip, unlike hidden, keeps sticky children working). */
main, footer { overflow-x: clip; }
a { text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
.acc { color: var(--acc); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--r-pill); background: var(--acc); color: var(--on-acc); font-weight: 600; }
.skip:focus { top: 12px; color: var(--on-acc); }
main { display: block; }

.section { padding-block: var(--section-y); }
.section-bottom { padding-bottom: var(--section-y); }
.section-bottom--tight { padding-bottom: 100px; }
.section-line { border-top: 1px solid var(--line); }
.label.acc { color: var(--acc); }

.h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1; letter-spacing: var(--track-display); }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.h2--sm { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; }
.h2--xl { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.045em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.section-lead { margin: 12px 0 48px; max-width: 580px; color: var(--text-2); }

.glow { position: absolute; z-index: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.site-header__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--acc); color: var(--on-acc); font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.brand__name { font-family: var(--font-mono); font-size: 14px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--nav-border); border-radius: var(--r-pill); background: var(--nav-bg); font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); transition: background var(--t-fast), color var(--t-fast); }
.nav a:hover { background: var(--nav-active); color: var(--text); }
/* Accent text on the active pill, lifted a little toward white to clear 4.5:1 on --nav-active. */
.nav a[aria-current="page"] { background: var(--nav-active); color: color-mix(in srgb, var(--acc) 85%, #fff); }
.nav .nav__hi { padding: 0 18px; background: var(--text); color: var(--bg); font-weight: 600; }
.nav .nav__hi:hover { background: var(--acc); color: var(--on-acc); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--acc); }
.crumbs [aria-current] { color: var(--acc); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--r-pill); font-size: 16px; font-weight: 600; line-height: 1.2; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-med) var(--ease); }
.btn--primary { background: var(--acc); color: var(--on-acc); }
.btn--primary:hover { color: var(--on-acc); transform: translateY(-2px); }
.btn--secondary { border: 1px solid var(--border-button); color: var(--text); font-weight: 500; }
.btn--secondary:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--text); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: var(--acc); color: var(--on-acc); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { color: var(--acc); }
.btn--sm { min-height: 50px; padding: 0 22px; }
.btn--block { display: flex; width: 100%; min-height: 52px; border-radius: 16px; }
.btn--store { min-height: 56px; border-radius: 16px; }
.btn--soon { min-height: 56px; border-radius: 16px; border: 1px dashed var(--border-button); color: var(--text-2); font-weight: 500; }
.store-badge { display: inline-flex; }
.store-badge img { height: 54px; width: auto; }
.link-acc { font-weight: 600; color: var(--acc); }
.link-acc:hover { color: var(--text); }

/* ---------- Status pill ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--border-soft); border-radius: var(--r-pill); background: var(--nav-bg); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-2); }
.status-pill__dot { position: relative; display: inline-flex; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.status-pill__dot > span { position: absolute; inset: -3px; border-radius: 50%; background: var(--acc); opacity: .35; }
.status-pill--acc { padding: 7px 14px 7px 12px; border: 0; background: var(--acc); color: var(--on-acc); font-size: 12px; font-weight: 500; }
.status-pill--acc .status-pill__dot { background: var(--on-acc); }
.status-pill--acc .status-pill__dot > span { inset: 0; background: var(--on-acc); opacity: 1; }

/* ---------- Cards and tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 40px; }
.tile { padding: 24px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--border); }
.tile--hover { transition: border-color .4s, transform .4s var(--ease); }
.tile--hover:hover { border-color: var(--acc); transform: translateY(-4px); }
.tile__num { font-family: var(--font-mono); font-size: 12px; color: var(--acc); }
.tile__title { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.tile p { margin-top: 8px; font-size: var(--fs-small); color: var(--text-3); }

.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.app-icon--xl { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5); }

.go, .door-arrow { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 50%; }

/* ---------- Footers ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 64px 40px; }
.footer__about { flex: 1 1 280px; }
.footer__about p { margin-top: 8px; color: var(--text-3); font-size: var(--fs-small); }
.footer__about > a[href^="mailto:"] { display: inline-block; margin-top: 14px; font-size: var(--fs-small); }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.footer__socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text-2); transition: border-color var(--t-fast), color var(--t-fast); }
.footer__socials a:hover { border-color: var(--acc); color: var(--acc); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: var(--fs-small); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col .label { font-size: 12px; }
.footer__copy { padding-bottom: 40px; font-size: 14px; color: var(--text-3); }
.footer--compact .footer__row { gap: 20px; padding-block: 48px; font-size: var(--fs-small); color: var(--text-3); }
.row-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.row-links a { color: var(--text-2); }
.row-links a:hover, .row-links a[aria-current] { color: var(--acc); }

.footer-landing { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.footer-landing__glow { left: 50%; bottom: -460px; width: 1000px; height: 700px; margin-left: -500px; }
.footer-landing__inner { position: relative; padding-block: 110px 40px; }
.footer-landing__inner > .label { margin-bottom: 22px; }
.footer-landing__mail { display: inline; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 6vw, 84px); line-height: 1.15; letter-spacing: var(--track-display); overflow-wrap: anywhere; background: linear-gradient(var(--acc), var(--acc)) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); }
.footer-landing__mail:hover { background-size: 100% 3px; color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 64px; }
.pill-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-weight: 500; transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast); }
.pill-link:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.footer-landing__legal { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* ---------- Landing ---------- */
.hero-landing { position: relative; padding-top: 104px; padding-bottom: 96px; min-height: 640px; }
.hero-landing__glow { right: -180px; top: -140px; width: 760px; height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 17%, transparent), transparent 70%); }
.hero-landing__copy { position: relative; max-width: 780px; }
.hero-landing__title { margin-top: 34px; font-weight: 700; font-size: var(--fs-display); line-height: 1.02; }
.words { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.words__track { display: flex; flex-direction: column; color: var(--acc); }
.words__track > span { height: 1.1em; white-space: nowrap; }
.hero-landing__lead { margin-top: 34px; max-width: 540px; }
.hero-landing .btn-row { margin-top: 40px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 44px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.scroll-cue__line { position: relative; width: 1px; height: 40px; background: var(--nav-border); overflow: hidden; }
.scroll-cue__line > span { position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--acc); animation: cue 2.2s cubic-bezier(.6, 0, .3, 1) infinite; }

.hero-deco { position: absolute; right: 32px; top: 64px; width: 460px; height: 520px; }
.hero-deco__orbit { position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; border: 1px dashed var(--border-soft); border-radius: 50%; }
.hero-deco__orbit > span { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 16px var(--acc); }
.hero-deco__ring { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; margin: -125px 0 0 -125px; border: 1px solid var(--line); border-radius: 50%; }
.hero-deco__code { position: absolute; left: 6px; top: 56px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-float); font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: var(--text-3); }
.hero-deco__code .kw { color: var(--syntax); }
.hero-deco__code .fn { color: var(--text); }
.hero-deco__code .caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; background: var(--acc); vertical-align: -2px; }
.hero-deco__phone { position: absolute; right: 8px; top: 118px; display: flex; flex-direction: column; gap: 8px; width: 118px; height: 204px; padding: 18px 14px; border-radius: 28px; border: 2px solid var(--border-button); background: var(--deep); box-shadow: var(--shadow-float); }
.hero-deco__phone .notch { align-self: center; width: 40px; height: 6px; margin-bottom: 8px; border-radius: 3px; background: var(--border-soft); }
.hero-deco__phone .hero-block { height: 34px; border-radius: 10px; background: var(--acc); opacity: .9; }
.hero-deco__phone .bar { height: 8px; border-radius: 4px; background: var(--border-soft); }
.hero-deco__phone .tiles { display: flex; gap: 6px; margin-top: 6px; }
.hero-deco__phone .tiles > span { flex: 1; height: 34px; border-radius: 9px; background: var(--line); }
.hero-deco__pad { position: absolute; left: 112px; bottom: 34px; width: 164px; height: 100px; border-radius: 50px; border: 2px solid var(--border-button); background: var(--deep); box-shadow: var(--shadow-float); }
.hero-deco__pad > span { position: absolute; }
.hero-deco__pad .dpad-h { left: 32px; top: 43px; width: 26px; height: 8px; border-radius: 2px; background: var(--acc); }
.hero-deco__pad .dpad-v { left: 41px; top: 34px; width: 8px; height: 26px; border-radius: 2px; background: var(--acc); }
.hero-deco__pad .btn-a { right: 32px; top: 32px; width: 13px; height: 13px; border-radius: 50%; background: var(--text); }
.hero-deco__pad .btn-b { right: 48px; top: 50px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); }
@media (max-width: 860px) { .hero-deco, .scroll-cue { display: none; } .hero-landing { min-height: 0; } }
/* Room for the scroll cue to sit between the buttons and the marquee, clear of both. */
@media (min-width: 861px) { .hero-landing { padding-bottom: 128px; } }

.marquee { padding: 18px 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; gap: 36px; align-items: center; width: max-content; padding-right: 36px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }

.doors-section { padding-top: 110px; }
.doors-section > .label { margin-bottom: 28px; }
.doors { display: flex; flex-wrap: wrap; gap: var(--gap); }
.door { position: relative; flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; min-height: 420px; padding: clamp(24px, 5vw, 40px); border-radius: 32px; background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; }
.door__grid { position: absolute; inset: 0; opacity: .6; transition: opacity var(--t-med); }
.door:hover .door__grid { opacity: .12; }
.door__motif { position: absolute; right: 40px; top: 40px; display: grid; color: var(--deco); transition: color var(--t-med); }
.door:hover .door__motif { color: var(--on-acc); }
.door__motif--apps { grid-template-columns: repeat(3, 36px); gap: 12px; }
.door__motif--apps > span { width: 36px; height: 36px; border-radius: 11px; border: 2px solid currentColor; }
.door__motif--apps > .on { background: currentColor; }
.door__motif--pixel { grid-template-columns: repeat(5, 20px); gap: 4px; }
.door__motif--pixel > span { height: 20px; }
.door__motif--pixel > .on { background: currentColor; }
@media (max-width: 560px) { .door__motif { top: 24px; right: 24px; transform: scale(.7); transform-origin: top right; } .door { min-height: 380px; } }
.door__tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.door__tag { padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 12px; color: var(--text-2); transition: color var(--t-med), border-color var(--t-med); }
.door__body { position: relative; }
.door__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-door); line-height: .92; letter-spacing: -0.05em; }
.door__foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 18px; }
.door__sub { max-width: 320px; font-size: 18px; color: var(--text-2); transition: color var(--t-med); }
.door .door-arrow { width: 64px; height: 64px; background: var(--acc); color: var(--on-acc); }
.door:hover .door__sub, .door:hover .door__tag { color: var(--on-acc); border-color: rgba(13, 13, 15, .25); }
.door:focus-visible { outline-offset: 6px; }

.about { display: flex; flex-wrap: wrap; gap: 64px; }
.about__side { flex: 1 1 300px; min-width: 0; }
.about__side > .label { margin-bottom: 20px; }
.about__photo { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.about__sticker { --r: -5deg; position: absolute; right: -18px; bottom: 28px; padding: 10px 16px; border-radius: 14px; background: var(--acc); color: var(--on-acc); font-family: var(--font-display); font-weight: 700; font-size: 15px; transform: rotate(var(--r)); }
.about__main { flex: 2 1 560px; min-width: 0; }
.about__statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.28; letter-spacing: -0.025em; }
.about__text { margin-top: 24px; max-width: 620px; font-size: 18px; color: var(--text-2); }
.about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 420px) { .about__sticker { right: 12px; } }

/* ---------- Page hero (apps, support) ---------- */
.page-hero { position: relative; padding-top: 96px; padding-bottom: 56px; }
.page-hero__glow { right: -200px; top: -160px; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 17%, transparent), transparent 70%); }
.page-hero__row { position: relative; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.page-hero__copy { max-width: 760px; }
.page-hero .h1 { margin-top: 24px; }
.page-hero .lead { margin-top: 28px; max-width: 560px; }
.stats { display: flex; gap: 40px; }
.stats__num { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.3; }
.stats__label { font-size: 14px; color: var(--text-3); }
.stats__link { display: inline-block; margin-top: 10px; font-size: 14px; }

/* ---------- Apps ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); background: transparent; font-size: var(--fs-small); font-weight: 500; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.chip:hover { border-color: var(--acc); }
.chip__count { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.chip[aria-pressed="true"] { border-color: var(--acc); background: var(--acc); color: var(--on-acc); font-weight: 600; }
.chip[aria-pressed="true"] .chip__count { color: inherit; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--gap); }
.app-card { position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 30px 30px 0; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: transform var(--t-med) var(--ease), border-color var(--t-med); }
.app-card[hidden] { display: none; }
.app-card:hover { transform: translateY(-6px); border-color: var(--acc); color: var(--text); }
.app-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.app-card .go { width: 44px; height: 44px; border: 1px solid var(--border-strong); transition: transform var(--t-med) var(--ease), background var(--t-med), color var(--t-med), border-color var(--t-med); }
.app-card:hover .go { transform: rotate(-45deg); background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.app-card__cat { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--acc); text-transform: uppercase; letter-spacing: 0.06em; }
.soon { margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-2); }
.app-card__name { margin: 6px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; line-height: 1.2; }
.app-card__desc { margin-bottom: 28px; font-size: 16px; color: var(--text-2); }
.app-card__shot { width: 62%; height: auto; margin: auto auto -40px; border-radius: 26px 26px 0 0; border: 5px solid var(--border); border-bottom: 0; transition: transform .6s var(--ease); }
.app-card:hover .app-card__shot { transform: translateY(-14px) rotate(-1.5deg); }


.cta-band { position: relative; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: var(--acc); color: var(--on-acc); overflow: hidden; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1.05; }
.cta-band p { margin-top: 10px; font-size: 18px; }

/* ---------- App page ---------- */
.app-hero { position: relative; padding-top: 64px; padding-bottom: 110px; }
.app-hero__glow { right: -60px; top: 0; width: 760px; height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%); }
.app-hero .crumbs, .app-hero__row { position: relative; }
.app-hero__row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; margin-top: 40px; }
.app-hero__copy { flex: 1 1 460px; min-width: 0; }
.app-hero__name { margin-top: 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 7vw, 104px); line-height: .95; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.app-hero__tagline { margin-top: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.03em; line-height: 1.3; color: var(--acc); }
.app-hero__desc { margin-top: 24px; max-width: 500px; font-size: 19px; color: var(--text-2); }
.app-hero .btn-row { margin-top: 34px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chip-list li { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); font-size: 14px; color: var(--text-2); }
.phones { flex: 1 1 460px; min-width: 0; display: flex; gap: 20px; align-items: flex-start; justify-content: center; }
.phone { width: 46%; max-width: 270px; height: auto; border-radius: 36px; border: 7px solid var(--line); box-shadow: 0 40px 80px rgba(0, 0, 0, .55); animation-duration: 7s; }
.phone + .phone { margin-top: 60px; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--gap); }
.step-card { padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.step-card__num { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--acc); }
.step-card h3 { margin: 16px 0 8px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.step-card p { font-size: 16px; color: var(--text-3); }

.band { position: relative; background: var(--surface); border-block: 1px solid var(--line); overflow: hidden; }
.band__glow { left: -200px; top: 50%; width: 700px; height: 700px; margin-top: -350px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%); }
.band__row { position: relative; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-block: 110px; }
.band__phones { flex: 1 1 480px; min-width: 0; display: flex; gap: 20px; align-items: flex-start; justify-content: center; padding-top: 40px; }
.band__phones img { width: 46%; max-width: 250px; height: auto; border-radius: 32px; border: 6px solid var(--border); }
.band__phones img + img { margin-top: -40px; }
.band__copy { flex: 1 1 400px; min-width: 0; }
.h2--band { margin-bottom: 32px; font-size: clamp(32px, 3.6vw, 48px); }
.band__list { border-top: 1px solid var(--border-soft); }
.band__item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.band__key { padding-top: 4px; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--acc); }
.band__item h3 { margin-bottom: 4px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.band__item p { font-size: 16px; color: var(--text-3); }


.more__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--gap); }
.mini-card { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform var(--t-med) var(--ease), border-color var(--t-med); }
.mini-card:hover { transform: translateY(-6px); border-color: var(--acc); color: var(--text); }
.mini-card .app-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: none; }
.mini-card__name { font-weight: 600; font-size: 18px; }
.mini-card__sub { font-size: 14px; color: var(--text-3); }

/* ---------- Games ---------- */
.game-hero { position: relative; padding-top: 72px; padding-bottom: 56px; }
.game-hero__glow { right: -220px; top: -220px; width: 820px; height: 820px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); animation: drift 14s ease-in-out infinite; }
.game-hero__inner { position: relative; }
.game-hero__row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; margin-top: 32px; }
.game-hero__copy { max-width: 760px; }
.game-hero__title { margin-top: 24px; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-game); line-height: .9; letter-spacing: -0.055em; overflow-wrap: anywhere; }
.game-hero__hook { margin-top: 22px; max-width: 560px; font-size: 21px; }
.game-hero .btn { min-height: 56px; }
.game-hero--soon { min-height: 62vh; padding-bottom: 96px; }
.game-hero--soon .game-hero__copy { margin-top: 32px; }
.game-hero--soon .socials { margin-top: 40px; }

.art { position: relative; display: flex; width: 100%; align-items: center; justify-content: center; aspect-ratio: 16 / 8; min-height: 300px; border-radius: 36px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__grid { position: absolute; inset: 0; background-size: 56px 56px; opacity: .8; }
.art__glow { left: 50%; top: 50%; width: 700px; height: 700px; margin: -350px 0 0 -350px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); }
.art__scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--acc); opacity: .5; box-shadow: 0 0 24px var(--acc); animation-duration: 6s; }
.art__label { position: absolute; left: 28px; top: 24px; }
.art__platform { position: absolute; right: 28px; bottom: 24px; }
.art__play { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--acc); color: var(--on-acc); box-shadow: 0 0 60px color-mix(in srgb, var(--acc) 50%, transparent); transition: transform .35s var(--ease); }
.art:hover .art__play { transform: scale(1.08); }

.game-about { display: flex; flex-wrap: wrap; gap: 56px; }
.game-about__main { flex: 2 1 560px; min-width: 0; }
.game-about .h2 { margin-top: 14px; }
.game-about__text { margin-top: 22px; max-width: 620px; font-size: 18px; color: var(--text-2); }
.details { flex: 1 1 300px; min-width: 0; align-self: flex-start; padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.details > .label { margin-bottom: 8px; }
.details dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-small); }
.details dt { color: var(--text-3); }
.details dd { font-weight: 600; text-align: right; }
.details .btn { margin-top: 22px; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: var(--gap); }
.game-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform var(--t-med) var(--ease), border-color var(--t-med); }
.game-shot:hover { transform: translateY(-6px); border-color: var(--acc); }
.game-shot img { width: 100%; height: 100%; object-fit: cover; }

.roadmap__head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.roadmap__head p { max-width: 380px; color: var(--text-3); }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; padding: 0; list-style: none; }
.roadmap__step { padding: 24px 22px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--border); color: var(--text-3); }
.roadmap__step--done { color: var(--text); }
.roadmap__step--now { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.roadmap__tag { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; }
.roadmap__mark { display: inline-flex; align-items: center; justify-content: center; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--muted); }
.roadmap__step--done .roadmap__mark { width: 22px; height: 22px; border: 0; background: var(--acc); color: var(--on-acc); font-size: 12px; }
.roadmap__step--now .roadmap__mark { border: 0; background: var(--on-acc); }
.roadmap__title { display: block; margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }

.devlog { position: relative; overflow: hidden; }
.devlog__glow { left: 50%; bottom: -420px; width: 900px; height: 640px; margin-left: -450px; }
.devlog__inner { position: relative; text-align: center; }
.devlog__inner > p { margin: 16px auto 0; max-width: 480px; color: var(--text-2); }
.devlog .btn-row { margin-top: 32px; }

/* ---------- Support ---------- */
.support-hero { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-bottom: 16px; }
.support-hero__copy { flex: 1 1 520px; min-width: 0; }
.h1--support { font-size: clamp(44px, 6vw, 88px); }
.support-hero .lead { margin-top: 26px; max-width: 520px; }
.mail-card { flex: 1 1 380px; min-width: 0; padding: 32px; border-radius: var(--r-card); background: var(--acc); color: var(--on-acc); }
.mail-card .label { color: var(--on-acc); }
.mail-card__address { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.03em; color: var(--on-acc); overflow-wrap: anywhere; }
.mail-card__address:hover { color: var(--on-acc); text-decoration: underline; text-underline-offset: 4px; }
.mail-card p:last-child { margin-top: 14px; font-size: var(--fs-small); }
.h3 + .picker { margin-top: 24px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.picker__app { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-align: center; font-weight: 600; transition: border-color .3s, transform .35s var(--ease), background .3s; }
@media (min-width: 1000px) { .picker { grid-template-columns: repeat(5, 1fr); } }
.picker__app:hover { border-color: var(--acc); transform: translateY(-4px); background: var(--surface-hover); color: var(--text); }
.picker__app .app-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: none; }

.faq-section { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 100px; }
.faq-section__intro { flex: 1 1 300px; min-width: 0; }
.faq-section__intro p { margin-top: 16px; color: var(--text-3); }
.faq { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 18px 8px; border: 0; background: transparent; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; transition: background var(--t-fast); }
.faq__q:hover { background: var(--surface-hover); }
.faq__sign { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-button); color: var(--acc); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; transition: transform var(--t-fast) var(--ease); }
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding: 0 56px 22px 8px; color: var(--text-2); animation: open .35s var(--ease) both; }
.faq__a[hidden] { display: none; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Legal ---------- */
.legal-hero { padding-top: 88px; padding-bottom: 48px; }
.h1--legal { margin-top: 22px; font-size: clamp(40px, 5.4vw, 76px); }
.legal-hero .lead { margin-top: 22px; max-width: 640px; }
.legal-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-family: var(--font-mono); font-size: var(--fs-label); }
.meta-chip { padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-2); }
.meta-chip--acc { border-color: transparent; background: color-mix(in srgb, var(--acc) 16%, transparent); color: color-mix(in srgb, var(--acc) 75%, #fff); }
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 48px; }
.glance__card { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.glance__card h2 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.glance__card p { margin-top: 6px; font-size: var(--fs-small); color: var(--text-3); }

.legal-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-bottom: 100px; line-height: 1.7; }
.toc { position: sticky; top: 100px; flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 2px; padding-top: 40px; font-size: var(--fs-small); }
.toc .label { margin-bottom: 10px; font-size: 12px; }
.toc a { padding: 6px 0 6px 14px; border-left: 2px solid var(--border); color: var(--text-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--acc); border-color: var(--acc); }
@media (max-width: 900px) { .toc { position: static; max-width: none; padding-top: 0; } }
.doc { flex: 999 1 560px; min-width: 0; max-width: 820px; }
.doc section { padding: 40px 0; border-top: 1px solid var(--border); }
.doc__num { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--acc); }
.doc h2 { margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 26px); letter-spacing: -.03em; line-height: 1.15; }
.doc p, .doc ul { margin-bottom: 14px; color: var(--doc-text); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 10px; }
.doc strong { color: var(--text); }
.doc a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--text); }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 14px 18px; text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--surface); font-weight: 600; }
.table-wrap tbody tr { border-top: 1px solid var(--border); }
.table-wrap tbody th { width: 120px; font-weight: 600; }
.table-wrap td { color: var(--text-2); }

/* ---------- 404 ---------- */
.not-found { position: relative; padding-top: 120px; padding-bottom: 140px; }
.not-found__glow { right: -160px; top: -120px; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 17%, transparent), transparent 70%); }
.not-found__inner { position: relative; }
.not-found__code { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 22vw, 300px); line-height: .85; letter-spacing: -0.06em; }
.not-found .lead { margin-top: 28px; max-width: 520px; }
.not-found .btn-row { margin-top: 36px; }

/* ---------- Motion extras (reduced-motion is handled in tokens.css) ---------- */
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-18px, 12px); } }
