/* ============================================================
   base.css — Shared styles for AutomationVault
   Used by: index.html, founder.html
   ============================================================ */

/* ── Variables ── */
:root {
  --void:          #06090f;
  --deep:          #080d1c;
  --panel:         rgba(8,13,28,0.82);
  --panel-hover:   rgba(10,16,36,0.92);
  --beam:          #60a5fa;
  --beam-bright:   #93c5fd;
  --beam-dim:      #3b82f6;
  --border:        rgba(96,165,250,0.12);
  --border-hover:  rgba(96,165,250,0.3);
  --text:          #f1f5f9;
  --text-dim:      rgba(241,245,249,0.52);
  --text-muted:    rgba(241,245,249,0.26);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Spotlight Stage (fixed, behind everything) ── */
.spotlight-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: #06090f url('../brand_assets/spotlightbg.png') center top / cover no-repeat;
  overflow: hidden;
}
/* Cone and core are hidden — spotlightbg.png provides the beam atmosphere */
.spotlight-cone { display: none; }
.spotlight-core { display: none; }

/* ── Noise Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

#nav, main, footer { position: relative; z-index: 1; }

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 80px;
  background: rgba(6,9,15,0.78);
  border-bottom: 1px solid rgba(96,165,250,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeIn 0.4s ease 0.1s both;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo-box {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 68px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Drops the baked-in black background on the dark nav */
  mix-blend-mode: screen;
}

.nav-links { display: flex; align-items: center; gap: 2.5rem; justify-content: center; }
.nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(241,245,249,0.78);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--beam);
  transition: width 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--beam-bright); }
.nav-link.active::after { width: 100%; background: var(--beam); }
.nav-link:focus-visible { outline: 2px solid var(--beam); outline-offset: 4px; border-radius: 2px; }

.lang-pair { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
  transition: color 0.2s ease;
}
.lang-btn:hover, .lang-btn.active { color: var(--beam-bright); }
.lang-sep { color: rgba(96,165,250,0.2); font-size: 0.625rem; }

.btn-nav-cta {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--beam);
  padding: 0.5rem 1.375rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
  transition: background 0.2s ease,
              transform 0.2s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.2s ease;
}
.btn-nav-cta:hover {
  background: var(--beam-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(96,165,250,0.28);
}
.btn-nav-cta:active { transform: translateY(0); }
.btn-nav-cta:focus-visible { outline: 2px solid var(--beam-bright); outline-offset: 3px; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(241,245,249,0.7);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: rgba(6,9,15,0.97);
  border-top: 1px solid rgba(96,165,250,0.1);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem 2rem;
  z-index: 498;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(96,165,250,0.07);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  display: block;
  color: rgba(241,245,249,0.7);
}
.nav-mobile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
}

/* ── Section Layout ── */
.section-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--beam);
  margin-bottom: 1.25rem;
}

.section-h2 {
  font-family: 'General Sans', 'Syne', sans-serif;
  font-size: clamp(2.125rem, 4vw, 3.625rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(96,165,250,0.35), transparent);
  margin: 2rem 0;
  max-width: 280px;
}

/* ── Content Panel (floating rounded dark card) ── */
.content-panel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-panel {
  background: rgba(5,8,18,0.9);
  border: 1px solid rgba(96,165,250,0.1);
  border-radius: 24px;
  padding: 4.5rem 4rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(96,165,250,0.04),
    0 40px 80px rgba(0,0,0,0.55),
    0 4px 16px rgba(0,0,0,0.4);
}

.panel-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.panel-h2 {
  font-family: 'General Sans', 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 0.875rem;
  margin-bottom: 1.25rem;
}

.panel-intro {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.78;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn-primary {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--void);
  background: var(--beam);
  padding: 0.9375rem 2.375rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 3px;
  transition: background 0.2s ease,
              transform 0.2s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--beam-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(96,165,250,0.32);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--beam-bright); outline-offset: 3px; }

.btn-ghost {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(241,245,249,0.14);
  padding: 0.9375rem 2.375rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover {
  border-color: rgba(96,165,250,0.35);
  color: var(--text);
}
.btn-ghost:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
