:root {
  --bg: #050816;
  --bg-soft: #070b20;
  --text: #f3f4ff;
  --muted: rgba(243, 244, 255, 0.72);
  --faint: rgba(243, 244, 255, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --panel: rgba(15, 23, 42, 0.9);
  --panel-soft: rgba(15, 23, 42, 0.75);

  --accent-1: #6366f1;
  --accent-2: #22c1c3;

  --max: 1040px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #e5edff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.8);
  --faint: rgba(15, 23, 42, 0.5);
  --line: rgba(15, 23, 42, 0.08);
  --panel: rgba(255, 255, 255, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.92);
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(34, 193, 195, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  line-height: 1.6;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.9; }

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

/* Progress */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 80;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 8, 22, 0.86);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .top {
  background: rgba(248, 250, 252, 0.92);
}

.top__inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.nav {
  display: flex;
  gap: 18px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav a:hover { color: var(--text); }

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.clock {
  font-family: monospace;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.chipBtn {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 90px 0 60px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 32px;
  align-items: flex-start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: 16px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 16px;
  max-width: 64ch;
  color: var(--muted);
  margin-bottom: 26px;
}

.muted { color: var(--muted); }
.mono { font-family: monospace; }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
}
.btn--ghost {
  background: transparent;
}

/* Hero stats */
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillRow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.pillBig {
  font-size: 18px;
  font-weight: 800;
}
.pillLabel {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 70px 0;
}
.section--alt {
  background: rgba(15, 23, 42, 0.35);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sectionHead {
  margin-bottom: 30px;
}

/* Slab blocks */
.slab {
  background: var(--panel);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 24px 22px;
}
.slab p {
  margin: 0 0 10px;
  color: var(--muted);
}
.slab p:last-child { margin-bottom: 0; }

.slab--two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

/* Stack grid */
.stackGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stackItem {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 18px 16px;
}

/* Contact */
.contact {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.contactRow {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.contactRow:first-child { border-top: none; }
.contactLabel {
  font-weight: 650;
  color: var(--faint);
}
.contactValue {
  font-weight: 500;
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Back to top */
.toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toTop.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 70px;
  }
  .nav {
    display: none;
  }
  .stackGrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .slab--two {
    grid-template-columns: minmax(0, 1fr);
  }
}
