:root {
  /* brand palette */
  --ruby: rgb(129, 24, 77);       /* main */
  --midnight: rgb(0, 30, 67);     /* secondary / brand */
  --ruby-light: rgb(214, 132, 172);
  --midnight-light: rgb(140, 163, 199);

  --bg: #05070d;
  --bg-alt: #080b17;
  --surface: #0b0f1e;
  --surface-2: #101427;
  --border: #1d2440;

  --text: #eceef3;
  --text-dim: #9aa1b5;
  --text-faint: #5b6178;

  --accent: var(--ruby);
  --accent-light: var(--ruby-light);
  --brand: var(--midnight);
  --brand-light: var(--midnight-light);

  --radius: 14px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { opacity: 0.92; }

.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-light); }

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--border);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 13, 18, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo__mark img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.logo__suffix { color: var(--text-dim); font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.nav__links a:not(.btn) { transition: color 0.15s ease; }
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 700px;
  background-image:
    linear-gradient(to right, rgba(129, 24, 77, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(129, 24, 77, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 40%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 800px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-light);
  background: rgba(129, 24, 77, 0.14);
  border: 1px solid rgba(129, 24, 77, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(129, 24, 77, 0.3);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Stats ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 40px 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-light);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-eyebrow--brand { color: var(--brand-light); }
.products h2, .performance h2, .why h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---------- Products ---------- */
.products { padding: 100px 0; }
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: rgba(129, 24, 77, 0.45);
  transform: translateY(-2px);
}
.product-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(129, 24, 77, 0.16);
  color: var(--accent-light);
  margin-bottom: 22px;
}
.product-card__icon svg { width: 22px; height: 22px; }
.product-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.product-card p { color: var(--text-dim); margin-bottom: 20px; }
.product-card__points li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.product-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent-light);
}

/* ---------- Performance ---------- */
.performance {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.performance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.perf-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(140, 163, 199, 0.14);
  color: var(--brand-light);
  margin-bottom: 20px;
}
.perf-card__icon svg { width: 20px; height: 20px; }
.perf-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.perf-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Why ---------- */
.why { padding: 100px 0; }
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.why__copy p {
  color: var(--text-dim);
  margin-top: 18px;
  font-size: 1.02rem;
}
.why__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.why__item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.why__item:last-child { border-bottom: none; padding-bottom: 0; }
.why__num {
  font-family: var(--font-mono);
  color: var(--accent-light);
  font-size: 0.9rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.why__item p { color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta {
  padding: 110px 0;
  text-align: center;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(129, 24, 77, 0.16), transparent);
}
.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.cta p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo--footer { font-size: 0.95rem; }
.footer__copy {
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: 1fr; }
  .performance__grid { grid-template-columns: 1fr; }
  .why__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .hero { padding: 80px 0 60px; }
  .stats__grid { grid-template-columns: 1fr 1fr; padding: 32px 24px; }
}
