:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --border: #262626;
  --text: #fafafa;
  --muted: #a1a1aa;
  --primary: #006fee;
  --primary-hover: #005bc4;
  --glow: rgba(0, 111, 238, 0.45);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --text: #09090b;
  --muted: #71717a;
  --glow: rgba(0, 111, 238, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Aurora frame (SaaS template style) */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(34, 211, 238, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(168, 85, 247, 0.3), transparent 50%),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(74, 222, 128, 0.22), transparent 45%),
    transparent;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .nav {
  background: rgba(250, 250, 250, 0.9);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle svg { display: block; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.nav-links.is-open .nav-dropdown,
.nav-links.is-open .dropdown-panel {
  position: static;
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

.nav-links.is-open .dropdown-panel {
  margin-left: 0.5rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-links.is-open .nav-dropdown,
  .nav-links.is-open .dropdown-panel {
    position: relative;
  }

  .nav-links.is-open .dropdown-panel {
    position: absolute;
    margin-left: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

.nav-links a,
.nav-dropdown summary {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  list-style: none;
}

.nav-links a:hover,
.nav-dropdown summary:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-dropdown { position: relative; }
.nav-dropdown summary::-webkit-details-marker { display: none; }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 10rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dropdown-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 0.5rem;
}

.dropdown-panel a:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-glow {
  box-shadow: 0 0 0 1px rgba(0, 111, 238, 0.3), 0 8px 32px var(--glow);
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 111, 238, 0.5), 0 12px 40px var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.price-card .btn-outline {
  width: 100%;
  margin-top: auto;
}

.btn-outline:hover {
  background: var(--surface-2);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.pill {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto 1.25rem;
  max-width: min(22rem, 92vw);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

/* Partners */
.partners {
  text-align: center;
  padding: 2rem 0 3rem;
}

.section-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.partner-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.partner-row li {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.partner-row li:hover { opacity: 1; }

.ico {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--surface-2);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.ico.docker { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232496ED'%3E%3Cpath d='M13.5 11h2v2h-2v-2zm-3 0h2v2h-2v-2zm-3 0h2v2H7.5v-2zm-3 0h2v2h-2v-2zm9-4h2v2h-2V7zm-3 0h2v2h-2V7zm-3 0h2v2h-2V7zm-3 0h2v2h-2V7zm-3 0h2v2h-2V7zM4 10H2v2.5c0 3.6 2.7 6.5 6.1 7.1l.4.1h8.8c1.8 0 3.2-1.5 3.2-3.3V10h-2v6.4c0 .6-.5 1.1-1.1 1.1H8.5c-2.5 0-4.5-2-4.5-4.5V10z'/%3E%3C/svg%3E"); }
.ico.react { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2361DAFB'%3E%3Cpath d='M12 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm9.5 2.5c0-.8-.1-1.6-.3-2.3a11.5 11.5 0 0 0-.8-2.1 10.8 10.8 0 0 0-1.2-1.9 9.6 9.6 0 0 0-1.6-1.5 8.5 8.5 0 0 0-2-1.1A7.8 7.8 0 0 0 12 4a7.8 7.8 0 0 0-2.6.7 8.5 8.5 0 0 0-2 1.1 9.6 9.6 0 0 0-1.6 1.5 10.8 10.8 0 0 0-1.2 1.9c-.3.7-.6 1.4-.8 2.1-.2.7-.3 1.5-.3 2.3s.1 1.6.3 2.3c.2.7.5 1.4.8 2.1.4.7.8 1.3 1.2 1.9.5.6 1 1.1 1.6 1.5.6.4 1.3.8 2 1.1.8.4 1.7.6 2.6.7.9.1 1.8.1 2.6 0 .9-.1 1.8-.3 2.6-.7.7-.3 1.4-.7 2-1.1.6-.4 1.1-.9 1.6-1.5.4-.6.8-1.2 1.2-1.9.3-.7.6-1.4.8-2.1.2-.7.3-1.5.3-2.3zM12 7.2c2.9 0 5.3 2.1 5.3 4.8S14.9 16.8 12 16.8 6.7 14.7 6.7 12 9.1 7.2 12 7.2z'/%3E%3C/svg%3E"); }
.ico.linux { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FCC624'%3E%3Cpath d='M12 3C7 3 3 6.5 3 11c0 2.2 1 4.2 2.6 5.5L5 21l3.5-1.5c1 .3 2.1.5 3.5.5 5 0 9-3.5 9-8s-4-9-9-9z'/%3E%3C/svg%3E"); }
.ico.debian { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A81D33'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }
.ico.go { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ADD8'%3E%3Ctext x='4' y='17' font-size='14' font-weight='bold' fill='%23fff'%3EGo%3C/text%3E%3C/svg%3E"); }
.ico.compose { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232496ED'%3E%3Cpath d='M4 8h16v2H4V8zm0 5h10v2H4v-2z'/%3E%3C/svg%3E"); }

/* Pricing */
.pricing {
  text-align: center;
  padding: 2rem 0 4rem;
}

.pricing h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-desc {
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  text-align: left;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 16px 48px rgba(0, 111, 238, 0.12);
}

.popular {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
}

.price { margin: 0.5rem 0; }
.amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.price-card li { margin: 0.35rem 0; }

.download-inline {
  margin-top: 0.5rem;
  text-align: left;
}

.download-inline .dl-meta,
.download-inline .dl-sha {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.35rem 0;
}

.download-inline .btn-primary {
  width: 100%;
  margin-top: 0.75rem;
}

.download-inline .dl-copy-sha {
  width: 100%;
  margin-top: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: rgba(0, 111, 238, 0.15);
  color: var(--primary);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  margin-left: 0.35rem;
}

.loading { color: var(--muted); font-size: 0.9rem; }

/* Features & rest */
.section-block {
  padding: 3rem 0;
}

.section-block.muted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.65);
}

[data-theme="light"] .section-block.muted {
  background: rgba(244, 244, 245, 0.85);
}

.section-block h2 {
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.feature-grid h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.4rem 0 0.4rem 2.75rem;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8rem;
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.code-block code { font-family: ui-monospace, monospace; }

#copy-install {
  display: inline-flex;
  margin: 0 auto;
  width: auto;
}

.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 500;
}

.faq-list p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-links a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }
