:root {
    --purple-dark: #2d112b;
    --purple-deeper: #1a0b1b;
    --pink-light: #fff5f5;
    --pink-card: #fff0f3;
    --yellow: #fdb54a;
    --red: #ff3b30;
    --green-dark: #0d1a12;
    --gray-50: #fafafa;
    --gray-100: #f0f0f0;
    --gray-400: #9ca3af;
    --gray-600: #6b7280;
    --black: #0a0a0a;
    --white: #ffffff;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --container: 1180px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --shadow-box: 0 4px 24px rgba(45, 17, 43, 0.08);
    --shadow-box-hover: 0 20px 48px rgba(45, 17, 43, 0.14);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

/* ─── Animations ─── */
@keyframes float-pill {
    0%, 100% {
        transform: translate(var(--mx, 0), var(--my, 0)) rotate(0deg);
    }
    50% {
        transform: translate(var(--mx, 0), calc(var(--my, 0px) - 10px)) rotate(1deg);
    }
}

@keyframes float-box {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

@keyframes border-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes box-reveal {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.box-card {
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.box-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-box-hover);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.nav-main {
    display: none;
    gap: 2.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav-main a {
    position: relative;
}

.nav-main a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width 0.25s var(--ease-out);
}

.nav-main a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-logout-form {
    margin: 0;
    display: inline;
}

.header-logout-form button.link-login,
.mobile-nav form button.mobile-nav-login {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-white {
    background: var(--white);
    color: var(--black);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.subnav {
    border-top: 1px solid #f0f0f0;
    padding: 0.65rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav-inner {
    display: flex;
    gap: 0.5rem;
}

.subnav-tag {
    padding: 0.4rem 0.95rem;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--gray-600);
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

a.subnav-tag:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
    color: var(--black);
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 6rem;
    text-align: center;
    min-height: min(92vh, 680px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 55%, #fff 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: heroOrbDrift 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 320px;
    height: 320px;
    background: #fecdd3;
    top: -80px;
    left: 10%;
}

.hero-orb-2 {
    width: 280px;
    height: 280px;
    background: #ddd6fe;
    bottom: -60px;
    right: 8%;
    animation-delay: -4s;
}

@keyframes heroOrbDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
}

.hero-grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(45, 17, 43, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.hero-deco-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-deco-box {
    position: absolute;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: scale(0.85) rotate(-8deg);
    transition: transform 0.15s ease-out;
}

.hero.is-ready .hero-deco-box {
    animation:
        heroDecoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        heroDecoFloat 7s ease-in-out 0.7s infinite;
}

.hero-deco-1 { width: 44px; height: 44px; top: 16%; left: 7%; animation-delay: 0.5s, 0s; }
.hero-deco-2 { width: 58px; height: 58px; top: 28%; right: 9%; animation-delay: 0.65s, -1s; }
.hero-deco-3 { width: 32px; height: 32px; bottom: 28%; left: 12%; animation-delay: 0.8s, -2s; }
.hero-deco-4 { width: 40px; height: 40px; top: 55%; right: 14%; animation-delay: 0.95s, -0.5s; }
.hero-deco-5 { width: 52px; height: 52px; bottom: 20%; right: 22%; animation-delay: 1.1s, -1.5s; }
.hero-deco-6 { width: 28px; height: 28px; top: 12%; left: 38%; animation-delay: 1.25s, -2.5s; }

@keyframes heroDecoIn {
    to {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes heroDecoFloat {
    0%, 100% {
        transform: translate(var(--mx, 0), var(--my, 0)) rotate(0deg);
    }
    50% {
        transform: translate(var(--mx, 0), calc(var(--my, 0px) - 12px)) rotate(3deg);
    }
}

.hero-pills {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pill {
    position: absolute;
    padding: 0.5rem 1.05rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--gray-600);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    transition: transform 0.12s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.hero.is-ready .pill {
    animation: heroPillIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards, float-pill 5s ease-in-out infinite;
    animation-delay: calc(0.35s + var(--pill-delay, 0) * 55ms), calc(1s + var(--pill-delay, 0) * 0.2s);
}

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

.hero.is-ready .pill:hover {
    border-color: rgba(255, 59, 48, 0.35);
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.12);
}

.pill:nth-child(odd) { --pill-float-dur: 5.5s; }
.pill:nth-child(3n) { animation-duration: 0.55s, 6s; }
.pill:nth-child(4n) { animation-duration: 0.55s, 4.5s; }

.pill-1 { top: 8%; left: 4%; --pill-delay: 0; }
.pill-2 { top: 14%; right: 6%; --pill-delay: 1; }
.pill-3 { top: 28%; left: 2%; --pill-delay: 2; }
.pill-4 { top: 35%; right: 3%; --pill-delay: 3; }
.pill-5 { top: 50%; left: 8%; --pill-delay: 4; }
.pill-6 { top: 48%; right: 10%; --pill-delay: 5; }
.pill-7 { bottom: 32%; left: 5%; --pill-delay: 6; }
.pill-8 { bottom: 28%; right: 5%; --pill-delay: 7; }
.pill-9 { bottom: 18%; left: 18%; --pill-delay: 8; }
.pill-10 { bottom: 15%; right: 16%; --pill-delay: 9; }
.pill-11 { top: 18%; left: 42%; --pill-delay: 10; }
.pill-12 { top: 62%; right: 38%; --pill-delay: 11; }

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-headline-glow {
    position: absolute;
    left: 50%;
    top: -10%;
    width: min(95%, 680px);
    height: 160px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(45, 17, 43, 0.04) 0%, transparent 70%);
    opacity: 0;
    animation: heroGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.hero.is-ready .hero-headline-glow {
    opacity: 1;
}

@keyframes heroGlowPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 1; }
}

/* Large display headline — matches Wellfound-style hero */
.hero-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.2em 0.35em;
    margin: 0 0 1.5rem;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--black);
}

[data-hero-part] {
    opacity: 0;
    transform: translateY(24px);
}

.hero.is-ready [data-hero-part] {
    animation: heroPartIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero.is-ready [data-hero-part]:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes heroPartIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-brand {
    font-weight: 800;
    color: var(--black);
}

.hero-colon {
    color: var(--red);
}

.hero-title-text {
    font-weight: 800;
    color: var(--black);
}

[data-hero-main] {
    opacity: 0;
    transform: translateY(18px);
}

.hero.is-ready [data-hero-main] {
    animation: heroPartIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero.is-ready [data-hero-main][data-hero-delay="1"] { animation-delay: 0.35s; }
.hero.is-ready [data-hero-main][data-hero-delay="2"] { animation-delay: 0.5s; }

.hero-sub {
    margin: 0 0 2rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray-600);
    font-weight: 400;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-btn {
    position: relative;
    padding: 1rem 2.1rem;
    font-size: 1rem;
    min-width: 210px;
    border-radius: 999px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.hero-btn span {
    position: relative;
    z-index: 1;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: #fff;
}

.hero-btn-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: inherit;
}

.hero-btn-secondary:hover {
    color: #fff;
    border-color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.hero-btn-secondary:hover::before {
    transform: scaleX(1);
}

.hero-btn-secondary:hover span {
    color: #fff;
}

/* Stats — full-width dark social proof */
.stats-section {
    position: relative;
    padding: 4.5rem 0 4.25rem;
    background: #1a0b1c;
    color: #fff;
    overflow: hidden;
}

.stats-section-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(76, 29, 74, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(255, 59, 48, 0.08) 0%, transparent 50%);
    animation: statsGlowPulse 10s ease-in-out infinite;
}

@keyframes statsGlowPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.stats-section-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 3rem;
    max-width: 920px;
    margin: 0 auto;
}

.stat-item {
    padding: 0.5rem 1rem;
}

.stat-num {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: 0.65rem;
    font-size: clamp(0.88rem, 1.5vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.4;
}

.stats-divider {
    width: min(92%, 720px);
    height: 1px;
    margin: 2.75rem auto 2.5rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.14) 20%,
        rgba(255, 255, 255, 0.14) 80%,
        transparent 100%
    );
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-divider.is-revealed {
    transform: scaleX(1);
}

.stats-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 2.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.stats-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(480ms + var(--logo-i, 0) * 80ms);
}

.stats-logo.is-revealed {
    opacity: 0.88;
    transform: translateY(0);
}

.stats-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.stats-logo-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.95;
}

.stats-logo-icon-round {
    width: 20px;
    height: 20px;
}

.stats-logo span {
    white-space: nowrap;
}

.stats-caption {
    margin: 1.75rem 0 0;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.02em;
}

/* Stats scroll reveal */
[data-stats-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--stats-delay, 0) * 1ms);
}

[data-stats-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-stats-reveal][data-stats-delay="0"] { --stats-delay: 0; }
[data-stats-reveal][data-stats-delay="120"] { --stats-delay: 120; }
[data-stats-reveal][data-stats-delay="240"] { --stats-delay: 240; }
[data-stats-reveal][data-stats-delay="360"] { --stats-delay: 360; }
[data-stats-reveal][data-stats-delay="420"] { --stats-delay: 420; }
[data-stats-reveal][data-stats-delay="520"] { --stats-delay: 520; }

.stat-num.is-counting {
    display: inline-block;
    min-width: 3ch;
}

/* Why us */
.why-section {
    padding: 4rem 0;
    background: var(--pink-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.why-card {
    padding: 2.5rem 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-box);
}

.why-card-seekers {
    background: var(--white);
}

.why-card-recruiters {
    background: var(--pink-card);
    border-color: rgba(255, 59, 48, 0.08);
}

.why-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--red);
    margin-bottom: 0.65rem;
}

