:root {
  --bg: #101010;
  --surface: #181818;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;

  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #707070;

  --green: #2ecc71;
  --green-hover: #27ae60;

  --red: #e74c3c;

  --content-width: 1120px;
  --page-padding: 24px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: "";
  position: absolute;
  left: calc(50% + 180px);
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--green);
  pointer-events: none;
}

.site-header__inner {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__tagline {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__tagline-marker {
  display: block;
  width: 22px;
  height: 1px;
  flex-shrink: 0;
  background: var(--green);
}

.brand__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand__name {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  transition:
    color var(--transition),
    opacity var(--transition);
}

.site-nav a:hover {
  color: var(--text);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--text);
}

.mobile-nav {
  display: none;
}

main {
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--green);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--green-hover);
}

.button--secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button--secondary:hover {
  border-color: #3a3a3a;
  background: var(--surface-2);
}

.section-label {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.section-intro h2 {
  margin: 0;
  max-width: 700px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition:
    color var(--transition),
    transform var(--transition);
}

.text-link:hover {
  color: var(--green);
  transform: translateX(2px);
}

.site-footer {
  border-top: 1px solid var(--border);
}
.site-footer {
  position: relative;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: calc(50% + 260px);
  top: -1px;
  width: 54px;
  height: 2px;
  background: var(--green);
  pointer-events: none;
}

.site-footer__inner {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));
  min-height: 120px;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-footer__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.site-footer__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-footer__nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
}

.site-footer__nav a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color var(--transition);
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__copyright {
  flex-shrink: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
  }

  .site-header__inner {
    min-height: 68px;
    gap: 20px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }
  .brand__tagline {
    display: none;
  }

  .mobile-nav {
    width: min(calc(100% - (var(--page-padding) * 2)), var(--content-width));
    margin: 0 auto 14px;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
  }

  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav a {
    padding: 13px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-radius: var(--radius-sm);
  }

  .mobile-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
  }

  .section-intro h2 {
    font-size: 29px;
  }

  .site-footer__inner {
    min-height: 0;
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .site-footer__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer__copyright {
    order: 3;
  }
  .site-header::after {
    left: auto;
    right: 88px;
    width: 48px;
  }

  .site-footer::after {
    right: auto;
    left: 32px;
    width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* =========================================================
   PRODUCTS NAVIGATION
   ========================================================= */

.nav-products {
  position: relative;
}

/* TRIGGER */

.nav-products__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--text-secondary);

  font: inherit;

  cursor: pointer;

  transition: color var(--transition);
}

.nav-products__trigger:hover,
.nav-products:focus-within .nav-products__trigger {
  color: var(--text);
}

.nav-products__chevron {
  position: relative;

  top: -1px;

  color: var(--text-muted);

  font-size: 13px;

  transition:
    color var(--transition),
    transform var(--transition);
}

.nav-products:hover .nav-products__chevron,
.nav-products:focus-within .nav-products__chevron {
  color: var(--green);

  transform: rotate(180deg);
}

/* =========================================================
   DROPDOWN
   ========================================================= */

.nav-products__menu {
  position: absolute;

  z-index: 100;

  top: calc(100% + 18px);
  left: 50%;

  width: 340px;

  padding: 18px;

  border: 1px solid #303030;

  background: #161616;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;

  transform: translateX(-50%) translateY(-6px);

  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition);
}

/* invisible bridge between nav and menu */

.nav-products__menu::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  top: -20px;

  height: 20px;
}

.nav-products:hover .nav-products__menu,
.nav-products:focus-within .nav-products__menu {
  opacity: 1;
  visibility: visible;

  transform: translateX(-50%) translateY(0);
}

/* green technical marker */

.nav-products__menu::after {
  content: "";

  position: absolute;

  top: -1px;
  left: 24px;

  width: 55px;
  height: 1px;

  background: var(--green);
}

/* =========================================================
   DROPDOWN HEADING
   ========================================================= */

.nav-products__menu-head {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 2px 5px 13px;

  color: var(--green);

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.12em;
}

.nav-products__menu-line {
  width: 28px;
  height: 1px;

  background: var(--green);
}

/* =========================================================
   PRODUCT ITEM
   ========================================================= */

.nav-product {
  min-height: 72px;

  display: grid;

  grid-template-columns: minmax(0, 1fr) auto;

  gap: 15px;

  align-items: center;

  padding: 13px 7px;

  border-top: 1px solid #292929;

  transition:
    padding var(--transition),
    background-color var(--transition);
}

a.nav-product:hover {
  padding-left: 12px;
  padding-right: 12px;

  background: #1d1d1d;
}

.nav-product__main {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.nav-product__main strong {
  color: var(--text);

  font-size: 13px;

  font-weight: 500;

  line-height: 1.3;
}

.nav-product__main small {
  color: var(--text-muted);

  font-size: 10px;

  font-weight: 400;

  line-height: 1.45;
}

.nav-product__status {
  color: var(--text-muted);

  font-size: 8px;

  font-weight: 600;

  letter-spacing: 0.09em;
}

.nav-product__status--ready {
  color: var(--green);
}

/* FUTURE PRODUCTS */

.nav-product--coming {
  opacity: 0.58;

  cursor: default;
}

/* =========================================================
   MOBILE PRODUCTS
   ========================================================= */

.mobile-products {
  width: 100%;

  border-bottom: 1px solid #292929;
}

.mobile-products summary {
  min-height: 48px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  color: var(--text-secondary);

  cursor: pointer;

  list-style: none;
}

.mobile-products summary::-webkit-details-marker {
  display: none;
}

.mobile-products__symbol {
  color: var(--green);

  font-size: 18px;

  font-weight: 400;

  transition: transform var(--transition);
}

.mobile-products[open] .mobile-products__symbol {
  transform: rotate(45deg);
}

/* nested products */

.mobile-products__list {
  padding: 0 0 12px 15px;

  border-left: 1px solid #303030;
}

.mobile-products__list > a,
.mobile-products__coming {
  min-height: 44px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  padding: 9px 10px;

  border-bottom: 1px solid #262626;
}

.mobile-products__list > a {
  color: var(--text);

  font-size: 13px;
}

.mobile-products__coming {
  color: var(--text-muted);

  font-size: 12px;

  opacity: 0.65;
}

.mobile-products__list small {
  flex-shrink: 0;

  color: var(--text-muted);

  font-size: 8px;

  font-weight: 600;

  letter-spacing: 0.08em;
}

.mobile-products__list .mobile-products__ready {
  color: var(--green);
}

/* =========================================================
   DESKTOP ONLY
   ========================================================= */

@media (min-width: 769px) {
  .mobile-products {
    display: none;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .nav-products {
    display: none;
  }
}
