/* =========================================
   IronVein — Styles (clean, crisp, masculine)
   ========================================= */

/* ----- Reset / Base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: rgba(255,255,255,0.92);
  overflow-x: hidden;
}

/* Helpful defaults */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

:root{
  --bg: #000;
  --panel: rgba(255,255,255,0.04);
  --panel2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --border2: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66);
  --muted2: rgba(255,255,255,0.52);
  --gold: rgba(200,162,74,0.92);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
}

/* ----- Layout Containers ----- */
.page {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.home { padding-top: 18px; }

/* ----- Topbar ----- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar__inner{
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__brand{
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: rgba(255,255,255,0.86);
}

.topbar__nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.80);
}

.topbar__nav a{
  padding: 8px 10px;
  border-radius: 999px;
}

.topbar__nav a:not(.btn):hover{
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

/* ----- Buttons ----- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none !important;
  line-height: 1;
  white-space: nowrap;
}

.btn--ghost{
  background: rgba(255,255,255,0.03);
}

.btn--ghost:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.btn--primary{
  background: rgba(200,162,74,0.14);
  border-color: rgba(200,162,74,0.34);
  color: rgba(255,255,255,0.96);
}

.btn--primary:hover{
  background: rgba(200,162,74,0.22);
  border-color: rgba(200,162,74,0.48);
  text-decoration: none;
}

/* ----- Hero ----- */
.hero{
  margin-top: 18px;
  padding: 14px 0 8px;
}

.hero__hook{
  margin: 10px 0 0;
  max-width: 720px;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.96);
}

.hero__clarifier{
  margin: 14px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.38;
  color: rgba(255,255,255,0.80);
}

.hero__support{
  margin: 16px 0 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.64);
}

