:root {
    --bg-base: #050505;
    --bg-surface: rgba(25, 25, 30, 0.6);
    --bg-surface-hover: rgba(35, 35, 45, 0.8);
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-hero: #ffffff;
    --accent-blue: #007aff;
    --accent-cyan: #32d74b;
    --accent-glow: rgba(0, 122, 255, 0.3);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'SF Pro Display', var(--font-sans);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Background Glow Effects */
.background-glow {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.background-glow.top-right {
    top: 20vh;
    left: auto;
    right: -20vw;
    background: radial-gradient(circle, rgba(50, 215, 75, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-hero);
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Navigation - Floating Pill */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 1000;
    background: rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.app-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 4px 15px rgba(50, 215, 75, 0.2);
}

.btn-primary:hover {
    background: #2db34b;
    box-shadow: 0 6px 20px rgba(50, 215, 75, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-hero);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 5% 6rem;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
}

/* MacBook Mockup */
.macbook-mockup {
    position: relative;
    width: 100%;
    margin: 0 auto;
    perspective: 1000px;
}

.macbook-screen {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    /* 16:10 aspect ratio */
    background: #000;
    border-radius: 20px 20px 0 0;
    border: 12px solid #1a1a1a;
    border-bottom-width: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.macbook-screen-notch {
    position: absolute;
    top: 12px;
    /* same as top border thickness */
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
}

.macbook-camera {
    position: relative;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    z-index: 20;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.macbook-camera::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 2px;
    height: 2px;
    background: #32d74b;
    border-radius: 50%;
    box-shadow: 0 0 5px #32d74b, 0 0 10px #32d74b;
    animation: camLight 10s infinite;
    opacity: 0;
}

@keyframes camLight {

    0%,
    15% {
        opacity: 0;
    }

    20%,
    45% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.unlocked-content {
    opacity: 0;
    transform: scale(0.95);
    animation: unlockContent 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.locked-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1554147090-e1221a04a025?auto=format&fit=crop&w=1000&q=80') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 0;
    z-index: 5;
    animation: lockScreenFade 10s infinite cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.locked-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.locked-content>* {
    position: relative;
    z-index: 6;
}

.mac-lock-header {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.mac-time {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-display);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mac-date {
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mac-login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}

.mac-username {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.mac-password-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    width: 200px;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mac-password-field {
    display: flex;
    gap: 6px;
    height: 20px;
    align-items: center;
}

.pwd-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

@keyframes dot1 {

    0%,
    40% {
        opacity: 0;
    }

    41%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot2 {

    0%,
    41% {
        opacity: 0;
    }

    42%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot3 {

    0%,
    42% {
        opacity: 0;
    }

    43%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot4 {

    0%,
    43% {
        opacity: 0;
    }

    44%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot5 {

    0%,
    44% {
        opacity: 0;
    }

    45%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot6 {

    0%,
    45% {
        opacity: 0;
    }

    46%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot7 {

    0%,
    46% {
        opacity: 0;
    }

    47%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

@keyframes dot8 {

    0%,
    47% {
        opacity: 0;
    }

    48%,
    95% {
        opacity: 1;
    }

    96%,
    100% {
        opacity: 0;
    }
}

.dot-1 {
    animation: dot1 10s infinite;
}

.dot-2 {
    animation: dot2 10s infinite;
}

.dot-3 {
    animation: dot3 10s infinite;
}

.dot-4 {
    animation: dot4 10s infinite;
}

.dot-5 {
    animation: dot5 10s infinite;
}

.dot-6 {
    animation: dot6 10s infinite;
}

.dot-7 {
    animation: dot7 10s infinite;
}

.dot-8 {
    animation: dot8 10s infinite;
}

.mac-submit-btn {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 4px;
}


.macbook-base {
    position: relative;
    width: 110%;
    left: -5%;
    height: 20px;
    background: linear-gradient(to bottom, #d0d0d0, #999);
    border-radius: 0 0 20px 20px;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.8), 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
}

.macbook-notch {
    width: 120px;
    height: 8px;
    background: #b0b0b0;
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animations inside Screen (10s loop) */
.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    animation: scan 10s infinite ease-in-out;
    z-index: 10;
    opacity: 0;
}

@keyframes scan {

    0%,
    18% {
        top: 0%;
        opacity: 0;
    }

    20% {
        opacity: 1;
        top: 10%;
    }

    40% {
        opacity: 1;
        top: 90%;
    }

    42%,
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes unlockContent {

    0%,
    55% {
        opacity: 0;
        transform: scale(0.95);
    }

    60%,
    90% {
        opacity: 1;
        transform: scale(1);
    }

    95%,
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes lockScreenFade {

    0%,
    55% {
        opacity: 1;
        pointer-events: auto;
    }

    60%,
    90% {
        opacity: 0;
        pointer-events: none;
    }

    95%,
    100% {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Stats/Highlights Grid */
.highlights-section {
    padding: 2rem 5% 4rem;
    background: transparent;
    position: relative;
    z-index: 5;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.highlight-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #007aff 0%, #32d74b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Alternating Feature Blocks */
.feature-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.feature-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Feature Flashcards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
}

.feature-card .feature-icon-badge {
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.98rem;
}

.section-subtitle {
    text-align: center;
    max-width: 640px;
    margin: -0.5rem auto 3rem;
    font-size: 1.1rem;
}

/* Enrollment Flow: vertical scroll-driven timeline */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline-track,
.timeline-fill {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
}

.timeline-track {
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-fill {
    height: 0%;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 0 12px rgba(50, 215, 75, 0.5);
    /* Height is driven continuously by scroll position (see script.js), not
       a fixed transition — it tracks the scrollbar directly. */
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 140px;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    background: var(--bg-base);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    z-index: 2;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.timeline-item.active .timeline-node {
    background: linear-gradient(135deg, #007aff 0%, #32d74b 100%);
    border-color: transparent;
    color: #000;
    transform: translate(-50%, -50%) scale(1);
}

.timeline-card {
    width: calc(50% - 50px);
    position: relative;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1rem;
}

.side-left .timeline-card {
    margin-right: auto;
    text-align: right;
}

.side-right .timeline-card {
    margin-left: auto;
    text-align: left;
}

/* Speech-bubble notch pointing from the card toward its node on the line */
.timeline-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    transform: translateY(-50%);
}

.side-left .timeline-card::after {
    right: -18px;
    border-left-color: var(--bg-surface);
}

.side-right .timeline-card::after {
    left: -18px;
    border-right-color: var(--bg-surface);
}

.flow-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.85rem;
    /* Crops the pose screenshots down to just the app window, removing the
       black recording canvas around it. object-fit:cover can't do this: its
       "cover" scaling only ever crops a single axis, and here we need both
       axes trimmed — so this uses background-size/-position (percentages
       computed from the source image's pixel bbox) for an independent 2D
       crop instead. Source PNGs are untouched. */
    aspect-ratio: 982 / 1312;
    background-repeat: no-repeat;
    background-size: 110% 146.34%;
    background-position: 54.08% 49.67%;
}

.flow-image-complete {
    /* This screenshot's bottom row exposes a local file path (username +
       bundle id) below the "Enrolled..." line — crop stops just above it
       instead of using the shared pose crop. */
    aspect-ratio: 952 / 1092;
    background-size: 113.45% 175.82%;
    background-position: 41.41% 42.27%;
}

/* Expand button: opens the source screenshot full-size so its annotated
   callouts (yaw/roll/quality explainers) are actually readable. */
.expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.expand-btn:hover {
    background: var(--accent-blue);
    transform: scale(1.08);
}

.flow-caption-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.75;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: min(95vw, 640px);
    max-height: 150vh;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.flow-caption {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Security Model Section */
.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.security-col {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
}

.security-col-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.security-col-title.guaranteed {
    color: var(--accent-cyan);
}

.security-col-title.not-guaranteed {
    color: #ff9f0a;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-list li {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    padding-left: 1.1rem;
    position: relative;
}

.security-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.security-list code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9em;
}

.security-bottom-line {
    max-width: 800px;
    margin: 2.5rem auto 0;
    text-align: center;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.25);
    color: var(--text-main);
    font-size: 1.05rem;
}

/* Setup Steps */
.setup-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.setup-step {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
}

.setup-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #007aff 0%, #32d74b 100%);
    color: #000;
    margin-bottom: 1rem;
}

.setup-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.setup-step p {
    font-size: 0.95rem;
}

/* Download / Quick Install Section */
.download-section {
    max-width: 1200px;
}

.install-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.install-label {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.install-title {
    margin-bottom: 0.75rem;
}

.install-subtitle {
    max-width: 420px;
    margin: 0 auto 2.5rem;
}

.install-step {
    text-align: left;
    margin-bottom: 1.25rem;
}

.install-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0;
    margin-top: 0;
}

.install-step .install-step-label {
    margin-bottom: 0.6rem;
}

.code-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

/* Only the command text scrolls on overflow — the copy button below stays
   pinned outside this scroller so it's never scrolled out of reach. */
.code-scroll {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.code-prompt {
    color: var(--accent-blue);
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 600;
    flex-shrink: 0;
}

.code-block code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: pre;
}

.copy-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-main);
}

.copy-btn.copied {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.install-warning {
    background: rgba(255, 159, 10, 0.08);
    border: 1px solid rgba(255, 159, 10, 0.25);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: left;
    margin: 1.75rem 0;
}

.install-warning-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff9f0a;
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
}

.install-warning-text {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.install-or {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.75rem;
}

.install-zip-btn {
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.install-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.75rem;
}

.install-note {
    max-width: 850px;      /* Controls when the text wraps */
    margin: 0 auto;        /* Centers the paragraph */
    text-align: center;    /* Centers the text */
    color: #8b8f98;        /* Light gray */
    font-size: 15px;
    line-height: 1.8;
    font-weight: 400;
}

.install-note strong {
    color: #d1d5db;
    font-weight: 600;
}

.install-note strong {
    color: var(--text-main);
}

.kofi-btn {
    margin-top: 0.75rem;
    gap: 0.5rem;
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.25);
}

.kofi-btn:hover {
    background: #0069d9;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* Requirements Grid */
.req-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.req-item {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.req-item svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: transparent;
    padding: 5rem 5% 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta {
    margin-bottom: 4rem;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-bottom {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .req-grid {
        grid-template-columns: 1fr;
    }

    .security-grid,
    .setup-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Collapse the two-sided timeline to a single left-aligned rail. */
    .timeline-track,
    .timeline-fill,
    .timeline-node {
        left: 22px;
    }

    .timeline-card,
    .side-left .timeline-card,
    .side-right .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }

    .side-left .timeline-card::after,
    .side-right .timeline-card::after {
        left: -18px;
        right: auto;
        border-right-color: var(--bg-surface);
        border-left-color: transparent;
    }
}

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

    .hero {
        padding-top: 8rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}