.why-card h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

.why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.why-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.02);
    transition: background 0.25s, transform 0.25s;
}

.why-card:hover .why-list li {
    background: rgba(0, 0, 0, 0.03);
}

.why-list li:hover {
    transform: translateX(4px);
    background: rgba(255, 59, 48, 0.06);
}

.why-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 59, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon {
    width: 18px;
    height: 18px;
    color: var(--red);
}

.why-list strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}

.why-list span {
    font-size: 0.84rem;
    color: var(--gray-600);
    line-height: 1.45;
}

.why-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.why-footer .link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Autopilot — Wellfound-style demo */
.autopilot-section {
    padding: 0 0 4.5rem;
    background: var(--pink-light);
}

.autopilot-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.15fr);
    gap: 2rem 2.5rem;
    background: linear-gradient(145deg, #2d112b 0%, #1a0b1b 45%, #120810 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3.25rem);
    align-items: center;
    box-shadow: 0 24px 64px rgba(45, 17, 43, 0.28);
    overflow: hidden;
    position: relative;
}

.autopilot-card::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -15%;
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.autopilot-copy {
    position: relative;
    z-index: 1;
}

.autopilot-copy h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.autopilot-copy p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin: 0 0 0.85rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.autopilot-copy-sub {
    margin-bottom: 1.75rem !important;
}

