:root {
  color-scheme: dark;
  --bg-main: #0b0c0e;
  --bg-surface: #111318;
  --bg-surface-hover: #171920;
  --color-matcha: #eceef2;
  --color-matcha-hover: #ffffff;
  --color-lavender: #c9c1dc;
  --color-lavender-soft: rgba(201, 193, 220, 0.12);
  --text-primary: #f3f4f6;
  --text-secondary: #9a9da5;
  --border-subtle: rgba(243, 244, 246, 0.11);
  --border-active: rgba(201, 193, 220, 0.48);
  --radius-card: 12px;
  --radius-btn: 8px;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--color-lavender); color: var(--bg-main); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { margin-bottom: 0; letter-spacing: -0.035em; line-height: 1.08; }
p { margin-bottom: 0; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.hidden, .hidden-row { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--text-primary); color: var(--bg-main); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header, body > header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px 0;
  border: 0;
  background: transparent;
}
.nav { display: flex; width: min(1120px, 100%); min-height: 62px; align-items: center; gap: 24px; margin: 0 auto; padding: 0 12px 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(10,11,14,.84); box-shadow: 0 14px 40px rgba(0,0,0,.28); backdrop-filter: blur(14px) saturate(130%); }
.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; }
.logo-mark { width: 38px; height: 38px; border: 1px solid var(--border-subtle); border-radius: 9px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 24px); margin-left: auto; color: #b9bbc1; font-size: 13px; font-weight: 550; }
.nav-links a, .nav-link-button { transition: color 160ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-link-button:hover { color: var(--text-primary); }
.nav-link-button { padding: 0; border: 0; background: none; color: inherit; }
.nav-user { display: flex; gap: 8px; }
.nav-links a:last-child { padding: 10px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: var(--text-primary); font-weight: 600; }
.nav-links a:last-child:hover { border-color: var(--color-lavender); }

body:not(.home-page):not(.auth-page):not(.cabinet-page) main { padding-top: 80px; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--color-matcha);
  border-radius: var(--radius-btn);
  background: var(--color-matcha);
  color: var(--bg-main);
  font-weight: 750;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { border-color: var(--color-matcha-hover); background: var(--color-matcha-hover); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--color-lavender); outline-offset: 3px; }
.btn-small, .btn.small { min-height: 40px; padding-inline: 17px; font-size: 13px; }
.btn-secondary, .btn.ghost { border-color: var(--border-subtle); background: transparent; color: var(--text-primary); }
.btn-secondary:hover, .btn.ghost:hover { border-color: rgba(201, 193, 220, 0.42); background: var(--bg-surface-hover); }
.btn-lavender { border-color: var(--color-lavender); background: var(--color-lavender); }
.btn-lavender:hover { border-color: #d3c5ec; background: #d3c5ec; }
.btn.disabled { opacity: 0.45; pointer-events: none; }
.full-width { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-active); color: var(--text-primary); font-weight: 650; }
.text-link:hover { color: var(--color-lavender); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.eyebrow, .badge { margin: 0 0 20px; color: var(--color-lavender); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.status-dot, .dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--color-lavender); }

