:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.48);
  --accent: #007acc;
  --accent-hi: #4db8ff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --max-w: 920px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.subtle {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* Nav */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar.navbar--solid {
  background: rgba(12, 12, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.navbar__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
}

.navbar__logo--small {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.navbar__nav {
  display: flex;
  gap: 2px;
}

.navbar__nav a {
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.navbar__nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.navbar__menu span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.navbar__drawer {
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.95);
  padding: 10px 22px 16px;
  display: grid;
  gap: 4px;
}

.navbar__drawer a {
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}

.navbar__drawer a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.navbar__drawer[hidden] {
  display: none !important;
}

.navbar__cta {
  font-size: 12px;
}

.hide-mobile {
  display: inline-flex;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

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

.btn--primary:hover {
  background: #0088e6;
}

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

.btn--outline:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn--full {
  width: 100%;
}

.btn--link {
  padding: 0;
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hi);
  border: none;
  background: none;
  justify-content: flex-start;
}

.btn--link:hover {
  color: #fff;
}

/* Hero */
.hero {
  padding: 108px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: 52ch;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero__subtitle {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section--products {
  padding-top: 56px;
}

.section__head {
  margin-bottom: 28px;
}

.section__title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__lede {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: var(--border-hover);
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.product-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  color: #0c0c0e;
}

.product-card__logo--a {
  background: linear-gradient(135deg, #7fd4ff, #007acc);
}

.product-card__logo--b {
  background: linear-gradient(135deg, #86efac, #2563eb);
}

.product-card__header .product-card__icon {
  box-sizing: border-box;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.product-card__header .product-card__icon img {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  background-color: #ffffff;
}

.product-card__logo--c {
  background: linear-gradient(135deg, #fde047, #ea580c);
}

.product-card__logo--d {
  background: linear-gradient(135deg, #93c5fd, #0078d4);
}

.product-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-card__cat {
  margin: 2px 0 0;
  font-size: 12px;
}

.product-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.product-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  margin-left: auto;
}

.badge--live {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.06);
}

.badge--dev {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.25);
  background: rgba(96, 165, 250, 0.06);
}

.badge--alpha {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
}

.badge--proto {
  color: #93c5fd;
  border-color: rgba(0, 122, 204, 0.25);
  background: rgba(0, 122, 204, 0.08);
}

/* Ecosystem */
.section--ecosystem {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.eco-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.eco-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(0, 122, 204, 0.35);
  background: rgba(0, 122, 204, 0.08);
  flex-shrink: 0;
}

.eco-hub__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eco-hub__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.eco-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eco-item {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eco-item--wide {
  grid-column: 1 / -1;
}

.eco-item__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eco-item__desc {
  font-size: 12px;
  line-height: 1.4;
}

/* Building */
.section--building {
  padding-top: 40px;
}

.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.build-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.build-item:last-child {
  border-bottom: none;
}

.build-item__index {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hi);
  opacity: 0.7;
  padding-top: 2px;
}

.build-item__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.build-item__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

/* Philosophy */
.section--philosophy {
  padding: 48px 0 72px;
  border-top: 1px solid var(--border);
}

.philosophy {
  padding: 0;
  border: none;
  background: none;
}

.philosophy__quote {
  margin: 0;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

/* Footer */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.footer__bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .navbar__nav {
    display: none;
  }

  .navbar__menu {
    display: flex;
  }

  .hide-mobile {
    display: none !important;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .eco-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eco-hub {
    width: 72px;
    height: 72px;
    margin: 0 auto;
  }

  .eco-grid {
    grid-template-columns: 1fr;
  }

  .build-item {
    grid-template-columns: 40px 1fr;
    padding: 16px;
  }
}
