/* HAMEDEX STUDIOS — Creator Desk
   Cinematic dark theme · gold metallic serif headings
   Plain static site: no frameworks, no build step. */

:root {
  --bg: #0b0b0e;
  --bg-soft: #121218;
  --surface: #16161d;
  --surface-2: #1c1c25;
  --ink: #f2ede1;
  --muted: #a9a49b;
  --line: #2a2a34;
  --line-strong: #3d3d4a;
  --gold-1: #f7e08b;
  --gold-2: #e3b93e;
  --gold-3: #9a7418;
  --gold-solid: #e3b93e;
  --gold-soft: rgba(227, 185, 62, .12);
  --danger: #ff8e80;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .45);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--gold-2); color: #111; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 8px 12px; background: var(--gold-solid); color: #111; border-radius: 6px;
}
.skip:focus { left: 8px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 14, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .14em;
  text-decoration: none; color: var(--gold-1); white-space: nowrap;
}
.brand small {
  display: block; font-family: var(--sans); font-weight: 600; font-size: .62rem;
  letter-spacing: .28em; color: var(--muted);
}
nav.main-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  text-decoration: none; font-weight: 600; font-size: .85rem; color: var(--muted);
}
nav.main-nav a:hover, nav.main-nav a:focus-visible,
nav.main-nav a[aria-current="page"] { color: var(--gold-1); }

/* ---- Hero ---- */
.hero { padding: 84px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-2); }
h1, h2, h3 { margin-top: 0; }
h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem); line-height: 1.04; letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.12;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0;
}
h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--ink); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 0 20px; border-radius: 999px; border: 1px solid var(--gold-2);
  text-decoration: none; font-weight: 700; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: #141005;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(227,185,62,.28); }
.btn.ghost { background: transparent; color: var(--gold-1); }
.btn.ghost:hover, .btn.ghost:focus-visible { box-shadow: 0 10px 26px rgba(227,185,62,.14); }
.status-note { margin-top: 24px; color: var(--muted); font-size: .86rem; }
.status-note strong { color: var(--ink); }

.hero-card {
  background: linear-gradient(160deg, #191922, #0f0f15 70%);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 40px 34px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 85% -40px, rgba(227,185,62,.16), transparent 70%);
}
.card-title { font-size: .72rem; font-weight: 700; letter-spacing: .24em; color: var(--muted); margin-bottom: 26px; }
.flow { display: grid; gap: 16px; position: relative; }
.flow-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.flow-num {
  width: 40px; height: 40px; border: 1px solid var(--gold-3); border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--gold-2);
}
.flow-item strong { display: block; font-size: 1.02rem; margin-bottom: 2px; color: var(--ink); }
.flow-item p { color: var(--muted); font-size: .9rem; margin: 0; }
.flow-arrow { margin-left: 19px; width: 1px; height: 14px; background: var(--gold-3); }
.proof-note {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; color: var(--gold-1); font-size: 1.02rem;
}

/* ---- Sections ---- */
section.block { padding: 84px 0; }
.section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.04rem; max-width: 560px; margin: 0 0 4px auto; }
.pill {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
}

/* story beats / steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.step { padding: 30px 28px 36px 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 28px; }
.step-no { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-2); }
.step h3 { margin: 40px 0 12px; }
.step p, .step li { color: var(--muted); }
.step ul { padding-left: 18px; margin: 16px 0 0; }
.step li { margin: 7px 0; }

/* production passes */
.pass-section { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.plan-intro { position: sticky; top: 100px; align-self: start; }
.plan-intro blockquote {
  margin: 0 0 24px; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: var(--gold-1);
}
.plan-intro p { color: var(--muted); }
.passes { border-top: 1px solid var(--line-strong); }
.pass { display: grid; grid-template-columns: 92px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pass-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-2); }
.pass h3 { margin-bottom: 8px; }
.pass p { color: var(--muted); margin-bottom: 8px; }
.pass ul { margin: 0; padding-left: 18px; color: var(--muted); }
.pass li { margin: 4px 0; }

