/* Proxyxin design tokens — locked from plan */
:root {
  /* Color: dark theme default */
  --bg: #09090b;            /* zinc-950 */
  --bg-elev-1: #18181b;     /* zinc-900 */
  --bg-elev-2: #27272a;     /* zinc-800 */
  --bg-elev-3: #3f3f46;     /* zinc-700 */
  --border: #27272a;        /* zinc-800 */
  --border-strong: #3f3f46; /* zinc-700 */

  --text: #fafafa;          /* zinc-50 */
  --text-muted: #a1a1aa;    /* zinc-400 */
  --text-faint: #71717a;    /* zinc-500 */

  /* Accent: monochrome — zinc-50 (near-white). Matches customer surface.
     Status colors (success/warning/danger) keep their hue so semantic
     meaning is preserved. */
  --accent: #fafafa;
  --accent-hover: #e4e4e7;
  --accent-faint: rgba(250, 250, 250, 0.08);
  --accent-glow: rgba(250, 250, 250, 0.12);
  --accent-fg: #0a0a0a;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;

  /* Spacing scale */
  --space-px: 1px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Type */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Utility-ish base */
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.accent { color: var(--accent); }

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

/* ── Unified button system — single source of truth ─────────────
   ONE .btn definition. All marketing pages inherit. No page overrides.
   Sizes: .btn (default md) · .btn-sm (compact, used in nav)
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
}

/* Primary CTA — white pill on dark bg, the brand's "act now" signal */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(250,250,250,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elev-1);
  color: var(--text);
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8125rem; }

/* Cards */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card:hover { border-color: var(--border-strong); }

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.pill-accent {
  background: var(--bg-elev-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Common page wrap */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 11, 0.7);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover { color: var(--text); }
.brand .brand-mark {
  width: 1.375rem; height: 1.375rem;
  display: inline-block; flex-shrink: 0;
}
.brand .brand-mark svg { width: 100%; height: 100%; display: block; }
.brand .brand-dot { color: var(--accent); }
.topnav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.topnav-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 400;
  position: relative;
  transition: color 0.15s;
}
/* Override muted nav color when link is the CTA button — keep dark text on white pill */
.topnav-links a.btn-primary { color: var(--bg); font-weight: 600; }
.topnav-links a.btn-primary:hover { color: var(--bg); }
.topnav-links a.btn-ghost { color: var(--text); }
.topnav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.topnav-links a:not(.btn):hover::after { transform: scaleX(1); }
.topnav-links a:hover { color: var(--text); }

/* Sections */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

/* Headlines */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.h-display {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.h-section {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

/* Footer */
footer.foot {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
  margin-top: 6rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.foot h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0.5rem 0; }
.foot a { color: var(--text-muted); font-size: 0.875rem; }
.foot a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .topnav-links a:not(.btn) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Scroll-to-top — floating button, fades in past 600px scroll */
.scroll-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 40px; height: 40px; border-radius: var(--radius-lg);
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.125rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.15s, background 0.15s;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--bg-elev-3); transform: translateY(-2px); }
.scroll-top:active { transform: translateY(0); }

/* Section reveal — gentle fade-in on scroll for non-hero sections */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-reveal].revealed {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
