/* MasterPreview placeholder — styles
   Aesthetic: warm amber accent on deep cool-slate, geometric + cinematic.
   Inspired by the Ironmarket hero language, rendered as brand-owned CSS art. */

:root {
  --accent:        #ffc107;  /* amber / gold */
  --accent-2:      #ff9d2f;  /* warm orange for gradient depth */
  --accent-dark:   #e0a800;  /* amber hover */
  --slate-950:     #0b1119;  /* deepest background */
  --slate-900:     #0f1620;  /* hero scrim base */
  --slate-800:     #1a2129;  /* near-black slate */
  --slate-700:     #2a3540;  /* dark slate #2 */
  --ink:           #ffffff;
  --muted:         #c8d2dc;  /* cool-gray subtext */
  --muted-dim:     #8b97a3;  /* dimmer gray */
  --border:        rgba(255, 255, 255, 0.10);
  --maxw:          1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Sora', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--slate-950);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1 0 auto; display: flex; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.35);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 7px;
  border: 2px solid var(--slate-900);
  border-radius: 3px;
}
.brand__text { color: var(--ink); }
.brand__accent { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav__links a {
  color: var(--muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--accent);
  transition: right 0.2s ease;
}
.nav__links a:hover::after { right: 0; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  min-height: clamp(600px, 92vh, 940px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% 10%, var(--slate-800) 0%, var(--slate-950) 60%);
  isolation: isolate;
}

/* Generative art layer */
.hero__art { position: absolute; inset: 0; z-index: 0; }

.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.hero__aurora--1 {
  width: 55vw; height: 55vw;
  top: -18%; left: -8%;
  background: radial-gradient(circle at 35% 35%, rgba(255,193,7,0.55), rgba(255,157,47,0.15) 60%, transparent 72%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.hero__aurora--2 {
  width: 48vw; height: 48vw;
  bottom: -22%; right: -10%;
  background: radial-gradient(circle at 60% 60%, rgba(255,157,47,0.40), rgba(255,193,7,0.10) 55%, transparent 70%);
  animation: drift2 28s ease-in-out infinite alternate;
}

/* Faint technical grid */
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 78%);
}

/* Concentric "aperture" rings — the preview motif */
.hero__ring {
  position: absolute;
  top: 50%; right: clamp(-260px, -6vw, -120px);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255,193,7,0.18);
  aspect-ratio: 1;
}
.hero__ring--1 { width: 560px; animation: spin 60s linear infinite; }
.hero__ring--2 { width: 760px; border-color: rgba(255,193,7,0.12); animation: spin 90s linear infinite reverse; }
.hero__ring--3 {
  width: 380px;
  border: 1.5px dashed rgba(255,193,7,0.28);
  animation: spin 40s linear infinite;
}

/* Left-to-right darkening scrim for text legibility */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(11,17,25,0.92) 0%,
    rgba(11,17,25,0.72) 38%,
    rgba(11,17,25,0.35) 68%,
    rgba(11,17,25,0.10) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: 6rem 3rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,193,7,0.14);
  border: 1px solid rgba(255,193,7,0.42);
  color: #ffd54a;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--slate-800);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(255,193,7,0.4);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  border-color: rgba(255,255,255,0.28);
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.hero__caption {
  display: inline-block;
  color: var(--muted-dim);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  flex-shrink: 0;
  background: var(--slate-950);
  border-top: 1px solid var(--border);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  flex-wrap: wrap;
}
.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer__credit {
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.8rem;
  text-align: center;
  flex: 1 1 auto;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer__links a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--accent); }

/* ------------------------------------------------------------ Animations */
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6%, 8%) scale(1.12); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-7%, -6%) scale(1.15); }
}
@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ----------------------------------------------------------- Responsive */
@media (max-width: 720px) {
  .hero { min-height: 88vh; }
  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(11,17,25,0.55) 0%,
      rgba(11,17,25,0.80) 55%,
      rgba(11,17,25,0.95) 100%
    );
  }
  .hero__content { padding-block: 6.5rem 3rem; max-width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer { justify-content: center; text-align: center; }
  .footer__credit { order: 3; flex-basis: 100%; }
  .footer__copy, .footer__links { flex-basis: 100%; justify-content: center; }
  .footer__links { flex-wrap: wrap; }

  /* Nav: brand on top, links centered beneath — avoids overflow on narrow screens */
  .nav { flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding-block: 1rem; }
  .brand { font-size: 1.2rem; }
  .nav__links { gap: 1.25rem; font-size: 0.9rem; flex-basis: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .nav__links { gap: 0.9rem; font-size: 0.82rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero__aurora, .hero__ring { animation: none !important; }
}
