/* Developr — shared styles */
:root {
  --bg: #0A0A0A;
  --fg: #FAFAFA;
  --fg-dim: #a9a9b8;
  --fg-mute: #6b6b7a;
  --violet: #6C5CE7;
  --violet-2: #8a7bff;
  --cyan: #00CEFF;
  --green: #00E68A;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-violet: 0 0 60px rgba(108,92,231,.35), 0 0 140px rgba(108,92,231,.15);
  --shadow-cyan: 0 0 60px rgba(0,206,255,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ========== NAV ========== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: linear-gradient(to bottom, rgba(10,10,10,0.72), rgba(10,10,10,0.2));
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
}
.nav-logo .dot {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 120deg, var(--violet), var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(108,92,231,.7);
  position: relative;
}
.nav-logo .dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 4px; background: #0b0b12;
}
.nav-links {
  display: flex; gap: 34px; font-size: 14px; color: var(--fg-dim);
}
.nav-links a { transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::before {
  content: ''; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.nav-cta {
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  font-size: 13px;
  transition: all .2s ease;
}
.nav-cta:hover { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 24px rgba(108,92,231,.5); }

/* Hamburger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 51;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== GLOBAL CHROME ========== */
.page { min-height: 100vh; position: relative; }
.bg-orb {
  position: fixed; pointer-events: none; z-index: 0;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,.22), rgba(0,206,255,.05) 45%, transparent 70%);
  filter: blur(40px);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

/* Labels / eyebrows */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 12px; border: 1px solid var(--line-2);
  border-radius: 999px; background: rgba(255,255,255,0.02);
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .25s ease;
  border: 1px solid transparent;
  position: relative;
}
.btn-primary {
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
  color: white;
  box-shadow: 0 0 30px rgba(108,92,231,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 48px rgba(108,92,231,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,.24); }

/* Typography */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.035em; font-weight: 500; line-height: 1.02; }
.h-display { font-size: clamp(48px, 8vw, 120px); font-weight: 400; letter-spacing: -0.045em; }
.h-1 { font-size: clamp(40px, 5.2vw, 80px); font-weight: 400; letter-spacing: -0.04em; }
.h-2 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; }
.h-3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.lead { font-size: clamp(16px, 1.3vw, 20px); color: var(--fg-dim); line-height: 1.55; max-width: 640px; }

/* Section shell */
section { position: relative; z-index: 1; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* Glass card */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 50% -80px, rgba(108,92,231,.25), transparent 60%);
}

/* Footer */
.footer {
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
  background: #070709;
}
.footer-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 16px; font-family: 'JetBrains Mono', monospace; font-weight: 400; }
.footer a { display: block; color: var(--fg-dim); font-size: 14px; padding: 4px 0; transition: color .15s; }
.footer a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1360px; margin: 60px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-mute); font-family: 'JetBrains Mono', monospace;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050508; }
::-webkit-scrollbar-thumb { background: #1c1c28; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a3a; }

/* Tweaks panel */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  padding: 16px;
  background: rgba(10,10,16,0.92);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  display: none;
  font-size: 12px;
}
.tweaks.on { display: block; }
.tweaks h5 { margin: 0 0 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; color: var(--fg-mute); text-transform: uppercase; font-weight: 400; }
.tweaks label { display: block; margin: 10px 0 6px; color: var(--fg-dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.tweaks select, .tweaks input[type="range"] { width: 100%; background: rgba(255,255,255,.04); color: var(--fg); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; font-family: inherit; }

/* Loading */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: #050508;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease;
}
.loader.gone { opacity: 0; pointer-events: none; }
.loader-inner { position: relative; width: 280px; height: 80px; }
.loader-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 500; letter-spacing: -0.035em;
  color: var(--fg);
  opacity: 0;
  animation: loaderText .8s ease 1.4s forwards;
}
.loader-text .cursor {
  display: inline-block; width: 3px; height: 28px; background: var(--violet);
  margin-left: 4px; animation: blink 1s infinite;
  box-shadow: 0 0 12px var(--violet);
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes loaderText { to { opacity: 1; } }
.loader canvas { position: absolute; inset: 0; }
.loader-bar {
  position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  width: 120px; height: 2px; background: rgba(255,255,255,.08); overflow: hidden;
}
.loader-bar::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%;
  width: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan));
  animation: loadBar 2s ease forwards;
}
@keyframes loadBar { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 65px 0 0 0;
    background: rgba(8,8,14,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    font-size: 20px;
    z-index: 49;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a.active::before { display: none; }

  .nav-burger { display: flex; }

  .container, .container-narrow { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