/* accordion topics */
.topics { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start; }
.topic-stack { display: grid; gap: 12px; }
.topic {
  width: 100%; text-align: left; border: 1px solid var(--line); color: var(--ink);
  background: var(--surface); border-radius: var(--radius-md); padding: 20px 22px; cursor: pointer;
}
.topic:hover { border-color: var(--line-strong); }
.topic-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.topic strong { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; }
.topic .arrow { font-size: 1.3rem; color: var(--gold-2); transition: transform .2s ease; }
.topic-detail { display: none; padding-top: 12px; color: var(--muted); max-width: 680px; }
.topic[aria-expanded="true"] { border-color: var(--gold-3); background: var(--surface-2); }
.topic[aria-expanded="true"] .topic-detail { display: block; }
.topic[aria-expanded="true"] .arrow { transform: rotate(45deg); }
.side-note {
  background: var(--gold-soft); border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); padding: 36px 30px; align-self: start;
}
.side-note h3 { margin: 14px 0 16px; }
.side-note ol { padding-left: 20px; margin: 0; color: var(--muted); }
.side-note li { margin: 10px 0; }

/* calculator */
.calculator-shell {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.calc-form { padding: 40px; }
.calc-form h3, .calc-result h3 { font-size: 1.6rem; }
.calc-form p { color: var(--muted); }
.field { margin-top: 22px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-wrap .prefix { left: 15px; }
.input-wrap .suffix { right: 15px; }
input[type="number"] {
  width: 100%; min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); padding: 0 48px 0 16px;
}
.with-prefix input { padding-left: 36px; }
input[type="number"]:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.calc-result {
  background: linear-gradient(160deg, #1d1a10, #12100a 75%);
  border-left: 1px solid var(--line-strong);
  color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
}
.result-number {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1;
  color: var(--gold-1); letter-spacing: -.02em; margin: 30px 0 10px; word-break: break-all;
}
.result-label { color: var(--muted); }
.calc-result small { color: var(--muted); line-height: 1.55; display: block; margin-top: 36px; }
.calc-error { color: var(--danger); min-height: 26px; margin-top: 12px; font-size: .9rem; }

/* readiness checklist */
.readiness { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.readiness-copy h3 { font-size: 1.8rem; margin: 18px 0 12px; }
.readiness-copy p { color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.source-links a { font-size: .83rem; font-weight: 700; color: var(--gold-2); }
.checklist { counter-reset: item; border-top: 1px solid var(--line-strong); }
.check { counter-increment: item; display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check::before {
  content: counter(item, decimal-leading-zero); font-size: .72rem; font-weight: 700;
  color: var(--gold-2); padding-top: 4px; letter-spacing: .06em;
}
.check strong { display: block; margin-bottom: 4px; }
.check p { color: var(--muted); margin: 0; font-size: .92rem; }

/* guide cards */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
article.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 30px;
  display: flex; flex-direction: column;
}
article.card .meta { font-size: .68rem; font-weight: 700; letter-spacing: .16em; color: var(--gold-2); }
article.card h3 { margin: 16px 0 12px; font-size: 1.4rem; }
article.card p { color: var(--muted); }
article.card ul { padding-left: 20px; color: var(--muted); margin: 12px 0 0; }
article.card li { margin: 6px 0; }
article.card .card-link { margin-top: auto; padding-top: 20px; }
.card-link a { color: var(--gold-2); font-weight: 700; text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

/* article body */
.article-body { max-width: 760px; }
.article-body .meta { font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--gold-2); }
.article-body h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 26px; }
.article-body p { color: var(--ink); font-size: 1.06rem; }
.article-body p.lede { font-size: 1.2rem; color: var(--muted); }
.article-body ul.key-points {
  list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 12px;
}
.article-body ul.key-points li {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold-2);
  border-radius: var(--radius-sm); padding: 14px 18px; color: var(--muted);
}
.article-body ul.key-points li strong { color: var(--ink); }
.article-body h2 { font-size: 1.7rem; margin: 44px 0 16px; }
.related { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 30px; }
.related h3 { font-size: 1.2rem; margin-bottom: 14px; }
.related ul { padding-left: 20px; color: var(--muted); }
.related a { color: var(--gold-2); font-weight: 600; }

/* closing */
.closing { padding: 90px 0; border-top: 1px solid var(--line); }
.closing-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
.closing h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); margin-bottom: 16px; }
.closing p { color: var(--muted); max-width: 700px; font-size: 1.06rem; }
.download-box { border-left: 4px solid var(--gold-2); padding-left: 24px; }
.download-box p { font-size: .94rem; }

