/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Refined Palette - Less "Neon", More "Signal" */
    --primary-green: #00e676;
    /* Slightly deeper, more solid green */
    --dark-green: #00a854;

    /* Background Hierarchy - Unified Deep Dark */
    --bg-dark: #050505;
    /* Main background */
    --bg-dark-2: #0a0a0a;
    /* Cards/Sections */
    --bg-dark-3: #111111;
    /* Borders/Inputs */

    /* Text */
    --text-primary: #f5f5f7;
    /* Apple-style off-white */
    --text-secondary: #86868b;
    /* Apple-style grey */

    /* Accents */
    --comp-red: #ff3b30;
    /* Classic error red */
    --comp-red-dark: #d70015;

    /* Materials */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    /* Much more subtle */
    --glass-blur: blur(20px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Switched to Inter */
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Critical for premium feel */
}

/* ===== Global Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* ===== Navigation ===== */
.nav-glass {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.00rem;
    font-weight: 600;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.btn-primary {
    background: #fff;
    color: var(--bg-dark) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

/* Subtle Grid Enhancement - Replaces Orbs */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Faster, smoother */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    /* Simpler glass */
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-green);
    /* Positive signal */
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    /* Explicitly set */
    font-size: 5rem;
    /* Larger */
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    /* Tighter for display */
    display: flex;
    flex-direction: column;
    /* Stacked naturally */
    align-items: center;
    justify-content: center;
    gap: 0;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary));
    /* Metallic gradient instead of colored */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-bottom: 0.1em;
}

/* Optional: Keep a weak green glow if desired, but Apple style prefers monochrome + accent */
/* 
.gradient-text-green {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
} 
*/

.hero-subtitle {
    font-size: 1.35rem;
    /* Larger, more confident */
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 600px;
    /* Narrower reading line */
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.email-input::placeholder {
    color: var(--text-secondary);
    transition: opacity 0.2s ease;
}

.email-input:focus::placeholder {
    opacity: 0.5;
}

.email-form:focus-within {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.btn-submit {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
    background: var(--comp-red-dark);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-screenshot {
    margin-top: 3rem;
    max-width: 1100px;
    width: 100%;
    position: relative;
}

/* Browser Window Style */
.hero-app-screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    /* Deep shadow */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-app-screenshot:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 50px 120px -20px rgba(0, 0, 0, 0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ===== Social Proof Section ===== */
.social-proof {
    padding: 3rem 2rem;
    background: var(--bg-dark);
}

.social-proof-text {
    text-align: center;
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    opacity: 0.8;
}

.integration-logos-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.integration-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    /* More breathing room */
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hide duplicate logos on desktop */
.integration-logos-duplicate {
    display: none;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.integration-logo {
    height: 36px;
    width: auto;
    filter: grayscale(100%) brightness(0.5) opacity(0.7);
    transition: all 0.4s ease;
}

.logo-item:hover .integration-logo {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.05);
}

.integration-request {
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.integration-request:hover {
    color: var(--text-primary);
}

/* ===== Real Problem ("The Pain") Section ===== */
.real-problem {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    /* Unified background */
}

.problem-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.problem-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: -2.5rem;
    /* Tighter to title */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.problem-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.problem-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Problem Visuals (Code Snippets) */
.problem-visual {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

/* Unified Visual Header (traffic lights) */
.visual-header,
.terminal-visual .term-header {
    background: #161616;
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-dot.red {
    background: #ff5f57;
}

.term-dot.yellow {
    background: #febc2e;
}

.term-dot.green {
    background: #28c840;
}

.term-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #666;
    flex: 1;
}

.code-red {
    color: #ff4444;
}

.code-dim {
    opacity: 0.6;
}

/* Browser Style */
.browser-visual {
    background: #0d0d0d;
}

.browser-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.browser-tab {
    padding: 10px 14px;
    color: #555;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.browser-tab.active {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-left: 2px solid #fff;
}

/* Slack Style */
.slack-visual {
    background: #0d0d0d;
}

.slack-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 14px;
}

.slack-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.slack-avatar {
    width: 28px;
    height: 28px;
    background: #cc2200;
    border-radius: 6px;
    flex-shrink: 0;
}

.slack-name {
    font-weight: 600;
    color: #ddd;
    font-size: 0.8rem;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.slack-time {
    font-weight: 400;
    color: #555;
    font-size: 0.7rem;
    margin-left: 8px;
}

.slack-alert {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.12);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    display: inline-block;
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.problem-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.problem-solution {
    text-align: center;
    padding-top: 2rem;
}

.solution-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.solution-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

/* ===== Features Section ("The Solution") ===== */
.features {
    padding: 5rem 2rem;
    background: var(--bg-dark);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Slightly wider */
    gap: 2rem;
}

.feature-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    background: var(--bg-dark-3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-green);
}

.feature-icon svg {
    stroke-width: 1.5px;
    /* Thinner for elegance */
}

/* ===== Code Example Section ("Integrate in Minutes") ===== */
.code-example {
    padding: 5rem 2rem;
    background: var(--bg-dark-2);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.code-example-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.code-example-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.code-block-wrapper {
    background: #1e1e1e;
    /* VS Code dark like */
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #252526;
    border-bottom: 1px solid #333;
}

.code-language {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ccc;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Traffic lights */
.code-language::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f;
    margin-right: 35px;
}

.code-file {
    font-size: 0.8rem;
    color: #858585;
    font-style: italic;
}

.code-block {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    background: #1e1e1e;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    /* Ensure mono */
    font-size: 0.9rem;
    line-height: 1.7;
    color: #d4d4d4;
    /* Editor default */
}

.code-highlight {
    background: rgba(30, 80, 40, 0.4);
    /* Subtle diff green */
    border-left: 2px solid var(--primary-green);
    padding-left: 1rem;
    margin-left: -1rem;
    width: calc(100% + 1rem);
    /* Full width highlight */
}

/* ===== AI Analysis Showcase Section ===== */
.ai-showcase {
    padding: 5rem 2rem;
    background: var(--bg-dark-2);
}

.ai-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.ai-showcase-content .step-visual {
    display: flex;
    justify-content: flex-end;
}

.ai-feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ai-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-3);
    border-radius: 8px;
}

.ai-feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ai-feature-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.ai-screenshot-placeholder {
    background: var(--bg-dark-3);
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-content p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.placeholder-content span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 300px;
}

/* ===== Stats Section ===== */
.stats {
    padding: 6rem 2rem;
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== How It Works Section (Redesigned) ===== */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--bg-dark-2);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    position: relative;
}

/* Connection Line (Desktop) */
.workflow-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    /* Aligns with middle of mock visuals */
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--glass-border) 20%,
            var(--glass-border) 80%,
            transparent 100%);
    z-index: 0;
}

