/* ==========================================================================
   Stridelane — shared styles
   ========================================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --accent: #0066FF;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

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

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 120px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 64px);
  max-width: 1400px;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 102, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

header.header-hidden {
  transform: translateX(-50%) translateY(-120px);
  opacity: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand a {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.brand a:focus-visible {
  outline: 2px solid rgba(51, 153, 255, 0.75);
  outline-offset: 4px;
}

.brand img {
  height: clamp(40px, 4vw, 56px);
  width: auto;
  filter: brightness(1.2) contrast(1.3);
  mix-blend-mode: screen;
}

.brand .wordmark { font-weight: 600; letter-spacing: 0.02em; color: var(--text); }

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

nav a {
  padding: 10px 20px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav a:hover, nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

nav a.active {
  color: var(--text);
  background: rgba(0, 102, 255, 0.15);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill 0.3s ease;
}

.social-link:hover svg {
  fill: var(--accent);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-btn:hover {
  background: #3399FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.ghost-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.secondary-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Section headings & badges
   -------------------------------------------------------------------------- */

.section-title {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::before {
  content: "";
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  margin-top: 120px;
  padding: 40px 0;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

main { padding-top: 120px; }

@media (max-width: 1024px) {
  header {
    top: 16px;
    width: calc(100% - 32px);
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    justify-content: center;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-shell {
    padding: 0 20px 80px;
  }

  main { padding-top: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
