/* ================================================================ */
/* RESET AND BASE STYLES                                           */
/* ================================================================ */

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

/* Accessibility - Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background-color: #0a0a0a;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================================ */
/* TYPOGRAPHY                                                      */
/* ================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    padding-top: 1rem;
}

p {
    color: #a1a1aa;
    line-height: 1.7;
}

/* ================================================================ */
/* BUTTON COMPONENTS                                               */
/* ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ================================================================ */
/* NAVIGATION                                                      */
/* ================================================================ */

.navbar {
    position: fixed;
    top: 52px; /* Account for beta banner */
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    list-style: none;
    margin: 0;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
}

.mobile-menu .nav-link:hover {
    color: #fff;
}

.mobile-menu .download-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: none !important;
}

.mobile-menu .download-btn:hover {
    transform: translateY(-1px);
}

/* ================================================================ */
/* HERO SECTION                                                    */
/* ================================================================ */

.hero {
    padding: calc(80px + 52px + 2rem) 0 8rem; /* Account for navbar + beta banner */
    background:
        radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.15), transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Moved to utility components section */

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    color: #a1a1aa;
}

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

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Moved to utility components section */

.hero-visual {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.code-window {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.code-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 0.375rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ef4444;
}

.control.yellow {
    background: #f59e0b;
}

.control.green {
    background: #10b981;
}

.file-name {
    color: #e4e4e7;
    font-size: 0.85rem;
    font-weight: 500;
}

.code-content {
    padding: 1.5rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Droid Sans Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e4e4e7;
    background: none;
    overflow-x: auto;
    min-height: 330px;
}

.code-content .keyword {
    color: #c084fc;
}

.code-content .type {
    color: #60a5fa;
}

.code-content .string {
    color: #34d399;
}

/* ================================================================ */
/* SECTION STYLES                                                  */
/* ================================================================ */

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #a1a1aa;
}

/* ================================================================ */
/* FEATURES SECTION                                                */
/* ================================================================ */

.features {
    padding: 6rem 0;
    background: #0a0a0a;
}

.features header {
    margin-bottom: 3rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    position: relative;
}

.feature-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.feature-label-pro {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-card p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* ================================================================ */
/* PERFORMANCE SECTION                                             */
/* ================================================================ */

.performance {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(167, 139, 250, 0.05));
}

.performance header {
    margin-bottom: 3rem;
}

.performance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.performance-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.performance-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: #a1a1aa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #a1a1aa;
    font-weight: 500;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e4e4e7;
}

.feature-item svg {
    color: #10b981;
    flex-shrink: 0;
}

.performance-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ================================================================ */
/* COMPARISON SECTION                                              */
/* ================================================================ */

.comparison {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
}

.comparison header {
    margin-bottom: 3rem;
}

