:root {
  --bg-main: #050509;
  --bg-elevated: #0b0b12;
  --bg-card: #10101a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #f5f5f7;
  --text-muted: #a0a3b1;
  --accent-primary: #7b5cff;
  --accent-secondary: #3ce4ff;
  --accent-gold: #f6c453;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: #050509;
  color: #f5f5f7;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.16;
  color: var(--text-main);
  letter-spacing: -0.018em;
}

h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
}

h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 750;
}

h3 {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 700;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

section {
  margin-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top left, rgba(123, 92, 255, 0.18), transparent 55%), var(--bg-main);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:first-child {
  margin-left: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-secondary);
}

.hero,
.hero-section,
.section-hero,
.hero-container {
  padding: 40px 0 32px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-secondary);
  font-weight: 700;
}

.hero-title {
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.section-heading,
section > h2 {
  margin: 0 0 18px;
  color: var(--text-main);
}

.section-intro {
  max-width: 760px;
  margin: -4px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card,
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card::after,
.card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(246, 196, 83, 0.12), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.product-card:hover,
.card:hover {
  border-color: #ff2b5c;
  box-shadow:
    0 0 0 1.5px #ff2b5c,
    0 0 12px rgba(255, 43, 92, 0.35),
    0 0 22px rgba(255, 43, 92, 0.25);
  transform: translateY(-1px);
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    transform 0.15s ease-out;
}

.product-tagline {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent-secondary);
  font-weight: 700;
}

.product-card h2,
.product-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.product-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
  flex-grow: 1;
}

.feature-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.feature-list li {
  margin-bottom: 6px;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.btn-primary,
.buy-button,
.access-button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #050509;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
  width: fit-content;
  margin-top: auto;
}

.btn-primary:hover,
.buy-button:hover,
.access-button:hover,
.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.buy-button + .product-price {
  margin-top: 14px;
}

.buy-button + .buy-button {
  margin-top: 10px;
}

.access-button + .access-button,
.access-button + .buy-button,
.buy-button + .access-button {
  margin-top: 10px;
}

.site-search {
  margin-left: 18px;
  position: relative;
  min-width: 220px;
}

.site-search input[type="search"] {
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.45);
  background: #16162a;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-search input[type="search"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 0 4px rgba(123, 92, 255, 0.24), 0 0 16px rgba(123, 92, 255, 0.24);
}

.site-search input[type="search"]::placeholder {
  color: #8a8aa5;
}

.site-search-results {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px;
  z-index: 30;
}

.site-search-results.is-visible {
  display: block;
}

.site-search-result {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-secondary);
}

.site-search-result span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
  padding: 18px 0 26px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 0;
  padding-bottom: 0;
}

.accent-gold {
  color: var(--accent-gold);
}

.accent-pink {
  color: var(--accent-primary);
}

.accent-blue {
  color: var(--accent-secondary);
}

.accent-green {
  color: var(--accent-gold);
}

.text-charcoal {
  color: var(--text-main);
}

.hero-section,
.section-hero,
.hero,
.hero-container {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}

.core-systems,
.core-systems-section,
.systems,
.section-systems {
  margin-top: 0 !important;
  padding-top: 8px !important;
}

@media (max-width: 860px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-search {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    min-width: 0;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 42px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .product-grid {
    gap: 16px;
  }
}

.surface-switcher {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 12px;
  z-index: 9999;
}

.surface-link {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
}

.surface-link:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .site-header,
  body > nav {
    padding-top: 48px;
  }
}
