/* ============ Astera.cards landing ============ */
:root {
  --gold: #e1ac4c;
  --gold-bright: #f3cd7e;
  --gold-deep: #a9762a;
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-3: #1a1a1a;
  --line: rgba(225, 172, 76, 0.25);
  --text: #f4f0e8;
  --text-dim: rgba(244, 240, 232, 0.62);
  --radius: 18px;
  --font:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-bottom: 40px;
}

.gold-text {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 40%, var(--gold-bright) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.lede {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 34rem;
}

.fineprint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: #140d02;
  box-shadow: 0 6px 28px rgba(225, 172, 76, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 8px 36px rgba(225, 172, 76, 0.55);
  transform: translateY(-1px);
}

.btn-line {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: none;
  box-shadow: none;
}

.nav-cta:hover {
  background: rgba(225, 172, 76, 0.12);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  padding: clamp(60px, 9vh, 120px) clamp(20px, 5vw, 64px) 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(225, 172, 76, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

/* ============ The cards (hero visual) ============ */
.hero-cards {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.card-fan {
  position: relative;
  width: min(300px, 68vw);
  aspect-ratio: 3 / 4.2;
}

.acard {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #241a08, #14100a 60%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.acard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(150deg, var(--gold-bright), transparent 30%, transparent 65%, var(--gold-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.acard-left {
  transform: rotate(-11deg) translateX(-56%) translateY(6%) scale(0.92);
  filter: brightness(0.72);
}

.acard-right {
  transform: rotate(11deg) translateX(56%) translateY(6%) scale(0.92);
  filter: brightness(0.72);
}

.acard-center {
  z-index: 2;
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
}

.acard-art {
  flex: 1;
  border-radius: calc(var(--radius) - 8px);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.art-a {
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(225, 172, 76, 0.5), transparent 55%),
    linear-gradient(200deg, #3a2c10, #191002);
}

.art-b {
  background:
    radial-gradient(130% 100% at 80% 10%, rgba(243, 205, 126, 0.55), transparent 55%),
    radial-gradient(120% 120% at 15% 90%, rgba(169, 118, 42, 0.6), transparent 60%),
    linear-gradient(180deg, #2c1f08, #120c03);
}

.art-c {
  background:
    radial-gradient(110% 90% at 75% 85%, rgba(225, 172, 76, 0.42), transparent 55%),
    linear-gradient(160deg, #33260c, #171004);
}

.acard-mark {
  width: 46%;
  border-radius: 18%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.acard-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 246, 218, 0.16) 47%, rgba(255, 246, 218, 0.02) 55%, transparent 70%);
  background-size: 260% 260%;
  background-position: 80% 80%;
  pointer-events: none;
  border-radius: var(--radius);
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    background-position: 85% 85%;
  }
  50% {
    background-position: 15% 15%;
  }
}

.acard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px 6px;
  font-size: 0.82rem;
}

.acard-name {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.acard-edition {
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============ Ticker ============ */
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ink-2);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: ticker 26s linear infinite;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  white-space: nowrap;
}

.ticker-track i {
  font-style: normal;
  color: var(--text-dim);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ============ Sections ============ */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(70px, 10vh, 120px) clamp(20px, 5vw, 64px);
}

.section-dark {
  max-width: none;
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-dark > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark h2 {
  margin-bottom: 48px;
}

.grid.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.feature-num {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ============ Steps ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.steps h3 {
  font-size: 1.1rem;
  margin: 14px 0 8px;
}

.steps p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  font-weight: 800;
  background: rgba(225, 172, 76, 0.08);
}

/* ============ Closer ============ */
.closer-card {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(48px, 8vw, 80px) 24px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(225, 172, 76, 0.14), transparent 60%),
    var(--ink-2);
}

.closer-card .cta-row {
  justify-content: center;
}

.closer-card .lede {
  margin: 12px auto 0;
}

.closer-mark {
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(225, 172, 76, 0.25);
}

/* ============ Footer ============ */
.footer {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px clamp(20px, 5vw, 64px) 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer img {
  height: 20px;
  width: auto;
}

.footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer a {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold-bright);
}

.footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-basis: 100%;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
  }

  .hero-copy .lede {
    margin: 0 auto;
  }

  .cta-row {
    justify-content: center;
  }

  .hero-cards {
    margin-top: 48px;
    order: 2;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }
}

/* ============ Legal / support pages ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) 20px 100px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 44px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 10px 0;
  display: grid;
  gap: 8px;
}

.legal a {
  color: var(--gold-bright);
}

.legal strong {
  color: var(--text);
}

.legal .backlink {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
