/* ApplyOnce landing — built on demo tokens from styles.css */

.landing {
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --stage: #181714;
  overflow-x: hidden;
}

.landing .ambient {
  opacity: 0.55;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Nav ---------- */

.site-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 87, 0.28);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.text-link,
.btn-ghost {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.text-link:hover,
.btn-ghost:hover {
  color: var(--accent-strong);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  text-underline-offset: 5px;
}

.text-link:hover {
  text-decoration: underline;
}

.nav-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 3px;
  background: var(--accent);
  color: #231512;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, transform 120ms ease;
}

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

.nav-cta:active,
.btn-primary:active {
  transform: translateY(1px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 78% 45%, rgba(217, 119, 87, 0.16), transparent 62%),
    radial-gradient(ellipse 40% 35% at 12% 85%, rgba(242, 183, 158, 0.05), transparent 55%),
    linear-gradient(180deg, #151410 0%, var(--bg) 100%);
}

.demo-plane {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(8px, 1.5vw, 20px) 0;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transform-origin: center left;
  animation: plane-in 1.2s var(--ease-out) 0.15s both;
}

@keyframes plane-in {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-8deg) rotateX(2deg) translateY(28px);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(-8deg) rotateX(2deg) translateY(0);
  }
}

.demo-context {
  margin-bottom: 36px;
}

.demo-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.demo-role-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 87, 0.25);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-role-row strong,
.demo-role-row small {
  display: block;
}

.demo-role-row strong {
  font-size: 1.05rem;
  font-weight: 650;
}

.demo-role-row small {
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-thread {
  display: grid;
  gap: 22px;
  max-width: 420px;
}

.demo-line {
  margin: 0;
  opacity: 0;
  animation: line-rise 0.7s var(--ease-out) forwards;
}

.demo-line span {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.demo-line-1 { animation-delay: 0.55s; }
.demo-line-2 { animation-delay: 0.95s; }
.demo-line-3 { animation-delay: 1.35s; }
.demo-line-4 { animation-delay: 1.75s; }

@keyframes line-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-upload {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed rgba(217, 119, 87, 0.35);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  animation: line-rise 0.7s var(--ease-out) 1.35s forwards;
}

.demo-upload-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background:
    linear-gradient(var(--accent), var(--accent)) center 8px / 1.5px 10px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center 14px / 10px 1.5px no-repeat;
  animation: breathe 3.2s ease-in-out infinite;
}

.demo-upload small {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 500;
}

.demo-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  animation: line-rise 0.7s var(--ease-out) 1.75s forwards;
}

.demo-facts div {
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
}

.demo-facts label {
  display: block;
  margin-bottom: 4px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-facts b {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.brand-lockup {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 38ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.btn-ghost {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  background: none;
  border: 0;
  box-shadow: none;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
}

.section h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section-lede,
.section-copy > p {
  max-width: 48ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.how {
  border-top: 1px solid var(--line);
}

.beat-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.beat-rail li {
  min-height: 220px;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line-soft);
}

.beat-rail li:last-child {
  border-right: 0;
  padding-right: 0;
}

.beat-rail li:not(:first-child) {
  padding-left: 28px;
}

.beat-rail span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.beat-rail strong {
  display: block;
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.beat-rail p {
  margin: 10px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.recruiters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  border-top: 1px solid var(--line);
}

.evidence-strip {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.evidence-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr auto;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.evidence-row span:first-child {
  color: var(--text);
  font-weight: 650;
}

.evidence-row b {
  color: var(--peach);
  font-size: 0.8rem;
  font-weight: 650;
  font-family: var(--font-mono);
}

.evidence-row.is-live {
  background: linear-gradient(90deg, rgba(217, 119, 87, 0.08), transparent 55%);
}

.workday {
  border-top: 1px solid var(--line);
}

.workday h2 {
  max-width: 18ch;
}

.split-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.split-rail > div {
  padding: 32px 0;
}

.split-rail > div:first-child {
  padding-right: 40px;
  border-right: 1px solid var(--line-soft);
}

.split-rail > div:last-child {
  padding-left: 40px;
}

.split-rail h3 {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.split-rail ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.split-rail li {
  position: relative;
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.45;
}

.split-rail li::before {
  position: absolute;
  left: 0;
  content: "·";
  color: var(--accent);
  font-weight: 700;
}

.close {
  border-top: 1px solid var(--line);
  padding-bottom: 100px;
}

.close h2 {
  max-width: 14ch;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.site-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line-soft);
}

.site-foot p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.88rem;
}

.site-foot .brand-name {
  font-size: 1.1rem;
}

.site-foot .brand-mark {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .demo-plane {
    order: -1;
    max-width: none;
    justify-self: stretch;
    transform: none;
    opacity: 0.72;
    animation: none;
  }

  .brand-lockup {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .recruiters,
  .beat-rail,
  .split-rail {
    grid-template-columns: 1fr;
  }

  .beat-rail li,
  .beat-rail li:not(:first-child),
  .split-rail > div:first-child,
  .split-rail > div:last-child {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .beat-rail li:last-child,
  .split-rail > div:last-child {
    border-bottom: 0;
  }

  .beat-rail strong {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .site-nav,
  .hero,
  .section,
  .site-foot {
    width: calc(100% - 32px);
  }

  .nav-cta {
    display: none;
  }

  .demo-plane {
    opacity: 0.55;
  }

  .demo-facts {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .evidence-row {
    grid-template-columns: 1fr auto;
  }

  .evidence-row span:nth-child(2) {
    display: none;
  }

  .section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-plane,
  .demo-line,
  .demo-upload,
  .demo-facts,
  .demo-upload-icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
