/* wisp website. Dark & simple (SaaS-style). Single orange accent on a
   near-black surface. Type: Geist (Linear/Vercel family). */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --border: #262626;
  --border-strong: #333333;
  --text: #fafafa;
  --text-2: #a1a1a1;
  --text-3: #737373;
  --accent: #ff7a00;
  --accent-strong: #ff8f2a;
  --sans: "Geist", "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.nav__mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
}

.hero__icon {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 10px;
  object-fit: contain;
  margin-bottom: 20px;
  box-shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.7);
}

.nav__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 28px; }

.nav__links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 140ms ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--sm { padding: 7px 14px; font-size: 13px; }

.btn--primary { background: var(--accent); color: #000; }

.btn--primary:hover { background: var(--accent-strong); }

.btn--ghost { border-color: var(--border-strong); color: var(--text); }

.btn--ghost:hover { border-color: var(--text-2); }

/* ---------- hero ---------- */

.hero { padding: clamp(80px, 12vw, 140px) 24px clamp(40px, 6vw, 64px); }

.hero__inner { max-width: 760px; margin: 0 auto; text-align: center; }

.badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 24px;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 20px;
}

.hero__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 10px;
  object-fit: contain;
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.8);
}

.hero__brand-name {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__title {
  font-size: clamp(40px, 6.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.accent { color: var(--accent); }

.hero__lede {
  color: var(--text-2);
  font-size: 17px;
  max-width: 54ch;
  margin: 0 auto 32px;
}

.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero__note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- hero shot ---------- */

.shot { padding: 0 24px 0; max-width: 860px; margin: 0 auto; }

.shot__frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.8);
}

.shot__frame img { display: block; width: 100%; height: auto; }

.shot__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 24px 0 8px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat span { font-size: 13px; color: var(--text-3); }

/* ---------- open source band ---------- */

.openband {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.openband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 24px;
}

.openband__title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.openband__sub { margin-top: 2px; color: var(--text-2); font-size: 14px; }

.openband__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */

.features, .shortcuts, .build { padding: clamp(72px, 10vw, 120px) 24px; max-width: 1100px; margin: 0 auto; }

.section-head { margin-bottom: 40px; }

.section-head--center { text-align: center; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub { margin-top: 8px; color: var(--text-2); }

/* ---------- feature cards ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  transition: border-color 140ms ease;
}

.feature-card:hover { border-color: var(--border-strong); }

.feature-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.feature-card__media img { display: block; width: 100%; height: auto; }

.feature-card__media--plain { padding: 20px 16px; }

/* help card inside the feature grid */
.feature-card__help { text-align: center; }

.help__logo { color: var(--text); margin: 0 auto 16px; display: block; }

.feature-card__help .feature-card__title { font-size: 22px; }

.feature-card__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.feature-card__btn { width: 100%; }

.feature-card__title { margin-top: 16px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.feature-card__text { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }

/* ---------- keycaps ---------- */

.key {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- keymap ---------- */

.keymap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.keymap__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.keymap__row:last-child { border-bottom: none; }

.keymap__keys { display: flex; align-items: center; gap: 4px; }

.keymap__what { color: var(--text-2); font-size: 14px; }

.build__links { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--border); padding: 32px 24px; margin-top: 24px; }

.foot__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.foot__name { font-weight: 600; }

.foot__links { list-style: none; display: flex; gap: 24px; }

.foot__links a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color 140ms ease; }

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

.foot__legal { color: var(--text-3); font-size: 13px; width: 100%; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }

.reveal.in { opacity: 1; transform: none; }

/* stagger */
.hero .reveal:nth-child(1) { transition-delay: 0ms; }
.hero .reveal:nth-child(2) { transition-delay: 60ms; }
.hero .reveal:nth-child(3) { transition-delay: 120ms; }
.hero .reveal:nth-child(4) { transition-delay: 180ms; }
.hero .reveal:nth-child(5) { transition-delay: 240ms; }
.hero .reveal:nth-child(6) { transition-delay: 300ms; }
.feature-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.feature-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.feature-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.feature-grid .reveal:nth-child(4) { transition-delay: 180ms; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .nav__links { display: none; }
  .shot__stats { gap: 32px; }
  .keymap__row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}