/* AUREA Portal — brand per ~/workspace/aurea-brand/brand-spec.md */
:root {
  --bg: #0A0F1E;
  --bg-deep: #020616;
  --card: #121626;
  --card-2: #141828;
  --panel: #0F1423;
  --input-bg: #0E1222;
  --border: #282D3C;
  --gold: #FFD700;
  --gold-light: #FFEB50;
  --gold-dark: #C8AA00;
  --violet: #8A2BE2;
  --text: #FFFFFF;
  --muted: #9BA0AE;
  --faint: #626066;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 85% -80px, rgba(138, 43, 226, 0.20), transparent 60%),
    radial-gradient(800px 460px at 8% 240px, rgba(255, 215, 0, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 800; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- scroll reveal (JS-enhanced only) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
/* hover transforms must outrank the reveal end-state above */
html.js .reveal.in.card:hover { transform: translateY(-6px) rotateX(2.4deg) rotateY(-2.4deg); }
html.js .reveal.in.why-item:hover, html.js .reveal.in.grow-card:hover { transform: translateY(-3px); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.topnav {
  display: flex; gap: 4px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  padding: 10px 12px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; color: var(--muted); white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.topnav a:hover { color: var(--text); background: var(--card); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: 8px;
  font-weight: 800; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: #141828;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 90, 0, 0.35), 0 6px 18px rgba(255, 215, 0, 0.18);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(120, 90, 0, 0.35), 0 10px 30px rgba(255, 215, 0, 0.32); transform: translateY(-1px); }
.btn-primary:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(120, 90, 0, 0.3), 0 3px 10px rgba(255, 215, 0, 0.2); }
.btn-ghost { background: var(--card-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold-dark); transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 13px 28px; font-size: 1.05rem; }
.btn-launch { margin-left: 4px; }

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(44px, 7vw, 80px) 0 8px; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.section-label::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-title { margin: 0 0 10px; font-size: clamp(1.55rem, 4.4vw, 2.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.section-sub { margin: 0 0 30px; color: var(--muted); max-width: 640px; font-size: 1.02rem; }
.fineprint { color: var(--faint); font-size: 0.82rem; margin: 16px 2px 0; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: center;
  padding: clamp(44px, 7vw, 88px) 0 12px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 7px 14px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35); border-radius: 9999px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
  background: var(--gold); box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 6.6vw, 4.1rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.015em; }
.hero h1 .grad {
  background: linear-gradient(45deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 22px; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.13rem); max-width: 560px; }
.hero-sub strong { color: var(--gold); }
.hero-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; color: #D8DAE2; }
.hero-points svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--gold); margin-top: 2px; }
.hero-points strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  position: relative; display: flex; justify-content: center; align-items: center; min-height: 300px;
  perspective: 950px;
}
.hero-art::before {
  content: ""; position: absolute; z-index: 0;
  width: min(360px, 76vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.20) 0%, rgba(138, 43, 226, 0.10) 55%, transparent 72%);
  filter: blur(18px);
}
.hero-art img {
  position: relative; z-index: 2;
  width: min(330px, 68vw); height: auto;
  filter:
    drop-shadow(0 24px 45px rgba(0, 0, 0, 0.5))
    drop-shadow(0 10px 32px rgba(255, 215, 0, 0.30));
  transform-style: preserve-3d;
  animation: floaty3d 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty3d {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-9deg); }
  50% { transform: translateY(-13px) rotateX(-3deg) rotateY(9deg); }
}
.hero-shadow {
  position: absolute; z-index: 1; bottom: 7%; left: 50%;
  width: min(250px, 54vw); height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62), transparent 68%);
  filter: blur(7px);
  transform: translateX(-50%);
  animation: shadowpulse 9s ease-in-out infinite;
}
@keyframes shadowpulse {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scaleX(0.82); opacity: 0.55; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-ring {
  position: absolute; z-index: 1; border-radius: 50%;
  border: 1px dashed rgba(255, 215, 0, 0.28);
  animation: spin 46s linear infinite;
}
.hero-ring-1 { width: min(400px, 84vw); aspect-ratio: 1; }
.hero-ring-2 {
  width: min(480px, 96vw); aspect-ratio: 1;
  border-color: rgba(138, 43, 226, 0.35);
  animation-duration: 70s; animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 9999px;
  background: rgba(15, 20, 35, 0.82); border: 1px solid rgba(255, 215, 0, 0.40);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.85rem; font-weight: 800; color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: floaty 6s ease-in-out infinite;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; }
.hero-chip-1 { top: 4%; left: 0; }
.hero-chip-2 { bottom: 10%; left: -2%; animation-delay: 1.2s; }
.hero-chip-3 { top: 38%; right: -2%; animation-delay: 2.1s; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 26px 0 6px;
}
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(18, 22, 38, 0.72) 42%);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 16px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.75;
}
.stat:hover { transform: translateY(-3px); border-color: rgba(255, 215, 0, 0.45); }
.stat-icon { width: 22px; height: 22px; color: var(--gold); margin-bottom: 6px; }
.stat-num {
  display: block; font-size: clamp(1.35rem, 3.6vw, 1.8rem); font-weight: 800; line-height: 1.15;
  background: linear-gradient(45deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: 2px; }

/* ---------- ecosystem band ---------- */
.band {
  position: relative; margin: clamp(30px, 5vw, 48px) 0 0;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.band img { display: block; width: 100%; aspect-ratio: 7 / 3; object-fit: cover; }
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 22px 16px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 22, 0.88));
  color: #D8DAE2; font-size: clamp(0.95rem, 2.4vw, 1.1rem); font-weight: 600;
}
.band figcaption strong { color: var(--gold); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; perspective: 1400px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(20, 24, 40, 0.92), rgba(15, 20, 35, 0.88));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px) rotateX(2.4deg) rotateY(-2.4deg);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.12);
}
.card-wide { grid-column: span 2; }
.card-media { position: relative; transform-style: preserve-3d; }
.card-media img {
  display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.45s ease;
}
.card-wide .card-media img { aspect-ratio: 16 / 5.5; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 20, 35, 0.55));
  pointer-events: none;
}
.card-media .card-icon {
  position: absolute; left: 20px; bottom: -24px; z-index: 2; margin: 0;
  transform: translateZ(26px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 38px 24px 24px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 215, 0, 0.10); border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold);
}
.card-icon svg { width: 26px; height: 26px; }
.card-domain { margin: 0 0 4px; color: var(--gold-dark); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; }
.card h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.card-desc { margin: 0 0 14px; color: var(--muted); }
.card-feats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; color: #D8DAE2; }
.card-feats li { position: relative; padding-left: 20px; }
.card-feats li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(45deg, var(--gold), var(--violet));
}
.card-btn { margin-top: auto; align-self: flex-start; }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(18, 22, 38, 0.66) 45%);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.why-item:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.34); }
.why-item:hover { transform: translateY(-3px); border-color: rgba(255, 215, 0, 0.4); }
.why-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.16), rgba(138, 43, 226, 0.16));
  border: 1px solid rgba(255, 215, 0, 0.35); color: var(--gold);
}
.why-icon svg { width: 25px; height: 25px; }
.why-item h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 800; }
.why-item p { margin: 0; color: var(--muted); }
.why-item strong { color: var(--gold); }

