:root {
  --bg: #000000;
  --green: #0fed9c;
  --white: #ffffff;
  --muted: #a3a3a3;
  --card: #030506;
  --card-border: rgba(255, 255, 255, 0.07);
  --btn-border: rgba(15, 237, 156, 0.32);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main { position: relative; z-index: 1; }

/* ---------- logo (top-left, scrolls with the page) ---------- */
.logo {
  position: absolute;
  top: 36px;
  left: 42px;
  z-index: 2;
}
.logo img { width: 52px; height: auto; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 60px;
  position: relative;
  background: radial-gradient(ellipse 48% 52% at 50% 46%, rgba(15, 237, 156, 0.045), rgba(15, 237, 156, 0.012) 60%, transparent 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; }

.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(56px, 6.6vw, 128px);
  line-height: 1;
  letter-spacing: 0.15em;
  padding-left: 0.15em; /* keep the word optically centred despite trailing spacing */
  color: var(--green);
  text-shadow:
    0 0 14px rgba(15, 237, 156, 0.55),
    0 0 34px rgba(15, 237, 156, 0.35),
    0 0 70px rgba(15, 237, 156, 0.18);
}
.divider {
  width: 150px;
  height: 2px;
  margin: 22px 0 30px;
  background: linear-gradient(90deg, transparent, var(--green) 30%, var(--green) 70%, transparent);
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(15, 237, 156, 0.5);
}
.tagline {
  margin: 0;
  color: var(--green);
  font-size: clamp(20px, 1.4vw, 27px);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.subline {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 20px;
  margin-top: 64px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 76px;
  padding: 0 46px;
  border: 1px solid var(--btn-border);
  border-radius: 2px;
  background: rgba(4, 12, 10, 0.75);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover {
  border-color: var(--green);
  background: rgba(15, 237, 156, 0.06);
  box-shadow: 0 0 24px rgba(15, 237, 156, 0.15);
}
.btn-icon { width: 22px; height: 22px; fill: var(--green); }
.btn-icon.stroke { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.scroll {
  margin-top: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: #9a9a9a;
}
.scroll svg { width: 18px; height: 18px; fill: none; stroke: #9a9a9a; stroke-width: 2; animation: bob 2s ease-in-out infinite; }
.scroll:hover, .scroll:hover svg { color: var(--white); stroke: var(--white); }

/* ---------- features ---------- */
.features {
  position: relative;
  padding: 100px 24px 120px;
}
.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09) 15%, rgba(255, 255, 255, 0.09) 85%, transparent);
}
.grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 28px 30px 30px;
  min-height: 208px;
  transition: border-color .25s, background .25s;
}
.card:hover { border-color: rgba(15, 237, 156, 0.28); background: #06100d; }
.icon {
  width: 30px; height: 30px;
  fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 22px;
}
.card h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--white); }
.card p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.58; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .scroll svg { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .logo { top: 22px; left: 20px; }
  .logo img { width: 40px; }
  .wordmark { letter-spacing: 0.1em; padding-left: 0.1em; }
  .cta-row { flex-direction: column; width: 100%; max-width: 320px; gap: 14px; margin-top: 44px; }
  .btn { height: 62px; font-size: 18px; }
  .scroll { margin-top: 56px; }
  .features { padding: 64px 18px 80px; }
  .features::before { left: 18px; right: 18px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; }
  .card p { font-size: 16px; }
}

