/* ============================================================
   FLUXOMATE BRAND SYSTEM
   Shared across all pages
============================================================ */

/* ============================================================
   TOKENS
============================================================ */
:root {
  --bg: #08090C;
  --bg-2: #0A0B0F;
  --bg-3: #0E1014;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;

  /* Brand orange */
  --accent: #FF7A1A;
  --accent-2: #FFA340;
  --accent-3: #FF5C00;
  --accent-grad: linear-gradient(135deg, #FF5C00 0%, #FF7A1A 45%, #FFA340 100%);
  --accent-glow: 0 0 40px rgba(255, 122, 26, 0.35);

  /* Status */
  --success: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;

  /* Shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --maxw: 1200px;
}

/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   ANIMATED BACKGROUND
============================================================ */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-fx::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridDrift 60s linear infinite;
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.55; will-change: transform;
}
.aurora-1 { width: 600px; height: 600px; background: #FF5C00; top: -200px; left: -150px; animation: drift1 22s ease-in-out infinite alternate; }
.aurora-2 { width: 700px; height: 700px; background: #FF7A1A; top: 18%; right: -250px; animation: drift2 28s ease-in-out infinite alternate; opacity: 0.35; }
.aurora-3 { width: 500px; height: 500px; background: #B23E00; bottom: -150px; left: 30%; animation: drift3 26s ease-in-out infinite alternate; opacity: 0.32; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(200px, 100px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-150px, 80px) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(100px, -80px) scale(1.2); } }
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 32px 32px; } }

/* ============================================================
   LAYOUT
============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }

/* ============================================================
   TYPOGRAPHY
============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; color: var(--text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); line-height: 1.6; }
.highlight {
  background: linear-gradient(135deg, #fff 0%, #FFD7A8 50%, #FF9E2C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-weight: 500; font-size: 15px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 8px 24px rgba(255, 122, 26, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset, 0 14px 36px rgba(255, 122, 26, 0.55); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-3); transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }
.btn-ghost { background: transparent; color: var(--text); padding: 10px 14px; }
.btn-ghost:hover { color: var(--accent); }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px); max-width: var(--maxw);
  background: rgba(10, 11, 15, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(10, 11, 15, 0.88);
  border-color: var(--border-strong);
  padding: 8px 12px 8px 20px;
}
.nav-logo {
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
}
.nav-logo-mark {
  width: 26px; height: 26px;
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.5)); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14px; color: var(--text-muted);
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-burger svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .nav-links, .nav-cta-desktop { display: none; }
  .nav-burger { display: inline-flex; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8, 9, 12, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: stretch;
  padding: 100px 24px 40px;
  transform: translateY(-20px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.menu a {
  font-size: 26px; font-weight: 600; padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: -0.02em;
}
.menu a:last-of-type { border-bottom: none; }
.menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   SECTION HEADER
============================================================ */
.section-head { text-align: center; max-width: 740px; margin: 0 auto 64px; }
.section-head .lede { margin-top: 18px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  margin-top: 80px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; max-width: 280px; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-socials a:hover { color: var(--accent); border-color: rgba(255, 122, 26, 0.3); background: rgba(255, 122, 26, 0.06); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 980px;
}

/* ============================================================
   GENERIC CARDS
============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

/* ============================================================
   REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   PAGE HEADER (subpages)
============================================================ */
.page-header { padding-top: 160px; padding-bottom: 60px; text-align: center; }
.page-header h1 { margin-bottom: 20px; }
.page-header .lede { max-width: 680px; margin: 0 auto; }

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .aurora { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
