/*
 * AuraLoop Cosmic main stylesheet.
 *
 * Design Philosophy Reminder:
 * - Dark cosmic canvas, luminous gold accents, disciplined contrast.
 * - Editorial serif headings meet quiet sans-serif support text.
 * - Asymmetrical layout and layered cards should feel intentional, not generic.
 */

:root {
  --bg: #05070b;
  --bg-soft: #0a1018;
  --panel: rgba(13, 17, 24, 0.84);
  --panel-strong: rgba(16, 20, 29, 0.96);
  --text: #f4ebdb;
  --muted: #b7b0a1;
  --line: rgba(237, 200, 141, 0.2);
  --line-strong: rgba(237, 200, 141, 0.4);
  --gold: #d8aa5b;
  --gold-deep: #a77533;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --radius-sm: 18px;
  --content: min(1180px, calc(100vw - 2rem));
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 170, 91, 0.06), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(103, 189, 223, 0.08), transparent 24%),
    linear-gradient(180deg, #04060a 0%, #080d13 45%, #06080d 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

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

a:hover {
  color: #fff4dd;
}

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

.container {
  width: var(--content);
  margin: 0 auto;
}

.site-main {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 7, 12, 0.72);
  border-bottom: 1px solid rgba(216, 170, 91, 0.12);
}

.site-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.site-branding__link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.site-branding__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4dd 0%, var(--gold) 42%, rgba(216, 170, 91, 0.15) 100%);
  box-shadow: 0 0 18px rgba(216, 170, 91, 0.5);
}

.site-nav__menu,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__menu {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav__menu a,
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-header__actions,
.hero-shell__actions,
.cta-banner__actions,
.gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 220ms ease;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.button--accent,
button,
input[type="submit"] {
  background: linear-gradient(135deg, #e7bc75 0%, #b88037 100%);
  color: #120f0a;
  box-shadow: 0 12px 32px rgba(184, 128, 55, 0.25);
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.eyebrow,
.footer-eyebrow,
.info-card__label,
.hero-shell__panel-label,
.element-card__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-shell {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-shell__media,
.hero-shell__overlay,
.hero-shell__video {
  position: absolute;
  inset: 0;
}

.hero-shell__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shell__overlay {
  background:
    linear-gradient(90deg, rgba(4, 5, 8, 0.88) 0%, rgba(4, 5, 8, 0.66) 38%, rgba(4, 5, 8, 0.42) 54%, rgba(4, 5, 8, 0.72) 100%),
    radial-gradient(circle at 60% 36%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(4, 5, 8, 0.38) 0%, rgba(4, 5, 8, 0.72) 100%);
}

.hero-shell__grid {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 2rem;
  padding: 7rem 0 4rem;
}

.hero-shell__copy {
  max-width: 52rem;
}

.hero-shell h1,
.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.hero-shell__lead,
.page-hero__lead {
  max-width: 44rem;
  font-size: 1.08rem;
}

.hero-shell__panel,
.info-card,
.policy-card,
.pathway-card,
.campaign-layout__aside,
.elemental-detail,
.gateway-shell,
.cta-banner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-shell__panel {
  padding: 1.5rem;
  align-self: end;
}

.signal-list,
.flow-list {
  padding-left: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.hero-shell__stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.hero-shell__stat-grid div {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-shell__stat-grid strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-display);
  color: var(--text);
}

.hero-shell__stat-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-shell {
  padding: 6rem 0;
}

.section-shell--dense {
  padding-top: 4.75rem;
}

.section-shell--split {
  padding-top: 2rem;
}

.section-shell--cta {
  padding-top: 0;
  padding-bottom: 7rem;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.element-grid,
.pathway-grid__cards,
.policy-grid,
.prose-grid {
  display: grid;
  gap: 1.25rem;
}

.element-grid,
.pathway-grid__cards,
.policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.element-card {
  position: relative;
  padding: 1.5rem;
  min-height: 20rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--element-accent) 40%, rgba(255,255,255,0.08));
  background:
    var(--element-glow),
    linear-gradient(180deg, rgba(20, 24, 31, 0.92) 0%, rgba(10, 12, 17, 0.98) 100%);
  box-shadow: var(--shadow);
}

.element-card__line {
  width: 72px;
  height: 2px;
  display: block;
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, transparent 0%, var(--element-accent) 38%, transparent 100%);
}

.element-card h3,
.info-card h3,
.policy-card h2,
.pathway-card strong,
.campaign-layout__aside h3,
.elemental-detail h2,
.gateway-shell h2,
.cta-banner h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 0.9rem;
}

.element-card__headline {
  color: var(--text);
}

.element-card a,
.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(216, 170, 91, 0.42);
  text-underline-offset: 0.22rem;
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
}

.split-showcase__cards,
.stacked-callouts {
  display: grid;
  gap: 1rem;
}

.info-card,
.policy-card,
.campaign-layout__aside,
.elemental-detail,
.gateway-shell,
.cta-banner,
.pathway-card {
  padding: 1.4rem;
}

.pathway-card {
  display: block;
  min-height: 15rem;
}

.pathway-card span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.page-hero {
  padding: 7rem 0 2rem;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(216, 170, 91, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(103, 189, 223, 0.09), transparent 24%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
}

.campaign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.elemental-detail-list {
  display: grid;
  gap: 1rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
}

.prose-shell {
  max-width: 68rem;
}

.prose-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gateway-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(216, 170, 91, 0.12);
  background: rgba(3, 5, 8, 0.84);
}

.site-footer__grid,
.site-footer__meta {
  display: grid;
  gap: 1.5rem;
}

.site-footer__grid {
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  padding-bottom: 2rem;
}

.site-footer__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 1100px) {
  .site-header__inner,
  .hero-shell__grid,
  .split-showcase,
  .campaign-layout,
  .gateway-shell,
  .cta-banner,
  .site-footer__grid,
  .site-footer__meta {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    gap: 1rem;
    padding: 0.8rem 0;
  }

  .site-nav {
    order: 3;
  }

  .site-header__actions {
    justify-content: flex-start;
  }

  .element-grid,
  .pathway-grid__cards,
  .policy-grid,
  .prose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-shell {
    min-height: auto;
  }

  .hero-shell__grid,
  .page-hero {
    padding-top: 5.5rem;
  }

  .site-nav__menu,
  .hero-shell__actions,
  .cta-banner__actions,
  .gateway-actions,
  .site-header__actions,
  .detail-tags {
    flex-direction: column;
    align-items: stretch;
  }

  .element-grid,
  .pathway-grid__cards,
  .policy-grid,
  .prose-grid {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding: 4.2rem 0;
  }

  .hero-shell__panel,
  .info-card,
  .policy-card,
  .pathway-card,
  .campaign-layout__aside,
  .elemental-detail,
  .gateway-shell,
  .cta-banner {
    border-radius: 22px;
  }
}
