/* ========================================================================
   Resume Tailor landing page
   Aesthetic: technical editorial / instrument-panel.
   Type: Fraunces (display, expressive serif), Geist (body), Geist Mono (data).
   Palette: deep near-black base with warm amber accent. Hairline borders.
   Composition: asymmetric grid, monospace data lines, generous negative space.
   ======================================================================== */

:root {
  /* Base */
  --bg-0: #0a0a0a;
  --bg-1: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;

  /* Hairlines */
  --border-0: #222222;
  --border-1: #2a2a2a;
  --border-2: #353535;

  /* Type */
  --fg-0: #fafafa;
  --fg-1: #e5e5e5;
  --fg-2: #a8a8a8;
  --fg-3: #6f6f6f;
  --fg-4: #4a4a4a;

  /* Accent: warm amber. Used sparingly, dominant in CTAs and active states. */
  --acc-0: #f5a524;
  --acc-1: #fbbf24;
  --acc-glow: rgba(245, 165, 36, 0.16);

  /* Secondary cool accent for callouts */
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);

  /* Status */
  --ok: #4ade80;
  --warn: #facc15;

  /* Typography */
  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --ff-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Spacing */
  --container-max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 600ms;
}

* { box-sizing: border-box; }

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

/* Subtle background texture: noise + soft amber wash anchored top-right */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 40% at 80% -10%, var(--acc-glow), transparent 60%),
    radial-gradient(40% 30% at -10% 110%, rgba(45, 212, 191, 0.05), transparent 70%),
    var(--bg-0);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.6) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

a { color: var(--fg-0); text-decoration: none; transition: color 160ms var(--ease); }
a:hover { color: var(--acc-0); }

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--acc-0);
  color: var(--bg-0);
  padding: 8px 14px;
  z-index: 200;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--ff-mono);
  font-size: 13px;
}
.skip:focus { top: 16px; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--ff-mono);
  font-feature-settings: "ss01", "tnum";
}

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border-0);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--fg-0);
  height: 100%;
}
.brand:hover { color: var(--fg-0); }

.brand-logo {
  display: block;
  height: calc(64px - 6px); /* header is 64px; 3px padding top + 3px bottom */
  width: auto;
  padding: 3px 0;
  object-fit: contain;
}
.footer-logo {
  height: 28px;
  padding: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-nav a {
  color: var(--fg-2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--fg-0); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--acc-0);
  transition: width 220ms var(--ease);
}
.site-nav a:hover::after { width: 100%; }
.nav-github {
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 7px 14px !important;
}
.nav-github::after { display: none; }
.nav-github:hover {
  border-color: var(--acc-0);
  color: var(--acc-0) !important;
}

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 clamp(80px, 11vw, 160px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 28px;
  padding: 6px 12px;
  border: 1px solid var(--border-1);
  border-radius: 100px;
  width: fit-content;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc-0);
  box-shadow: 0 0 12px var(--acc-0);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--fg-0);
  margin: 0 0 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--acc-0);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 36px;
}

/* Downloads */
.downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  margin: 0 0 24px;
}

.download {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: 6px;
  transition: all 200ms var(--ease);
  position: relative;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--acc-glow), transparent 60%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}
.download:hover {
  border-color: var(--acc-0);
  color: var(--fg-0);
  transform: translateX(4px);
}
.download:hover::before { opacity: 1; }
.download:hover .download-arrow { color: var(--acc-0); transform: translateY(2px); }

