:root {
  --ink: #111318;
  --ink-soft: #181b22;
  --surface: #20242d;
  --paper: #f4f0e8;
  --paper-soft: #e9e4da;
  --accent: #ff6b35;
  --accent-2: #b7f397;
  --muted: #a9adb7;
  --line: rgba(244, 240, 232, .13);
  --shadow: 0 24px 70px rgba(0,0,0,.24);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 14px; background: var(--accent); color: var(--ink);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,19,24,.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; }
.brand-name { font-size: 1.2rem; }
.brand-name span { color: var(--accent); }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 2px solid var(--accent); border-radius: 9px;
  transform: rotate(-8deg); position: relative;
}
.brand-mark::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent-2); display: block;
}
.brand-mark span {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--accent); right: -5px; top: -5px;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--muted); font-size: .92rem; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--paper); }
.menu-toggle { display: none; background: none; border: 0; color: var(--paper); }

.hero {
  min-height: calc(100vh - 78px); display: flex; flex-direction: column;
  justify-content: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 75% 45%, rgba(255,107,53,.12), transparent 27%),
    radial-gradient(circle at 15% 80%, rgba(183,243,151,.07), transparent 22%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding: 90px 0 60px; position: relative; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; color: var(--muted); }
.eyebrow > span { display: inline-block; width: 24px; height: 2px; vertical-align: middle; background: var(--accent); margin-right: 9px; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); line-height: .94; letter-spacing: -.065em; margin: 0 0 28px; max-width: 850px; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-text { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 13px 18px; border-radius: 999px; font-weight: 750; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.button-ghost { color: var(--paper); }
.button-ghost:hover { border-color: rgba(244,240,232,.35); background: rgba(244,240,232,.05); }
.hero-art { min-height: 520px; position: relative; display: grid; place-items: center; }
.hero-card-main {
  width: min(360px, 70%); aspect-ratio: 1 / 1.16; padding: 32px;
  background: linear-gradient(145deg, #252a34, #15181e);
  border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(5deg);
}
.mini-label { font-size: .65rem; letter-spacing: .2em; color: var(--accent-2); }
.hero-card-main strong { font-size: 3.2rem; line-height: .95; letter-spacing: -.06em; }
.hero-signal { display: flex; align-items: end; gap: 7px; height: 70px; }
.hero-signal span { width: 14%; border-radius: 4px; background: var(--accent); }
.hero-signal span:nth-child(1) { height: 30%; opacity: .4; }
.hero-signal span:nth-child(2) { height: 52%; opacity: .6; }
.hero-signal span:nth-child(3) { height: 82%; }
.hero-signal span:nth-child(4) { height: 58%; opacity: .7; }
.hero-signal span:nth-child(5) { height: 95%; background: var(--accent-2); }
.orbit { position: absolute; border: 1px solid rgba(244,240,232,.12); border-radius: 50%; }
.orbit-one { width: 480px; height: 280px; transform: rotate(-25deg); }
.orbit-two { width: 420px; height: 420px; border-style: dashed; opacity: .45; }
.floating-note {
  position: absolute; padding: 9px 12px; background: var(--paper); color: var(--ink);
  border-radius: 8px; font-size: .75rem; font-weight: 800; box-shadow: var(--shadow);
}
.note-one { left: 2%; top: 20%; transform: rotate(-7deg); }
.note-two { right: 3%; bottom: 19%; transform: rotate(6deg); background: var(--accent-2); }
.hero-bottom { display: flex; justify-content: space-between; padding-bottom: 26px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; }
.scroll-hint i { color: var(--accent); font-style: normal; margin-left: 7px; }

.section-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.section-heading > p { color: var(--muted); max-width: 470px; margin: 0 0 4px; }

.featured { background: var(--paper); color: var(--ink); }
.featured .eyebrow, .featured .section-heading > p { color: #626772; }
.featured .carousel { overflow: hidden; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.feature-card { min-width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 420px; background: var(--ink); color: var(--paper); overflow: hidden; }
.feature-copy { padding: 55px; display: flex; flex-direction: column; justify-content: center; }
.feature-number { color: var(--accent-2); font-size: .72rem; letter-spacing: .18em; font-weight: 800; }
.feature-copy h3 { font-size: clamp(2.3rem, 4vw, 4rem); letter-spacing: -.055em; line-height: .98; margin: 14px 0 16px; }
.feature-copy p { color: var(--muted); max-width: 500px; }
.feature-visual { min-height: 100%; background: radial-gradient(circle at 30% 35%, rgba(255,107,53,.35), transparent 25%), linear-gradient(135deg,#252a34,#111318); position: relative; display: grid; place-items: center; }
.feature-visual::before { content: ""; width: 180px; height: 180px; border: 1px solid rgba(183,243,151,.5); border-radius: 50%; }
.feature-visual::after { content: "✦"; position: absolute; font-size: 5rem; color: var(--accent); }
.carousel-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.carousel-dots { display: flex; gap: 7px; }
.dot { width: 30px; height: 3px; border: 0; background: #c9c5bd; cursor: pointer; padding: 0; }
.dot.active { background: var(--accent); }
.carousel-buttons { display: flex; gap: 8px; }
.icon-button { width: 44px; height: 44px; border: 1px solid #c9c5bd; background: transparent; color: var(--ink); border-radius: 50%; cursor: pointer; }
.icon-button:hover { background: var(--ink); color: var(--paper); }

.about { background: var(--ink-soft); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.about-intro { border-top: 1px solid var(--line); padding-top: 20px; }
.big-number { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .15em; }
.about-intro h3 { font-size: 2.5rem; margin: 10px 0 18px; letter-spacing: -.04em; }
.about-intro p { color: var(--muted); max-width: 620px; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.principle > span { color: var(--accent-2); font-size: .75rem; font-weight: 800; }
.principle h3 { margin: 0 0 6px; font-size: 1.15rem; }
.principle p { margin: 0; color: var(--muted); font-size: .94rem; }

.catalog { background: var(--paper); color: var(--ink); }
.catalog .eyebrow, .catalog .section-heading > p { color: #626772; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card {
  border: 1px solid #d6d1c7; border-radius: var(--radius); padding: 24px;
  min-height: 320px; display: flex; flex-direction: column; justify-content: space-between;
  background: #f8f5ee; transition: transform .25s, box-shadow .25s, background .25s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(17,19,24,.1); background: #fffdf8; }
.product-top { display: flex; justify-content: space-between; align-items: start; }
.product-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--ink); color: var(--accent-2); display: grid; place-items: center; font-weight: 900; }
.product-type { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #6d727c; }
.product-card h3 { font-size: 1.7rem; line-height: 1; letter-spacing: -.04em; margin: 25px 0 9px; }
.product-card p { color: #6d727c; font-size: .9rem; margin: 0; }
.product-link { margin-top: 18px; font-weight: 800; font-size: .85rem; }
.product-link span { color: var(--accent); }

.catalog-games { background: var(--ink); color: var(--paper); }
.catalog-games .section-heading > p, .catalog-games .eyebrow { color: var(--muted); }
.catalog-games .product-card { background: #181b22; border-color: var(--line); }
.catalog-games .product-card:hover { background: #20242d; }
.catalog-games .product-card p { color: var(--muted); }
.catalog-games .product-type { color: var(--muted); }
.catalog-games .product-icon { background: var(--accent); color: var(--ink); }

.manifesto { background: var(--accent); color: var(--ink); }
.manifesto-box { max-width: 1000px; }
.manifesto .eyebrow { color: rgba(17,19,24,.7); }
.manifesto .eyebrow > span { background: var(--ink); }
.manifesto h2 { margin: 0; font-size: clamp(3rem, 7vw, 7rem); line-height: .9; letter-spacing: -.07em; }
.manifesto h2 em { color: var(--paper); }
.manifesto p:last-child { max-width: 620px; font-size: 1.05rem; margin-top: 28px; }

.contact { background: var(--paper); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; }
.contact h2 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; letter-spacing: -.06em; margin: 0; }
.contact p { color: #626772; }
.contact-link { display: inline-block; margin: 20px 0; font-size: 1.25rem; font-weight: 800; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.contact-link span { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; font-weight: 750; }
.socials a:hover { color: var(--accent); }

.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 28px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; font-size: .75rem; color: var(--muted); }
.footer-grid > :last-child { text-align: right; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(620px, calc(100% - 32px)); background: var(--paper); color: var(--ink); border-radius: 24px; padding: 42px; box-shadow: var(--shadow); }
.modal-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; color: var(--ink); }
.modal-card h2 { font-size: 2.8rem; line-height: 1; letter-spacing: -.055em; margin: 10px 0 15px; }
.modal-card > p { color: #626772; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.modal-meta span { border: 1px solid #d0cbc1; padding: 6px 10px; border-radius: 999px; font-size: .75rem; }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .section-heading { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 60px; }
  .hero-art { min-height: 390px; }
  .section-heading { gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :last-child { text-align: left; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
  .menu-toggle span { width: 23px; height: 2px; background: var(--paper); }
  .main-nav {
    position: absolute; left: 14px; right: 14px; top: 68px; padding: 14px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #181b22; border: 1px solid var(--line); border-radius: 16px;
    display: none; box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 70px 0 30px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-text { font-size: 1rem; }
  .hero-art { min-height: 330px; }
  .hero-card-main { width: 230px; padding: 24px; }
  .hero-card-main strong { font-size: 2.3rem; }
  .orbit-one { width: 330px; height: 200px; }
  .orbit-two { width: 300px; height: 300px; }
  .note-one { left: 0; top: 14%; }
  .note-two { right: 0; bottom: 13%; }
  .section { padding: 80px 0; }
  .section-heading h2 { font-size: 2.65rem; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-copy { padding: 34px; min-height: 330px; }
  .feature-visual { min-height: 220px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 280px; }
  .contact-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :last-child { text-align: left; }
  .modal-card { padding: 34px 25px; }
}