/* ================= THEME TOGGLE ================= */
.theme-toggle {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--tt-border, rgba(255, 255, 255, 0.12));
  background: var(--tt-bg, rgba(255, 255, 255, 0.03));
  color: var(--tt-fg, #d7ddd9);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.theme-toggle:hover { border-color: rgba(15, 237, 156, .55); color: var(--green); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .tt-moon { display: none; }
html[data-theme="light"] .theme-toggle .tt-sun { display: none; }
html[data-theme="light"] .theme-toggle .tt-moon { display: block; }
html[data-theme="light"] .theme-toggle { --tt-border: rgba(10, 20, 16, .14); --tt-bg: #ffffff; --tt-fg: #1c2622; box-shadow: 0 1px 2px rgba(10, 20, 16, .06), 0 4px 14px rgba(10, 20, 16, .06); }

/* ================= WHITE THEME: premium grid background ================= */
/* Fine 16px grid inside a 64px major grid, faded toward the edges, with a soft green glow on top. */
html[data-theme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 20, 16, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 20, 16, .075) 1px, transparent 1px),
    linear-gradient(rgba(10, 20, 16, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 20, 16, .03) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
}
html[data-theme="light"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 38% at 50% 0%, rgba(15, 237, 156, .16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 100%, rgba(15, 237, 156, .07), transparent 70%);
}

.corner { position: absolute; top: 40px; right: 42px; z-index: 3; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --green: #00a36a;
  --white: #0b1310;
  --muted: #56615c;
  --card: #ffffff;
  --card-border: rgba(10, 20, 16, 0.09);
  --btn-border: rgba(10, 20, 16, 0.14);
}
html[data-theme="light"] #particles { opacity: .55; }
/* The mark has a white stroke: keep it on a dark tile in the white theme. */
html[data-theme="light"] .logo { background: #070d0b; border-radius: 14px; padding: 9px; box-shadow: 0 6px 20px rgba(10, 20, 16, .18); }
html[data-theme="light"] .logo img { width: 40px; }
html[data-theme="light"] .hero { background: none; }
html[data-theme="light"] .wordmark {
  color: #00a36a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 10px 40px rgba(15, 237, 156, .35);
}
html[data-theme="light"] .divider { box-shadow: none; }
html[data-theme="light"] .btn {
  background: #0b1310;
  border-color: #0b1310;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(10, 20, 16, .18);
}
html[data-theme="light"] .btn .btn-icon { fill: #0fed9c; }
html[data-theme="light"] .btn .btn-icon.stroke { fill: none; stroke: #0fed9c; }
html[data-theme="light"] .btn:hover { background: #111c18; border-color: #0fed9c; box-shadow: 0 10px 34px rgba(15, 237, 156, .28); }
html[data-theme="light"] .scroll, html[data-theme="light"] .scroll svg { color: #6b7671; stroke: #6b7671; }
html[data-theme="light"] .scroll:hover, html[data-theme="light"] .scroll:hover svg { color: #0b1310; stroke: #0b1310; }
html[data-theme="light"] .features::before { background: linear-gradient(90deg, transparent, rgba(10, 20, 16, .1) 15%, rgba(10, 20, 16, .1) 85%, transparent); }
html[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(10, 20, 16, .04), 0 8px 24px rgba(10, 20, 16, .05); }
html[data-theme="light"] .card:hover { background: #ffffff; border-color: rgba(0, 163, 106, .4); box-shadow: 0 1px 2px rgba(10, 20, 16, .04), 0 14px 34px rgba(0, 163, 106, .12); }

@media (max-width: 640px) {
  .corner { top: 24px; right: 20px; }
  .theme-toggle { width: 38px; height: 38px; }
}

/* ---------- section heads ---------- */
.sec-head { max-width: 860px; margin: 0 auto 44px; text-align: center; }
.sec-head.left { max-width: 1440px; text-align: left; margin-bottom: 26px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--green); }
.sec-head h2 { margin: 14px 0 0; font-size: clamp(32px, 3vw, 52px); font-weight: 900; letter-spacing: -.03em; color: var(--white); }
.sec-head p { margin: 20px 0 0; font-size: 18px; line-height: 1.7; color: var(--muted); }
.features + .features { padding-top: 0; }
.features + .features::before { display: none; }

/* ---------- the two desks ---------- */
.desks { position: relative; padding: 110px 24px 40px; }
.desks::before { content: ""; position: absolute; top: 0; left: 50px; right: 50px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09) 15%, rgba(255, 255, 255, 0.09) 85%, transparent); }
.desk-row { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.desk { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 38px 40px 34px; border: 1px solid var(--card-border); border-radius: 12px; background: var(--card); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; }
.desk::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(15, 237, 156, .12), transparent 65%); pointer-events: none; }
.desk:hover { border-color: rgba(15, 237, 156, .4); transform: translateY(-2px); box-shadow: 0 24px 60px -30px rgba(15, 237, 156, .35); }
.desk-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--green); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s ease-in-out infinite; }
.desk h3 { margin: 0; font-size: clamp(26px, 2vw, 34px); font-weight: 900; letter-spacing: -.025em; color: var(--white); }
.desk p { flex: 1; margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.desk-stats { margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.desk-stats > div { padding: 18px 0; min-width: 0; }
.desk-stats > div + div { padding-left: 20px; border-left: 1px solid var(--card-border); }
.desk-stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-stats span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.desk-go { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; font-size: 17px; font-weight: 700; color: var(--green); }
.desk-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.desk:hover .desk-go svg { transform: translateX(4px); }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } }

html[data-theme="light"] .desks::before { background: linear-gradient(90deg, transparent, rgba(10, 20, 16, .1) 15%, rgba(10, 20, 16, .1) 85%, transparent); }
html[data-theme="light"] .desk { box-shadow: 0 1px 2px rgba(10, 20, 16, .04), 0 10px 30px rgba(10, 20, 16, .06); }
html[data-theme="light"] .desk:hover { border-color: rgba(0, 163, 106, .4); box-shadow: 0 1px 2px rgba(10, 20, 16, .04), 0 18px 44px rgba(0, 163, 106, .14); }
html[data-theme="light"] .desk::after { background: radial-gradient(circle, rgba(15, 237, 156, .14), transparent 65%); }

@media (max-width: 1100px) {
  .desk-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .desks { padding: 70px 18px 24px; }
  .desks::before { left: 18px; right: 18px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 16px; }
  .desk { padding: 28px 22px 26px; }
  .desk p { font-size: 16px; }
  .desk-stats b { font-size: 21px; }
  .desk-stats span { font-size: 12px; }
  .desk-stats > div + div { padding-left: 12px; }
}
