/* SynthFlux — Dark Premium Generative AI Synthesis Platform */
:root {
  --graphite: #0A0E14;
  --graphite-light: #121820;
  --slate: #1A2230;
  --panel: #222C3C;
  --accent: #06B6D4;
  --accent-dim: rgba(6, 182, 212, 0.15);
  --accent-glow: rgba(6, 182, 212, 0.35);
  --text: #E8ECF1;
  --text-muted: #FFFFFF;
  --border: rgba(6, 182, 212, 0.12);
  --sidebar-width: 260px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --reveal-duration: 800ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.site-synthflux {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--graphite);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: #22D3EE; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-muted); font-weight: 600; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem;
}

/* Surfaces */
.surface-dark { background: var(--graphite); }
.surface-slate { background: var(--slate); }
.surface-panel { background: var(--panel); }
.surface-accent {
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  border: 1px solid var(--border);
}

/* Layout */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--graphite-light);
  border-right: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(0);
  transition: transform var(--transition);
}

.sidebar__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  display: block;
}

.sidebar__logo span { color: var(--accent); }

.sidebar__nav { flex: 1; }

.sidebar__nav ul { list-style: none; }

.sidebar__nav li { margin-bottom: 0.25rem; }

.sidebar__nav a {
  display: block;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: all var(--transition);
}

.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.sidebar__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar__footer .mono {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  margin: 1rem;
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  transition: var(--transition);
}

body.nav-open .nav-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-scrim.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

/* Hero Pattern B */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--graphite) 0%,
    rgba(10, 14, 20, 0.85) 40%,
    rgba(10, 14, 20, 0.5) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem 5rem;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero--compact {
  min-height: 45vh;
  align-items: center;
}

.hero--compact .hero__content {
  padding: 3rem;
}

/* Sections */
.section {
  padding: 5rem 3rem;
}

.section--tight { padding: 3rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 3rem;
  max-width: 700px;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}

.card__image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.card__image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card h3 { color: var(--text); }

.card .price {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: 1.125rem;
  margin-top: 1rem;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.metric__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric__label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Layers */
.layer-list { list-style: none; }

.layer-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.layer-list li:last-child { border-bottom: none; }

.layer-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent);
  min-width: 3rem;
}

.layer-content h3 { margin-bottom: 0.5rem; color: var(--text); }

/* FAQ two-column */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

.faq-item {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.faq-item h3 {
  color: var(--text);
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.faq-item p { margin-bottom: 0; font-size: 0.9375rem; }

/* CTA Band */
.cta-band {
  text-align: center;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, var(--accent-dim), var(--slate));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 { color: var(--text); margin-bottom: 1rem; }

.cta-band p {
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: #036475;
  color: #F0FDFF;
}

.btn--primary:hover {
  background: #047A8C;
  color: #FFFFFF;
}

.btn--outline {
  background: rgba(10, 14, 20, 0.55);
  color: #F0FDFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(6, 182, 212, 0.25);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Image blocks */
.img-block {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.img-block img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.img-caption {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: var(--panel);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info { list-style: none; }

.contact-info li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info strong {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--graphite);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-consent input { width: auto; margin-top: 0.25rem; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert--success {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* Legal content */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}

.legal-content ul, .legal-content ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-muted);
}

.legal-content li { margin-bottom: 0.5rem; }

.legal-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Disclaimer */
.disclaimer {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  background: var(--graphite-light);
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--graphite-light);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer-col a:hover { color: var(--accent); }

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom .mono {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 500;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 0.875rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.cookie-customise {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cookie-customise.visible { display: block; }

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.cookie-option label {
  font-size: 0.875rem;
  color: var(--text);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--reveal-duration) ease, transform var(--reveal-duration) ease;
}

.js .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    z-index: 350;
  }

  .nav-scrim { display: block; }

  .main-content { margin-left: 0; }

  .hero__content { padding: 3rem 1.5rem 4rem; }
  .section { padding: 3rem 1.5rem; }

  .grid-2, .grid-3, .grid-4,
  .faq-grid, .contact-grid,
  .footer-grid, .metrics {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
