/* ── GERACTI SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --cyan: #00d4ff;
  --cyan-dim: rgba(0,212,255,0.12);
  --cyan-glow: rgba(0,212,255,0.35);
  --bg: #050508;
  --bg2: #080b10;
  --surface: #0d1117;
  --border: rgba(0,212,255,0.15);
  --text: #ffffff;
  --text-dim: rgba(255,255,255,0.55);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(5,5,8,0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
nav.anim-in {
  transform: translateY(-100%);
  transition: transform 0.6s 1.2s cubic-bezier(0.76,0,0.24,1);
}
nav.anim-in.visible { transform: translateY(0); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 18px; font-weight: 800;
  text-decoration: none; color: var(--text); letter-spacing: -0.01em;
}
.nav-logo span { color: var(--cyan); }
.nav-logo-icon { width: 28px; height: 28px; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--text-dim); text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-cta {
  background: var(--cyan); color: #000; border: none;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; padding: 10px 22px; cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  min-height: 42vh;
  display: flex; align-items: flex-end;
  padding: 120px 48px 64px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.page-hero-grid {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  perspective: 600px;
}
.page-hero-grid-inner {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(0,212,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(72deg) translateY(30%);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
  animation: gridShift 8s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}
.page-hero-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.06) 0%, transparent 70%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; width: 100%;
}
.page-hero-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.page-hero-label::before { content: ''; width: 28px; height: 1px; background: var(--cyan); }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-hero-title .accent { color: var(--cyan); }
.page-hero-title .outline {
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  color: transparent;
}

/* ── SECTION COMMON ── */
section { padding: 100px 48px; }
.section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--cyan); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 20px;
  text-wrap: balance;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--cyan); color: #000;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 16px 36px; border: none; cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  position: relative; overflow: hidden;
  transition: transform 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.4s;
}
.btn-primary:hover::after { transform: translateX(150%) skewX(-15deg); }
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--text);
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: border-color 0.3s, color 0.3s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-logo { font-family: var(--font-head); font-size: 16px; font-weight: 800; }
.footer-logo span { color: var(--cyan); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  display: none;
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  background: #0d1117; border: 1px solid var(--border);
  padding: 20px; width: 240px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#tweaks-panel.open { display: block; }
.tweaks-title {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 16px; color: var(--cyan);
}
.tweak-item { margin-bottom: 14px; }
.tweak-label { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; display: block; }
.tweak-select, .tweak-color {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text); font-size: 12px; padding: 7px 10px;
  outline: none; cursor: pointer;
}
.tweak-color { height: 36px; padding: 2px 4px; }
