/* JobsHunt — static landing, no frameworks */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --accent: #384db4;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --brand-gradient-start: #4a76fd;
  --brand-gradient-mid: #4568f5;
  --brand-gradient-end: #3b42f2;
  --max: 1120px;
  --nav-float-top: 1rem;
  /* Extra top padding on #main so taller wordmark + pill clear the viewport */
  --nav-float-gap: 8rem;
  --nav-h: 4.25rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --code-bg: #121214;
  --code-border: rgba(255, 255, 255, 0.1);
  --code-text: #fafafa;
  --code-muted: #a1a1aa;
  --code-prompt: #4ade80;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title__accent {
    margin-top: 0.12em;
    color: #384db4;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

/* Ambient mesh — single layer, GPU-friendly */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(37, 99, 235, 0.06), transparent),
    var(--surface-2);
}

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

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 1.75rem);
}

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  scroll-margin-top: calc(var(--nav-float-gap) + 0.35rem);
}

/* Header — WisprType-style floating pill (https://wisprtype.com/) */
.site-header {
  position: relative;
  z-index: 50;
  height: 0;
}

.nav-floating {
  position: fixed;
  left: 50%;
  top: var(--nav-float-top);
  z-index: 50;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 1.25rem);
  transition: top 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
  :root {
    --nav-float-top: 1.5rem;
  }
}

.nav-pill {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.55rem 0.45rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 235, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

@media (min-width: 640px) {
  .nav-pill {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.35rem 0.65rem;
    padding: 0.45rem 0.85rem 0.45rem 0.75rem;
  }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.35rem 0.85rem 0.35rem 1rem;
  min-height: 3.35rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.brand-pill:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink);
}

.brand-pill__logo {
  /* Prominent horizontal wordmark: ~52–76px tall on large screens */
  height: clamp(3.35rem, 11vw, 4.85rem);
  width: auto;
  max-width: min(92vw, 520px);
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .brand-pill {
    min-height: 3.85rem;
    padding: 0.4rem 1rem 0.4rem 1.1rem;
  }

  .brand-pill__logo {
    height: 1.5rem;
    max-width: min(480px, 58vw);
  }
}

@media (min-width: 900px) {
  .brand-pill__logo {
    max-width: min(520px, 46vw);
  }
}

@media (min-width: 1180px) {
  .brand-pill__logo {
    max-width: 540px;
  }
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    margin-left: 0.25rem;
  }
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

@media (min-width: 640px) {
  .nav-links a {
    min-height: 2.85rem;
    font-size: 0.96875rem;
    padding: 0.52rem 1rem;
  }
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

.nav-links__ext {
  color: var(--ink-soft) !important;
  font-weight: 600 !important;
}

#main {
  padding-top: var(--nav-float-gap);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background: #1e293b;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: #fff;
}

.btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn__icon svg {
  display: block;
}

/* Narrow readable column (Wispr-style hero) */
.page-narrow {
  max-width: 48rem;
  margin-inline: auto;
}

.center {
  text-align: center;
}

