/* ── Design tokens ─────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #070b0e;
  --panel: #10171b;
  --panel-2: #131d21;
  --text: #f4f8f7;
  --muted: #a9b9b7;
  --line: rgba(244, 248, 247, 0.13);
  --cyan: #4fd8ff;
  --cyan-dim: rgba(79, 216, 255, 0.15);
  --green: #68e09f;
  --green-dim: rgba(104, 224, 159, 0.12);
  --amber: #ffb84d;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 56px);
  background: rgba(7, 11, 14, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition);
}

.topbar.scrolled {
  background: rgba(7, 11, 14, 0.92);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(79, 216, 255, 0.6);
  background: rgba(79, 216, 255, 0.1);
  color: var(--cyan);
  font-size: 13px;
  border-radius: 6px;
  animation: brand-pulse 3s ease-in-out infinite;
}

@keyframes brand-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 216, 255, 0); }
  50% { box-shadow: 0 0 16px 2px rgba(79, 216, 255, 0.25); }
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  position: relative;
  transition: color var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: width var(--transition);
}

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

nav a:hover::after {
  width: 100%;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 6vw, 72px) 64px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 11, 14, 0.95) 0%, rgba(7, 11, 14, 0.78) 34%, rgba(7, 11, 14, 0.22) 68%, rgba(7, 11, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 11, 14, 0.72) 0%, rgba(7, 11, 14, 0.1) 45%, #070b0e 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
}

/* ── Typography ───────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-line {
  display: inline;
}

.hero-copy {
  max-width: min(650px, 100%);
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.button.primary {
  background: var(--text);
  color: #071012;
  border-color: var(--text);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(79, 216, 255, 0.3), 0 2px 8px rgba(255, 255, 255, 0.15);
}

.button.primary:active {
  transform: translateY(0);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(79, 216, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 216, 255, 0.12);
}

.button.secondary:active {
  transform: translateY(0);
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: 80px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.section-tight {
  padding-top: 64px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  margin-bottom: 30px;
}

.section-heading h2,
.access h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* ── Signal Grid ──────────────────────────────────────────── */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.signal-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.signal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 216, 255, 0.35);
  box-shadow: 0 8px 32px rgba(79, 216, 255, 0.08), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.metric {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--amber);
  font-weight: 900;
}

.signal-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 700;
}

.signal-card p,
.timeline-item p,
.access p {
  color: var(--muted);
  line-height: 1.6;
}

/* ── Workflow ─────────────────────────────────────────────── */
.workflow {
  background: var(--panel-2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-item {
  min-height: 180px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--transition);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.timeline-item + .timeline-item {
  border-left: 1px solid var(--line);
}

.timeline-item span {
  display: block;
  margin-bottom: 36px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Access / CTA section ─────────────────────────────────── */
.access {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 800;
  color: var(--text);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-social:hover {
  color: var(--cyan);
}

/* ── Scroll animations ────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .topbar {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 108px;
  }

  h1 {
    font-size: clamp(38px, 9vw, 48px);
    line-height: 1.04;
  }

  .title-line {
    display: block;
  }

  .hero-copy {
    max-width: min(330px, 100%);
  }

  .section-heading,
  .signal-grid,
  .timeline,
  .access {
    grid-template-columns: 1fr;
  }

  .timeline-item + .timeline-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .access .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 460px) {
  .brand span:last-child {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .title-line {
    display: block;
  }

  .hero-actions .button {
    width: 100%;
  }
}