.autopilot-cta {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.autopilot-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Demo panel */
.autopilot-demo {
    position: relative;
    z-index: 1;
    min-height: 420px;
    padding-left: 2.5rem;
}

.ap-timeline {
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 12%;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.ap-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.25) 0,
        rgba(255, 255, 255, 0.25) 6px,
        transparent 6px,
        transparent 12px
    );
}

.ap-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.35;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ap-step.is-active {
    opacity: 1;
    transform: scale(1);
}

.ap-step-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ap-step-icon-pink {
    background: rgba(255, 59, 48, 0.25);
    border-color: rgba(255, 59, 48, 0.45);
    color: #ff8a80;
}

.ap-step-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.ap-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Chat */
.ap-chat {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(12px);
}

.autopilot-card.is-playing .ap-chat-user {
    animation: apReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.autopilot-card.is-playing .ap-chat-ai {
    animation: apReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

@keyframes apReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ap-chat-ai {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2.5rem;
}

.ap-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ap-bubble {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    max-width: 300px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ap-bubble p {
    margin: 0;
    color: inherit;
}

.ap-bubble-light {
    background: #fff;
    color: #1a0b1b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ap-bubble-pink {
    background: linear-gradient(135deg, #ff3b30, #e91e63);
    color: #fff;
    box-shadow: 0 8px 28px rgba(255, 59, 48, 0.35);
}

.ap-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ap-tag-warm {
    background: #ffedd5;
    color: #c2410c;
}

.ap-tag-cool {
    background: #f3f4f6;
    color: #374151;
}

.ap-ai-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.ap-ai-accent {
    color: #ff6b9d;
}

/* Searching */
.ap-searching {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 2.5rem;
    opacity: 0;
}

.autopilot-card.is-playing .ap-searching {
    animation: apReveal 0.5s ease 1.8s forwards, apSearchingPulse 2s ease-in-out 2.3s infinite;
}

@keyframes apSearchingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

.ap-searching-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff6b9d;
    text-transform: lowercase;
}

.ap-dots span {
    animation: apDotBlink 1.2s ease-in-out infinite;
    color: #ff6b9d;
    font-weight: 700;
}

.ap-dots span:nth-child(2) { animation-delay: 0.2s; }
.ap-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes apDotBlink {
    0%, 60%, 100% { opacity: 0.2; }
    30% { opacity: 1; }
}

.ap-search-avatars {
    display: flex;
    margin-left: 0.5rem;
}

.ap-mini-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #1a0b1b;
    margin-left: -8px;
    animation: apAvatarFloat 3s ease-in-out infinite;
}

.ap-mini-avatar:nth-child(odd) { animation-delay: -1s; }
.ap-mini-avatar:nth-child(3) { animation-delay: -0.5s; }
.ap-mini-avatar:nth-child(5) { animation-delay: -1.5s; }

@keyframes apAvatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Review card */
.ap-review-card {
    margin-top: 0.5rem;
    background: #fff;
    color: #111;
    border-radius: 16px;
    padding: 1rem 1rem 0.85rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(28px) scale(0.97);
}

.autopilot-card.is-playing .ap-review-card {
    animation: apCardSlide 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}

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

.ap-review-title {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
}

.ap-candidate-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ap-candidate-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0;
    border-top: 1px solid #f3f4f6;
    position: relative;
}

.ap-candidate-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
}

