/* ============================================================
   ASSETANVIL — design system
   A forge: raw material struck into finished, ready-to-ship work.
   Dark steel surfaces with a molten-heat accent, broken by one
   light "ground steel" section so the page reads as two-tone
   rather than a single dark wall.
   ============================================================ */

:root {
  /* steel (dark) */
  --steel-900: #14161b;
  --steel-850: #181b21;
  --steel-800: #1d212a;
  --steel-700: #262b35;
  --steel-600: #333a46;

  /* heat */
  --molten: #ff6a2b;
  --molten-soft: #ff8a4c;
  --ember: #ffb02e;

  /* light "ground steel" surface */
  --ground: #ece9e2;
  --ground-card: #f6f4ef;
  --ground-line: #d9d5cb;

  /* text */
  --on-dark: #eceef2;
  --on-dark-mut: #9aa2af;
  --on-dark-dim: #6a7280;
  --on-light: #1a1c21;
  --on-light-mut: #565b64;

  --font-display: "Anton", sans-serif;
  --font-ui: "Archivo", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --maxw: 1140px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--steel-900);
  color: var(--on-dark);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--molten);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- shared bits ---------- */
.eyebrow, .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--molten-soft);
}
.eyebrow .sep { color: var(--on-dark-dim); margin: 0 0.35rem; }

.kicker { display: block; margin-bottom: 0.9rem; }
.kicker-dark { color: var(--molten); }

.section-head { margin-bottom: 2.6rem; max-width: 40rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}
.section-lede, .col-lede {
  color: var(--on-dark-mut);
  margin-top: 0.9rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(20, 22, 27, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-700);
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 24px; height: 24px; }
.anvil-top { fill: var(--molten); }
.anvil-base { fill: var(--ember); }
.brand-name {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-mut);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--on-dark); }

.nav-cta {
  color: var(--steel-900) !important;
  background: var(--molten);
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--molten-soft); color: var(--steel-900) !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.82rem 1.6rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--molten); color: var(--steel-900); }
.btn-primary:hover { background: var(--molten-soft); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem 5rem;
  border-bottom: 1px solid var(--steel-700);
}
.forge-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(255,106,43,0.22), rgba(255,106,43,0.06) 45%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow { margin-bottom: 1.3rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-sub {
  max-width: 30rem;
  color: var(--on-dark-mut);
  font-size: 1.1rem;
  margin-bottom: 2.1rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--on-dark-dim);
  max-width: 16rem;
}

/* hero fanned cluster */
.hero-stage {
  position: relative;
  height: 360px;
}
.hero-card {
  position: absolute;
  width: 78%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--steel-800);
  border: 1px solid var(--steel-600);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45);
}
.hero-card .mock, .hero-card .mock-img { width: 100%; display: block; }
.hero-card--back  { top: 4%;  left: 2%;  transform: rotate(-7deg) scale(0.92); opacity: 0.8; z-index: 1; }
.hero-card--mid   { top: 22%; right: 0;  transform: rotate(5deg)  scale(0.96); opacity: 0.9; z-index: 2; }
.hero-card--front { top: 12%; left: 16%; transform: rotate(-1deg); z-index: 3; }

/* ---------- trust strip ---------- */
.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  background: var(--steel-850);
  border-bottom: 1px solid var(--steel-700);
  font-size: 0.9rem;
  color: var(--on-dark-mut);
}
.strip b { color: var(--on-dark); font-weight: 700; }
.strip-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--molten); display: inline-block; }

/* ---------- showcase ---------- */
.showcase {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.noscript-note { color: var(--on-dark-mut); }

.theme-card {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.theme-card:hover { transform: translateY(-3px); border-color: var(--molten); }
.theme-clickable { cursor: pointer; }

.theme-frame {
  position: relative;
  background: var(--steel-800);
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--steel-700);
}
.theme-frame .mock, .theme-frame .mock-img {
  width: 100%;
  display: block;
  border-radius: 6px 6px 0 0;
}

/* hover hint: real screenshot behind every card */
.theme-view-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 4px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--steel-900);
  background: var(--molten);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.theme-clickable:hover .theme-view-hint,
.theme-clickable:focus-visible .theme-view-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.theme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}
.theme-name { font-weight: 700; font-size: 0.98rem; }
.theme-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-mut);
  border: 1px solid var(--steel-600);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.theme-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-style: dashed;
  border-color: var(--steel-600);
  background: transparent;
}
.theme-more:hover { transform: none; border-color: var(--molten); }
.more-inner { text-align: center; }
.more-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--molten);
  line-height: 1;
}
.more-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-mut);
}

