:root {
  --bg: #07070a;
  --bg-2: #0d0d14;
  --fg: #f2eee5;
  --muted: #8b8a96;
  --accent: #c8a64b;
  --accent-2: #e85d75;
  --accent-3: #5d8ce8;
  --rule: rgba(255,255,255,0.08);
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Animated aurora background */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(200,166,75,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(232,93,117,0.15), transparent 60%),
    radial-gradient(ellipse 55% 50% at 50% 90%, rgba(93,140,232,0.18), transparent 60%);
  filter: blur(40px);
  animation: drift 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%,-2%,0) scale(1.05); }
  100% { transform: translate3d(-2%,3%,0) scale(0.98); }
}

a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease;
}
a.link {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid rgba(200,166,75,0.4);
  padding-bottom: 1px;
}
a.link:hover { border-bottom-color: var(--accent-2); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  background: rgba(7,7,10,0.6);
  border-bottom: 1px solid var(--rule);
}
header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand .mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(200,166,75,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.25); opacity: 0.75; }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
}
nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
nav a:hover, nav a.active { color: var(--fg); }

main { padding: 88px 0 120px; }

/* Hero */
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  font-weight: 700;
}
.hero h1 .gradient {
  background: linear-gradient(120deg, #f2eee5 0%, var(--accent) 35%, var(--accent-2) 65%, var(--accent-3) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* Rotating word */
.rotator {
  display: inline-block;
  vertical-align: top;
  position: relative;
  height: 1em;
  overflow: hidden;
  min-width: 4ch;
}
.rotator span {
  display: block;
  animation: rotateWords 9s infinite;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes rotateWords {
  0%,28%   { transform: translateY(0); }
  33%,61%  { transform: translateY(-100%); }
  66%,94%  { transform: translateY(-200%); }
  100%     { transform: translateY(-300%); }
}

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  color: rgba(242,238,229,0.78);
  max-width: 60ch;
  margin: 0 0 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1208;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 10px 30px rgba(232,93,117,0.25);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(232,93,117,0.4);
}
.cta .arrow {
  transition: transform 200ms ease;
}
.cta:hover .arrow { transform: translateX(4px); }

/* Sections */
h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 96px 0 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
p { margin: 0 0 18px; }

/* Glass cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 40px 0;
}
.card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(200,166,75,0.5), rgba(232,93,117,0.5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.card p {
  margin: 0;
  color: rgba(242,238,229,0.7);
  font-size: 15px;
  line-height: 1.55;
}

dl.facts {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px 32px;
  margin: 28px 0 0;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
}
dl.facts dt {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
dl.facts dd { margin: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  main { padding: 56px 0 80px; }
  h2 { margin-top: 64px; }
  dl.facts {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 22px;
  }
  dl.facts dd { margin-bottom: 14px; }
  nav ul { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .brand .mark, .hero h1 .gradient, .rotator span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