.ap-candidate-meta strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.ap-pill {
    display: inline-block;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-right: 0.2rem;
}

.ap-pill-green {
    background: #dcfce7;
    color: #166534;
}

.ap-pill-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.ap-candidate-actions {
    display: flex;
    gap: 0.35rem;
}

.ap-action {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ap-action-yes {
    background: #ecfdf5;
    color: #059669;
}

.ap-action-no {
    background: #fef2f2;
    color: #dc2626;
}

.ap-candidate-featured {
    z-index: 2;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    margin: 0.25rem -0.35rem;
    box-shadow: 0 12px 32px rgba(45, 17, 43, 0.15);
    transform: scale(1.03);
    animation: apFeaturedPulse 2.5s ease-in-out 3.2s infinite;
}

@keyframes apFeaturedPulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(45, 17, 43, 0.15); }
    50% { box-shadow: 0 16px 40px rgba(255, 59, 48, 0.2); }
}

.ap-recruiter-cursor {
    position: absolute;
    right: -8px;
    bottom: -12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translate(8px, 8px);
}

.autopilot-card.is-playing .ap-recruiter-cursor {
    animation: apCursorIn 0.5s ease 3.4s forwards, apCursorMove 2s ease-in-out 3.9s infinite;
}

@keyframes apCursorIn {
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes apCursorMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4px, -4px); }
}

.ap-cursor-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #ff3b30;
    margin-bottom: 2px;
    padding: 0.1rem 0.35rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Timeline step sequence */
.autopilot-card.is-playing .ap-step-user.is-active { animation: apStepFlash 0.4s ease 0.2s; }
.autopilot-card.is-playing .ap-step-review {
    animation: apStepActivate 0.4s ease 2.4s forwards;
}
.autopilot-card.is-playing .ap-step-approved {
    animation: apStepActivate 0.4s ease 3.6s forwards;
}

@keyframes apStepActivate {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes apStepFlash {
    50% { transform: scale(1.1); }
}

/* Testimonials */
.testimonials-section {
    padding: 4.5rem 0;
    background: var(--white);
}

.testimonials-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.testimonials-head h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.testimonial-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.testimonial-nav button:hover {
    transform: scale(1.08);
    border-color: var(--black);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testimonial-card {
    background: var(--pink-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple-dark), var(--red));
}

.quote-icon {
    color: var(--red);
    font-size: 2.5rem;
    line-height: 0.6;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.testimonial-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.88rem;
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--gray-600);
}

