/* Copyright (c) 2026 uh.izaak. All rights reserved. */

/* ── Fonts ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Nacelle';
  src: url('../fonts/nacelle-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nacelle';
  src: url('../fonts/nacelle-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nacelle';
  src: url('../fonts/nacelle-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nacelle';
  src: url('../fonts/nacelle-semibolditalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:     #000000;
  --gray-950:  #030712;
  --gray-900:  #0a0a0a;
  --gray-800:  #141414;
  --gray-700:  #222222;
  --gray-600:  #333333;
  --gray-500:  #555555;
  --gray-400:  #888888;
  --gray-300:  #aaaaaa;
  --gray-200:  #cccccc;
  --gray-100:  #e8e8e8;
  --gray-50:   #f5f5f5;
  --white:     #ffffff;
  --font-inter: 'Inter', system-ui, sans-serif;
  --font-nacelle: 'Nacelle', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-inter);
  background-color: var(--gray-950);
  color: var(--gray-200);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes stat-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.1); }
  50%       { text-shadow: 0 0 40px rgba(255,255,255,0.25); }
}
@keyframes cursor-fade {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Cursor glow ─────────────────────────────────────────── */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
  animation: cursor-fade 0.3s ease forwards;
}

/* ── Gradient text ───────────────────────────────────────── */
.grad-text {
  background: linear-gradient(to right,
    var(--gray-300),
    var(--white),
    var(--gray-100),
    var(--white),
    var(--gray-300));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 6s linear infinite;
}

.grad-label {
  background: linear-gradient(to right, var(--gray-400), var(--gray-200));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

/* ── Page illustration ───────────────────────────────────── */
.page-illustration {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  width: 100%;
  max-width: 1440px;
  opacity: 0.25;
  filter: grayscale(1);
}
.page-illustration img { margin: 0 auto; }

/* ── Header ──────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0.5rem;
  z-index: 30;
  width: 100%;
  padding: 0 1rem;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  header { margin-top: 1.25rem; }
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
  padding: 0 0.75rem;
  border-radius: 1rem;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}
.header-bar:hover {
  border-color: rgba(255,255,255,0.14);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo img { width: 32px; height: 32px; }
.logo-name {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-100);
}

/* Nav */
.nav-links { display: flex; align-items: center; gap: 0.75rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn, .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}
.btn-sm {
  padding: 0.3125rem 0.875rem;
  font-size: 0.875rem;
}

/* Primary: white bg, black text, white glow */
.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.btn-primary:hover {
  background: var(--gray-100);
  box-shadow: 0 0 18px 4px rgba(255,255,255,0.18), 0 0 40px 8px rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary: dark bg, white border */
.btn-secondary {
  background: rgba(20,20,20,0.8);
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover {
  background: rgba(30,30,30,0.9);
  border-color: rgba(255,255,255,0.22);
  color: var(--gray-100);
  transform: translateY(-1px);
}

.btn-icon-gap { display: inline-flex; align-items: center; gap: 0.375rem; }
.btn-arrow {
  margin-left: 0.25rem;
  color: rgba(0,0,0,0.45);
  transition: transform 0.15s;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* Magnetic button effect handled in JS */
.magnetic { will-change: transform; }

/* ── Section label decoration ────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
}
.section-label::before { background: linear-gradient(to right,  transparent, rgba(255,255,255,0.2)); }
.section-label::after  { background: linear-gradient(to left,   transparent, rgba(255,255,255,0.2)); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; }
.hero-content { padding: 3rem 0; }
@media (min-width: 768px) { .hero-content { padding: 5rem 0; } }
.hero-header { padding-bottom: 3rem; text-align: center; }
@media (min-width: 768px) { .hero-header { padding-bottom: 4rem; } }

.hero h1 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-400);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 20rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

/* ── Stats strip ─────────────────────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
@media (max-width: 639px) {
  .stats-strip { flex-direction: column; }
  .stat-divider { width: 80%; height: 1px; background: rgba(255,255,255,0.07); margin: 0 auto; }
}
@media (min-width: 640px) {
  .stat-divider { width: 1px; height: 4rem; background: rgba(255,255,255,0.07); flex-shrink: 0; }
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  gap: 0.375rem;
  transition: background 0.25s;
}
.stat-item:hover { background: rgba(255,255,255,0.03); }

.stat-number {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  line-height: 1;
  animation: stat-glow 4s ease-in-out infinite;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Section shared ──────────────────────────────────────── */
section { position: relative; }
.section-inner {
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent) 1;
  padding: 3rem 0;
}
@media (min-width: 768px) { .section-inner { padding: 5rem 0; } }

.section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}
@media (min-width: 768px) { .section-header { margin-bottom: 5rem; } }

.section-header h2 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
}

/* ── Blurred bg shapes ───────────────────────────────────── */
.blur-shape {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  filter: grayscale(1);
  opacity: 0.15;
}
.blur-shape img { max-width: none; }

/* ── Features grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  gap: 3rem 3.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-item {
  transition: transform 0.25s;
}
.feature-item:hover { transform: translateY(-3px); }
.feature-item svg {
  margin-bottom: 0.75rem;
  fill: var(--white);
  transition: filter 0.25s;
}
.feature-item:hover svg { filter: drop-shadow(0 0 6px rgba(255,255,255,0.4)); }
.feature-item h3 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-100);
  margin-bottom: 0.25rem;
}
.feature-item p { color: var(--gray-500); font-size: 0.9375rem; }

/* ── Sparx cards ─────────────────────────────────────────── */
.sparx-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .sparx-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sparx-grid { grid-template-columns: repeat(3, 1fr); } }