/* ---------- lightbox (real screenshots) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(4px);
}

.lightbox-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--steel-850);
  border: 1px solid var(--steel-600);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem 0.7rem 1.1rem;
  border-bottom: 1px solid var(--steel-700);
  background: var(--steel-900);
}

.lightbox-title {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.lightbox-name { font-weight: 700; font-size: 1.02rem; }
.lightbox-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-mut);
  border: 1px solid var(--steel-600);
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
}

.lightbox-controls { display: inline-flex; gap: 0.4rem; }
.lightbox-btn {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1;
  color: var(--on-dark);
  background: var(--steel-800);
  border: 1px solid var(--steel-600);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lightbox-btn:hover { border-color: var(--molten); color: var(--molten); }
.lightbox-close { font-size: 1.25rem; }
.lightbox-close:hover { background: var(--molten); border-color: var(--molten); color: var(--steel-900); }

.lightbox-scroll {
  flex: 1 1 auto;
  min-height: 0; /* lets the flex item shrink so tall screenshots scroll */
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--steel-800);
}
.lightbox-img {
  width: 100%;
  display: block;
}

.lightbox-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--on-dark-dim);
  text-align: center;
  padding: 0.5rem;
  border-top: 1px solid var(--steel-700);
  background: var(--steel-900);
}

/* lock page scroll while the lightbox is open */
body.lightbox-open { overflow: hidden; }

/* ---------- what's inside (light) ---------- */
.inside {
  background: var(--ground);
  color: var(--on-light);
  border-top: 1px solid var(--steel-700);
  border-bottom: 1px solid var(--steel-700);
}
.inside-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.inside .section-head h2 { color: var(--on-light); }

.inside-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.col-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.inside .col-lede { color: var(--on-light-mut); margin-bottom: 1.2rem; }

.check-list { list-style: none; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.7rem;
  color: var(--on-light-mut);
  font-size: 0.96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  background: var(--molten);
  transform: rotate(45deg);
}

.inside-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--ground-line);
}
.foot-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--molten);
  margin-bottom: 0.5rem;
}
.foot-item p { color: var(--on-light-mut); font-size: 0.92rem; }

/* ---------- pricing ---------- */
.pricing {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.price-card {
  max-width: 30rem;
  background: var(--steel-850);
  border: 1px solid var(--steel-600);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--molten), var(--ember));
}
.price-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.price-name { font-weight: 700; font-size: 1.05rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--molten);
  line-height: 1;
}
.price-sub { font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-dark-mut); }
.price-list { margin: 1.4rem 0 1.6rem; }
.price-list li { color: var(--on-dark-mut); }
.price-fine {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--on-dark-dim);
  text-align: center;
}

/* ---------- faq ---------- */
.faq {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.faq-list details { border-bottom: 1px solid var(--steel-700); }
.faq-list summary {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.04rem;
  padding: 1.15rem 2rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--on-dark-dim);
}
.faq-list details[open] summary::after { content: "\2212"; color: var(--molten); }
.faq-list details p {
  color: var(--on-dark-mut);
  padding: 0 0 1.25rem;
  max-width: 46rem;
  font-size: 0.95rem;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--steel-700); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-brand { font-family: var(--font-mono); font-size: 0.82rem; color: var(--on-dark-mut); }
.footer-links a { font-size: 0.88rem; color: var(--on-dark-mut); text-decoration: none; }
.footer-links a:hover { color: var(--on-dark); }

/* ---------- thanks page ---------- */
.thanks-wrap {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.thanks-card { max-width: 32rem; }
.thanks-card .eyebrow { margin-bottom: 0.9rem; }
.thanks-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.thanks-card p { color: var(--on-dark-mut); margin-bottom: 1.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stage { height: 300px; max-width: 460px; }
  .inside-cols { grid-template-columns: 1fr; gap: 2rem; }
  .inside-foot { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 560px) {
  .site-nav { gap: 0.9rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .hero-stage { height: 250px; }
  .strip { gap: 0.7rem; font-size: 0.82rem; }
  .showcase, .pricing { padding: 3.5rem 1.25rem; }
  .inside-inner { padding: 3.5rem 1.25rem; }
  .lightbox { padding: 1rem 0.5rem; }
  .lightbox-hint { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .forge-glow { animation: none; }
  .theme-card, .theme-card:hover { transform: none; transition: border-color 0.15s ease; }
  .theme-view-hint { transition: opacity 0.15s ease; transform: translate(-50%, 0); }
}
