/* Art direction: glamorous editorial neon → precise, atmospheric, web-friendly
   Palette: dark violet-blue base with pink/cyan/lime accents
   Typography: Bodoni Moda + Manrope for display and structure
   Density: spacious but readable */

:root,
[data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.4rem, 1.6rem + 3vw, 4.8rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Manrope', 'Inter', sans-serif;

  --color-bg: #f6f1fb;
  --color-surface: #ffffff;
  --color-surface-2: #f3ebfa;
  --color-surface-offset: #ece3f7;
  --color-border: rgba(40, 25, 54, 0.12);
  --color-divider: rgba(40, 25, 54, 0.1);
  --color-text: #211629;
  --color-text-muted: #5d4f6b;
  --color-text-faint: #8d80a0;
  --color-primary: #c83ca2;
  --color-primary-2: #22bce8;
  --color-accent: #b4de2c;
  --color-highlight: #7f57ff;
  --color-text-inverse: #f9f7ff;
  --shadow-sm: 0 1px 2px rgba(24, 14, 32, 0.08);
  --shadow-md: 0 12px 30px rgba(40, 18, 62, 0.12);
  --shadow-lg: 0 24px 48px rgba(32, 16, 49, 0.18);
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --content-wide: 1200px;
  --content-default: 1080px;
}

[data-theme="dark"] {
  --color-bg: #0f1020;
  --color-surface: #16172a;
  --color-surface-2: #1c1733;
  --color-surface-offset: #231b3d;
  --color-border: rgba(243, 238, 255, 0.12);
  --color-divider: rgba(243, 238, 255, 0.08);
  --color-text: #f3eeff;
  --color-text-muted: #c4bdd9;
  --color-text-faint: #988fb4;
  --color-primary: #ff4fbf;
  --color-primary-2: #22d7ff;
  --color-accent: #d6ff3f;
  --color-highlight: #a85cff;
  --color-text-inverse: #110f1d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.38);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f1020;
    --color-surface: #16172a;
    --color-surface-2: #1c1733;
    --color-surface-offset: #231b3d;
    --color-border: rgba(243, 238, 255, 0.12);
    --color-divider: rgba(243, 238, 255, 0.08);
    --color-text: #f3eeff;
    --color-text-muted: #c4bdd9;
    --color-text-faint: #988fb4;
    --color-primary: #ff4fbf;
    --color-primary-2: #22d7ff;
    --color-accent: #d6ff3f;
    --color-highlight: #a85cff;
    --color-text-inverse: #110f1d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(200, 60, 162, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 188, 232, 0.12), transparent 25%),
    linear-gradient(180deg, var(--color-bg), color-mix(in srgb, var(--color-bg) 84%, var(--color-surface-2)));
  color: var(--color-text);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 2px solid var(--color-primary-2);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 2rem), var(--content-default));
  margin-inline: auto;
}
.section {
  padding-block: clamp(var(--space-12), 10vw, var(--space-24));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand-mark {
  width: 180px;
  height: 48px;
  overflow: visible;
}
.brand-word {
  fill: url(#fallback);
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.01em;
}
.brand-mark circle,
.brand-mark path {
  stroke: var(--color-primary-2);
  fill: none;
  stroke-width: 1.5;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.main-nav a,
.theme-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-3);
  color: var(--color-text-muted);
}
.main-nav a:hover,
.main-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--color-text);
}
.theme-toggle {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full, 999px);
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
}

.hero {
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.hero-copy h1,
h1, h2 {
  font-family: var(--font-display);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-copy h1 {
  font-size: var(--text-2xl);
  max-width: 10ch;
  background: linear-gradient(100deg, var(--color-primary), var(--color-highlight), var(--color-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .lead {
  max-width: 62ch;
  color: var(--color-text-muted);
}
.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-accent);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-full, 999px);
  border: 1px solid var(--color-border);
}
.button-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
  color: var(--color-text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.button-secondary {
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
}
.hero-panel {
  display: grid;
  gap: var(--space-4);
}
.card,
.panel-card {
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.panel-card,
.card {
  padding: var(--space-6);
}
.glow-card {
  position: relative;
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: auto 14% -10% 14%;
  height: 40px;
  background: radial-gradient(circle, rgba(34, 215, 255, 0.32), transparent 70%);
  filter: blur(18px);
}
.stat-list {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: color-mix(in srgb, var(--color-surface-2) 84%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary-2);
}
.stat-label { color: var(--color-text-muted); }

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--color-primary) 60%, transparent);
  opacity: 0.45;
}
.hero-orbit-left {
  width: 280px;
  height: 280px;
  left: -80px;
  top: 15%;
}
.hero-orbit-right {
  width: 220px;
  height: 220px;
  right: -40px;
  top: 10%;
  border-color: color-mix(in srgb, var(--color-accent) 60%, transparent);
}

.split-section,
.showcase-grid,
.content-grid,
.footer-grid,
.feature-grid {
  display: grid;
  gap: var(--space-6);
}
.section-heading {
  margin-bottom: var(--space-6);
}
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 18px color-mix(in srgb, var(--color-primary) 55%, transparent);
}
.feature-card.accent-cyan::before { background: var(--color-primary-2); }
.feature-card.accent-lime::before { background: var(--color-accent); }
.text-link {
  display: inline-flex;
  margin-top: var(--space-3);
  color: var(--color-primary-2);
}
.large-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary-2) 8%, var(--color-surface)) 100%);
}
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.9;
  padding-right: 0.5rem;
  color: var(--color-primary);
}
blockquote {
  margin: var(--space-6) 0 0;
  padding-left: var(--space-4);
  border-left: 1px solid color-mix(in srgb, var(--color-primary-2) 55%, transparent);
  color: var(--color-text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}
th, td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
th { color: var(--color-text-muted); font-weight: 700; }

.contact-form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.form-field {
  display: grid;
  gap: var(--space-2);
}
label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
input,
textarea,
summary {
  border-radius: var(--radius-md);
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface-2) 82%, transparent);
  color: var(--color-text);
  padding: 0.9rem 1rem;
}
textarea { resize: vertical; }
input::placeholder,
textarea::placeholder { color: var(--color-text-faint); }

.list-card ul {
  padding-left: 1.2rem;
  margin: var(--space-4) 0 0;
}
.list-card li + li { margin-top: var(--space-2); }

details {
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
summary {
  cursor: pointer;
  color: var(--color-primary-2);
}

.site-footer {
  border-top: 1px solid var(--color-divider);
}
.site-footer address {
  font-style: normal;
  color: var(--color-text-muted);
}
.site-footer a {
  color: var(--color-primary-2);
}

@media (min-width: 760px) {
  .hero-grid,
  .split-section,
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .feature-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .showcase-grid .large-card {
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: var(--space-3);
  }
  .main-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
