/* ========= GlamourGeek — Tech Neon ========= */

:root {
  /* Brand colors derived from logo */
  --brand-coral: #E85D6F;
  --brand-coral-bright: #FF6B7E;
  --brand-cyan: #3DBCE5;
  --brand-cyan-bright: #4DD8FF;

  /* Dark surfaces */
  --bg-0: #07080C;
  --bg-1: #0C0E14;
  --bg-2: #12141C;
  --bg-3: #1A1D27;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  /* Text */
  --fg-0: #F4F6FA;
  --fg-1: #C9CDD8;
  --fg-2: #8A8F9E;
  --fg-3: #545865;

  /* Accents (overridable by Tweaks) */
  --accent: #4DD8FF;
  --accent-2: #FF6B7E;
  --accent-glow: rgba(77, 216, 255, 0.55);
  --accent-glow-soft: rgba(77, 216, 255, 0.18);

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

/* Light mode override */
[data-theme="light"] {
  --bg-0: #F7F7F4;
  --bg-1: #FFFFFF;
  --bg-2: #F0EFEA;
  --bg-3: #E5E3DB;
  --line: rgba(0,0,0,0.08);
  --line-strong: rgba(0,0,0,0.16);
  --fg-0: #0A0B10;
  --fg-1: #2C2F3A;
  --fg-2: #5A5E6B;
  --fg-3: #9094A0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  /* subtle starfield/grid bg for dark mode */
  background-image:
    radial-gradient(circle at 20% 0%, var(--accent-glow-soft), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 107, 126, 0.10), transparent 50%);
}

[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(77, 216, 255, 0.10), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(255, 107, 126, 0.10), transparent 50%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Type system ===== */
.font-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.font-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.body-lg { font-size: 18px; line-height: 1.55; color: var(--fg-1); }
.body { font-size: 16px; line-height: 1.55; color: var(--fg-1); }
.body-sm { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.caption { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); letter-spacing: 0.05em; }

/* ===== Layout ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { position: relative; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #07080C;
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 30px -8px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 12px 40px -4px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-0);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--fg-1);
}

[data-theme="light"] .btn-ghost { color: var(--fg-0); }
[data-theme="light"] .btn-ghost:hover { background: rgba(0,0,0,0.04); }

.btn-arrow {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 200ms ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ===== Pill / chip ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-1);
  background: rgba(255,255,255,0.02);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ===== Card base ===== */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 240ms ease, transform 240ms ease, background 240ms ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* ===== Glow utilities ===== */
.text-accent { color: var(--accent); }
.text-accent-2 { color: var(--accent-2); }
.glow-accent { text-shadow: 0 0 24px var(--accent-glow); }

/* ===== Grain / noise overlay ===== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Marquee ===== */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Custom cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  left: 0; top: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  transition: transform 80ms linear, width 200ms ease, height 200ms ease;
  margin: -18px 0 0 -18px;
}
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* hide native cursor on interactive elements when custom on */
body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }

/* ===== Section dividers ===== */
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

/* ===== Hero scanlines ===== */
.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0) 0,
    rgba(255,255,255,0) 3px,
    rgba(255,255,255,0.025) 3px,
    rgba(255,255,255,0.025) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ===== Spinning border (gradient) ===== */
.gradient-border {
  position: relative;
  isolation: isolate;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
