.rf-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 40px;
    overflow: hidden;
}

.rf-hero::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -5%;
    width: 55%;
    height: 140%;
    background: linear-gradient(
        135deg,
        transparent 45%,
        rgba(244, 84, 26, 0.04) 45%,
        rgba(244, 84, 26, 0.08) 55%,
        transparent 55%
    );
    pointer-events: none;
}

.rf-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(244, 84, 26, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 84, 26, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: rf-gridShift 20s linear infinite;
    mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 30%, transparent 100%);
}

@keyframes rf-gridShift {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.rf-hero-eyebrow {
    margin-bottom: 24px;
    animation: rf-fadeUp 0.6s ease both;
}

.rf-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 245, 160, 0.12);
    border: 1px solid rgba(0, 245, 160, 0.25);
    border-radius: 100px;
    padding: 5px 14px 5px 8px;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #00f5a0;
    letter-spacing: 0.05em;
}

.rf-ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f5a0;
    box-shadow: 0 0 8px #00f5a0;
    animation: rf-pulse 2s ease-in-out infinite;
}

@keyframes rf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.rf-hero-headline {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-size: clamp(62px, 10vw, 130px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    animation: rf-fadeUp 0.7s 0.1s ease both;
}

.rf-hero-headline .line-accent { color: #f4541a; }
.rf-hero-headline .line-stroke {
    -webkit-text-stroke: 2px rgba(240, 237, 232, 0.2);
    color: transparent;
}

.rf-hero-sub {
    max-width: 520px;
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #8a8a8a;
    animation: rf-fadeUp 0.7s 0.2s ease both;
}

.rf-hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    animation: rf-fadeUp 0.7s 0.3s ease both;
}

.rf-btn-primary,
.rf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 2px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.rf-btn-primary {
    background: #f4541a;
    color: #fff;
    border: 1px solid #f4541a;
    position: relative;
    overflow: hidden;
}

.rf-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.45s;
}

.rf-btn-primary:hover::before {
    transform: translateX(100%);
}

.rf-btn-primary:hover {
    color: #fff;
}

.rf-btn-ghost {
    background: transparent;
    border: 1px solid #222;
    color: #f0ede8;
}

.rf-btn-ghost:hover {
    border-color: #f4541a;
    color: #f4541a;
}

.rf-btn-lg {
    padding: 16px 38px;
    font-size: 16px;
}

.rf-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 54px;
    padding-top: 30px;
    border-top: 1px solid #222;
    animation: rf-fadeUp 0.7s 0.4s ease both;
}

.rf-stat-item { min-width: 120px; }
.rf-stat-num {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-size: 40px;
    line-height: 1;
}
.rf-stat-num span { color: #f4541a; }
.rf-stat-label {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 6px;
}

.rf-hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44%;
    animation: rf-fadeIn 1.2s 0.2s ease both;
}

.rf-hero-photo-stack {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-photo-card {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.rf-photo-card-main {
    width: 320px;
    height: 420px;
    background: linear-gradient(160deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #222;
    z-index: 3;
    transform: rotate(-2deg);
    display: flex;
    flex-direction: column;
}

.rf-photo-card-bg {
    flex: 1;
    background:
        linear-gradient(180deg, rgba(244, 84, 26, 0.1) 0%, transparent 40%),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px,
            transparent 20px
        );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rf-runner-silhouette {
    width: 120px;
    height: 180px;
    opacity: 0.15;
    background: #f0ede8;
    clip-path: polygon(50% 0%, 60% 15%, 75% 10%, 65% 30%, 80% 45%, 60% 45%, 55% 65%, 70% 100%, 55% 100%, 50% 75%, 45% 100%, 30% 100%, 45% 65%, 40% 45%, 20% 45%, 35% 30%, 25% 10%, 40% 15%);
}

.rf-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f5a0, transparent);
    opacity: 0.6;
    animation: rf-scan 3s ease-in-out infinite;
}

@keyframes rf-scan {
    0% { top: 10%; opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { top: 90%; opacity: 0; }
}

.rf-face-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid #00f5a0;
    box-shadow: 0 0 12px rgba(0, 245, 160, 0.3), inset 0 0 12px rgba(0, 245, 160, 0.05);
    animation: rf-faceBoxPulse 2.5s ease-in-out infinite;
}

@keyframes rf-faceBoxPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rf-photo-card-footer {
    padding: 14px 16px;
    background: #161616;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rf-confidence-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #00f5a0;
}

.rf-card-meta {
    font-size: 11px;
    color: #777;
}

.rf-photo-card-behind1 {
    width: 280px;
    height: 380px;
    background: #161616;
    border: 1px solid #222;
    z-index: 1;
    transform: rotate(5deg) translate(40px, 20px);
    opacity: 0.5;
}

.rf-photo-card-behind2 {
    width: 260px;
    height: 360px;
    background: #161616;
    border: 1px solid #222;
    z-index: 0;
    transform: rotate(8deg) translate(70px, 40px);
    opacity: 0.25;
}

.rf-section,
.rf-photo-feed-section,
.rf-ai-section,
.rf-cta-section {
    padding: 80px 0;
}

.rf-section-label {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #f4541a;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rf-section-title {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 5vw, 62px);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 44px;
}

.rf-section-title-sm {
    font-size: 36px;
    margin-bottom: 0;
}

.rf-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.rf-step {
    background: #161616;
    padding: 36px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rf-step::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #f4541a, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.rf-step:hover::after {
    transform: scaleX(1);
}

.rf-step-num {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-size: 80px;
    line-height: 1;
    color: rgba(240, 237, 232, 0.06);
    margin-bottom: 0;
}

.rf-step-media {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.rf-step-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.32), transparent 45%),
        linear-gradient(135deg, rgba(244, 84, 26, 0.14), transparent 55%);
    pointer-events: none;
}