.download-platform {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--fg-0);
  grid-column: 1;
}
.download-file {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-3);
  grid-column: 2;
  white-space: nowrap;
}
.download-arrow {
  grid-column: 3;
  font-size: 18px;
  color: var(--fg-2);
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.download-primary {
  border-color: var(--acc-0);
  background: linear-gradient(135deg, var(--bg-2), rgba(245, 165, 36, 0.06));
}
.download-primary .download-platform { color: var(--acc-0); }

@media (max-width: 480px) {
  .download { grid-template-columns: 1fr auto; }
  .download-file { grid-column: 1 / 2; grid-row: 2; }
  .download-arrow { grid-column: 2; grid-row: 1 / span 2; }
}

.meta {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin: 0;
}
.meta a { color: var(--fg-2); }
.meta a:hover { color: var(--acc-0); }
.meta-sep { color: var(--fg-4); padding: 0 8px; }

/* Hero card: live mock match analysis */
.hero-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-1);
  border-radius: 8px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--acc-0), transparent 40%, var(--teal) 90%);
  opacity: 0.3;
  z-index: -1;
  filter: blur(0.5px);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-0);
  margin-bottom: 22px;
}
.card-label { font-size: 12px; color: var(--fg-3); }
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.card-score { margin-bottom: 26px; }
.score-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  display: block;
  margin-bottom: 10px;
}
.score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.score-number {
  font-family: var(--ff-display);
  font-size: 64px;
  font-weight: 300;
  color: var(--fg-0);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.score-out-of {
  font-family: var(--ff-mono);
  font-size: 18px;
  color: var(--fg-3);
}
.score-bar {
  position: relative;
  height: 6px;
  background: var(--bg-0);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.score-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--acc-0), var(--acc-1));
  border-radius: 3px;
  transition: width 1.4s var(--ease);
  box-shadow: 0 0 12px rgba(245, 165, 36, 0.4);
}
.score-bar-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.score-bar-ticks span {
  width: 1px;
  height: 4px;
  background: var(--border-2);
}
.score-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-rubric {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-0);
}
.card-rubric li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-0);
  color: var(--fg-1);
}
.check {
  font-family: var(--ff-mono);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.check.yes { background: rgba(74, 222, 128, 0.16); color: var(--ok); }
.check.partial { background: rgba(250, 204, 21, 0.16); color: var(--warn); }
.rubric-detail { font-size: 12px; color: var(--fg-3); }

.card-footer {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-0);
}
.footer-line {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-2);
}
.footer-label {
  display: inline-block;
  width: 64px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========================================================================
   Section heads (shared)
   ======================================================================== */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 8px;
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}
.section-num {
  font-size: 13px;
  color: var(--acc-0);
  letter-spacing: 0.1em;
  padding-top: 18px;
  grid-row: 1 / span 2;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.02;
}
.section-lede {
  font-size: 17px;
  color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
  grid-column: 2;
}

/* ========================================================================
   Features
   ======================================================================== */
.features {
  padding: clamp(70px, 8vw, 120px) 0;
  border-top: 1px solid var(--border-0);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-0);
}
.feature {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--border-0);
  transition: background 240ms var(--ease);
}
.feature:hover { background: linear-gradient(90deg, transparent, var(--bg-1) 30%, var(--bg-1) 70%, transparent); }
.feature-num {
  font-size: 13px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
  padding-top: 6px;
}
.feature h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--fg-0);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 70ch;
}

/* ========================================================================
   How it works
   ======================================================================== */
.how {
  padding: clamp(70px, 8vw, 120px) 0;
  border-top: 1px solid var(--border-0);
  background:
    radial-gradient(40% 60% at 100% 30%, rgba(45, 212, 191, 0.04), transparent 70%);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--border-0);
  border-radius: 6px;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.step:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.step-num {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 56px;
  line-height: 0.85;
  color: var(--acc-0);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--fg-0);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
}

/* ========================================================================
   Privacy
   ======================================================================== */
.privacy {
  padding: clamp(70px, 8vw, 120px) 0;
  border-top: 1px solid var(--border-0);
}
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 920px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
.privacy-text .display { margin-top: 12px; font-size: clamp(34px, 4.6vw, 54px); }
.privacy-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-0);
  border-bottom: 1px solid var(--border-0);
  padding: 4px 0;
}
.privacy-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-0);
}
.privacy-item:last-child { border-bottom: none; }
.privacy-label {
  font-size: 12px;
  color: var(--acc-0);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.privacy-item p {
  margin: 0;
  font-size: 15px;
  color: var(--fg-1);
  line-height: 1.55;
}

/* ========================================================================
   CTA
   ======================================================================== */
.cta {
  padding: clamp(70px, 8vw, 120px) 0;
  border-top: 1px solid var(--border-0);
}
.downloads-cta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: none;
  margin-bottom: 32px;
}
@media (max-width: 880px) {
  .downloads-cta { grid-template-columns: 1fr; }
}
.cta-fineprint {
  font-size: 13px;
  color: var(--fg-3);
  max-width: 80ch;
  margin: 0;
  line-height: 1.6;
}

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  border-top: 1px solid var(--border-0);
  padding: 48px 0 56px;
  background: var(--bg-1);
}
.footer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  align-items: center;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.footer-tag { font-size: 12px; color: var(--fg-3); }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
}
.footer-nav a { color: var(--fg-2); }
.footer-nav a:hover { color: var(--acc-0); }
.footer-fineprint {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fg-3);
  border-top: 1px solid var(--border-0);
  padding-top: 24px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .footer-row { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ========================================================================
   Entrance animations.
   Stagger reveals on initial paint, then scroll-triggered fades after.
   ======================================================================== */
.hero-text > * { opacity: 0; transform: translateY(16px); animation: fadeUp 700ms var(--ease) forwards; }
.hero-text > .eyebrow { animation-delay: 0ms; }
.hero-text > .display { animation-delay: 80ms; }
.hero-text > .lead { animation-delay: 200ms; }
.hero-text > .downloads { animation-delay: 320ms; }
.hero-text > .meta { animation-delay: 460ms; }
.hero-card { opacity: 0; transform: translateY(20px) scale(0.985); animation: fadeUpIn 800ms var(--ease) 200ms forwards; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll reveals (added/removed in script.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