.hero__actions{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Keep these in case other pages use them */
.hero__head{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 18px 0 6px;
}

.hero__rule{
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.hero__title{
  margin: 0;
  text-align: center;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: 0.20em;
  font-weight: 800;
  color: rgba(255,255,255,0.96);
}

.hero__tagline{
  margin: 16px auto 0;
  max-width: 720px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.25;
  color: rgba(255,255,255,0.80);
  text-align: left;
}

.hero__subline{
  margin: 12px auto 0;
  max-width: 720px;
  font-size: 18px;
  color: rgba(255,255,255,0.72);
}

.gold{ color: var(--gold); }

/* ----- Store pills ----- */
.store{
  margin: 18px auto 0;
  max-width: 720px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.store__pill{
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.store__pill-title{
  font-weight: 700;
  font-size: 18px;
  color: rgba(255,255,255,0.92);
}

.store__pill-sub{
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
}

/* ----- Main Grid ----- */
.grid{
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

/* ----- Cards ----- */
.card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: radial-gradient(1200px 500px at 50% 0%,
      rgba(200,162,74,0.14),
      rgba(255,255,255,0.03) 45%,
      rgba(255,255,255,0.02) 100%);
  box-shadow: var(--shadow);
}

/* ----- Challenge card ----- */
.challenge-card{
  margin-top: 26px;
  padding: 26px 24px;
  background: radial-gradient(1000px 420px at 50% 0%,
      rgba(200,162,74,0.10),
      rgba(255,255,255,0.03) 46%,
      rgba(255,255,255,0.02) 100%);
}

.challenge-card__eyebrow{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
  font-weight: 800;
}

.challenge-card__title{
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  color: rgba(255,255,255,0.96);
}

.challenge-card__copy{
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
}

.challenge-card__steps{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.challenge-step{
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  color: rgba(255,255,255,0.86);
  text-align: center;
}

.challenge-card__warning{
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.challenge-card__cta{
  margin: 14px 0 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(200,162,74,0.86);
  text-transform: uppercase;
  font-weight: 700;
}

/* ----- Score card ----- */
.score{
  padding: 30px 28px;
}

.score__label{
  letter-spacing: 0.28em;
  font-weight: 800;
  font-size: 18px;
  color: rgba(255,255,255,0.72);
}

@keyframes veinGlow{
  0%{
    text-shadow:
      0 0 6px rgba(200,162,74,0.18),
      0 0 12px rgba(200,162,74,0.10);
    transform: translateZ(0);
    opacity: 0.96;
  }
  50%{
    text-shadow:
      0 0 10px rgba(200,162,74,0.42),
      0 0 22px rgba(200,162,74,0.18);
    opacity: 1;
  }
  100%{
    text-shadow:
      0 0 6px rgba(200,162,74,0.18),
      0 0 12px rgba(200,162,74,0.10);
    opacity: 0.96;
  }
}

.score__value{
  margin-top: 14px;
  font-size: clamp(58px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.96);
  animation: veinGlow 4.2s ease-in-out infinite;
}

.score__meta{
  margin-top: 6px;
  font-size: 22px;
  color: rgba(255,255,255,0.60);
}

.score__desc{
  margin-top: 14px;
  font-size: 18px;
  color: rgba(255,255,255,0.52);
}

.score__title{
  margin-top: 20px;
  font-size: 22px;
  color: rgba(255,255,255,0.86);
}

.score__title-name{
  color: rgba(255,255,255,0.96);
}

.score__philosophy{
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.10em;
  color: rgba(200,162,74,0.78);
}

/* ----- Titles list ----- */
.titles{
  display: grid;
  gap: 14px;
}

.titleRow{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.titleRow__state{
  font-size: 13px;
  letter-spacing: 0.26em;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
}

.titleRow__name{
  font-size: 26px;
  color: rgba(255,255,255,0.92);
}

.titleRow__icon{
  display: flex;
  justify-content: flex-end;
  font-size: 18px;
  color: rgba(255,255,255,0.55);
}

.titleRow--current{
  border-color: rgba(255,255,255,0.14);
}

.titleRow--locked .titleRow__name{
  color: rgba(255,255,255,0.78);
}

.lock{
  opacity: 0.9;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(200,162,74,0.85);
  justify-self: end;
}

/* ----- Footer ----- */
.footer{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer--minimal{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__mini-left{
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.50);
}

.footer__mini-right{
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__mini-right a{
  color: rgba(255,255,255,0.64);
}

.footer__mini-right a:hover{
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}

.dotSep{
  color: rgba(255,255,255,0.35);
}

/* =========================================
   Mobile polish
   ========================================= */
@media (max-width: 860px){
  .grid{
    grid-template-columns: 1fr;
  }

  .hero__hook,
  .hero__clarifier,
  .hero__support,
  .hero__tagline,
  .hero__subline,
  .store{
    text-align: left;
    max-width: 100%;
  }

  .challenge-card__steps{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px){
  .page{
    width: calc(100% - 28px);
  }

  .topbar__inner{
    width: calc(100% - 28px);
  }

  .topbar__nav{
    gap: 10px;
    font-size: 13px;
  }

  .btn{
    padding: 9px 12px;
  }

  .hero__head{
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }

  .hero__title{
    letter-spacing: 0.16em;
  }

  .store{
    gap: 12px;
  }

  .store__pill{
    width: 100%;
    min-width: 0;
  }

  .hero__actions{
    gap: 10px;
  }

  .hero__actions .btn{
    width: 100%;
  }

  .challenge-card{
    padding: 22px 18px;
  }

  .challenge-card__steps{
    grid-template-columns: 1fr;
  }

  .score{
    padding: 26px 20px;
  }

  .titleRow{
    grid-template-columns: 84px 1fr 34px;
    padding: 16px 16px;
  }

  .titleRow__name{
    font-size: 22px;
  }
}

/* =========================================
   ADDITIONS — Mobile + Policy page polish
   ========================================= */

.topbar__nav a,
.btn,
.store__pill {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 720px){
  .topbar__inner{
    padding: 12px 0;
  }

  .topbar__nav{
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar__nav a:not(.btn){
    padding: 8px 10px;
  }
}

@media (max-width: 380px){
  .topbar__brand{
    letter-spacing: 0.14em;
  }
  .btn{
    padding: 8px 10px;
  }
}

.hero__links{
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.hero__links a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
}
.hero__links a:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.page.policy{
  padding-top: 18px;
}

.policy__panel{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 55px rgba(0,0,0,0.40);
  padding: 26px 24px;
}

.policy__panel h1{
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.policy__panel h2{
  margin: 18px 0 10px;
  font-size: 18px;
  color: rgba(255,255,255,0.88);
}

.policy__panel p,
.policy__panel li{
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  font-size: 15px;
}

.policy__panel ul{
  margin: 10px 0 0 18px;
}

.policy__panel hr{
  border: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin: 18px 0;
}

.policy__updated{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 520px){
  .policy__panel{
    padding: 22px 18px;
  }
}