/* NixBiz - Dark Theme (matches Next.js site) */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: oklch(0.12 0.01 260);
  --fg: oklch(0.96 0.01 260);
  --card: oklch(0.16 0.012 260);
  --card-fg: oklch(0.96 0.01 260);
  --muted: oklch(0.22 0.015 260);
  --muted-fg: oklch(0.62 0.02 260);
  --border: oklch(1 0 0 / 8%);
  --primary: oklch(0.65 0.18 250);
  --primary-hover: oklch(0.7 0.18 250);
  --violet-glow: oklch(0.7 0.15 195 / 0.12);
  --indigo-glow: oklch(0.65 0.15 280 / 0.08);
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: oklch(0.12 0.01 260 / 0.95);
  backdrop-filter: blur(8px);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--fg); }
.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
nav { display: none; }
@media (min-width: 768px) { nav { display: flex; gap: 0.25rem; } }
nav a { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; }
nav a:hover { color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Mobile menu */
.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--fg);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-nav {
  display: none;
  position: fixed;
  top: 4rem;
  right: 0;
  width: 280px;
  height: calc(100vh - 4rem);
  background: var(--card);
  border-left: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 40;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 500; color: var(--fg); }
.mobile-nav a:hover { background: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(90deg, #6d28d9, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}
.btn-outline {
  border: 2px solid var(--border);
  background: transparent;
  color: var(--fg);
}
.btn-outline:hover { background: var(--muted); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 8rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--violet-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, var(--indigo-glow), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, oklch(0.6 0.1 195 / 0.06), transparent);
}
.hero .content { text-align: center; max-width: 56rem; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--fg); }
@media (min-width: 768px) { .hero h1 { font-size: 3.5rem; } }
.gradient-text {
  background: linear-gradient(90deg, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted-fg); max-width: 42rem; margin-left: auto; margin-right: auto; }
.hero .actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .hero .actions { flex-direction: row; justify-content: center; } }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .stats {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.hero .stats div { text-align: center; }
.hero .stats .value { font-size: 1.875rem; font-weight: 700; }
.hero .stats .label { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--muted); }
.section-header { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.section-header h2 { font-size: 1.875rem; font-weight: 700; color: var(--fg); }
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-fg); }

/* Cards */
.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
  color: var(--card-fg);
}
.card:hover {
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}
.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(79, 70, 229, 0.2));
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.card-icon .badge-icon {
  color: inherit;
}
.card-icon .badge-icon svg {
  color: inherit;
}
.card-icon:has(.badge-icon) .badge-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.card-icon.card-icon--large .badge-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.card-thumbnail {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  background: var(--muted);
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card h3 { margin-top: 1rem; font-size: 1.25rem; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-fg); }
.card .badge { margin-left: auto; font-size: 0.75rem; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.card-content { margin-top: 1rem; }

/* Category cards */
.cat-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  color: var(--fg);
}
.cat-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}
.cat-card .icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(79, 70, 229, 0.2));
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cat-card h3 { margin-top: 1rem; font-size: 1rem; }
.cat-card p { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Main content */
main { flex: 1; }

/* Footer */
footer {
  position: relative;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, oklch(0.14 0.012 260) 0%, oklch(0.1 0.01 260) 100%);
  padding: 2rem 0;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), rgba(79, 70, 229, 0.4), transparent);
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr auto auto;
    gap: 3rem;
  }
}
.footer-brand .logo {
  transition: opacity 0.2s;
}
.footer-brand .logo:hover {
  opacity: 0.9;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted-fg);
  max-width: 22rem;
  line-height: 1.65;
}
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(0.25 0.02 260);
  background: oklch(0.18 0.015 260);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.footer-social a:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.footer-nav {
  min-width: 0;
}
.footer h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  color: var(--muted-fg);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer ul a {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer ul a:hover {
  color: var(--fg);
  padding-left: 0.25rem;
}
.footer-bottom {
  margin-top: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-bottom-left,
.footer-bottom-right {
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom-left a {
  color: var(--muted-fg);
}
.footer-bottom-left a:hover {
  color: var(--fg);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer-bottom-right a {
  color: var(--muted-fg);
}
.footer-bottom-right a:hover {
  color: var(--fg);
}
.footer-bottom-right span:not(.footer-sep) {
  color: var(--muted-fg);
}
.footer-bottom-right .bmc-link img {
  height: 28px;
  display: block;
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-linkedin .linkedin-icon {
  flex-shrink: 0;
}
.footer-sep {
  color: var(--muted-fg);
  opacity: 0.6;
}

/* Product detail */
.breadcrumb { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb a { font-size: 0.875rem; color: var(--muted-fg); }
.breadcrumb a:hover { color: var(--fg); }
.product-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 1fr 1fr; } }
.product-image {
  aspect-ratio: 16/9;
  border-radius: 0.75rem;
  background: var(--muted);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-list { list-style: none; }
.feature-list li { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.feature-list li::before { content: "✓"; color: var(--primary); font-weight: bold; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tags span {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  background: var(--muted);
  border-radius: 0.375rem;
  color: var(--muted-fg);
}

/* Prose */
.prose { max-width: 48rem; margin: 0 auto; color: var(--fg); }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--muted-fg); }
.prose ul { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* Mission box */
.mission-box {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}
.mission-box h2 { margin-bottom: 1rem; }
.mission-box p { color: rgba(255, 255, 255, 0.9); }

/* Values */
.values-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

/* Timeline */
.timeline { max-width: 48rem; margin: 0 auto; }
.timeline-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.timeline-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-line { width: 1px; background: var(--border); margin: 0.5rem 0 0 1.25rem; min-height: 2rem; }
.timeline-content h3 { font-size: 1.25rem; color: var(--fg); }
.timeline-content p { color: var(--muted-fg); margin-top: 0.5rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stats-grid .value { font-size: 2rem; font-weight: 700; }
@media (min-width: 768px) { .stats-grid .value { font-size: 2.5rem; } }
.stats-grid .label { font-size: 0.875rem; color: var(--muted-fg); margin-top: 0.5rem; }

/* CTA box */
.cta-box {
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 2rem;
  text-align: center;
  color: var(--fg);
}
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { color: var(--muted-fg); }
.cta-box .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Buy me a coffee */
.bmc-link { display: inline-block; }
.bmc-link img { height: 2.5rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(0.35 0.02 260); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: oklch(0.45 0.025 260); }