.sparx-card {
  position: relative;
  border-radius: 1rem;
  background: rgba(255,255,255,0.06);
  padding: 1px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.sparx-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.sparx-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.sparx-card:hover::before { opacity: 1; }

.sparx-card-inner {
  border-radius: calc(1rem - 1px);
  background: var(--gray-950);
  overflow: hidden;
  height: 100%;
}
.sparx-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
}
.sparx-card-header img {
  width: 56px; height: 56px;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}
.sparx-card-header h3 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-100);
}
.sparx-features {
  list-style: none;
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.sparx-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.sparx-features li svg { flex-shrink: 0; fill: var(--white); opacity: 0.7; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid {
  columns: 1;
  gap: 1.5rem;
}
@media (min-width: 640px) { .testimonials-grid { columns: 2; } }
@media (min-width: 1024px) { .testimonials-grid { columns: 3; } }

.testimonial-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.testimonial-quote {
  color: var(--gray-400);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-200);
}
.testimonial-label {
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section { overflow: hidden; }
.cta-inner {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
  padding: 3rem 0;
  text-align: center;
}
@media (min-width: 768px) { .cta-inner { padding: 5rem 0; } }
.cta-inner h2 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
}

/* ── Footer ──────────────────────────────────────────────── */
footer { position: relative; }
.footer-inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .footer-inner { padding: 0 1.5rem; } }
.footer-illus {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  filter: grayscale(1);
  opacity: 0.1;
}
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 3rem 0;
  }
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gray-200); }
.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-600);
}
.footer-credit {
  color: var(--gray-400);
  transition: color 0.15s;
}
.footer-credit:hover { color: var(--white); }

/* ── Inner pages ─────────────────────────────────────────── */
.inner-page {
  padding: 5rem 0;
}
@media (min-width: 768px) { .inner-page { padding: 8rem 0; } }

.inner-page h1 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.inner-page .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Start page trial teaser */
.trial-teaser {
  margin-top: 3.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.trial-teaser-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.trial-teaser ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.trial-teaser li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
}
.trial-teaser li svg { flex-shrink: 0; fill: var(--white); opacity: 0.7; }
.trial-teaser-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.trial-teaser-footer a {
  color: var(--gray-300);
  transition: color 0.15s;
}
.trial-teaser-footer a:hover { color: var(--white); }

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

.pricing-card {
  border-radius: 1rem;
  overflow: hidden;
  padding: 1px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.pricing-card.highlighted {
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0.03));
}
.pricing-card.standard { background: rgba(255,255,255,0.07); }
.pricing-card-inner {
  border-radius: calc(1rem - 1px);
  background: var(--gray-950);
  padding: 2rem;
  height: 100%;
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-300);
}
.pricing-name {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gray-100);
  margin-bottom: 0.25rem;
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}
.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pricing-price {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
}
.pricing-period {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-500);
}
.pricing-features li svg { flex-shrink: 0; fill: var(--white); opacity: 0.7; margin-top: 2px; }
.pricing-footnote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.pricing-footnote a {
  color: var(--gray-300);
  transition: color 0.15s;
}
.pricing-footnote a:hover { color: var(--white); }

/* Prose pages */
.prose-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}
@media (min-width: 768px) { .prose-page { padding: 8rem 1.5rem; } }
.prose-page h1 {
  font-family: var(--font-nacelle);
  font-weight: 600;
  font-size: 2.25rem;
  margin-bottom: 2rem;
}
.prose-page p { color: var(--gray-500); line-height: 1.7; }

/* Discord button icon */
.discord-icon { width: 20px; height: 20px; opacity: 0.85; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