/* Dual CTA */
.dual-cta-section {
    padding: 0 0 4rem;
    background: var(--white);
}

.dual-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.cta-card {
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.5rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cta-card-orange {
    background: var(--yellow);
    color: var(--black);
}

.cta-card-purple {
    background: var(--purple-dark);
    color: var(--white);
}

.cta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    opacity: 0.75;
}

.cta-card h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-card > p {
    margin: 0 0 1rem;
    line-height: 1.5;
    font-size: 0.92rem;
    opacity: 0.88;
    max-width: 320px;
}

.cta-card-purple > p {
    color: rgba(255, 255, 255, 0.72);
}

.cta-link {
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    align-self: flex-start;
}

/* Top picks */
.top-picks-section {
    padding: 0 0 4rem;
}

.top-picks-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--green-dark);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.75rem 3rem;
    box-shadow: var(--shadow-box);
    overflow: hidden;
}

.hex-badge {
    width: 150px;
    height: 150px;
    background: linear-gradient(160deg, #1e3d28 0%, #0f2218 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    animation: float-box 5s ease-in-out infinite;
}

.hex-badge strong {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

.hex-badge span {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
}

.top-picks-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.top-picks-content p {
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 1.25rem;
    line-height: 1.6;
    max-width: 460px;
    font-size: 0.95rem;
}

/* Blog */
.blog-section {
    padding: 4rem 0 5rem;
    background: var(--gray-50);
}

.blog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-head h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.blog-head a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: var(--shadow-box);
}

.blog-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    transition: background 0.25s, padding-left 0.25s;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item:hover {
    background: var(--pink-light);
    padding-left: 1.75rem;
}

.blog-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.blog-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.blog-item .blog-excerpt {
    margin: 0;
    font-size: 0.88rem;
    color: var(--gray-600);
}

.blog-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.blog-item:hover .blog-arrow {
    transform: scale(1.1) translateX(2px);
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.35);
}

/* Footer styles moved to public/css/footer.css */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--white);
    border-top: 1px solid #eee;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.mobile-nav[hidden] {
    display: none !important;
}

.mobile-nav:not([hidden]) {
    display: flex;
}

.mobile-nav a {
    padding: 0.75rem 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav a.is-active {
    font-weight: 700;
    color: var(--red);
}

.mobile-nav-login {
    margin-top: 0.5rem;
}

.mobile-nav-signup {
    margin-top: 0.5rem;
    text-align: center;
}

body.nav-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .nav-main {
        display: flex;
    }
}

@media (max-width: 900px) {
    .stats-grid,
    .why-grid,
    .autopilot-card,
    .testimonials-grid,
    .dual-cta-grid {
        grid-template-columns: 1fr;
    }

    .autopilot-card {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .autopilot-demo {
        padding-left: 2rem;
        min-height: 380px;
    }

    .ap-chat-ai {
        padding-left: 1.5rem;
    }

    .ap-searching {
        padding-left: 1.5rem;
        flex-wrap: wrap;
    }

    .top-picks-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .hex-badge {
        margin: 0 auto;
    }

    .top-picks-content p {
        margin-inline: auto;
    }

    .nav-main {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .link-login {
        display: none;
    }

    .pill-11,
    .pill-12 {
        display: none;
    }
}

@media (max-width: 600px) {
    .stats-section {
        padding: 3.25rem 0 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .stats-divider {
        margin: 2rem auto 1.75rem;
    }

    .stats-logos {
        gap: 1.25rem 1.5rem;
    }

    .stats-logo {
        font-size: 0.82rem;
    }

    .hero-headline {
        font-size: clamp(2.35rem, 11vw, 3.25rem);
        letter-spacing: -0.04em;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-deco-box {
        opacity: 0.4 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero.is-ready .pill,
    .hero.is-ready .hero-deco-box,
    [data-hero-part],
    [data-hero-main] {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-headline-glow {
        opacity: 0.5;
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }

    .ap-chat,
    .ap-searching,
    .ap-review-card {
        opacity: 1;
        transform: none;
    }

    .ap-step {
        opacity: 1;
        transform: scale(1);
    }

    .ap-recruiter-cursor {
        opacity: 1;
        transform: none;
    }
}
