@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

:root {
    --paper: #faf8f5;
    --ink: #141619;
    --card: #ffffff;
    --border: rgba(20, 22, 25, 0.08);
    --border-hover: rgba(20, 22, 25, 0.15);
    --muted: #5c626d;
    --accent: #2c5942;
    --accent-hover: #1b3d2b;
    --accent-soft: rgba(44, 89, 66, 0.08);
    --terracotta: #b85b3f;
    --terracotta-soft: rgba(184, 91, 63, 0.1);
    --ochre: #ca7f2c;
    --ochre-soft: rgba(202, 127, 44, 0.1);
    --sky: #3b7e90;
    --sky-soft: rgba(59, 126, 144, 0.1);
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-subtle: 0 12px 40px rgba(20, 22, 25, 0.04);
    --shadow-medium: 0 20px 50px rgba(20, 22, 25, 0.08);
}

body.dark {
        --paper: #0c0e11;
        --ink: #f2f4f7;
        --card: #13171c;
        --border: rgba(242, 244, 247, 0.08);
        --border-hover: rgba(242, 244, 247, 0.16);
        --muted: #9aa1ad;
        --accent: #4fa078;
        --accent-hover: #6cb892;
        --accent-soft: rgba(79, 160, 120, 0.14);
        --terracotta: #d87c60;
        --terracotta-soft: rgba(216, 124, 96, 0.15);
        --ochre: #dda15e;
        --ochre-soft: rgba(221, 161, 94, 0.15);
        --sky: #64a6bd;
        --sky-soft: rgba(100, 166, 189, 0.15);
        --shadow-subtle: 0 12px 40px rgba(0, 0, 0, 0.35);
        --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.45);
    }

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

html {
    scroll-behavior: smooth;
    background-color: transparent;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--terracotta);
    font-weight: 500;
}

/* TOPBAR */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px min(48px, 5vw);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

body.dark .topbar {
        background: rgba(12, 14, 17, 0.9);
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
}

.brand-mark {
    color: var(--accent);
    font-size: 1.15rem;
}

.topnav {
    display: flex;
    gap: 36px;
}

.topnav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* BUTTONS */
.btn-solid {
    background: var(--accent);
    color: #fff !important;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-solid:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

.link-underline {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    padding-bottom: 3px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.link-underline:hover {
    color: var(--ink);
    border-color: var(--ink);
}

/* HERO */
.hero {
    max-width: 1040px;
    margin: 0 auto;
    padding: 120px 24px 90px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: min(600px, 90vw);
    height: 350px;
    background: radial-gradient(circle, var(--accent-soft) 0%, rgba(59, 126, 144, 0.04) 50%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-sub {
    max-width: 58ch;
    margin: 0 auto 44px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* PIPELINE — SIGNATURE (CANDIDATE FUNNEL) */
.pipeline-section {
    max-width: 1140px;
    margin: 0 auto 140px;
    padding: 0 24px;
}

.pipeline-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 12px;
}

.stage-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px 14px;
    border-bottom: 2px solid var(--border);
}

.stage-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-applied { background: var(--sky); }
.dot-interview { background: var(--accent); }
.dot-hired { background: var(--terracotta); }

.pipeline-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-subtle);
}

.lane {
    border-right: 1px dashed var(--border);
    padding: 6px 14px 6px 0;
}

.lane:last-child {
    border-right: none;
    padding-right: 0;
}

.lane-2 {
    padding-left: 14px;
}

.lane-3 {
    padding-left: 14px;
}

.card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: floatSlow 6s ease-in-out infinite;
}

.lane-1 .card:nth-child(1) { animation-delay: 0s; }
.lane-1 .card:nth-child(2) { animation-delay: 1.2s; }
.lane-1 .card:nth-child(3) { animation-delay: 2.4s; }
.lane-2 .card:nth-child(1) { animation-delay: 0.6s; }
.lane-2 .card:nth-child(2) { animation-delay: 1.8s; }
.lane-3 .card:nth-child(1) { animation-delay: 3s; }

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px) scale(1.02);
    animation-play-state: paused;
}

.card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--sky);
}

.lane-2 .card-avatar { background: var(--accent); }
.lane-3 .card-avatar { background: var(--terracotta); }

.card strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.card small {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}

.pipeline-caption {
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 24px;
}

/* SECTION TITLES */
.section-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.4vw, 2.3rem);
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* GENERAL FEATURES SECTIONS */
.features {
    max-width: 1140px;
    margin: 0 auto 140px;
    padding: 0 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--card);
    padding: 40px 34px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-medium);
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 18px;
    letter-spacing: 0.1em;
}

.feature h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink);
}

.feature p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

/* SHOWCASE SCREENSHOTS */
.showcase {
    max-width: 1140px;
    margin: 0 auto 140px;
    padding: 0 24px;
}

.showcase-sub {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 55ch;
    margin: -36px auto 56px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.shot-wide {
    grid-column: 1 / -1;
}

.shot {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shot-frame {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--card);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.shot-frame:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--border-hover);
}

.shot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shot-frame img:not([src]),
.shot-frame img[src=""] {
    display: none;
}

.shot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    background: repeating-linear-gradient(135deg, transparent, transparent 12px, rgba(44, 89, 66, 0.03) 12px, rgba(44, 89, 66, 0.03) 24px);
    border: 2px dashed var(--border);
    margin: 12px;
    border-radius: 16px;
    padding: 24px;
}

.shot img[src]:not([src=""]) ~ .shot-placeholder {
    display: none;
}

.shot figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0 4px;
}

/* THE ECONOMICS / OWNERSHIP */
.ownership {
    max-width: 1140px;
    margin: 0 auto 140px;
    padding: 0 24px;
}

.ownership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ownership-card {
    padding: 40px 34px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ownership-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-medium);
}

.ownership-card:nth-child(2) {
    border-top-color: var(--terracotta);
}

.ownership-card:nth-child(3) {
    border-top-color: var(--sky);
}

.ownership-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--ink);
    line-height: 1.35;
}

.ownership-card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.ownership-card strong {
    color: var(--ink);
    font-weight: 700;
}

/* CTA */
.cta {
    max-width: 1140px;
    margin: 0 auto 120px;
    padding: 88px 32px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-subtle);
}

.cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cta p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 52ch;
    margin: 0 auto 36px;
}

/* FOOTER */
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px min(48px, 5vw);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}

.landing-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: var(--accent-hover);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .feature-grid,
    .ownership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 780px) {
    .topbar {
        padding: 18px 24px;
    }
    .topnav {
        display: none;
    }
    .hero {
        padding: 72px 20px 48px;
    }
    .pipeline-stages {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pipeline-track {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .lane {
        border-right: none;
        border-bottom: 1px dashed var(--border);
        padding: 0 0 14px;
    }
    .lane-2,
    .lane-3 {
        padding-left: 0;
    }
    .lane:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .feature-grid,
    .showcase-grid,
    .ownership-grid {
        grid-template-columns: 1fr;
    }
    .feature, .ownership-card {
        padding: 32px 26px;
    }
    .cta {
        margin: 0 20px 80px;
        padding: 64px 24px;
    }
    .landing-footer {
        padding: 30px 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
