:root {
  --felt-deep: #07140f;
  --felt-mid: #0e2a1c;
  --felt-lift: #184832;
  --gold: #ecc978;
  --gold-bright: #ffe7a8;
  --gold-deep: #b8892f;
  --ink: #fff8ea;
  --muted: rgba(255, 248, 234, 0.78);
  --danger: #ff8b8b;
  --ok: #8fe0ae;
  --cta-bg: #ecc978;
  --cta-ink: #122016;
  --cta-hover: #ffe7a8;
  --line: rgba(236, 201, 120, 0.28);
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-body: "Sora", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--felt-deep);
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.felt {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 85% 20%, rgba(236, 201, 120, 0.12), transparent 55%),
    radial-gradient(70% 55% at 10% 80%, rgba(40, 120, 80, 0.22), transparent 55%),
    linear-gradient(160deg, #0c2218 0%, #07140f 48%, #0a1c14 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 16s var(--ease) infinite alternate;
}

.glow-a {
  width: min(48vw, 480px);
  height: min(48vw, 480px);
  left: -10%;
  top: 20%;
  background: rgba(184, 137, 47, 0.28);
}

.glow-b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  right: -8%;
  bottom: 12%;
  background: rgba(36, 110, 72, 0.32);
  animation-delay: -5s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, -3%, 0) scale(1.05); }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Top nav / tabs —— */
.site-nav {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.site-nav__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.site-nav__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav__tab:hover {
  color: var(--gold-bright);
}

.site-nav__tab.is-active {
  color: var(--cta-ink);
  background: var(--gold);
  border-color: var(--gold-deep);
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel.is-active {
  display: block;
}

/* —— Info panels (Komande / Uslovi) —— */
.info-block {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  animation: rise-in 0.55s var(--ease) both;
}

.info-block__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--gold-bright);
}

.info-block__lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.5;
}

.info-block__body p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.info-block__body strong {
  color: var(--ink);
  font-weight: 600;
}

.info-block__note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--gold);
  background: rgba(236, 201, 120, 0.08);
  color: var(--muted);
  line-height: 1.5;
}

.info-block__note strong {
  color: var(--gold-bright);
}

.info-block__credit {
  margin-top: 1.5rem !important;
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.keys-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.5rem;
}

.keys-table th,
.keys-table td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.keys-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.keys-table td {
  color: var(--ink);
}

.keys-table kbd {
  display: inline-block;
  min-width: 2.4rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(236, 201, 120, 0.45);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

/* —— Hero: copy | LARGE clear screenshot —— */
.hero {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0 0.75rem;
}

.hero__copy {
  position: relative;
  z-index: 2;
  animation: rise-in 0.85s var(--ease) both;
}

.hero__art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(58vh, 560px);
  animation: rise-in 1s var(--ease) 0.08s both;
}

.hero__halo {
  position: absolute;
  inset: 5% 0 8% 0;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(236, 201, 120, 0.18), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.hero-carousel__viewport {
  position: relative;
  width: 100%;
}

.hero-carousel__slide {
  margin: 0;
  width: 100%;
}

.hero-carousel__slide[hidden] {
  display: none !important;
}

.hero__shot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: contain;
  object-position: center center;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal;
  border: 1px solid rgba(236, 201, 120, 0.35);
  background: #0a1812;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.55);
}

.hero-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.hero-carousel__btn {
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(236, 201, 120, 0.45);
  border-radius: 4px;
  background: rgba(236, 201, 120, 0.12);
  color: var(--gold-bright);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-carousel__btn:hover {
  background: rgba(236, 201, 120, 0.28);
  border-color: var(--gold);
}

.hero-carousel__dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-carousel__dot {
  appearance: none;
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(236, 201, 120, 0.55);
  background: transparent;
  cursor: pointer;
}

.hero-carousel__dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--gold-bright);
}

.brand span {
  font-weight: 500;
  font-size: 0.7em;
  color: var(--gold);
  margin-left: 0.22em;
}

.lede {
  margin: 0 0 0.85rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
}

.credit-note {
  margin: 0 0 1.4rem;
  max-width: 34ch;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--gold-bright);
  border-left: 3px solid var(--gold);
  background: rgba(236, 201, 120, 0.08);
}

.credit-note strong {
  font-weight: 600;
}

/* —— Bold download CTAs —— */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: 420px;
}

.cta-row form {
  margin: 0;
  display: contents;
}

.cta {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--gold-deep);
  border-radius: 4px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.cta:hover:not(:disabled) {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28);
}

.cta:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}

.cta:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.cta__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(18, 32, 22, 0.72);
  letter-spacing: 0;
}

.status {
  min-height: 1.35em;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.is-error { color: var(--danger); }
.status.is-ok { color: var(--ok); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* —— Demo —— */
.demo {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.35rem 0 0.5rem;
}

.demo__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--gold);
}

.demo__lede {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}

.demo__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020805;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.demo__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020805;
}

.foot {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: rgba(255, 248, 234, 0.42);
  font-size: 0.82rem;
}

.foot__line {
  margin: 0 0 0.4rem;
  color: rgba(255, 248, 234, 0.55);
}

.foot__disclaimer {
  margin: 0;
  max-width: 62ch;
  line-height: 1.5;
  color: rgba(255, 248, 234, 0.38);
  font-size: 0.78rem;
}

.foot a {
  color: var(--gold);
  text-decoration: none;
}

.foot a:hover {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .hero__art {
    order: -1;
    min-height: 0;
  }

  .hero__shot {
    max-height: min(58vh, 480px);
  }

  .cta-row {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .cta-row {
    grid-template-columns: 1fr;
  }
}

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