:root {
  --bg: #050505;
  --bg-soft: rgba(10, 10, 10, 0.96);
  --panel: #101010;
  --panel-weak: #0d0d0d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --accent-2: #d9d9d9;
  --accent-glow: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, #050505 0%, #060606 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 18%);
}
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
.page-shell {
  width: min(1170px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.site-header,
.site-footer,
.feature-section,
.plans-section,
.faq-section,
.cta-card,
.infra-card,
.content-shell,
.support-grid,
.pricing-shell,
.page-hero,
.spec-shell {
  border: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ffffff;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 6px;
  height: 12px;
  border: 2px solid #0a0a0a;
  border-top-width: 0;
  border-left-width: 0;
  transform: rotate(45deg);
}
.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
.brand-text em { color: #7c7c7c; font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: auto;
}
.site-nav a,
.ghost-link,
.footer-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover,
.ghost-link:hover,
.footer-links a:hover,
.text-link:hover,
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active { position: relative; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: #f1f1f1;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 0.8em;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
  gap: 6px;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  background: #171717;
}

.ghost-link,
.nav-toggle,
.plan-tab,
.feature-pill { border-radius: 999px; }
.ghost-link,
.nav-toggle {
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: #f4f4f4;
  color: #090909;
  font: inherit;
  cursor: pointer;
}
.ghost-link {
  min-height: 38px;
  padding-left: 22px;
  padding-right: 22px;
  border-radius: 14px;
  font-weight: 700;
}
.nav-toggle { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon,
.header-lang {
  width: 42px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151515;
  color: #a0a0a0;
  font: inherit;
}

.header-lang {
  width: 44px;
  color: #d7d7d7;
}

.hero, .page-hero { position: relative; overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  padding: 82px 8px 100px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #7f7f7f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
h1,
.page-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 4.7vw, 3.95rem);
  font-weight: 700;
  line-height: 0.98;
}

h1 span {
  color: #8f8f8f;
  display: block;
  white-space: nowrap;
}
h2 {
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-text,
.section-heading p,
.feature-card p,
.faq-item p,
.cta-card p,
.site-footer p,
.content-shell p,
.content-shell li,
.category-copy,
.infra-list li,
.price-card li,
.spec-card p,
.support-card p,
.support-card li,
.page-hero p {
  color: var(--muted);
  line-height: 1.7;
}
.hero-text {
  max-width: 42ch;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: #9e9e9e;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #090909;
  background: #f3f3f3;
  box-shadow: none;
}
.button-secondary,
.button-card {
  border-color: var(--line);
  background: #171717;
  color: var(--text);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li,
.spec-card,
.support-card,
.category-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hero-stats li { min-width: auto; padding: 0; }
.hero-stats strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  min-height: 420px;
}
.terminal-card,
.floating-note {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0f0f;
  box-shadow: none;
}
.terminal-card {
  inset: 12px 0 0 0;
  padding: 0;
  min-height: 220px;
  height: auto;
}
.terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}
.terminal-top span:nth-child(2) {
  background: #febc2e;
}
.terminal-top span:nth-child(3) {
  background: #28c840;
}
.terminal-card p {
  margin: 0 0 10px;
  padding: 0;
  color: #cfcfcf;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  line-height: 1.18;
}
.terminal-title {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  color: #5b5b5b;
  font-size: 0.74rem;
}

.terminal-body {
  padding: 16px 22px 14px;
  min-height: 0;
  height: auto;
  overflow: visible;
}

.terminal-line-static {
  margin-bottom: 16px;
  color: #dedede;
}

.terminal-line {
  margin-bottom: 8px;
  color: #bfbfbf;
}

.terminal-status {
  color: #f2f2f2;
}

.terminal-message {
  color: #909090;
}

.terminal-output {
  height: auto;
  overflow: visible;
}

.terminal-caret {
  color: #cfcfcf;
  animation: terminal-blink 0.9s steps(1, end) infinite;
}

@keyframes terminal-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
.accent { color: #e9e9e9; }
.server-metrics span,
.floating-note p,
.tag,
.muted-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.server-metrics strong,
.floating-note strong { font-size: 1rem; }
.floating-note { display: none; }
.floating-badge,
.tag,
.feature-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #151515;
  color: #a8a8a8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-section,
.plans-section,
.faq-section,
.cta-card,
.content-shell,
.pricing-shell,
.page-hero,
.spec-shell,
.support-grid {
  padding: 20px 12px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}
.feature-grid,
.plan-panel,
.spec-grid,
.support-grid,
.split-grid {
  display: grid;
  gap: 18px;
}
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card,
.price-card,
.faq-item,
.doc-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0d0d0d;
}
.feature-card,
.spec-card,
.support-card,
.category-card,
.doc-card { padding: 24px; }
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.feature-card::before {
  content: "✦  •";
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  letter-spacing: 6px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 58px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: #d8d8d8;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.feature-card:nth-child(5) .feature-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.75;
}
.feature-card h3,
.price-card .plan-name,
.faq-item summary,
.category-title,
.support-card h3,
.spec-card h3,
.doc-card h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.feature-card h3 {
  margin-bottom: 18px;
}
.plans-section,
.infra-section,
.faq-section,
.cta-section,
.content-section,
.pricing-section,
.spec-section,
.support-section { margin-top: 10px; }
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-card { display: flex; flex-direction: column; gap: 16px; }
.category-title { font-family: "Space Grotesk", sans-serif; }
.bullet-list,
.price-card ul,
.infra-list,
.support-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bullet-list,
.infra-list,
.support-card ul,
.price-card ul { display: grid; gap: 12px; }
.bullet-list li,
.price-card li,
.infra-list li,
.support-card li {
  position: relative;
  padding-left: 20px;
}
.bullet-list li::before,
.price-card li::before,
.infra-list li::before,
.support-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.page-hero {
  margin-top: 22px;
  padding-top: 46px;
  padding-bottom: 34px;
}
.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}
.page-hero p { max-width: 64ch; margin-bottom: 26px; }
.feature-pill {
  margin-right: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(124, 247, 196, 0.18);
}
.pricing-shell { overflow: hidden; }
.plan-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.plan-tab {
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.plan-tab.is-active { color: #05100c; background: var(--accent); }
.plan-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.price-card.featured {
  border-color: var(--line-strong);
  background: #141414;
  transform: translateY(-4px);
}
.plan-price { margin-bottom: 18px; font-size: 2.2rem; font-weight: 800; }
.plan-price span { margin-left: 4px; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.price-card .button { margin-top: auto; }
.spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.infra-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  padding: 36px 12px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

.infra-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.infra-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

.infra-terminal {
  position: relative;
}

.terminal-card-infra {
  position: relative;
  inset: auto;
  min-height: auto;
}

.terminal-body-infra {
  height: auto;
  min-height: 250px;
  overflow: visible;
}

.terminal-success {
  color: #28d767;
  font-weight: 700;
}

.terminal-output-infra {
  min-height: 220px;
}
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px 24px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 14px 0 0; }
.content-shell { display: grid; gap: 18px; }
.content-shell h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.content-shell ul,
.content-shell ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.doc-card h3 { font-family: "Space Grotesk", sans-serif; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 12px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
.brand-footer { margin-bottom: 14px; }
.footer-links {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.eyebrow-badge {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b08f67;
}

.eyebrow-badge::before {
  display: none;
}

@media (max-width: 1080px) {
  .hero,
  .infra-card,
  .feature-grid,
  .spec-grid,
  .support-grid,
  .split-grid,
  .plan-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-panel { min-height: 420px; }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1170px);
    padding-top: 14px;
  }
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a.is-active::after { bottom: -4px; }
  .ghost-link { display: none; }
  .header-actions {
    display: none;
  }
  .hero,
  .site-footer,
  .infra-card,
  .feature-grid,
  .split-grid,
  .plan-panel,
  .spec-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
  .site-footer { flex-direction: column; }
  .footer-links {
    justify-items: start;
  }
  .hero {
    padding: 48px 0;
    gap: 28px;
  }
  h1 {
    max-width: none;
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }
  .hero-panel { min-height: auto; }
  .terminal-card,
  .floating-note {
    position: relative;
    inset: auto;
    width: 100%;
  }
  .terminal-card { margin-bottom: 16px; }
  .feature-section,
  .plans-section,
  .faq-section,
  .cta-card,
  .content-shell,
  .pricing-shell,
  .page-hero,
  .spec-shell,
  .support-grid,
  .infra-card {
    padding: 24px;
    border-radius: 24px;
  }
  .plan-tabs {
    display: grid;
    width: 100%;
  }
}
