/* OutLinked marketing site — single stylesheet, no framework.
   Design system: restrained, dark-leaning, one accent.            */

:root {
  --bg: #0a0b10;
  --bg-elev-1: #11131c;
  --bg-elev-2: #181a25;
  --fg: #e9eaf2;
  --fg-muted: #9aa0b4;
  --fg-soft: #6e7390;
  --accent: #7c5cff;
  --accent-2: #5fa8ff;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #5fa8ff 100%);
  --green: #4dd99a;
  --red: #ff5f7e;
  --yellow: #ffc857;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 16px 40px -8px rgba(0,0,0,0.55), 0 4px 12px -4px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.4);
  --maxwidth: 1080px;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter',
               'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }

/* ────────────────────────────────────────────────────────────────────── */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--maxwidth);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.brand-mark {
  font-size: 22px;
  background: var(--accent-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topnav nav { display: flex; gap: 24px; align-items: center; }
.topnav nav a { font-size: 14px; color: var(--fg-muted); }
.topnav nav a:hover { color: var(--fg); }
.topnav nav a.cta {
  color: var(--fg);
  background: var(--accent-grad);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────────────── */

main { max-width: var(--maxwidth); margin: 0 auto; padding: 0 32px; }

.hero {
  padding: 80px 0 120px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #fff 0%, #b8bdd5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-foot { color: var(--fg-soft); font-size: 14px; margin-top: 24px; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 80ms ease;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn-primary { background: var(--accent-grad); color: var(--fg); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: rgba(255,255,255,0.15);
}

/* ────────────────────────────────────────────────────────────────────── */

section h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  margin: 0 0 40px;
}

.how { padding: 80px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.how-card {
  background: var(--bg-elev-1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 16px;
}
.how-card h3 { margin: 0 0 8px; font-size: 18px; }
.how-card p { color: var(--fg-muted); margin: 0; font-size: 15px; }

/* ────────────────────────────────────────────────────────────────────── */

.screens { padding: 80px 0; }
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: end;
}
.screens figure { margin: 0; }
.screens figcaption { margin-top: 16px; color: var(--fg-muted); font-size: 14px; text-align: center; }

.screenshot {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
}

/* Stylized "screenshot" frames built with CSS so we don't ship binaries. */

.phone-frame {
  width: 200px;
  height: 400px;
  background: #000;
  border: 8px solid #1a1c25;
  border-radius: 32px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--bg);
  border-radius: 22px;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-statusbar { height: 14px; }
.phone-header { font-weight: 600; font-size: 14px; color: var(--fg); }
.phone-counter { display: flex; flex-direction: column; gap: 6px; }
.counter-row { display: flex; align-items: baseline; gap: 6px; }
.counter-num { font-size: 22px; font-weight: 600; color: var(--accent-2); }
.counter-lbl { color: var(--fg-muted); font-size: 12px; }
.phone-card {
  margin-top: auto;
  background: var(--bg-elev-1);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
}
.phone-card-title { font-weight: 600; }
.phone-card-meta { color: var(--fg-muted); font-size: 10px; margin: 2px 0; }
.phone-card-status { color: var(--green); font-size: 10px; }

.tray-frame {
  width: 320px;
  background: var(--bg-elev-1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}
.tray-header { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tray-action { color: var(--fg-muted); margin-bottom: 12px; }
.tray-progress { background: var(--bg-elev-2); height: 4px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.tray-progress-bar { width: 53%; height: 100%; background: var(--accent-grad); }
.tray-counters { display: flex; gap: 6px; }
.badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bg-elev-2);
  color: var(--fg-muted);
}
.badge-applied { color: var(--green); }
.badge-skip { color: var(--fg-soft); }
.badge-fail { color: var(--red); }

/* ────────────────────────────────────────────────────────────────────── */

.download { padding: 80px 0; }
.download-lede { color: var(--fg-muted); margin: 0 0 24px; max-width: 580px; }
.waitlist-cta { margin: 0 0 40px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.download-card {
  background: var(--bg-elev-1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 100ms ease, border-color 100ms ease;
  position: relative;
}
.download-card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--fg); }
.download-icon { font-size: 32px; margin-bottom: 8px; }
.download-name { font-weight: 600; font-size: 16px; }
.download-meta { color: var(--fg-muted); font-size: 13px; margin-top: 4px; }

.download-card-soon {
  opacity: 0.78;
  cursor: default;
}
.download-card-soon:hover { transform: none; border-color: rgba(255,255,255,0.06); }
.download-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255,200,87,0.12);
  color: var(--yellow);
  border: 1px solid rgba(255,200,87,0.3);
}

/* ────────────────────────────────────────────────────────────────────── */

.contact { padding: 80px 0; }
.contact p { color: var(--fg-muted); line-height: 2; }

.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px;
  max-width: var(--maxwidth);
  margin: 80px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-soft);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-right { display: flex; gap: 16px; }

@media (max-width: 640px) {
  .topnav nav { gap: 12px; }
  .hero { padding: 40px 0 60px; }
}
