:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-alt: #111d33;
  --bg-footer: #0b0f14;

  --text: #0f172a;
  --text-light: #e6ebf2;
  --muted: #5b6472;
  --muted-light: #a7b0bd;

  --accent-1: #4c1d95;
  --accent-2: #a855f7;

  --border-light: #e5e7eb;
  --border-dark: #1f2b41;

  --radius: 999px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

h1, h2 {
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(3rem, 6vw + 1.5rem, 5rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
}

p {
  margin: 0 0 1.5rem;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-accent {
  background: var(--accent-1);
  color: #fff;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Entrance reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 10;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-disabled {
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 0.6;
  cursor: default;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0;
}

.hero > .wrap {
  width: 100%;
}

.hero-inner {
  position: relative;
}

.hero .eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.luke-trigger {
  cursor: pointer;
}

.luke-name {
  text-decoration: underline dotted;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.luke-avatar {
  display: inline-block;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0 2px;
  vertical-align: middle;
}

.luke-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  transform: scale(1);
  transform-origin: center;
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.luke-trigger:hover .luke-avatar img,
.luke-trigger:focus-visible .luke-avatar img,
.luke-trigger.is-active .luke-avatar img {
  transform: scale(7);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  z-index: 20;
}

.hero h1 {
  color: #fff;
  mix-blend-mode: difference;
  width: 100%;
}

.hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  width: 100%;
}

.logo-marquee {
  margin-top: 3.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: logo-scroll 55s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 1.5rem;
  border-radius: 10px;
  background: var(--bg-dark);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-chip img {
  display: block;
  width: auto;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track {
    animation: none;
  }
}

.hero-ring {
  position: absolute;
  top: 50%;
  right: -16%;
  transform: translateY(-50%) rotate(0deg);
  width: min(880px, 60vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent-1), var(--accent-2), #f0abfc, var(--accent-1));
  will-change: transform;
  animation: ring-spin 6s linear infinite;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 100px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes ring-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring {
    animation: none;
  }
}

/* Feature sections */

.feature {
  position: relative;
  overflow: hidden;
  padding: 10rem 0;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 2px, transparent 2.5px);
  background-size: 16px 16px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.feature:hover::before {
  animation: dots-breathe 2.4s ease-in-out infinite;
}

@keyframes dots-breathe {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .feature:hover::before {
    animation: none;
  }
}

.feature-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.feature-alt {
  background: var(--bg-dark-alt);
}

.feature-alt::before {
  background-position: 8px 8px;
}

.feature-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.feature-copy-right {
  margin-left: auto;
}

.feature-copy h2 {
  color: #fff;
}

.feature-copy p {
  color: var(--muted-light);
}

.fee-trigger {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.fee-underline {
  text-decoration: underline dotted;
  text-decoration-color: var(--muted-light);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.fee-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 260px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(4px);
  z-index: 10;
}

.fee-popup strong {
  font-size: 0.9rem;
  color: var(--text);
}

.fee-popup span {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.salary-bar {
  display: block;
  margin-top: 0.5rem;
}

.salary-bar-track {
  display: block;
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.salary-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
}

.salary-bar-labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.salary-bar-fee {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.salary-bar-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.salary-bar-savings {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-1);
}

.fee-trigger:hover .fee-popup,
.fee-trigger:focus-visible .fee-popup,
.fee-trigger.is-active .fee-popup {
  opacity: 1;
  transform: translateY(0);
}

.feature-ring {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 34vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(from 160deg, var(--accent-2), var(--accent-1), var(--accent-2));
}

.feature-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-dark);
}

.feature-alt .feature-ring::after {
  background: var(--bg-dark-alt);
}

.feature-ring-right {
  right: -10%;
}

.feature-ring-left {
  left: -10%;
}

/* Contact */

.contact {
  position: relative;
  overflow: hidden;
  background: #f8f9fb;
  padding: 6.5rem 0;
}

.contact-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-copy {
  max-width: 420px;
  padding-top: 0.4rem;
}

.contact-copy h2 {
  margin: 0 0 1rem;
}

.contact-copy p {
  color: var(--muted);
  margin: 0;
}

.contact-inner {
  max-width: 480px;
  width: 100%;
  flex: 1;
}

/* Static grain on light sections */

.hero::before,
.contact::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='3' intercept='-0.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: static-drift 9s steps(10) infinite;
}

@keyframes static-drift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-2%, -1%); }
  20%  { transform: translate(1%, -3%); }
  30%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, 1%); }
  50%  { transform: translate(-1%, 3%); }
  60%  { transform: translate(3%, -2%); }
  70%  { transform: translate(-2%, 1%); }
  80%  { transform: translate(1%, 2%); }
  90%  { transform: translate(-1%, -2%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .contact::before {
    animation: none;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.field-full {
  grid-column: 1 / -1;
}

form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.required-star {
  color: #e11d48;
}

.checkbox-group {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.checkbox-group legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pill-label:has(input:checked) {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
}

.pill-label:has(input:focus-visible) {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

form input,
form select,
form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235b6472'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
}

form select:invalid {
  color: var(--muted);
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--accent-1);
  outline-offset: 1px;
}

#contact-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  background: var(--bg-footer);
  color: var(--muted-light);
  padding: 3.5rem 0 2rem;
}

.footer-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col .nav-disabled {
  display: block;
  color: var(--muted-light);
  opacity: 0.5;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */

@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem;
    display: none;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-dark {
    display: none;
  }

  .hero-ring {
    opacity: 0.5;
    width: 60vw;
    right: -20%;
  }

  .feature-copy-right {
    margin-left: 0;
  }

  .feature-ring {
    opacity: 0.4;
    width: 60vw;
  }

  .contact-row {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