.home-hero { padding: 96px 0 80px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); align-items: stretch; gap: 72px; }
.hero-copy { align-self: center; padding: 30px 0; }
.home-hero h1 { max-width: 780px; font-size: clamp(4rem, 7.2vw, 7.25rem); font-weight: 600; }
.home-hero h1 span { color: var(--color-matcha); }
.lead { max-width: 650px; margin-top: 32px; color: var(--text-secondary); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.hero-actions { margin-top: 38px; }

.system-card { display: flex; min-height: 510px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 26px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); }
.system-card-head { display: flex; justify-content: space-between; color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; }
.system-wordmark { width: min(78%, 340px); aspect-ratio: 1; align-self: center; border-radius: 20px; object-fit: cover; }
.system-status { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-subtle); }
.system-status div { padding-top: 18px; }
.system-status span, .system-status strong { display: block; }
.system-status span { color: var(--text-secondary); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.system-status strong { margin-top: 6px; font-size: 13px; }

.proof-strip { border-block: 1px solid var(--border-subtle); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid p { display: flex; min-height: 96px; align-items: center; gap: 18px; padding: 0 24px; border-left: 1px solid var(--border-subtle); }
.proof-grid p:last-child { border-right: 1px solid var(--border-subtle); }
.proof-grid strong { color: var(--color-lavender); font-family: var(--font-mono); font-size: 11px; }
.proof-grid span { font-size: 13px; font-weight: 650; }

.content-section { padding: 128px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 0.8fr; align-items: end; gap: 48px; margin-bottom: 56px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -20px; }
.section-heading h2 { font-size: clamp(2.8rem, 5.3vw, 5.5rem); font-weight: 550; }
.section-heading > p:last-child { max-width: 510px; justify-self: end; color: var(--text-secondary); font-size: 1.05rem; }
.section-heading-row > div .eyebrow { margin-bottom: 20px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { display: flex; min-height: 370px; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); }
.feature-card-wide { grid-column: 1 / -1; min-height: 410px; }
.card-index { color: var(--color-matcha); font-family: var(--font-mono); font-size: 11px; }
.feature-card h3 { margin-bottom: 12px; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 580; }
.feature-card p { max-width: 560px; color: var(--text-secondary); }
.module-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--border-subtle); }
.module-list span { display: grid; min-height: 76px; place-items: center; background: var(--bg-main); color: var(--color-matcha); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; }
.large-number { color: var(--color-matcha) !important; font-size: clamp(5rem, 10vw, 9rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.08em; }
.large-number span { font-size: 0.22em; letter-spacing: 0; }
.feature-card-lavender { background: var(--color-lavender-soft); }
.id-mark { width: 142px; height: 142px; align-self: flex-end; border: 1px solid var(--border-active); border-radius: 20px; object-fit: cover; }

.access-section { border-top: 1px solid var(--border-subtle); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pricing-card { position: relative; display: flex; min-height: 310px; flex-direction: column; padding: 26px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); }
.pricing-card > div:first-child span, .pricing-card > div:nth-child(2) span { color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.pricing-card h3 { margin-top: 10px; font-size: 2rem; font-weight: 600; }
.price { margin: auto 0 26px; font-size: 4rem; font-weight: 600; letter-spacing: -0.08em; line-height: 1; }
.price small { margin-left: 5px; color: var(--text-secondary); font-size: 0.32em; letter-spacing: 0; }
.pricing-card-featured { border-color: rgba(201, 193, 220, 0.42); }
.recommended { position: absolute; top: 22px; right: 22px; padding: 6px 9px; border-radius: 999px; background: var(--color-matcha); color: var(--bg-main); font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pricing-card-beta { border-color: var(--border-active); background: var(--color-lavender-soft); }

.cta-section { padding-bottom: 96px; }
.cta-block { display: flex; min-height: 300px; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 48px; border-radius: var(--radius-card); background: var(--color-matcha); color: var(--bg-main); }
.cta-block .eyebrow { color: #393541; }
.cta-block h2 { font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 600; }
.cta-block .btn { border-color: var(--bg-main); background: var(--bg-main); color: var(--text-primary); }
.cta-block .text-link { border-color: rgba(20, 24, 21, 0.4); color: var(--bg-main); }

footer { border-top: 1px solid var(--border-subtle); color: var(--text-secondary); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; min-height: 120px; align-items: center; gap: 32px; font-size: 12px; }
.footer-row p { text-align: center; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a:hover { color: var(--text-primary); }

/* Внутренние страницы */
body:not(.home-page):not(.auth-page):not(.cabinet-page) main { padding: 80px 0 96px; }
body:not(.home-page):not(.auth-page):not(.cabinet-page) .hero { padding: 82px 0 52px; }
body:not(.home-page):not(.auth-page):not(.cabinet-page) .hero h1 { max-width: 900px; font-size: clamp(3.25rem, 6vw, 5.75rem); font-weight: 600; }
body:not(.home-page) .hero .actions { margin-top: 32px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 30px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); }
.card h2 { margin-bottom: 14px; font-size: 1.7rem; font-weight: 620; }
.card p, .card li { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.72; }
.card ul { margin: 20px 0; padding-left: 20px; }
.steps { display: grid; gap: 1px; overflow: hidden; margin-top: 24px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--border-subtle); }
.step { padding: 20px; background: var(--bg-main); }
.step strong { display: block; margin-bottom: 4px; color: var(--text-primary); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.pill { padding: 17px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-main); }
.pill small, .pill strong { display: block; }
.pill small { color: var(--text-secondary); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.pill strong { margin-top: 6px; }
body:not(.home-page) footer > .wrap:not(.footer-row) { min-height: 100px; display: flex; align-items: center; }
.support-dock, .channel-dock { display: none !important; }

/* Формы и модальные окна */
.modal { position: fixed; z-index: 80; inset: 0; display: none; place-items: center; padding: 24px; background: rgba(8, 10, 9, 0.84); }
.modal.is-open { display: grid; }
.auth-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); }
.auth-card h2, .modal-title { margin-bottom: 12px; font-size: 2rem; }
.auth-note, .auth-card > p { color: var(--text-secondary); }
.close-btn { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--border-subtle); border-radius: 50%; background: transparent; color: var(--text-primary); }
.tabs { display: flex; gap: 8px; margin: 24px 0; }
.tab { flex: 1; min-height: 42px; border: 1px solid var(--border-subtle); border-radius: var(--radius-btn); background: transparent; color: var(--text-secondary); }
.tab.active { border-color: var(--color-matcha); background: var(--color-matcha); color: var(--bg-main); }
form { display: grid; gap: 16px; }
form label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 12px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-btn); outline: none; background: var(--bg-main); color: var(--text-primary); }
input:focus, select:focus, textarea:focus { border-color: var(--border-active); }
.message { display: none; margin: 14px 0; padding: 12px; border-radius: 8px; background: rgba(201, 193, 220, 0.12); }
.message.error { background: rgba(220, 110, 110, 0.12); color: #f0abab; }
.remember-row { display: flex; grid-template-columns: auto 1fr; align-items: center; }
.remember-row input { width: 18px; min-height: 18px; }
.forgot-link { border: 0; background: none; color: var(--text-secondary); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav > .btn { margin-left: auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .system-card { min-height: 430px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid p:nth-child(2) { border-right: 1px solid var(--border-subtle); }
  .proof-grid p:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { justify-self: start; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .module-list { grid-template-columns: repeat(3, 1fr); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  body > header, .site-header { padding: 10px 10px 0; }
  .nav { width: 100%; min-height: 56px; border-radius: 12px; }
  .nav > .btn { min-height: 38px; padding-inline: 13px; }
  .home-hero { padding: 64px 0 56px; }
  .home-hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .lead { margin-top: 24px; }
  .system-card { min-height: 360px; padding: 20px; }
  .system-wordmark { width: min(74%, 260px); }
  .system-status { gap: 8px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid p { min-height: 70px; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
  .proof-grid p:last-child { border-bottom: 0; }
  .content-section { padding: 88px 0; }
  .section-heading { margin-bottom: 38px; }
  .feature-grid, .pricing-grid, .grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: auto; }
  .feature-card { min-height: 330px; }
  .module-list { grid-template-columns: repeat(2, 1fr); }
  .pricing-card { min-height: 290px; }
  .cta-block { min-height: 360px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 28px; }
  .footer-row { grid-template-columns: 1fr; padding: 36px 0; text-align: left; }
  .footer-row p { text-align: left; }
  .footer-row nav { flex-wrap: wrap; }
  body:not(.home-page) .hero { padding: 68px 0 46px; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Homepage — composition based on the supplied Kimiko reference. */
.kimiko-base {
  --k-bg: #0b0c0e;
  --k-surface: #111318;
  --k-surface-2: #171920;
  --k-line: rgba(242, 244, 247, .12);
  --k-text: #f3f4f6;
  --k-muted: #a2a5ad;
  --k-accent: #c9c1dc;
  margin: 0;
  background: var(--k-bg);
  color: var(--k-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.kimiko-base a { color: inherit; text-decoration: none; }
.k-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.k-header { position: fixed; inset: 18px 0 auto; z-index: 40; padding: 0 24px; }
.site-header,
body > header,
.k-header,
.cabinet-header {
  position: absolute !important;
  transform: none !important;
  opacity: 1 !important;
  will-change: auto;
}
.k-nav { display: grid; grid-template-columns: 1fr auto 1fr; width: min(1120px, 100%); min-height: 62px; margin: 0 auto; align-items: center; padding: 0 12px 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(10,11,14,.94); box-shadow: 0 14px 40px rgba(0,0,0,.28); backdrop-filter: blur(14px) saturate(125%); }
.k-brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.k-brand img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.k-nav nav { display: flex; align-items: center; gap: 34px; color: #b9bbc1; font-size: 13px; }
.k-nav nav a:hover { color: #fff; }
.k-login { justify-self: end; padding: 10px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; font-size: 13px; font-weight: 600; }
.k-login:hover { border-color: var(--k-accent); }

.k-hero { position: relative; min-height: 760px; overflow: hidden; scroll-margin-top: 100px; background: #0b0c0e url('/assets/nythera-hero.webp') center/cover no-repeat; }
.k-hero::after { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, var(--k-bg)); content: ""; }
.k-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.94) 0%, rgba(5,6,8,.72) 38%, rgba(5,6,8,.18) 72%), linear-gradient(180deg, rgba(5,6,8,.18), rgba(5,6,8,.1) 55%, rgba(5,6,8,.88)); }
.k-hero-content { position: relative; z-index: 2; display: flex; min-height: 760px; flex-direction: column; justify-content: flex-end; padding: 150px 0 64px; }
.k-hero-copy { max-width: 680px; }
.k-kicker, .k-label { margin: 0 0 20px; color: var(--k-accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.k-hero h1 { max-width: 680px; margin: 0; font-size: clamp(52px, 6.4vw, 88px); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.k-hero h1 span { color: var(--k-accent); }
.k-hero-copy > p:not(.k-kicker) { max-width: 560px; margin: 28px 0 0; color: #c7c9ce; font-size: 16px; line-height: 1.7; }
.k-actions { display: flex; gap: 12px; margin-top: 34px; }
.k-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; font-size: 13px; font-weight: 650; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .22s ease, transform .14s ease; }
.k-button-primary { border-color: #eceef2; background: #eceef2; color: #101115 !important; }
.k-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.k-button:active { transform: scale(.97); transition-duration: .08s; }
.k-button-primary:hover { background: #fff; box-shadow: 0 12px 30px rgba(224,219,235,.14); }
.k-button-quiet:hover { border-color: var(--k-accent); background: rgba(201,193,220,.09); color: #fff; }
.k-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 72px 0 0; }
.k-facts div { padding-right: 42px; }
.k-facts dt { font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.k-facts dd { max-width: 160px; margin: 6px 0 0; color: #92959d; font-size: 12px; line-height: 1.45; }

.k-section { padding: 96px 0; scroll-margin-top: 100px; }
.k-section-head { display: grid; grid-template-columns: .65fr 1.35fr 1fr; gap: 42px; align-items: start; margin-bottom: 56px; }
.k-section-head h2 { margin: -8px 0 0; font-size: clamp(34px, 4vw, 54px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.k-section-head > p:last-child { max-width: 360px; margin: 0; color: var(--k-muted); font-size: 14px; line-height: 1.7; }
.k-benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line); }
.k-benefit-grid article { min-height: 240px; padding: 26px 22px; border-right: 1px solid var(--k-line); transition: background .2s ease, transform .18s ease; }
.k-benefit-grid article:hover { background: rgba(255,255,255,.025); transform: translateY(-2px); }
.k-benefit-grid article:last-child { border-right: 0; }
.k-benefit-grid span { color: var(--k-accent); font-size: 11px; }
.k-benefit-grid h3 { margin: 58px 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.k-benefit-grid p { margin: 0; color: var(--k-muted); font-size: 13px; line-height: 1.65; }

.k-demo { background: #0e1014; }
.k-section-head-centered { display: block; max-width: 700px; margin: 0 auto 48px; text-align: center; }
.k-section-head-centered h2 { margin-bottom: 18px; }
.k-section-head-centered > p:last-child { margin: 0 auto; }
.k-product-shot { overflow: hidden; max-width: 1040px; margin: 0 auto; border: 1px solid var(--k-line); border-radius: 16px; background: #070809; box-shadow: 0 32px 72px rgba(0,0,0,.34); }
.k-product-shot img { display: block; width: 100%; height: auto; object-fit: contain; filter: grayscale(.82) saturate(.55) contrast(1.08); }
.k-product-shot figcaption { display: none; }

/* Interactive in-game client demo */
.game-gui { display: grid; width: min(1120px, 100%); height: min(680px, 66vw); min-height: 560px; margin: 0 auto; grid-template-columns: 190px minmax(280px,.9fr) minmax(360px,1.18fr); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #070809; box-shadow: 0 38px 90px rgba(0,0,0,.42), 0 1px 0 rgba(255,255,255,.06) inset; color: #f4f4f6; text-align: left; }
.game-gui button { font: inherit; }
.game-gui-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 22px 14px; border-right: 1px solid rgba(255,255,255,.09); background: #090a0c; }
.game-gui-mark { display: grid; width: 38px; height: 38px; margin: 0 8px 28px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #111318; font-size: 19px; font-weight: 700; }
.game-gui-sidebar p { margin: 0 10px 8px; color: #676b73; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.game-gui-sidebar button { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #858991; font-size: 13px; cursor: pointer; text-align: left; transition: color .18s ease, background .18s ease, transform .12s ease; }
.game-gui-sidebar button span { width: 18px; color: #656972; text-align: center; transition: color .18s ease, transform .26s cubic-bezier(.2,.8,.2,1); }
.game-gui-sidebar button:hover { background: rgba(255,255,255,.055); color: #f3f4f6; }
.game-gui-sidebar button:hover span { color: #c9c1dc; transform: scale(1.12); }
.game-gui-sidebar button:active { transform: scale(.98); }
.game-gui-sidebar button.is-active { background: #1a1820; color: #f5f2fa; }
.game-gui-sidebar button.is-active span { color: #c9c1dc; }
.game-gui-modules, .game-gui-settings { display: flex; min-width: 0; flex-direction: column; background: #0c0d10; }
.game-gui-modules { border-right: 1px solid rgba(255,255,255,.09); }
.game-gui-modules > header, .game-gui-settings > header { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.game-gui header small { display: block; margin-bottom: 5px; color: #7e8189; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.game-gui header h3 { margin: 0; color: #f3f4f6; font-size: 19px; font-weight: 620; letter-spacing: -.02em; }
.gui-count { color: #777b84; font-size: 10px; }
.gui-close { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #121419; color: #8d9098; cursor: pointer; transition: background .18s ease, color .18s ease, transform .12s ease; }
.gui-close:hover { background: #1b1d23; color: #fff; }
.gui-close:active { transform: scale(.93); }
.gui-module-scroll, .gui-settings-scroll { min-height: 0; overflow: auto; padding: 14px; scrollbar-color: #38343f transparent; scrollbar-width: thin; }
.gui-module-scroll::-webkit-scrollbar, .gui-settings-scroll::-webkit-scrollbar { width: 6px; }
.gui-module-scroll::-webkit-scrollbar-thumb, .gui-settings-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #38343f; }
.gui-module { display: grid; width: 100%; min-height: 82px; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-bottom: 8px; padding: 14px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #111318; color: inherit; cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease, transform .14s ease, box-shadow .2s ease; }
.gui-module:hover { transform: translateY(-1px); border-color: rgba(201,193,220,.3); background: #15171c; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.gui-module:active { transform: scale(.99); }
.gui-module.is-selected { border-color: rgba(201,193,220,.48); background: #1a1820; box-shadow: 0 0 0 1px rgba(201,193,220,.06) inset; }
.gui-module strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 620; }
.gui-module em { display: block; max-width: 230px; overflow: hidden; color: #7d8189; font-size: 11px; font-style: normal; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.gui-switch { position: relative; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 99px; background: #2a2d33; cursor: pointer; transition: background .2s ease, box-shadow .2s ease; }
.gui-switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8c9098; content: ''; transition: transform .28s cubic-bezier(.2,.85,.2,1), background .2s ease; }
.gui-switch[aria-checked="true"] { background: #c9c1dc; box-shadow: 0 0 16px rgba(201,193,220,.18); }
.gui-switch[aria-checked="true"]::after { transform: translateX(16px); background: #15131a; }
.gui-setting { padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.075); }
.gui-setting:last-child { border-bottom: 0; }
.gui-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gui-setting strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 580; }
.gui-setting p { margin: 0; color: #777b83; font-size: 10px; line-height: 1.45; }
.gui-range { width: 100%; height: 4px; margin-top: 16px; appearance: none; border-radius: 99px; outline: none; background: linear-gradient(90deg,#c9c1dc 0 var(--range,60%),#292c32 var(--range,60%) 100%); cursor: pointer; }
.gui-range::-webkit-slider-thumb { width: 15px; height: 15px; appearance: none; border: 3px solid #0d0f12; border-radius: 50%; background: #e8e2f1; box-shadow: 0 0 0 1px rgba(201,193,220,.6); }
.gui-select { min-height: 34px; padding: 0 30px 0 10px; border: 1px solid rgba(255,255,255,.11); border-radius: 7px; background: #121419; color: #c8cad0; font: inherit; font-size: 10px; }
.game-gui.is-changing .gui-module-scroll, .game-gui.is-changing .gui-settings-scroll { animation: guiContentIn .32s cubic-bezier(.2,.8,.2,1); }
@keyframes guiContentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.k-access { border-top: 1px solid var(--k-line); }
.k-pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.k-pricing article { display: flex; min-height: 260px; flex-direction: column; padding: 22px; border: 1px solid var(--k-line); border-radius: 12px; background: var(--k-surface); transition: border-color .2s ease, background .2s ease, box-shadow .22s ease, transform .18s ease; }
.k-pricing article:hover { border-color: rgba(201,193,220,.38); background: #171920; box-shadow: 0 18px 38px rgba(0,0,0,.2); transform: translateY(-3px); }
.k-pricing article > span { color: var(--k-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.k-pricing h3 { margin: 28px 0 0; font-size: 21px; font-weight: 600; }
.k-pricing p { margin: auto 0 24px; color: var(--k-muted); }
.k-pricing p strong { color: var(--k-text); font-size: 46px; font-weight: 500; letter-spacing: -.06em; }
.k-pricing a { display: flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--k-line); border-radius: 8px; font-size: 13px; font-weight: 600; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .12s ease; }
.k-pricing a:hover { border-color: rgba(201,193,220,.55); background: #201d27; color: #fff; }
.k-pricing a:active { transform: scale(.98); }
.k-pricing .is-main { border-color: rgba(201,193,220,.52); background: #191821; }
.k-pricing .is-main a { background: var(--k-accent); color: #121116; }
.k-pricing .is-beta { background: #14131a; }
.k-pricing .is-beta > span { color: var(--k-accent); }

.k-footer { padding: 70px 0 24px; border-top: 1px solid var(--k-line); background: #08090b; }
.k-footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 60px; padding-bottom: 70px; }
.k-footer-brand p { margin: 18px 0 0; color: var(--k-muted); font-size: 13px; }
.k-footer-grid > div:not(.k-footer-brand) { display: flex; flex-direction: column; gap: 12px; }
.k-footer-grid strong { margin-bottom: 6px; font-size: 12px; }
.k-footer-grid > div:not(.k-footer-brand) a { color: var(--k-muted); font-size: 12px; }
.k-footer-grid a:hover { color: #fff; }
.k-footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--k-line); color: #73767e; font-size: 11px; }

@media (max-width: 900px) {
  .k-nav { grid-template-columns: 1fr auto; }
  .k-nav nav { display: none; }
  .k-section-head { grid-template-columns: 1fr; gap: 18px; }
  .k-benefit-grid, .k-pricing { grid-template-columns: repeat(2, 1fr); }
  .k-benefit-grid article:nth-child(2) { border-right: 0; }
  .k-benefit-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--k-line); }
}
@media (max-width: 620px) {
  .k-shell { width: min(100% - 32px, 1120px); }
  .k-header { inset: 10px 0 auto; padding: 0 10px; }
  .k-nav { min-height: 56px; border-radius: 12px; background: rgba(10,11,14,.98); }
  .k-brand span { display: none; }
  .k-brand img { width: 34px; height: 34px; }
  .k-hero, .k-hero-content { min-height: 720px; }
  .k-hero-content { padding-bottom: 38px; }
  .k-hero h1 { font-size: 48px; }
  .k-hero-copy > p:not(.k-kicker) { font-size: 14px; }
  .k-facts { grid-template-columns: 1fr 1fr; gap: 26px 10px; margin-top: 54px; }
  .k-facts div:last-child { display: none; }
  .k-facts dt { font-size: 25px; }
  .k-section { padding: 82px 0; }
  .k-benefit-grid, .k-pricing { grid-template-columns: 1fr; }
  .k-benefit-grid article { min-height: 184px; border-right: 0; border-bottom: 1px solid var(--k-line); }
  .k-benefit-grid article:last-child { border-bottom: 0; }
  .k-benefit-grid h3 { margin-top: 36px; }
  .k-pricing article { min-height: 250px; }
  .k-footer-grid { grid-template-columns: 1fr 1fr; gap: 46px 26px; }
  .k-footer-brand { grid-column: 1 / -1; }
  .k-footer-bottom { flex-direction: column; gap: 8px; }
}

/* Nythera ID */
.auth-page { min-height: 100vh; margin: 0; background: #0b0c0e; color: #f3f4f6; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.auth-layout { display: grid; min-height: 100vh; grid-template-columns: .82fr 1.18fr; }
.auth-visual { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 42px clamp(34px, 6vw, 92px) 68px; background: linear-gradient(180deg, rgba(8,9,11,.14), rgba(8,9,11,.88)), url('/assets/nythera-hero.webp') center/cover; }
.auth-brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.auth-brand img { border-radius: 10px; object-fit: cover; }
.auth-visual > div { max-width: 610px; }
.auth-visual > div > p { margin: 0 0 18px; color: #c9c1dc; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.auth-visual h1 { margin: 0 0 22px; font-size: clamp(42px, 4.4vw, 58px); font-weight: 550; line-height: 1.04; letter-spacing: -.045em; }
.auth-visual > div > span { display: block; max-width: 470px; color: #b3b6be; font-size: 15px; line-height: 1.65; }
.auth-panel { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 56px clamp(28px, 5vw, 64px); background: #0d0e11; }
.auth-back { position: absolute; top: 34px; left: 38px; color: #92959d; font-size: 13px; text-decoration: none; }
.auth-back:hover { color: #fff; }
.auth-box { width: min(100%, 430px); }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.auth-tabs button { padding: 0 0 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #777a82; font: inherit; font-size: 13px; cursor: pointer; }
.auth-tabs button + button { margin-left: 20px; }
.auth-tabs button.is-active { border-color: #c9c1dc; color: #fff; }
.auth-box h2 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.035em; }
.auth-box > p { margin: 10px 0 30px; color: #92959d; font-size: 13px; }
.auth-box form { display: grid; gap: 17px; }
.auth-box form > label:not(.auth-remember):not(.auth-captcha) { display: grid; gap: 8px; color: #b9bbc1; font-size: 12px; }
.auth-box input:not([type="checkbox"]) { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; outline: none; background: #14161b; color: #fff; font: inherit; font-size: 14px; }
.auth-box input:not([type="checkbox"]):focus { border-color: rgba(201,193,220,.66); }
.auth-nickname { display: none; }
.auth-remember, .auth-captcha { display: flex; align-items: center; gap: 9px; color: #a2a5ad; font-size: 12px; }
.auth-remember input, .auth-captcha input { flex: 0 0 16px; width: 16px; height: 16px !important; min-height: 16px !important; margin: 0; accent-color: #c9c1dc; }
.auth-captcha { flex-direction: column; align-items: stretch; min-height: 78px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; background: #111318; }
.auth-captcha #turnstileWidget { display: flex; min-width: 0; width: 100%; justify-content: center; }
.auth-captcha #turnstileWidget[hidden] { display: none; }
.auth-captcha #localCaptcha { display: flex; align-items: center; gap: 9px; min-height: 28px; }
.auth-captcha-status { display: block; margin-top: 5px; color: #858891; font-size: 11px; line-height: 1.4; }
.auth-submit { min-height: 48px; border: 0; border-radius: 9px; background: #eceef2; color: #101115; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-submit:disabled { cursor: wait; opacity: .6; }
.auth-message { display: none; margin: -12px 0 18px; padding: 11px 13px; border: 1px solid rgba(201,193,220,.28); border-radius: 8px; color: #c9c1dc; font-size: 12px; }
.auth-message.is-visible { display: block; }
.auth-message.is-error { border-color: rgba(242,139,139,.3); color: #f2a0a0; }
.auth-box .auth-help { margin: 24px 0 0; text-align: center; }
.auth-help a { color: #c9c1dc; }
@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; padding: 28px 24px 38px; }
  .auth-visual h1 { font-size: 44px; }
  .auth-panel { min-height: auto; padding: 92px 24px 64px; }
}

@media (max-width: 900px) {
  .game-gui { height: 620px; min-height: 0; grid-template-columns: 76px minmax(230px,.9fr) minmax(300px,1.1fr); }
  .game-gui-sidebar { padding-inline: 9px; }
  .game-gui-mark { margin-inline: auto; }
  .game-gui-sidebar p { display: none; }
  .game-gui-sidebar button { justify-content: center; padding: 0; font-size: 0; }
  .game-gui-sidebar button span { font-size: 15px; }
}
@media (max-width: 680px) {
  .game-gui { height: 650px; grid-template-columns: 62px 1fr; }
  .game-gui-settings { position: absolute; inset: 0 0 0 62px; z-index: 3; transform: translateX(102%); transition: transform .34s cubic-bezier(.2,.8,.2,1); }
  .game-gui { position: relative; }
  .game-gui.is-settings-open .game-gui-settings { transform: translateX(0); }
  .game-gui-modules { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .game-gui *, .k-button, .k-pricing a, .k-benefit-grid article { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
