:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-2: #15120c;
  --text: #f6f0de;
  --muted: #bcb199;
  --gold: #d7a933;
  --gold-2: #f6dc83;
  --line: rgba(215, 169, 51, .32);
  --danger: #ff6767;
  --ok: #71e6a1;
  --max: 1180px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(215, 169, 51, .12), transparent 33%), linear-gradient(180deg, #080807 0%, #050505 55%, #0b0905 100%);
  color: var(--text);
  line-height: 1.65
}

a {
  color: inherit
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.nav {
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 22px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #30210a, #f2cf70, #7a520d);
  color: #070707;
  font-weight: 900
}

.brand span:last-child {
  color: var(--gold-2)
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px
}

.nav-links a:hover {
  color: var(--gold-2)
}

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  border-radius: 12px;
  padding: 8px 10px
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 80px 22px
}

.hero-grid {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns:1.05fr .95fr;
  gap: 52px;
  align-items: center
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--gold-2);
  font-weight: 800;
  font-size: 13px;
  background: rgba(215, 169, 51, .08)
}

h1, h2, h3 {
  line-height: 1.05;
  margin: 0
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: -.07em;
  margin: 20px 0 18px
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.05em
}

h3 {
  font-size: 24px;
  color: var(--gold-2)
}

p {
  color: var(--muted);
  margin: 14px 0
}

.lead {
  font-size: 20px;
  max-width: 680px
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04)
}

.button.primary {
  background: linear-gradient(135deg, #8d6417, #f0ca68, #9a6b15);
  color: #080807;
  border: 0
}

.button:hover {
  transform: translateY(-1px)
}

.image-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(215, 169, 51, .12), rgba(255, 255, 255, .03));
  padding: 16px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .45);
  overflow: hidden
}

.image-card img {
  width: 100%;
  display: block;
  border-radius: 20px;
  background: #080808
}

.asset-note {
  font-size: 12px;
  color: #8f846a;
  margin-top: 10px;
  word-break: break-all
}

.section {
  padding: 86px 22px;
  border-top: 1px solid rgba(215, 169, 51, .12)
}

.section-inner {
  max-width: var(--max);
  margin: auto
}

.split {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 42px;
  align-items: center
}

.cards {
  display: grid;
  grid-template-columns:repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  padding: 22px
}

.card strong {
  color: var(--gold-2)
}

.gallery {
  display: grid;
  grid-template-columns:repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0b0b0b;
  padding: 12px
}

.gallery img {
  width: 100%;
  border-radius: 16px;
  display: block
}

.gallery figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px
}

.cta {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(215, 169, 51, .16), rgba(255, 255, 255, .04));
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 22px;
  color: #8f846a
}

.footer-inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap
}

.sudoku-shell {
  width: min(100%, 1120px);
  margin: 30px auto 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(0, 0, 0, .35);
  padding: 20px;
  overflow: hidden
}

.sudoku-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px
}

.sudoku-toolbar button, .sudoku-toolbar select, .sudoku-toolbar input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111;
  color: var(--text);
  padding: 10px 12px
}

.sudoku-layout {
  display: grid;
  grid-template-columns:minmax(360px, 650px) minmax(260px, 1fr);
  gap: 20px;
  align-items: start
}

.sudoku-grid {
  width: 100%;
  max-width: 650px;
  display: grid;
  grid-template-columns:repeat(9, minmax(0, 1fr));
  grid-template-rows:repeat(9, minmax(0, 1fr));
  border: 4px solid #2a2a2a;
  background: #2a2a2a;
  gap: 2px;
  aspect-ratio: 1/1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35)
}

.sudoku-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #1c1c1c;
  border: 1px solid #101010;
  display: grid;
  place-items: center
}

.sudoku-cell:nth-child(3n) {
  border-right: 5px solid #2f2f2f
}

.sudoku-cell:nth-child(9n) {
  border-right: 1px solid #101010
}

.sudoku-cell:nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(n+46):nth-child(-n+54) {
  border-bottom: 5px solid #2f2f2f
}

.cell-input {
  width: 76%;
  height: 46%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #060606;
  background: linear-gradient(180deg, #252525, #171717);
  color: #cfc6b8;
  font-size: clamp(20px, 3.5vw, 34px);
  line-height: 1;
  text-align: center;
  font-weight: 700;
  caret-color: var(--gold-2);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08)
}

.sudoku-cell.given .cell-input {
  color: #e8dfd1
}

.sudoku-cell.conflict .cell-input {
  background: #401717;
  color: #fff
}

.cell-input:focus {
  box-shadow: 0 0 0 3px #d4c800, inset 0 1px 0 rgba(255, 255, 255, .08);
  border-color: #d4c800
}

.candidate {
  position: absolute;
  top: 5px;
  left: 7px;
  right: 7px;
  display: grid;
  grid-template-columns:repeat(9, 1fr);
  gap: 0;
  font-size: 11px;
  line-height: 1;
  color: #474747;
  pointer-events: none;
  text-align: left
}

.candidate span {
  min-height: 11px
}

.candidate .active {
  color: #0a31ff;

}

.candidate .last {
  color: #12a812
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
  min-width: 0
}

.history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.history button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #151515;
  color: var(--muted)
}

textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #090909;
  color: var(--text);
  padding: 12px
}

.small {
  font-size: 13px;
  color: #93876e
}

.hidden {
  display: none
}

@media (max-width: 980px) {
  .sudoku-layout {
    grid-template-columns:1fr
  }

  .sudoku-grid {
    margin: auto
  }
}

@media (max-width: 860px) {
  .menu-button {
    display: block
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    background: #080808;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px
  }

  .nav-links.open {
    display: flex
  }

  .hero-grid, .split {
    grid-template-columns:1fr
  }

  .cards, .gallery {
    grid-template-columns:1fr
  }

  .cta {
    display: block
  }

  .hero {
    padding-top: 52px
  }
}

@media (max-width: 560px) {
  .sudoku-shell {
    padding: 12px;
    border-radius: 20px
  }

  .sudoku-grid {
    border-width: 3px;
    gap: 1px
  }

  .sudoku-cell:nth-child(3n) {
    border-right-width: 3px
  }

  .sudoku-cell:nth-child(n+19):nth-child(-n+27), .sudoku-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom-width: 3px
  }

  .cell-input {
    width: 82%;
    height: 48%;
    font-size: clamp(16px, 7vw, 26px)
  }

  .candidate {
    font-size: 8px;
    top: 3px;
    left: 4px;
    right: 4px
  }
}