.comparison-table {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    max-width: 800px;
    margin: 0 auto;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5em;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5em;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-row:last-child {
    border-bottom: none;
}

.feature-column {
    color: #e4e4e7;
    font-weight: 500;
}

.flowdeck-column {
    color: #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.competitor-column {
    color: #a1a1aa;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Moved to utility components section */

/* ================================================================ */
/* CTA SECTION                                                     */
/* ================================================================ */

.cta {
    padding: 6rem 0;
    background:
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1), transparent 70%),
        #0a0a0a;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Download Section Styles */
.download-section-title {
    margin-top: 2rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* CTA Section Specific Styles */
.cta-hero-message {
    margin-top: 1rem;
}

.cta-download-title {
    margin-top: 2rem;
}

.cta-download-section {
    margin-top: 1rem;
}

.btn-icon-fa {
    vertical-align: middle;
    margin-right: 8px;
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-section-spacing {
    margin-top: 1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    width: 100%;
}

.btn-icon {
    vertical-align: middle;
    margin-right: 8px;
}

.btn-icon img {
    vertical-align: middle;
}

/* Features Grid Secondary */
.features-grid-secondary {
    margin-top: 2rem;
}

/* Pro Highlight */
.pro-highlight {
    color: #c084fc;
    font-weight: 600;
}

/* Hero Message Spacing */
.hero-message-spacing {
    margin-top: 1rem;
}

/* Requirements Note */
.requirements-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #71717a;
}

/* Privacy Link */
.privacy-link {
    color: #3b82f6;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: #fff;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #a1a1aa;
}

/* Legacy cta-note class - kept for compatibility */
.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #71717a;
}

/* ================================================================ */
/* FOOTER                                                          */
/* ================================================================ */

.footer {
    padding: 4rem 0 2rem;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-description {
    color: #71717a;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: #a1a1aa;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: #71717a;
    font-size: 0.9rem;
}

/* ================================================================ */
/* RESPONSIVE DESIGN                                                */
/* ================================================================ */

@media (max-width: 768px) {
    /* Mobile styles for editor name */
    .editor-name {
        min-width: 80px;
        font-size: inherit;
    }
    /* Beta banner mobile */
    .beta-banner-content {
        padding: 0 1rem;
        font-size: 0.875rem;
    }

    .beta-text {
        display: none;
    }

    .beta-badge {
        font-size: 0.75rem;
    }
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar .container {
        position: relative;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

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

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

    .gradient-text {
        display: inline;
    }

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

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

    .feature-card {
        padding: 1.5rem;
    }

    .performance-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .performance-text .section-title {
        text-align: center;
    }

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

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

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

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

    .comparison-table {
        margin: 0 1rem;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        display: block;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        margin-bottom: 1rem;
        padding: 1.5rem;
        position: relative;
    }

    .comparison-row:last-child {
        margin-bottom: 0;
    }

    .feature-column {
        font-size: 1.1rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 1rem;
        display: block;
        text-align: left;
    }

    .flowdeck-column,
    .competitor-column {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        border-radius: 0.5rem;
        position: relative;
        text-align: left;
    }

    .flowdeck-column::before {
        content: "FlowDeck:";
        display: block;
        font-weight: 600;
        font-size: 0.9rem;
        color: #10b981;
        margin-bottom: 0.25rem;
    }

    .competitor-column::before {
        content: "Other Extensions:";
        display: block;
        font-weight: 600;
        font-size: 0.9rem;
        color: #a1a1aa;
        margin-bottom: 0.25rem;
    }

    .flowdeck-column {
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .competitor-column {
        background: rgba(161, 161, 170, 0.1);
        border: 1px solid rgba(161, 161, 170, 0.2);
    }
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-title br {
        display: none;
    }

    .gradient-text {
        display: block;
        margin-top: 0.5rem;
    }

    .editor-name {
        min-width: 70px;
        font-size: 1.5rem;
    }

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

    .code-content {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .code-window {
        max-width: 100%;
    }
}

/* ================================================================ */
/* BETA ANNOUNCEMENT BANNER                                         */
/* ================================================================ */

.beta-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    z-index: 1100;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    height: 52px;
    display: flex;
    align-items: center;
}

.beta-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.beta-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    letter-spacing: 0.05em;
}

.beta-text {
    color: white;
    font-weight: 500;
}

.beta-link {
    color: white;
    text-decoration: underline;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.beta-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Beta banner and navbar adjustments are now handled in their respective sections */

/* ================================================================ */
/* UTILITY COMPONENTS                                              */
/* ================================================================ */

.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.editor-name {
    display: inline;
    min-width: 120px;
    color: #3b82f6;
    border-right: 2px solid #3b82f6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #3b82f6; }
    51%, 100% { border-color: transparent; }
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.check {
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

.cross {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1rem;
}

.partial {
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ================================================================ */
/* SPACING AND LAYOUT UTILITIES                                    */
/* ================================================================ */

/* Consistent spacing utilities */
.section-spacing {
    padding: 6rem 0;
}

.margin-top-sm {
    margin-top: 1rem;
}

.margin-top-md {
    margin-top: 2rem;
}

.margin-top-lg {
    margin-top: 3rem;
}

.margin-bottom-sm {
    margin-bottom: 1rem;
}

.margin-bottom-md {
    margin-bottom: 2rem;
}

.margin-bottom-lg {
    margin-bottom: 3rem;
}

/* Text alignment utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 2rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-message {
    color: #10b981;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* CTA Actions */
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Waitlist Form Styles */
.waitlist-form {
    width: 100%;
    max-width: 500px;
}

.waitlist-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Community Section Styles */
.community-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.community-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.community-content .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.community-content .section-subtitle {
    font-size: 1.2rem;
    color: #a1a1aa;
    margin-bottom: 3rem;
}

/* MailerLite Form Styling Override */
.ml-embedded {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
}

/* Ensure MailerLite form elements are visible */
.ml-embedded * {
    color: inherit !important;
}

.ml-embedded input[type="email"],
.ml-embedded input[type="text"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
}

.ml-embedded button,
.ml-embedded input[type="submit"] {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

.ml-embedded button:hover,
.ml-embedded input[type="submit"]:hover {
    opacity: 0.9 !important;
}

/* ================================================================ */
/* MODAL STYLES                                                    */
/* ================================================================ */

.signup-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signup-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.signup-modal {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.signup-modal-overlay.active .signup-modal {
    transform: scale(1);
}

.signup-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-modal-close:hover {
    color: #fff;
}

.signup-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-modal-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.signup-modal-subtitle {
    color: #a1a1aa;
    font-size: 1.1rem;
    line-height: 1.5;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    color: #e4e4e7;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #fff;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #71717a;
}

.signup-form-submit {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.signup-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.signup-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.signup-success-message,
.signup-error-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.signup-success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.signup-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.signup-modal-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.signup-modal-note {
    color: #71717a;
    font-size: 0.875rem;
    line-height: 1.5;
}

.waitlist-form .email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
}

.waitlist-form .email-input::placeholder {
    color: #6b7280;
}

.waitlist-form .email-input:focus {
    outline: none;
    border-color: #007aff;
    background-color: rgba(255, 255, 255, 0.08);
}

.waitlist-form .form-message {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Hero form specific */
.hero .waitlist-form {
    margin: 0 auto;
}

.hero .waitlist-form .form-group {
    flex-direction: column;
}

.hero .waitlist-form .email-input,
.hero .waitlist-form .btn {
    width: 100%;
}

@media (min-width: 640px) {
    .hero .waitlist-form .form-group {
        flex-direction: row;
    }
    
    .hero .waitlist-form .btn {
        width: auto;
    }
}

/* CTA form specific */
.cta-form {
    margin: 0 auto;
}

.cta-form .form-group {
    max-width: 600px;
    margin: 0 auto;
}

/* Form submission states */
.waitlist-form.submitting .btn {
    opacity: 0.7;
    cursor: not-allowed;
}

.waitlist-form .success-message,
.waitlist-form .error-message {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.waitlist-form .success-message {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.waitlist-form .error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* New Marketing Sections Styles */
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-benefit {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Why FlowDeck Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1100px;
}

.why-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 1rem;
}

.why-icon i {
    font-size: 1.5rem;
    color: white;
}

.why-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #e4e4e7;
}

.why-card p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Comparison Section (legacy styles) */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.comparison-column {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
}

.xcode-column {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

.flowdeck-column {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.02);
}

.comparison-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.comparison-column ul {
    list-style: none;
}

.comparison-column li {
    padding: 0.75rem 0;
    color: #a1a1aa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comparison-column li:last-child {
    border-bottom: none;
}

.testimonials-container {
    margin-top: 3rem;
    position: relative;
    min-height: 200px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    opacity: 1;
}

.testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e4e4e7;
    font-style: italic;
    margin: 0;
}

/* Performance Section */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #e4e4e7;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-detail {
    color: #71717a;
    font-size: 0.85rem;
}

.tech-stack {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
}

.tech-stack h3 {
    margin-bottom: 1.5rem;
    color: #e4e4e7;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge i {
    font-size: 0.9rem;
}

/* CTA Section Updates */
.cta-content {
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-hero {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.35);
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a1a1aa;
    font-size: 0.95rem;
    margin: 0;
}

.cta-feature .check {
    color: #22c55e;
    font-weight: 600;
}

/* Responsive updates for new sections */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .performance-stats {
        grid-template-columns: 1fr;
    }

    .tech-badges {
        justify-content: flex-start;
    }
}

/* ================================================================ */
/* NEW SECTIONS - MATCHING DESIGN SYSTEM                          */
/* ================================================================ */

/* Video Container (Hero) */
.video-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    color: #a1a1aa;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.video-placeholder i {
    font-size: 4rem;
    color: #3b82f6;
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 1.1rem;
    color: #a1a1aa;
}

/* Problem Section */
.problem {
    padding: 4rem 0;    
    background: #0a0a0a;
    text-align: center;
}

.problem .section-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
}

/* Building Section */
.building {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(167, 139, 250, 0.05));
}

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

.building-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.building-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.building-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.building-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.building-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.building-list li {
    padding: 0.5rem 0;
    color: #a1a1aa;
    position: relative;
    padding-left: 1.5rem;
}

.building-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.building-footer {
    text-align: center;
    font-size: 1.125rem;
    color: #e4e4e7;
    font-weight: 500;
    margin-top: 1rem;
}

/* Features Grid 2x3 */
.features-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid-2x3 .feature-card h3 {
    font-size: 1.15rem;
}

.features-grid-2x3 .feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Why Section Updates */
.why-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.why-list li {
    padding: 0.5rem 0;
    color: #a1a1aa;
    position: relative;
    padding-left: 1.5rem;
}

.why-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.why-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: #0a0a0a;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.testimonial-text {
    color: #e4e4e7;
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    color: #3b82f6;
    font-size: 2rem;
    line-height: 0;
    vertical-align: -0.4rem;
    margin-right: 0.25rem;
}

/* Join Beta Section */
.join-beta {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
}

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

.join-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.join-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.join-list li {
    padding: 0.75rem 0;
    color: #a1a1aa;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.join-list li:last-child {
    border-bottom: none;
}

.community-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Developer's Note Section */
.developers-note {
    padding: 6rem 0;
    background:
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08), transparent 70%),
        #0a0a0a;
}

.note-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.note-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e4e4e7;
    margin-bottom: 1.5rem;
}

.note-signature {
    font-weight: 500;
    color: #fff;
    font-style: italic;
    margin-top: 2rem;
}

.note-signature a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.note-signature a:hover {
    color: #60a5fa;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: #0a0a0a;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.faq-answer {
    color: #a1a1aa;
    line-height: 1.7;
}

/* CTA Updates */
.newsletter-signup {
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-signup h3 {
    color: #e4e4e7;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Responsive Updates for New Sections */
@media (max-width: 768px) {
    .building-grid,
    .testimonials-grid,
    .join-grid,
    .features-grid-2x3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .building-footer {
        font-size: 1rem;
    }

    .note-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}