/* LumenHelix portfolio — shared base styles */

:root {
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; color: var(--text-secondary); }

.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 3rem;
}

.section-header h2 { margin-bottom: 0.75rem; color: var(--text-primary); }
.section-header p { font-size: 1.125rem; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 33, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.brand img { height: 32px; width: auto; }

.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-header nav a:hover { color: var(--text-primary); }

.parent-link {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  opacity: 0.7;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .site-header nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.hero .container { position: relative; z-index: 1; }

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero .lead {
  font-size: 1.25rem;
  max-width: 55ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.btn-primary:hover {
  box-shadow: 0 0 28px var(--accent-glow);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 200ms ease, transform 200ms ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.card h3 { margin-bottom: 0.5rem; color: var(--text-primary); }
.card p { margin: 0; font-size: 0.9375rem; }

.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Install tabs */
.install-tabs {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
  min-height: 44px;
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.tab-btn[aria-selected="true"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  background: var(--bg-surface);
}

.tab-panel { display: none; padding: 1.5rem; }
.tab-panel[aria-hidden="false"] { display: block; }

.terminal {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: relative;
  overflow-x: auto;
}

.terminal pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.terminal .copy-btn:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.2); }

/* Docs list */
.docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.docs-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.docs-list a { color: var(--text-primary); font-weight: 500; }
.docs-list a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0;
  text-align: center;
}

.site-footer .brand { margin-bottom: 1rem; }
.site-footer p { margin: 0 auto; max-width: 50ch; }
.footer-cta { margin-top: 1.5rem; }
.parent-attribution {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 5rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