.workflow-step-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-badge {
    position: absolute;
    top: -15px;
    background: var(--bg-dark-3);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.step-visual-mock {
    width: 100%;
    height: 120px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

/* --- Mock UI: Terminal --- */
.terminal-mock .mock-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: var(--bg-dark-3);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    gap: 4px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-mock .mock-body {
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-align: left;
    width: 80%;
}

.code-line {
    opacity: 0.7;
    margin-bottom: 4px;
}

.code-line.error {
    color: var(--comp-red);
    opacity: 1;
}

/* --- Mock UI: Scanner --- */
.scanner-mock {
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.05), transparent 70%);
}

.scan-line {
    width: 100%;
    height: 2px;
    background: var(--primary-green);
    position: absolute;
    top: 50%;
    box-shadow: 0 0 10px var(--primary-green);
    animation: scan 2s infinite linear;
}

.data-row {
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    width: 60%;
    margin-bottom: 8px;
}

.width-80 {
    width: 80%;
}

.width-60 {
    width: 60%;
}

@keyframes scan {
    0% {
        top: 20%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 80%;
        opacity: 0;
    }
}

/* --- Mock UI: Analysis --- */
.analysis-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 20px;
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Mock UI: PR --- */
.pr-mock {
    background: #0d1117;
    /* GitHub Dark */
}

.pr-icon {
    color: #a371f7;
    /* GitHub Purple */
    margin-bottom: 0.5rem;
}

.pr-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9d1d9;
}

.workflow-step-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.workflow-step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0 0.5rem;
}

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .workflow-grid::before {
        display: none;
        /* Hide connector in vertical mode */
    }

    .step-visual-mock {
        height: 160px;
        /* Larger on mobile */
    }
}

.screenshot-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.screenshot-placeholder span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.screenshot-placeholder svg {
    opacity: 0.5;
}

.app-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 255, 136, 0.3);
}

/* ===== Stats Section ===== */
.stats {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--bg-dark-2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Ensure equal height */
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    /* Slightly smaller to prevent wrap */
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ===== CTA Final Section ===== */
.cta-final {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark-3));
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.btn-large {
    background: #fff;
    color: var(--bg-dark);
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-large:hover {
    background: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.cta-benefit svg {
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        height: 10rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn-primary) {
        display: none;
    }

    .email-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

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

    .stat-number {
        font-size: 2.5rem;
    }

    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .code-example-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    .workflow-steps {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .ai-showcase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-subtitle {
        font-size: 1rem;
        margin-top: -1.5rem;
    }

    .problem-card {
        padding: 2rem;
    }

    .solution-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .solution-text {
        text-align: center;
        font-size: 1.125rem;
    }

    .hero {
        padding-bottom: 8rem;
    }

    .scroll-indicator {
        position: absolute;
        bottom: 1.5rem;
        margin-top: 0;
    }

    /* Mobile marquee for social proof logos */
    .social-proof .container {
        max-width: 100%;
        padding: 0;
        overflow: hidden;
    }

    .social-proof-text {
        padding: 0 1rem;
    }

    .integration-logos-wrapper {
        display: flex;
        width: max-content;
        animation: marquee 25s linear infinite;
    }

    .integration-logos,
    .integration-logos-duplicate {
        display: flex;
        flex-wrap: nowrap;
        flex-shrink: 0;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }

    .integration-logos {
        padding-right: 2rem;
    }

    .integration-logos-duplicate {
        display: flex;
        padding-right: 2rem;
    }

    .logo-item .integration-logo {
        height: 24px;
    }

    @keyframes marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
        height: 8rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .features,
    .stats,
    .cta-final,
    .real-problem {
        padding: 4rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .problem-card {
        padding: 1.5rem;
    }

    .solution-card {
        padding: 1.5rem;
    }
}

/* ===== Mobile Navigation Styles ===== */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-nav-links {
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary-green);
}

.mobile-nav-links .mobile-waitlist-btn {
    background: #fff;
    color: var(--bg-dark) !important;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.mobile-nav-links .mobile-waitlist-btn:hover {
    background: var(--text-primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* Hamburger Animation */
.mobile-menu-btn.active span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }
}