:root {
  --bg: #07060d;
  --surface: #12101c;
  --card: #1a1428;
  --card-up: #231a35;
  --text: #f7f2ff;
  --muted: #9b8db8;
  --pink: #ff2d95;
  --cyan: #00ffcc;
  --gold: #ffd60a;
  --violet: #9d4eff;
  --blue: #4da3ff;
  --coral: #ff3366;
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Avenir Next", "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Menlo", monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(255, 45, 149, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 20%, rgba(157, 78, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 30% at 50% 90%, rgba(0, 255, 204, 0.08), transparent 50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(7, 6, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 45, 149, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 14px var(--pink);
}

.header-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
}

.header-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.header-links a:hover { color: var(--text); text-decoration: none; }

main { position: relative; z-index: 1; }

/* ── Hero: pigment wheel + copy ── */
.wheel-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  min-height: 85vh;
}

.wheel-hero__copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.wheel-hero__copy h1 span {
  display: block;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wheel-hero__tagline {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 1.25rem 0 2rem;
}

.wheel-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wheel-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255, 45, 149, 0.5);
  text-decoration: none;
}

.wheel-stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}

.pigment-wheel {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(
    var(--pink) 0deg 45deg,
    var(--gold) 45deg 90deg,
    var(--cyan) 90deg 135deg,
    var(--blue) 135deg 180deg,
    var(--violet) 180deg 225deg,
    var(--coral) 225deg 270deg,
    var(--pink) 270deg 315deg,
    var(--gold) 315deg 360deg
  );
  filter: blur(1px);
  opacity: 0.85;
  animation: wheel-spin 40s linear infinite;
}

.pigment-wheel::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.wheel-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: 0.55;
  mix-blend-mode: screen;
}

@keyframes wheel-spin {
  to { transform: rotate(360deg); }
}

/* ── Mix ledger horizontal band ── */
.ledger-band {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, transparent, rgba(18, 16, 28, 0.6), transparent);
}

.ledger-band h2 {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.ledger-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 2rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ledger-scroll::-webkit-scrollbar { height: 4px; }
.ledger-scroll::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 4px; }

.ledger-row {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(255, 45, 149, 0.15);
  position: relative;
  overflow: hidden;
}

.ledger-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--swatch, var(--pink));
}

.ledger-row__ratio {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.ledger-row__name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.ledger-row__hex {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

/* ── Paint tube features ── */
.tube-features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.tube-features h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  text-align: center;
}

.tube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tube-card {
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  position: relative;
  border: 1px solid rgba(157, 78, 255, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}

.tube-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 20px;
  background: var(--cap, var(--pink));
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.tube-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 45, 149, 0.15);
}

.tube-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--cap, var(--pink));
}

.tube-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Gallery strip ── */
.swatch-gallery {
  padding: 3rem 2rem 5rem;
}

.swatch-gallery h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid rgba(0, 255, 204, 0.15);
  transition: transform 0.3s, border-color 0.3s;
}

.gallery-strip img:hover {
  transform: scale(1.03);
  border-color: var(--cyan);
}

/* ── Legal sections ── */
.legal-block {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(255, 45, 149, 0.25);
}

.legal-block p, .legal-block li {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-block ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.legal-block a { color: var(--cyan); }

.support-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(0, 255, 204, 0.2);
  margin-top: 1rem;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 45, 149, 0.1);
}

@media (max-width: 900px) {
  .wheel-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    min-height: auto;
  }

  .wheel-hero__tagline { margin-left: auto; margin-right: auto; }

  .wheel-stage { max-width: 300px; }

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

  .gallery-strip { grid-template-columns: 1fr; max-width: 400px; }

  .header-links { gap: 1rem; font-size: 0.8rem; }
}

@media (max-width: 600px) {
  .site-header { padding: 0.85rem 1.25rem; }
  .ledger-scroll { padding: 0 1.25rem 1rem; }
}