.rf-step-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.rf-step:hover .rf-step-media img {
    transform: scale(1.04);
}

.rf-step-icon {
    width: 44px;
    height: 44px;
    background: rgba(244, 84, 26, 0.15);
    border: 1px solid rgba(244, 84, 26, 0.3);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    font-size: 18px;
    color: #f4541a;
}

.rf-step h3 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    margin-bottom: 0;
}

.rf-step p {
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.rf-photo-feed-section {
    background: #111;
}

.rf-feed-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.rf-feed-link {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f4541a;
}

.rf-photo-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}

.rf-photo-tile {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(180deg, #151515 0%, #101010 100%);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #222;
    border-radius: 4px;
    scroll-snap-align: start;
}

.rf-photo-tile-inner,
.rf-photo-tile-media {
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;
}

.rf-photo-tile-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #111;
}

.rf-photo-tile:hover .rf-photo-tile-inner,
.rf-photo-tile:hover .rf-photo-tile-media {
    transform: scale(1.05);
}

.rf-tile-1 .rf-photo-tile-inner { background: linear-gradient(135deg, #1a1208, #2d1a0a, #1a0a0a); }
.rf-tile-2 .rf-photo-tile-inner { background: linear-gradient(160deg, #080d14, #0f1a20, #081208); }
.rf-tile-3 .rf-photo-tile-inner { background: linear-gradient(120deg, #14080a, #200a10, #0a0814); }
.rf-tile-4 .rf-photo-tile-inner { background: linear-gradient(145deg, #08140f, #0a200d, #140810); }

.rf-photo-tile-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 8, 8, 0.92) 72%);
}

.rf-photo-tile-race {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    line-height: 0.95;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rf-photo-tile-meta {
    margin-top: 6px;
    font-family: "Space Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f4541a;
}

.rf-photo-empty-state {
    border: 1px solid #222;
    background: #121212;
    padding: 26px 28px;
}

.rf-photo-empty-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f0ede8;
}

.rf-photo-empty-copy {
    margin-top: 8px;
    max-width: 560px;
    color: #8a8a8a;
    line-height: 1.7;
}

.rf-ai-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.rf-ai-visual {
    height: 460px;
}

.rf-ai-terminal {
    height: 100%;
    background: #161616;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rf-terminal-header {
    background: #0d0d0d;
    border-bottom: 1px solid #222;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rf-terminal-dots {
    display: flex;
    gap: 6px;
}

.td { width: 10px; height: 10px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }

.rf-terminal-title {
    font-family: "Space Mono", monospace;
    font-size: 10px;
    color: #666;
}

.rf-terminal-body {
    flex: 1;
    padding: 18px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
}

.rf-term-line {
    line-height: 1.8;
    display: flex;
    gap: 10px;
}

.rf-term-line .prompt { color: #f4541a; opacity: 0.7; }
.rf-term-line .cmd { color: #a0c4ff; }
.rf-term-line .out { color: #8a8a8a; }
.rf-term-line .val-green { color: #00f5a0; }
.rf-term-line .val-orange { color: #f4541a; }

.rf-term-progress {
    margin: 12px 0;
    font-size: 10px;
    color: #777;
}

.rf-progress-bar-wrap {
    background: #222;
    height: 3px;
    margin-top: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.rf-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f4541a, #ff6b35);
    border-radius: 2px;
    animation: rf-progressAnim 3s ease-in-out infinite;
}

@keyframes rf-progressAnim {
    0% { width: 0%; }
    60% { width: 94%; }
    100% { width: 94%; }
}

.rf-face-grid-viz {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.rf-face-cell {
    aspect-ratio: 1;
    background: #222;
    border-radius: 1px;
}

.rf-face-cell.matched {
    background: #00f5a0;
    opacity: 0.6;
    box-shadow: 0 0 6px rgba(0, 245, 160, 0.4);
}

.rf-face-cell.scanning {
    background: #f4541a;
    opacity: 0.5;
    animation: rf-scanCell 1s ease-in-out infinite;
}

@keyframes rf-scanCell {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.rf-highlight {
    color: #f4541a;
}

.rf-ai-copy {
    color: #8a8a8a;
    line-height: 1.8;
    max-width: 420px;
}

.rf-cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.rf-cta-headline {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 6vw, 88px);
    text-transform: uppercase;
    line-height: 0.95;
}

.rf-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.rf-cta-note {
    font-size: 12px;
    color: #666;
}

@keyframes rf-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rf-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1100px) {
    .rf-hero-visual {
        display: none;
    }

    .rf-hero {
        min-height: auto;
        padding-top: 42px;
    }

    .rf-steps,
    .rf-photo-grid,
    .rf-ai-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .rf-hero-headline {
        font-size: clamp(44px, 13vw, 74px);
    }

    .rf-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .rf-hero-stats {
        gap: 16px;
    }

    .rf-steps,
    .rf-photo-grid,
    .rf-ai-section {
        grid-template-columns: 1fr;
    }

    .rf-step {
        padding: 24px;
    }

    .rf-cta-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .rf-cta-actions {
        align-items: flex-start;
    }
}
