:root {
  --bg: #080c15;
  --surface: #0e1420;
  --surface-hover: #131a28;
  --border: #1a2235;
  --text: #e8ecf4;
  --text-secondary: #8892a8;
  --text-dim: #4a5568;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.07);
  --cyan-glow: rgba(34, 211, 238, 0.15);
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Karla', sans-serif;
}

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

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cyan-glow); }
  50% { box-shadow: 0 0 12px 4px var(--cyan-glow); }
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.r1 { animation-delay: 0.05s; }
.r2 { animation-delay: 0.15s; }
.r3 { animation-delay: 0.3s; }
.r4 { animation-delay: 0.5s; }
.r5 { animation-delay: 0.65s; }
.r6 { animation-delay: 0.8s; }
.r7 { animation-delay: 0.95s; }
.r8 { animation-delay: 1.1s; }

/* Layout */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 3rem;
}

@media (max-width: 640px) {
  .page { padding: 0 1.5rem; }
  header {
    flex-direction: column;
    gap: 0.75rem;
  }
  header nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Header */
header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text) !important;
}

header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

header nav a {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.nav-cta {
  color: var(--cyan) !important;
  font-weight: 500;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

/* Invisible bridge between toggle and menu so hover doesn't break */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 0.5rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 140px;
  z-index: 200;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.nav-dropdown-menu a:hover {
  background: var(--surface-hover);
  color: var(--text);
  opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* Hero */
.hero {
  padding: 10vh 0 6vh;
  text-align: center;
}

.hero-graphic {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-husky {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.2));
}

.hero-kicker {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.glow {
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto;
}

/* Pipeline visualisation */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 4rem;
  padding: 2rem 0;
}

.pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.pipe-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: all 0.3s;
}

.pipe-dot.active {
  border-color: var(--cyan);
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.pipe-dot.done {
  border-color: var(--text-dim);
  background: var(--text-dim);
}

.pipe-label {
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pipe-stage:has(.active) .pipe-label {
  color: var(--cyan);
}

.pipe-line {
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 0.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 500px) {
  .pipe-line { width: 30px; }
  .pipe-label { font-size: 0.55rem; }
}

/* Sections */
.section-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* How it works */
.how-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:first-child {
  border-top: 1px solid var(--border);
}

.step-num {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  padding-top: 0.15rem;
}

.step-body h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Features */
.features-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.3s;
}

.feature:hover {
  background: var(--surface-hover);
}

.feature-icon {
  color: var(--cyan);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.feature h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* CTA */
.cta-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

footer a {
  color: var(--text-dim);
  font-size: 0.75rem;
}

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