.hero-centered {
  text-align: center;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-ctas {
  justify-content: center;
}

.hero-tertiary {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-link-secondary {
  color: var(--accent);
  font-weight: 600;
}

.hero-tertiary-sep {
  margin: 0 0.35rem;
  color: var(--line);
  opacity: 0.9;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero h1.hero-title {
  margin: 0.85rem 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title__line {
  display: block;
}

.hero-title__accent {
  margin-top: 0.12em;
  background: linear-gradient(
    105deg,
    var(--brand-gradient-start) 0%,
    var(--brand-gradient-mid) 48%,
    var(--brand-gradient-end) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}

.star-badge {
  display: inline-block;
  margin-top: 1rem;
}
.star-badge img {
  vertical-align: middle;
  height: 20px;
  width: auto;
  display: inline-block;
}

/* Metrics strip */
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

@media (min-width: 640px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.metric strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.metric span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 32rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  max-width: 40rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Build from source — terminal-style panels */
.install-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 920px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .install-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.install-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.install-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.install-panel .panel-note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  flex-shrink: 0;
}

.install-panel .panel-note code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.terminal-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--code-border);
  box-shadow: 0 12px 40px -20px rgba(15, 23, 42, 0.25);
}

.terminal-window--stretch {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
}

.terminal-window--stretch .terminal-window__chrome {
  flex-shrink: 0;
}

.terminal-window--stretch .code-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.terminal-window--stretch .install-pre {
  flex: 1 1 auto;
  min-height: 8rem;
}

.terminal-window__chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: #2a2a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-window__dots {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.terminal-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5c5c5f;
}

.terminal-window__dot--r {
  background: #ff5f57;
}
.terminal-window__dot--y {
  background: #febc2e;
}
.terminal-window__dot--g {
  background: #28c840;
}

.terminal-window__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.code-panel {
  position: relative;
  margin: 0;
}

.code-panel .install-pre {
  margin: 0;
  padding: 2.65rem 1.15rem 1.1rem;
  background: var(--code-bg);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--code-text);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.copy-btn.copy-btn--icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.copy-btn.copy-btn--icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.copy-btn.copy-btn--icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.copy-btn.copy-btn--icon .copy-btn__idle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn.copy-btn--icon .copy-btn__done {
  display: none;
}

.copy-btn.copy-btn--icon.done .copy-btn__idle {
  display: none;
}

.copy-btn.copy-btn--icon.done .copy-btn__done {
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn.copy-btn--icon.done {
  border-color: rgba(74, 222, 128, 0.45);
  color: var(--code-prompt);
  background: rgba(74, 222, 128, 0.1);
}

.inline-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Bento features */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
}

.bento-card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 560px) {
  .bento-card {
    grid-column: span 3;
  }
  .bento-card.wide {
    grid-column: span 6;
  }
}

@media (min-width: 900px) {
  .bento-card {
    grid-column: span 2;
  }
  .bento-card.wide {
    grid-column: span 4;
  }
  .bento-card.tall {
    grid-row: span 1;
  }
}

.bento-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 14px 40px -20px rgba(15, 23, 42, 0.12);
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* How it works */
.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

@media (min-width: 768px) {
  .step {
    border-radius: 0;
    border-right-width: 0;
  }
  .step:first-child {
    border-radius: 16px 0 0 16px;
  }
  .step:last-child {
    border-radius: 0 16px 16px 0;
    border-right-width: 1px;
  }
}

.step-num {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Why JobsHunt comparison */
.why-table-wrap {
  overflow-x: auto;
  margin: 0 auto;
  max-width: var(--max);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.why-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
  min-width: 520px;
}

.why-table th,
.why-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.why-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface-2);
}

.why-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--ink);
  width: 8.5rem;
  background: rgba(248, 250, 252, 0.65);
}

.why-table tbody tr:last-child th,
.why-table tbody tr:last-child td {
  border-bottom: 0;
}

.why-table td {
  color: var(--muted);
}

@media (max-width: 640px) {
  .why-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .why-table {
    min-width: 0;
    display: block;
  }

  .why-table thead {
    display: none;
  }

  .why-table tbody,
  .why-table tr,
  .why-table th,
  .why-table td {
    display: block;
  }

  .why-table tbody tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    margin-bottom: 0.75rem;
    overflow: hidden;
  }

  .why-table tbody th[scope="row"] {
    width: auto;
    padding: 0.75rem 1rem 0.35rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
  }

  .why-table td {
    padding: 0.5rem 1rem 0.85rem;
    position: relative;
  }

  .why-table td:nth-of-type(1)::before {
    content: "JobsHunt";
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.25rem;
  }

  .why-table td:nth-of-type(2)::before {
    content: "Typical SaaS job AI";
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.65rem 0 0.25rem;
  }

  .why-table tbody tr th + td::before {
    margin-top: 0;
  }
}

/* Dark CTA band */
.cta-band {
  background: var(--ink);
  color: #e2e8f0;
  border-radius: 24px;
  padding: clamp(2.25rem, 5vw, 3rem);
  text-align: center;
  margin: 0 clamp(1.25rem, 4vw, 1.75rem);
  max-width: calc(var(--max) - 3.5rem);
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cta-band-actions {
  justify-content: center;
}

/* Contact strip */
.contact-strip {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.contact-strip p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 1.75rem);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  font-weight: 500;
}

.footer-inner a:hover {
  color: var(--ink);
}
