/* Kegnagames landing page. Brand values from the "Kegnagames logo" canvas (Themes board). */

@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --deep: #0f2a1d;
  --deep-2: #17382a;
  --deep-line: #2b5240;
  --green: #0b7a47;
  --gold: #ffc23d;
  --on-gold: #0f2a1d;
  --bg: #f2f2f0;
  --card: #ffffff;
  --text: #151714;
  --muted: #5b625c;
  --line: #dadfd8;
  --on-deep: #ffffff;
  --on-deep-muted: #a9c2b4;
  --radius: 16px;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); }
img, svg { display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.wrap--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mark { width: 38px; height: 36px; flex: none; color: currentColor; }
.mark--sm { width: 26px; height: 25px; }
.mark__accent { fill: var(--gold); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.wordmark--stacked { display: flex; flex-direction: column; gap: 2px; font-size: 14px; letter-spacing: 0.08em; }
.accent { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid transparent; font: 700 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 2px 0 #c8901a; }
.btn--gold:hover { background: #ffcf63; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 2px 0 #075431; }
.btn--green:hover { background: #0d8a51; }
.btn--ghost { color: var(--on-deep); border-color: rgb(255 255 255 / 28%); }
.btn--ghost:hover { border-color: rgb(255 255 255 / 60%); }
.btn--outline-light { color: var(--on-deep); border-color: rgb(255 255 255 / 45%); }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 30; background: var(--deep); color: var(--on-deep); border-bottom: 1px solid #1d4030; }
.bar__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav { flex: 1; }
.nav__list { display: flex; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__list a { color: var(--on-deep-muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav__list a:hover { color: #fff; }
.bar__actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1.5px solid rgb(255 255 255 / 28%); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }

/* Hero */
.hero { background: var(--deep); color: var(--on-deep); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { margin-bottom: 16px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.015em; line-height: 1.04; }
.lead { margin: 20px 0 32px; max-width: 34rem; color: var(--on-deep-muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--on-deep-muted); font-size: 14px; font-weight: 600; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--gold); }

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: #e8ebe6; }
.section h2 { margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: rgb(11 122 71 / 11%); color: var(--green); }
.card__icon svg { width: 22px; height: 22px; }
.link { align-self: flex-start; margin-top: 4px; font-weight: 700; font-size: 15px; text-underline-offset: 3px; }
.link::after { content: " →"; }

.payments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.payments h2 { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

.final { background: var(--deep); color: var(--on-deep); }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 80px; padding-bottom: 80px; text-align: center; }

.final--page { min-height: 100vh; display: flex; align-items: center; }
.final__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* Footer */
.footer { background: #0a1a12; color: var(--on-deep-muted); font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer .brand { color: #fff; }
.footer__note { margin-top: 12px; }
.footer__links h2 { margin-bottom: 12px; color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0; }
.footer__links ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer a:not(.brand) { color: var(--on-deep-muted); text-decoration: none; }
.footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer__legal { display: flex; flex-direction: column; gap: 12px; }
.badge18 { display: flex; align-items: center; gap: 10px; }
.badge18 span { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 2px solid var(--gold); border-radius: 99px; color: var(--gold); font-weight: 800; font-size: 12px; }

/* ---------- Screenshots: device and browser frames ---------- */
.device { display: grid; margin: 0; padding: 6px; border-radius: 12% / 5.6%; background: #060c09; border: 1px solid #35604b; box-shadow: 0 30px 70px rgb(0 0 0 / 45%), inset 0 0 0 1px rgb(255 255 255 / 4%); }
.device img { grid-area: 1 / 1; width: 100%; height: auto; border-radius: 10.5% / 4.9%; }
.device--swap img { opacity: 0; transition: opacity .55s ease; }
.device--swap img.is-active { opacity: 1; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #0c1711; border: 1px solid #35604b; box-shadow: 0 40px 90px rgb(0 0 0 / 50%); }
.browser img { width: 100%; height: auto; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #13251b; }
.browser__bar span { width: 9px; height: 9px; border-radius: 99px; background: #3b5a4a; }
.browser__bar b { margin-left: 10px; padding: 3px 14px; border-radius: 99px; background: #0a1a12; color: var(--on-deep-muted); font-size: 11px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__inner { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.hl { color: var(--gold); }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(47 196 124 / 28%), rgb(47 196 124 / 0%) 70%), radial-gradient(closest-side at 70% 65%, rgb(255 194 61 / 16%), rgb(255 194 61 / 0%) 60%); filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.hero__glow--final { inset: auto auto -60% -10%; width: 60%; }
.stage { position: relative; padding: 0 0 9% 13%; margin-right: -14%; }
.stage__browser { transform: perspective(1700px) rotateY(-9deg) rotateX(2deg); transform-origin: left center; }
.stage__phone { position: absolute; left: 0; bottom: 0; width: 31%; padding: 4px; animation: float 7s ease-in-out infinite; }

.ticker { position: relative; overflow: hidden; border-top: 1px solid #1d4030; background: rgb(10 26 18 / 55%); }
.ticker__track { display: flex; width: max-content; margin: 0; padding: 14px 0; list-style: none; animation: ticker 42s linear infinite; }
.ticker__track li { display: flex; align-items: center; gap: 28px; padding-left: 28px; color: var(--on-deep-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.ticker__track li::after { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--gold); }

.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, rgb(255 255 255 / 0%), rgb(255 255 255 / 55%), rgb(255 255 255 / 0%)); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
.btn--gold:hover, .btn--green:hover { transform: translateY(-2px); }

/* ---------- Section furniture ---------- */
.kicker { margin-bottom: 10px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.kicker--gold { color: var(--gold); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--night { background: #0b0f19; color: #fff; overflow: hidden; }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); border-color: #b9c8bd; box-shadow: 0 18px 40px rgb(15 42 29 / 12%); }
.card__icon { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--green); color: #fff; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.how h2 { margin-bottom: 28px; }
.steps { display: flex; flex-direction: column; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.step__btn { position: relative; display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: background-color .3s ease, border-color .3s ease; }
.step__btn:hover { background: rgb(255 255 255 / 4%); }
.step.is-active .step__btn { background: var(--deep-2); border-color: var(--deep-line); }
.step__num { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 99px; border: 1.5px solid var(--deep-line); color: var(--on-deep-muted); font-family: var(--font-display); font-weight: 800; font-size: 18px; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.step.is-active .step__num { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.step__text { display: flex; flex-direction: column; gap: 6px; }
.step__text strong { font-size: 1.125rem; }
.step__text span { color: var(--on-deep-muted); font-size: 15px; }
.step__btn::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
.steps.is-auto .step.is-active .step__btn::after { animation: progress 4.5s linear forwards; }
.how__visual { display: flex; justify-content: center; }
.how__visual .device { width: min(300px, 100%); }

/* ---------- Phone gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.gallery li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.gallery .device { width: min(270px, 100%); margin-bottom: 18px; box-shadow: 0 24px 50px rgb(15 42 29 / 22%); transition: transform .35s ease; }
.gallery li:hover .device { transform: translateY(-10px) rotate(-1.5deg); }
.gallery li:nth-child(2) { margin-top: 40px; }
.gallery p { color: var(--muted); font-size: 15px; max-width: 26ch; }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.games h2 { margin-bottom: 16px; }
.games__lead { margin-bottom: 28px; color: #aab3c5; font-size: 1.05rem; }
.games__visual { position: relative; padding: 0 12% 8% 0; }
.games__visual .browser { border-color: #2a3350; background: #0d1220; }
.games__visual .browser__bar { background: #141a2b; }
.games__visual .browser__bar span { background: #2f3957; }
.games__visual .browser__bar b { background: #0b0f19; color: #aab3c5; }
.games__phone { position: absolute; right: 0; bottom: 0; width: 27%; padding: 4px; border-color: #2a3350; animation: float 8s ease-in-out -2s infinite; }

.chips li { transition: transform .2s ease, border-color .2s ease; }
.chips li:hover { transform: translateY(-3px); border-color: var(--green); }
.final { position: relative; overflow: hidden; }
.final__inner { position: relative; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes progress { to { width: 100%; } }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise--1 { animation-delay: .05s; } .rise--2 { animation-delay: .15s; } .rise--3 { animation-delay: .25s; } .rise--4 { animation-delay: .35s; } .rise--5 { animation-delay: .45s; }
.rise--stage { animation-duration: 1.1s; animation-delay: .3s; }
/* Scroll reveals only when the script runs; without it everything is simply visible. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .payments { grid-template-columns: 1fr; }
  .stage { margin: 0 auto; padding: 0; width: min(270px, 72%); }
  .stage__browser { display: none; }
  .stage__phone { position: static; width: 100%; }
  .how, .games { grid-template-columns: 1fr; gap: 40px; }
  .how__visual .device { width: min(260px, 70%); }
  .games__phone { width: 31%; }
  .gallery { display: flex; gap: 20px; margin-inline: -20px; padding: 0 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery li { flex: 0 0 min(250px, 68%); scroll-snap-align: center; }
  .gallery li:nth-child(2) { margin-top: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav { position: absolute; inset: 68px 0 auto 0; flex: none; }
  .nav__list { display: none; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--deep); border-bottom: 1px solid var(--deep-line); }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 12px 0; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .bar__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  /* Side gutter only: sections set their own top and bottom padding. */
  .wrap { padding-inline: 16px; }
  .nav__list { padding-inline: 16px; }
  .cards { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .section { padding: 64px 0; }
  .final__inner { padding-top: 64px; padding-bottom: 64px; }
  .cta-row .btn--lg { flex: 1 1 100%; }
  .gallery { margin-inline: -16px; padding-inline: 16px; }
  .step__btn { padding: 14px; gap: 12px; }
  .final .cta-row { align-self: stretch; }
}
/* Without JavaScript the menu links stay visible on small screens, under the bar. */
@media (max-width: 860px) {
  .no-js .menu-btn { display: none; }
  .no-js .nav__list { display: flex; }
}