/* ---------- grow ---------- */
.grow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grow-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(20, 24, 40, 0.92), rgba(15, 20, 35, 0.88));
  border: 1px solid rgba(255, 215, 0, 0.35); border-radius: var(--radius); padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.grow-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 44px rgba(0, 0, 0, 0.42); }
.grow-card h3 { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; }
.grow-rates { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.grow-rates span {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 9999px;
  padding: 6px 14px; font-weight: 700; color: var(--muted);
}
.grow-rates strong { color: var(--gold); }
.grow-card p { color: var(--muted); }
.grow-card p:not(.grow-rates) { margin: 0 0 20px; }

/* ---------- footer ---------- */
.footer {
  margin-top: clamp(48px, 8vw, 84px);
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 22, 0.65);
  padding: 40px clamp(16px, 4vw, 40px) 28px;
}
.footer-main {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr; gap: 28px;
}
.footer-brand p { color: var(--muted); max-width: 380px; margin: 14px 0; }
.x-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--text); text-decoration: none; font-weight: 800;
}
.x-link svg { width: 18px; height: 18px; }
.x-link:hover { color: var(--gold); }
.footer-col h4 { margin: 4px 0 12px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.footer-col a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-weight: 600; min-height: 36px; }
.footer-col a:hover { color: var(--text); }
.risk { max-width: 1180px; margin: 30px auto 0; color: var(--faint); font-size: 0.82rem; }
.copy { max-width: 1180px; margin: 10px auto 0; color: var(--faint); font-size: 0.85rem; }

/* ---------- ad slot ---------- */
[data-aurea-ad] { max-width: 1180px; margin: 22px auto 0; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { order: -1; min-height: 0; padding: 10px 0 4px; }
  .hero-art img { width: min(180px, 50vw); }
  .hero-shadow { bottom: 1%; width: min(150px, 40vw); height: 20px; }
  .hero-ring-1 { width: min(230px, 62vw); }
  .hero-ring-2 { width: min(280px, 76vw); }
  .hero-chip { font-size: 0.78rem; padding: 6px 11px; }
  .hero-chip-1 { top: 0; left: 2%; }
  .hero-chip-2 { bottom: 4%; left: 0; }
  .hero-chip-3 { top: 34%; right: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .topbar { gap: 8px 12px; }
  .brand-logo { height: 30px; }
  .topnav { order: 3; width: 100%; margin-left: 0; }
  .btn-launch { margin-left: auto; }
  .cards, .why-grid, .grow-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .card-wide .card-media img { aspect-ratio: 16 / 7; }
  .card-btn { align-self: stretch; }
  .hero-cta .btn { flex: 1 1 auto; }
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .stats { gap: 8px; }
  .stat { padding: 14px 10px 12px; }
  .card-body { padding: 36px 18px 20px; }
  .grow-card, .why-item { padding: 20px 18px; }
  .btn-lg { padding: 13px 18px; }
  .band figcaption { padding: 26px 14px 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img, .hero-chip, .hero-ring, .eyebrow-dot, .hero-shadow { animation: none; }
  .hero-art img { transform: none; }
  .card:hover, html.js .reveal.in.card:hover,
  html.js .reveal.in.why-item:hover, html.js .reveal.in.grow-card:hover { transform: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .stat, .why-item, .grow-card, .btn { transition: none; }
}
