:root {
  --bg: #080b12;
  --bg-soft: #0d121d;
  --panel: rgba(18, 25, 38, 0.78);
  --panel-strong: #121925;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(232, 186, 86, 0.34);
  --text: #f5f1e8;
  --muted: #9ba5b6;
  --gold: #e8ba56;
  --gold-soft: #f5d98e;
  --max: 1180px;
  --radius: 26px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(232, 186, 86, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(85, 111, 170, 0.08), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-shell { overflow: clip; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--gold-soft);
  background: linear-gradient(145deg, rgba(232, 186, 86, 0.13), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--text); }
.nav-toggle { display: none; }

.section-pad {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: center;
  gap: 64px;
  padding-top: 84px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: .78rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 28px;
  max-width: 760px;
  font-size: clamp(3.3rem, 8vw, 7.9rem);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 800;
}
h1 span { color: var(--gold-soft); }
.hero-lede {
  max-width: 670px;
  margin-bottom: 34px;
  color: #c7cfdb;
  font-size: clamp(1.02rem, 1.8vw, 1.26rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 760;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #17120a; border-color: var(--gold); }
.button-primary:hover { background: var(--gold-soft); }
.button-ghost { color: var(--text); background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: rgba(255,255,255,.26); }

.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: end;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.006));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(232, 186, 86, .18);
  border-radius: 30%;
  transform: rotate(20deg);
}
.hero-art::after { inset: 27%; transform: rotate(-12deg); border-color: rgba(255,255,255,.09); }
.orb { position: absolute; border-radius: 999px; filter: blur(1px); }
.orb-one { width: 190px; height: 190px; right: -35px; top: -35px; background: rgba(232,186,86,.17); box-shadow: 0 0 90px rgba(232,186,86,.15); }
.orb-two { width: 120px; height: 120px; left: 8%; bottom: 9%; background: rgba(70,94,146,.22); box-shadow: 0 0 80px rgba(70,94,146,.2); }
.grid-plane {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
}
.hero-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -.08em;
  color: rgba(245,241,232,.91);
  text-shadow: 0 10px 50px rgba(0,0,0,.4);
}

.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .about-copy h2, .contact-section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.section-heading > p:last-child, .about-copy > p:last-child, .contact-copy > p { color: var(--muted); font-size: 1.05rem; }
.section-heading-row { max-width: none; display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 42px; align-items: end; }
.section-heading-row > p { margin-bottom: 10px; }