/* QA checklist page */
.qa-list { counter-reset: qa; border-top: 1px solid var(--line-strong); margin-top: 8px; }
.qa-group { padding: 26px 0 6px; }
.qa-group h2 { font-size: 1.35rem; margin-bottom: 6px; }
.qa-item {
  counter-increment: qa; display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.qa-item::before {
  content: counter(qa, decimal-leading-zero); font-size: .72rem; font-weight: 700;
  color: var(--gold-2); padding-top: 5px; letter-spacing: .06em;
}
.qa-item label { font-weight: 500; color: var(--ink); cursor: pointer; }
.qa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.progress { margin: 18px 0 6px; }
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-1)); transition: width .25s ease; }
.progress-text { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* footer */
footer { padding: 30px 0 44px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 26px; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.footer-inner .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--gold-2); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .section-head, .plan-grid, .topics, .calculator-shell, .readiness, .closing-inner { grid-template-columns: 1fr; }
  .section-head { gap: 18px; }
  .section-head p { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 26px 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .step h3 { margin-top: 22px; }
  .plan-intro { position: static; }
  .articles { grid-template-columns: 1fr; }
  .calc-result { border-left: 0; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .topbar-inner { min-height: 58px; }
  nav.main-nav { gap: 12px; }
  nav.main-nav a { font-size: .76rem; }
  .hero { padding: 56px 0 50px; }
  section.block { padding: 60px 0; }
  .calc-form, .calc-result { padding: 28px 22px; }
  .pass { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .topbar, .hero-actions, .qa-actions, footer, .closing, .to-top, .read-progress { display: none !important; }
  body { background: #fff; color: #111; }
  h1, h2 { color: #111; -webkit-text-fill-color: #111; background: none; }
  .qa-item, .check { break-inside: avoid; }
}

/* ---- Engagement upgrades ---- */

/* Hero entrance animation */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  to { background-position: -220% 0; }
}
.hero .eyebrow, .hero h1, .hero .lead, .hero .hero-actions, .hero .status-note, .hero-card {
  animation: hero-rise .7s ease both;
}
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero .hero-actions { animation-delay: .24s; }
.hero .status-note { animation-delay: .32s; }
.hero-card { animation-delay: .2s; }

/* Gold shimmer sweep on the hero headline only */
.hero h1 {
  background: linear-gradient(110deg, var(--gold-3) 0%, var(--gold-2) 35%, var(--gold-1) 50%, var(--gold-2) 65%, var(--gold-3) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hero-rise .7s ease both, shimmer 8s linear infinite;
}

/* Reading progress bar (guide pages) */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  pointer-events: none; background: transparent;
}
.read-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-1));
}

/* Card hover lift */
article.card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
article.card:hover, article.card:focus-within {
  transform: translateY(-5px);
  border-color: var(--gold-3);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(227, 185, 62, .15);
}

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px;
}

/* Back-to-top floating button */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--gold-3); background: rgba(18, 18, 24, .92);
  color: var(--gold-1); font-size: 1.3rem; line-height: 1; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .25s ease;
  backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold-2); }

/* Guide category filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--muted); font-weight: 700; font-size: .82rem; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--gold-3); color: var(--ink); }
.filter-btn.active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-color: var(--gold-2); color: #141005;
}
.filter-count { color: var(--muted); font-size: .85rem; margin-bottom: 24px; }

/* Next-guide chain card */
.next-guide {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 30px; padding: 22px 24px; border-radius: var(--radius-md);
  background: linear-gradient(160deg, #191922, #0f0f15 70%);
  border: 1px solid var(--gold-3); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.next-guide:hover, .next-guide:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.next-kicker {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  color: var(--gold-2); text-transform: uppercase; margin-bottom: 6px;
}
.next-guide strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.next-arrow { font-size: 1.6rem; color: var(--gold-2); flex-shrink: 0; }

/* Newsletter-style signup (mailto, no backend) */
.signup-box {
  margin-top: 70px; padding: 46px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1d1a10, #12100a 75%);
  border: 1px solid var(--gold-3); text-align: center; box-shadow: var(--shadow);
}
.signup-box h2 { margin-bottom: 12px; }
.signup-box p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.signup-box .btn { margin: 0 auto; }
.signup-note { display: block; margin-top: 18px; font-size: .8rem; color: var(--muted); }

@media (max-width: 640px) {
  .signup-box { padding: 36px 24px; }
  .next-guide { padding: 18px; }
}
