:root {
  --void: #050506;
  --bone: #f7f7f8;
  --ash: #8e8e96;
  --silver: #c3c3ca;
  --iris: #8052ff;
  --saffron: #ffb829;
  --aqua: #22d3ee;
  --hairline: rgba(255, 255, 255, 0.08);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--void);
  color: var(--bone);
  font-family: 'PPNeueMontreal', 'Aeonik', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}

.backdrop-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(130px);
}

.glow-iris {
  width: 620px;
  height: 620px;
  left: -180px;
  top: -200px;
  background: radial-gradient(circle, rgba(128, 82, 255, 0.42), transparent 70%);
}

.glow-gold {
  width: 760px;
  height: 760px;
  right: -240px;
  bottom: -300px;
  background: radial-gradient(circle, rgba(255, 184, 41, 0.20), transparent 70%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-headline {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.text-gradient {
  background: linear-gradient(100deg, #ffe0a3 0%, var(--saffron) 38%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1.5px solid var(--saffron);
  border-radius: 9999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--saffron);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold > * { position: relative; z-index: 1; }

.btn-gold:hover {
  color: #0a0a0b;
  box-shadow: 0 12px 40px -14px rgba(255, 184, 41, 0.6);
  transform: translateY(-1px);
}

.btn-gold:hover::before { transform: translateY(0); }

.ghost-link {
  position: relative;
  font-size: 14px;
  color: var(--silver);
  transition: color 0.2s ease;
}

.ghost-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ghost-link:hover { color: var(--bone); }
.ghost-link:hover::after { transform: scaleX(1); }

.nav-link {
  position: relative;
  padding-block: 4px;
  color: var(--silver);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--bone);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--silver);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--saffron);
  animation: ping 2.6s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 184, 41, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 184, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 41, 0); }
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(140deg, rgba(128, 82, 255, 0.4), rgba(255, 184, 41, 0.18));
  font-size: 12px;
  letter-spacing: 0.08em;
}

.genie-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.genie-panel::before {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  top: -1px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 184, 41, 0.7), transparent);
}

.badge {
  border: 1px solid rgba(255, 184, 41, 0.4);
  border-radius: 9999px;
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(128, 82, 255, 0.14);
}

.feature-icon.lg {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  animation: reveal-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

.topic-card,
.role-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.topic-card:hover,
.role-card:hover {
  border-color: rgba(255, 184, 41, 0.45);
  transform: translateY(-3px);
}

.topic-card .arrow,
.role-card .arrow {
  color: var(--saffron);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.topic-card:hover .arrow,
.role-card:hover .arrow {
  transform: translateX(8px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--bone);
  font: inherit;
  font-size: 15px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 184, 41, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 184, 41, 0.12);
}

.field textarea { min-height: 140px; resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-note {
  font-size: 13px;
  color: var(--ash);
}

.form-note.is-error { color: #fca5a5; }
.form-note.is-ok { color: #86efac; }

.footer-topics a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.footer-topics a:hover { color: var(--saffron); }

#retirement,
#tax,
#trusts,
#investments,
#estate {
  scroll-margin-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; }
  .chip-dot { animation: none; }
  .topic-card,
  .role-card,
  .btn-gold { transition-duration: 0.01ms !important; }
}