.feature-card, .tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: var(--shadow);
}
.feature-card { padding: clamp(24px, 5vw, 52px); position: relative; overflow: hidden; }
.feature-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background: linear-gradient(var(--gold), transparent 85%); }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.pill { display:inline-flex; min-height: 29px; align-items:center; padding: 0 11px; border-radius:999px; color:#1b150b; background:var(--gold); font-size:.72rem; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.pill-muted { color: var(--gold-soft); background: rgba(232,186,86,.11); border: 1px solid rgba(232,186,86,.18); }
.muted { color:var(--muted); font-size:.82rem; font-weight:700; }
.game-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(270px,.9fr); gap:60px; align-items:center; }
.card-kicker { color: var(--muted); font-size:.86rem; font-weight:700; }
.game-card h3, .tool-card h3 { margin-bottom:18px; font-size:clamp(2.4rem,5vw,4.6rem); line-height:.95; letter-spacing:-.05em; }
.card-copy { max-width:650px; margin-bottom:28px; color:#c4ccd9; font-size:1.05rem; }
.text-link, .email-link { display:inline-flex; align-items:center; gap:9px; color:var(--gold-soft); text-underline-offset:5px; font-weight:760; }
.text-link:hover, .email-link:hover { color:#fff2c4; }

.dice-cluster { min-height:300px; position:relative; }
.die { position:absolute; width:124px; height:124px; padding:23px; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); place-items:center; border:1px solid rgba(255,255,255,.15); border-radius:24px; background:linear-gradient(145deg,#1b2432,#101721); box-shadow:0 22px 55px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.06); }
.die i { width:12px; height:12px; border-radius:50%; background:var(--gold-soft); box-shadow:0 0 18px rgba(232,186,86,.22); }
.die-a { left:6%; top:42%; transform:rotate(-12deg); }
.die-b { right:10%; top:7%; transform:rotate(13deg); }
.die-c { right:2%; bottom:2%; transform:rotate(-4deg); }
.die-a i:nth-child(1){grid-area:1/1}.die-a i:nth-child(2){grid-area:1/3}.die-a i:nth-child(3){grid-area:2/2}.die-a i:nth-child(4){grid-area:3/1}.die-a i:nth-child(5){grid-area:3/3}
.die-b i:nth-child(1){grid-area:1/1}.die-b i:nth-child(2){grid-area:1/2}.die-b i:nth-child(3){grid-area:1/3}.die-b i:nth-child(4){grid-area:3/1}.die-b i:nth-child(5){grid-area:3/2}.die-b i:nth-child(6){grid-area:3/3}
.die-c i:nth-child(1){grid-area:1/1}.die-c i:nth-child(2){grid-area:2/2}.die-c i:nth-child(3){grid-area:3/3}

.tool-card { padding: clamp(24px,4vw,42px); display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:start; }
.tool-icon { width:74px; height:74px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:20px; color:var(--gold-soft); background:rgba(232,186,86,.06); font:700 2rem Georgia,serif; }
.tool-copy .card-meta { margin-bottom:18px; }
.tool-card h3 { font-size:clamp(1.75rem,4vw,3rem); margin-bottom:12px; }
.tool-card p { max-width:760px; color:#c3ccd8; }
.tool-card strong { color:var(--text); font-weight:700; }
.fine-print { margin-bottom:0; color:#738093 !important; font-size:.78rem; }

.about-section { display:grid; grid-template-columns:minmax(120px,.45fr) minmax(0,1.55fr); gap:60px; border-top:1px solid var(--line); }
.about-number { color:rgba(232,186,86,.18); font-weight:900; font-size:clamp(5rem,14vw,11rem); line-height:.75; letter-spacing:-.08em; }
.about-copy { max-width:780px; }
.about-copy > p:last-child { max-width:680px; }

.contact-section { border-top:1px solid var(--line); }
.contact-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr); gap:60px; align-items:end; }
.contact-section h2 { margin-bottom:0; }
.contact-copy { padding-bottom:10px; }
.email-link { margin-top:14px; font-size:clamp(1.05rem,2.2vw,1.45rem); }
.site-footer { width:min(calc(100% - 32px),var(--max)); margin:0 auto; padding:36px 0 46px; display:flex; justify-content:space-between; gap:24px; align-items:center; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; }
.brand-footer { color:var(--text); }
.site-footer p { margin:0; }

:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 6px; }

@media (max-width: 860px) {
  .site-header { min-height:70px; }
  .nav-toggle { width:44px; height:44px; padding:0; display:grid; place-content:center; gap:6px; border:0; color:var(--text); background:transparent; cursor:pointer; }
  .nav-toggle span { width:22px; height:1px; background:currentColor; transition:transform .18s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform:translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform:translateY(-3.5px) rotate(-45deg); }
  .site-nav { position:absolute; top:70px; left:0; right:0; display:none; padding:18px 16px 24px; flex-direction:column; align-items:stretch; gap:4px; border-bottom:1px solid var(--line); background:rgba(8,11,18,.97); box-shadow:0 20px 45px rgba(0,0,0,.22); }
  .site-nav.is-open { display:flex; }
  .site-nav a { min-height:46px; display:flex; align-items:center; padding:0 10px; }
  .hero { min-height:auto; grid-template-columns:1fr; gap:54px; padding-top:74px; }
  .hero-art { max-width:520px; justify-self:start; }
  .game-layout, .contact-grid { grid-template-columns:1fr; }
  .section-heading-row { grid-template-columns:1fr; gap:0; }
  .dice-cluster { min-height:250px; max-width:430px; width:100%; }
  .about-section { grid-template-columns:1fr; gap:36px; }
  .about-number { font-size:5.5rem; }
}

@media (max-width: 560px) {
  .section-pad { padding:82px 0; }
  .hero { padding-top:58px; }
  h1 { font-size:clamp(3.05rem,16vw,5.2rem); }
  .hero-art { border-radius:28px; }
  .feature-card, .tool-card { border-radius:22px; }
  .tool-card { grid-template-columns:1fr; }
  .tool-icon { width:60px; height:60px; border-radius:16px; }
  .dice-cluster { min-height:215px; transform:scale(.88); transform-origin:left center; width:113%; }
  .site-footer { align-items:flex-start; flex-direction:column; }
}

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