/* ============================================
   Logic Compass — Homepage
   ============================================ */

:root {
  --bg: #0A1628;
  --bg-2: #0F1F3A;
  --bg-3: #13264A;
  --surface: #0D1C34;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #EAEEF5;
  --text-dim: rgba(234, 238, 245, 0.62);
  --text-mute: rgba(234, 238, 245, 0.42);
  --accent: #14B8A6;
  --accent-2: #0891B2;
  --accent-warm: #F4F1EA;
  --radius: 4px;
  --radius-lg: 10px;

  --font-display: "Instrument Sans", "Söhne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ------- Utilities ------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mono-label.dim { color: var(--text-mute); }
.mono-label .num { color: var(--accent); font-weight: 600; }
.mono-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.title-dim { color: var(--text-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #07111F;
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.03); }

/* ============================================
   NAV + HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(20,184,166,0.10), transparent 60%),
              radial-gradient(900px 500px at 10% 110%, rgba(8,145,178,0.08), transparent 60%),
              var(--bg);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 30%, transparent 100%);
  pointer-events: none;
}

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 22, 40, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 6px 16px -8px rgba(20,184,166,0.6);
  transition: transform .25s cubic-bezier(.2,.8,.3,1);
}
.brand-lockup:hover .brand-mark { transform: rotate(-12deg); }
.brand-word { letter-spacing: -0.02em; font-weight: 500; }
.brand-word-accent { font-weight: 600; color: var(--text); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .2s ease, background .2s ease;
}
.nav-cta:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.03); }
.nav-cta-arrow { transition: transform .2s ease; }
.nav-cta:hover .nav-cta-arrow { transform: translateX(2px); }

.hero-inner {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 88px 48px 0;
}
.hero-meta { margin-bottom: 40px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 56px;
  max-width: 18ch;
  text-wrap: pretty;
}
.headline-accent {
  background: linear-gradient(120deg, var(--accent) 0%, #5EEAD4 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.hero-sub-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-self: end;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 80px;
}
.section-kicker { padding-top: 10px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0;
  grid-column: 2;
}

/* ============================================
   PROCESS
   ============================================ */

.process {
  padding: 140px 0 120px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.015) 100%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.process-rail {
  position: relative;
  max-width: 1360px;
  margin: 0 auto 56px;
  padding: 0 48px;
}
.rail-track {
  position: absolute;
  left: 48px; right: 48px;
  top: 28px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.rail-progress {
  height: 100%;
  border-radius: 2px;
  transition: width .4s cubic-bezier(.22,.9,.3,1);
}
.rail-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.rail-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 16px 18px 0;
  text-align: left;
  position: relative;
  transition: transform .2s ease;
}
.node-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  margin-left: 2px;
  position: relative;
  z-index: 2;
}
.rail-node.is-active .node-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(20,184,166,0.12);
}
.node-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.node-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-dim);
  transition: color .2s ease;
  line-height: 1.25;
}
.rail-node.is-active .node-title,
.rail-node.is-done .node-title { color: var(--text); }
.rail-node:hover .node-title { color: var(--text); }

.process-detail {
  max-width: calc(1360px - 96px);
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 320px;
  align-items: start;
}
.detail-icon svg {
  width: 56px; height: 56px;
}
.detail-body .mono-label { margin-bottom: 20px; }
.detail-title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 20px;
}
.detail-copy {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 0 28px;
}
.detail-deliverables .mono-label { margin-bottom: 12px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.meta-row { display: flex; flex-direction: column; gap: 6px; }
.meta-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* ============================================
   STACK
   ============================================ */

.stack {
  padding: 140px 0 120px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.stack-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.stack-group {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  grid-column: span 6;
}
.stack-group.is-primary {
  background: linear-gradient(180deg, rgba(20,184,166,0.05), rgba(20,184,166,0.01));
  border-color: rgba(20,184,166,0.18);
}
.stack-group:nth-child(1) { grid-column: span 4; }
.stack-group:nth-child(2) { grid-column: span 4; }
.stack-group:nth-child(3) { grid-column: span 4; }
.stack-group:nth-child(4) { grid-column: span 7; }
.stack-group:nth-child(5) { grid-column: span 5; }

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.group-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 999px;
}
.stack-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}
.stack-group:nth-child(1) .stack-items,
.stack-group:nth-child(2) .stack-items,
.stack-group:nth-child(3) .stack-items { grid-template-columns: 1fr; }

.stack-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.stack-item-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-top: 8px;
  flex-shrink: 0;
}
.stack-item-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.stack-item-detail {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 2px;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 140px 0 120px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 15% 30%, rgba(20,184,166,0.08), transparent 70%),
    radial-gradient(700px 350px at 90% 90%, rgba(8,145,178,0.06), transparent 70%),
    var(--bg);
}
.cta-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}
.cta-left .mono-label { margin-bottom: 28px; }
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 28px;
}
.cta-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 0 40px;
}
.cta-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  max-width: 560px;
}
.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field input {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  padding: 8px 4px;
}
.field input::placeholder { color: var(--text-mute); }
.cta-assurance { margin-top: 16px; }

.cta-right { display: flex; flex-direction: column; gap: 16px; }
.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}
.card-contact { padding: 24px 32px; }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact-row:last-child { border-bottom: none; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--line);
  background: #07111F;
}
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 72px 48px 48px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-tag {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 40ch;
  margin: 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols .mono-label { margin-bottom: 12px; }
.footer-cols a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.footer-cols a:hover { color: var(--text); }
.footer-base {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-mute);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .nav-inner { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero-inner { padding: 48px 24px 0; }
  .hero-sub-row { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { justify-self: start; }
  .section-header { grid-template-columns: 1fr; padding: 0 24px; gap: 24px; }
  .section-lede { grid-column: 1; }
  .rail-nodes { grid-template-columns: repeat(2, 1fr); }
  .rail-track { display: none; }
  .process-rail { padding: 0 24px; }
  .process-detail { margin: 0 24px; grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .detail-meta { padding-left: 0; border-left: none; border-top: 1px solid var(--line); padding-top: 24px; }
  .stack-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .stack-group, .stack-group:nth-child(n) { grid-column: 1; }
  .cta-inner { grid-template-columns: 1fr; padding: 0 24px; gap: 48px; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; padding: 48px 24px 24px; gap: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { padding: 20px 24px; flex-direction: column; gap: 10px; align-items: flex-start; }
}
