:root {
    --bg-body: #1d1d1d;
    --bg-elevated: #252525;
    --bg-surface: rgba(30, 30, 30, 0.9);
    --bg-hover: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(35, 35, 35, 0.9);
    --card-border: rgba(255, 255, 255, 0.08);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-xxl: 48px;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Squircle utility - applied via SVG mask or approximation with higher radius */
.squircle {
    border-radius: 28% / 28%;
}

/* Interactive Grid Background */
.grid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    touch-action: auto;
    z-index: 0;
}

#gridCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Fixed Download Button */
.download-button {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: var(--text-primary);
    color: var(--bg-body);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.download-icon {
    width: 20px;
    height: 20px;
}

.download-button .download-icon,
.button .button-icon {
    stroke: currentColor;
    stroke-width: 2;
}

/* Download dropdown */
.download-button-wrapper {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
}

.download-button-wrapper .download-button {
    position: relative;
    top: auto;
    right: auto;
}

.download-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
        opacity 0.2s,
        visibility 0.2s,
        transform 0.2s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: left;
    z-index: 100;
}

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

.download-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-subtle);
}

.download-option:last-child {
    border-bottom: none;
}

.download-option:hover {
    background: var(--bg-hover);
}

.download-option-title {
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.download-option-checksum {
    font-size: 11px;
    font-family: monospace;
    color: var(--text-secondary);
    opacity: 0.7;
    cursor: help;
}

.download-version {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.download-option-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-option-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.download-option-hash {
    cursor: help;
}

/* Inline download button wrapper (for hero and CTA) */
.download-button-inline-wrapper {
    position: relative;
    display: inline-block;
}

.download-button-inline-wrapper .download-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-8px);
    min-width: 240px;
}

.download-button-inline-wrapper .download-dropdown.active {
    transform: translateX(-50%) translateY(0);
}

/* Ensure dropdown appears above other content */
.download-button-inline-wrapper .download-dropdown {
    z-index: 50;
}

/* Platform alternatives */
.platform-alternatives {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.platform-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.platform-link:hover {
    opacity: 0.7;
}

/* Download section - contains button wrapper + alternatives */
.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Platform alternatives - below download button */
.download-section .platform-alternatives {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 24px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hero-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 600px;
    height: 300px;
}

.hero-valley {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.hero-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    z-index: 3;
}

.hero-tagline {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 390px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
}

.hero-actions .button-secondary {
    min-height: 52px;
}

.hero-screenshot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1;
    perspective: 1200px;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transform: rotateX(15deg);
    transform-origin: center top;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6);
    display: block;
}

.hero-screenshot .screenshot-img {
    border: none;
    border-radius: 0;
}

.screenshot-img-premium {
    border-color: rgba(255, 255, 255, 0.15);
    transform: none;
    border-radius: var(--radius-xl);
}

.feature-screenshot .screenshot-img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.feature-screenshot video.screenshot-img {
    aspect-ratio: 5/3;
    object-position: 40% center;
    filter: saturate(1.6);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.button-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.button-primary {
    background: var(--text-primary);
    color: var(--bg-body);
}

.button-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.button-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
}

.button-full {
    width: 100%;
    justify-content: center;
}

.button-large {
    padding: 18px 36px;
    font-size: 16px;
}

.button-large .button-icon {
    width: 32px;
    height: 32px;
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    padding: 48px;
    border-radius: var(--radius-xxl);
    background: rgba(255, 255, 255, 0.02);
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block-reverse {
    direction: rtl;
}

.feature-block-reverse > * {
    direction: ltr;
}

.feature-block-highlight {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
}

.feature-block-claim {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.feature-claim {
    max-width: 680px;
}

.feature-block-claim .feature-title {
    justify-content: center;
}

.feature-content {
    max-width: 420px;
}

.feature-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-soft);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.feature-badge-premium {
    background: var(--text-primary);
    border: none;
    color: var(--bg-body);
}

.feature-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* AI Providers */
.ai-providers {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.ai-provider {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--bg-elevated);
    padding: 6px;
    border: 1px solid var(--border-subtle);
}

.ai-provider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Nova X CTA Section */
.nova-x-cta {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.nova-x-cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xxl);
}

.nova-x-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--text-primary);
    color: var(--bg-body);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.nova-x-cta-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.nova-x-cta-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.nova-x-cta-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.nova-x-price-amount {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nova-x-price-period {
    font-size: 16px;
    color: var(--text-secondary);
}

.nova-x-cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Pricing Graph */
.pricing-graph {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.pricing-graph-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.pricing-graph-container {
    position: relative;
    height: 120px;
    display: flex;
    align-items: flex-end;
}

.pricing-graph-line {
    position: absolute;
    bottom: 20px;
    left: 40px;
    right: 20px;
    height: 80px;
}

.pricing-graph-axis-y {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 20px;
    width: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    padding-right: 8px;
}

.pricing-graph-axis-x {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

.pricing-graph canvas {
    width: 100%;
    height: 100%;
}

.nova-x-cta-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nova-x-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.nova-x-feature-item:hover {
    background: var(--accent-soft);
    border-color: var(--border-medium);
}

.nova-x-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nova-x-feature-name {
    font-size: 14px;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 20px 0 80px 0;
    position: relative;
    z-index: 1;
}

/* Twitter Feed Section */
.twitter-feed {
    padding: 60px 0 80px 0;
    position: relative;
    z-index: 1;
}

.twitter-embed {
    max-width: 600px;
    margin: 0 auto;
}

.twitter-timeline {
    border-radius: var(--radius-xl) !important;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
    min-height: 81px;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

    .feature-block-reverse {
        direction: ltr;
    }

    .nova-x-cta-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .download-button-wrapper {
        top: 16px;
        right: 16px;
    }

    .download-button {
        top: 16px;
        right: 16px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .download-icon {
        width: 20px;
        height: 20px;
    }

    .download-dropdown {
        min-width: 180px;
    }

    .download-option {
        padding: 12px 14px;
    }

    .download-option-title {
        font-size: 13px;
    }

    .download-option-desc {
        font-size: 11px;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-logo-container {
        height: 200px;
    }

    .hero-logo,
    .hero-valley {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        height: auto;
    }

    .hero-screenshot {
        display: flex;
        justify-content: center;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 40px;
        width: 100%;
    }

    .screenshot-img {
        transform: rotateX(10deg);
    }

    .feature-block {
        padding: 32px;
        margin-bottom: 40px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    .nova-x-cta-card {
        padding: 24px;
    }

    .ai-providers {
        gap: 12px;
    }

    .ai-provider {
        width: 32px;
        height: 32px;
    }
}

/* Animations */
/* Animation removed to prevent layout shift */

.hero-screenshot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 1;
    perspective: 1200px;
}

.pricing-graph-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 40px 0 120px 0;
    position: relative;
    z-index: 1;
}

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

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition:
        border-color 0.3s,
        transform 0.3s;
    corner-shape: squircle;
}

.testimonial-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.testimonial-card-featured {
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.testimonial-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .testimonials {
        padding: 40px 0 80px 0;
    }
}

/* Comparison Section */
.comparison {
    padding: 30px 0 120px 0;
    position: relative;
    z-index: 1;
}

.comparison-table {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xxl);
    overflow: hidden;
    corner-shape: round;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 0;
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
}

.comparison-feature-col {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.comparison-plan-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.comparison-plan-featured {
    background: rgba(255, 255, 255, 0.03);
    margin: -32px -32px -24px 0;
    padding: 32px 24px 24px;
    border-radius: 0;
}

.plan-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--text-primary);
    color: var(--bg-body);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.plan-price {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.comparison-section-title {
    padding: 16px 32px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 0;
    padding: 14px 32px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
}

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

.comparison-row:hover {
    background: var(--bg-hover);
}

.comparison-row .comparison-plan-col {
    padding: 0;
}

.comparison-row .comparison-plan-featured {
    margin: -14px -32px -15px 0;
    padding: 14px 24px 15px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-row:last-child .comparison-plan-featured {
    border-radius: 0 0 var(--radius-xxl) 0;
}

.check {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.dash {
    color: var(--text-muted);
    font-size: 16px;
}

/* Pricing Section Below Table */
.pricing-section {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.pricing-section .pricing-graph {
    width: 100%;
}

.pricing-cta {
    min-width: 200px;
}

/* Lifetime access link */
.pricing-lifetime {
    margin-top: -4px;
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-lifetime-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.pricing-lifetime-link:hover {
    color: var(--text-primary);
}

/* Responsive Comparison */
@media (max-width: 640px) {
    .comparison-table {
        border-radius: 16px;
    }

    .comparison-header {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 16px;
        gap: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .comparison-header .comparison-plan-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .comparison-header .comparison-plan-featured {
        margin: -16px -16px -12px 0 !important;
        padding: 16px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 0 16px 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .comparison-row {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 14px 16px;
        gap: 0;
    }

    .comparison-row .comparison-plan-col {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .comparison-row .comparison-plan-featured {
        margin: -12px -16px -12px 0 !important;
        padding: 14px 16px 15px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .comparison-row:last-child .comparison-plan-featured {
        border-radius: 0 0 16px 0 !important;
    }

    .plan-price {
        font-size: 14px;
    }

    .plan-period {
        font-size: 10px;
    }

    .plan-name {
        font-size: 11px;
    }

    .plan-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .plan-current-label {
        font-size: 7px;
    }

    .comparison-feature-col {
        font-size: 12px;
    }

    .comparison-feature-col svg {
        width: 12px;
        height: 12px;
        margin-right: 6px;
    }

    .price-info-btn {
        display: none;
    }
}

@media (max-width: 400px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 12px;
    }

    .comparison-header .comparison-plan-featured {
        margin: -12px -12px -12px 0;
        padding: 12px 0;
    }

    .comparison-row .comparison-plan-featured {
        margin: -12px -12px -12px 0;
        padding: 12px 0;
    }

    .plan-price {
        font-size: 12px;
    }

    .plan-name {
        font-size: 10px;
    }

    .plan-badge {
        font-size: 8px;
        padding: 2px 5px;
    }

    .comparison-feature-col {
        font-size: 11px;
    }
}

/* Section header with more spacing for features */
.section-header-spaced {
    margin-top: 80px;
}

/* AI Providers with labels */
.ai-providers-section {
    margin-top: 20px;
}

.ai-providers-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-providers {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ai-provider-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.ai-provider {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    padding: 8px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-provider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-provider-name {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Price info button and current label */
.plan-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-info-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.price-info-btn:hover {
    color: var(--text-primary);
}

.plan-current-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Pricing Modal */
.pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s,
        visibility 0.3s;
}

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

.pricing-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.pricing-modal-content {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.pricing-modal.active .pricing-modal-content {
    transform: scale(1);
}

.pricing-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.pricing-modal-close:hover {
    color: var(--text-primary);
}

/* Fix button text centering */
.pricing-cta {
    min-width: 200px;
    text-align: center;
}

.pricing-cta span {
    display: block;
}

@media (max-width: 640px) {
    .ai-providers {
        gap: 16px;
    }

    .ai-provider {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .ai-provider-name {
        font-size: 10px;
    }
}

/* Essential overrides */

/* Squircle corners for elements with border-radius */
.button,
.download-button,
.screenshot-img,
.feature-block,
.feature-block-highlight,
.comparison-table,
.pricing-graph,
.ai-provider,
.billing-toggle,
.billing-option,
.feature-badge,
.plan-badge,
.nova-x-cta-card,
.nova-x-feature-item {
    corner-shape: squircle;
}

/* Comparison table fixes */
.comparison-table {
    corner-shape: round;
}

.comparison-header .comparison-plan-featured {
    border-radius: 0;
}

.comparison-plan-featured {
    border-radius: 0 !important;
}

.comparison-row .comparison-plan-featured {
    margin: -14px -32px -15px 0;
    padding: 14px 24px 15px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-row:last-child .comparison-plan-featured {
    border-radius: 0 !important;
}

/* Hero screenshot - consistent margin */
.hero-screenshot {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 60px auto 0 !important;
    width: 90% !important;
    max-width: 800px !important;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 24px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .hero-tagline,
    .hero-subtitle {
        max-width: 100% !important;
        word-wrap: break-word;
    }

    .hero-logo-container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero-screenshot {
        width: 100% !important;
        padding: 0 20px;
        margin: 40px auto 0 !important;
    }

    .hero-screenshot .screenshot-img {
        transform: rotateX(8deg);
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .download-section,
    .hero-actions .download-button-inline-wrapper,
    .hero-actions > .button {
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Lucide icons in features and comparison */
.feature-title {
    display: flex;
    align-items: center;
}

.feature-title svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    stroke: var(--text-muted);
    stroke-width: 1.2;
    opacity: 1;
    flex-shrink: 0;
}

.comparison-feature-col {
    display: flex;
    align-items: center;
}

.comparison-feature-col svg {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    stroke: var(--text-muted);
    stroke-width: 1.2;
    opacity: 1;
    flex-shrink: 0;
}

/* Valley centering */
.hero-valley {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

/* Logo container centering */
.hero-logo-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Grid and canvas - no pointer events */
.grid-container,
#gridCanvas,
.hero-valley-canvas {
    will-change: transform;
    pointer-events: none !important;
}

/* Ensure smooth scrolling */
html,
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* Pricing Graph Section on page */
.pricing-graph-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.pricing-graph-section .pricing-graph {
    max-width: 600px;
    margin: 0 auto;
}

/* Squircle for all buttons and interactive elements */
.button,
.download-button,
.price-info-btn,
.plan-badge,
.feature-badge {
    border-radius: 12px;
}

.button-large {
    border-radius: 14px;
}

.button-icon,
.download-icon {
    border-radius: 8px;
}

/* Ensure comparison table has proper squircle */
.comparison-table {
    border-radius: 24px;
}

/* AI provider squircle */
.ai-provider {
    border-radius: 12px;
}

/* Feature blocks squircle */
.feature-block-highlight {
    border-radius: 32px;
}

.screenshot-img {
    border-radius: 24px;
}

.screenshot-img-premium {
    border-radius: 24px;
}

/* Pricing graph card squircle */
.pricing-graph {
    border-radius: 24px;
}

/* Fix Get Nova X button centering */
.pricing-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lower the hero screenshot */
.hero-screenshot {
    top: 55%;
}

/* AI provider icons squircle */
.ai-provider {
    border-radius: 22%;
}

/* Larger pricing graph below plans */
.pricing-graph-large {
    margin-top: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-graph-large .pricing-graph-container {
    width: 600px;
    max-width: 100%;
}

.pricing-graph-large .pricing-graph-line {
    height: 160px;
}

/* Fix comparison table border radius */
.comparison-table {
    border-radius: 24px;
    overflow: hidden;
}

.comparison-header {
    border-radius: 24px 24px 0 0;
}

.comparison-plan-featured {
    border-radius: 0 !important;
}

.comparison-row:last-child .comparison-plan-featured {
    border-radius: 0 !important;
}

/* Remove old pricing graph section */
.pricing-graph-section {
    display: none;
}

/* Add space before first feature block */
.feature-block-first {
    margin-top: 40px;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 32px;
    background: var(--bg-elevated);
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.billing-option {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-option:hover {
    color: var(--text-primary);
}

.billing-option.active {
    background: var(--text-primary);
    color: var(--bg-body);
}

.billing-discount {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.billing-option.active .billing-discount {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Fix comparison table Nova X column corner radius */
.comparison-header .comparison-plan-featured {
    border-radius: 0;
    margin: -32px -32px -24px 0;
    padding: 32px 24px 24px;
}

.comparison-row .comparison-plan-featured {
    border-radius: 0 !important;
    margin: -14px -32px -15px 0;
    padding: 14px 24px 15px;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-row:last-child .comparison-plan-featured {
    border-radius: 0 !important;
}

/* Valley glow canvas */
.hero-valley-canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    pointer-events: none;
    z-index: 2;
}

.hero-valley-glow {
    display: none;
}

/* Pricing graph with labels */
.pricing-graph-canvas-container {
    position: relative;
    height: 220px;
    margin: 20px 0;
}

.pricing-graph-canvas-container canvas {
    width: 100%;
    height: 100%;
}

.pricing-graph-label-y {
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-graph-label-x {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-align: center;
}

/* Lower screenshot */
.hero-screenshot {
    top: 58%;
}

/* Fix mobile screenshot size */
@media (max-width: 768px) {
    .hero-screenshot {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 40px;
        padding: 0 20px;
    }

    .hero-screenshot .screenshot-img {
        transform: rotateX(5deg);
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero {
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }
}

/* Hero layout fixes */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-screenshot {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-width: 800px;
    margin-top: 60px;
    perspective: 1200px;
}

.hero-screenshot .screenshot-img {
    transform: rotateX(15deg);
    transform-origin: center top;
}

/* Valley canvas matches valley image size */
.hero-valley-canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    width: 600px;
    height: 300px;
}

@media (max-width: 768px) {
    .hero-valley-canvas {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* Width/height set by JS to match valley image exactly */
    }
}

/* Mobile fixes */
@media (max-width: 768px) {
    .hero {
        padding: 40px 24px 40px;
        min-height: auto;
    }

    .hero-screenshot {
        width: 100%;
        margin-top: 40px;
        padding: 0 20px;
    }

    .hero-screenshot .screenshot-img {
        transform: rotateX(8deg);
        max-width: 100%;
    }

    .hero-logo-container {
        height: 200px;
    }

    .hero-logo,
    .hero-valley {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        max-width: 100%;
        height: auto;
    }
}

/* Prevent layout shift - force scrollbar and fixed heights */
html {
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    scroll-behavior: auto;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Fixed hero heights to prevent shift */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Logo container - fixed dimensions to prevent shift */
.hero-logo-container {
    width: 100%;
    max-width: 600px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* Fixed dimensions for hero images to prevent layout shift */
.hero-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    object-fit: contain;
}

.hero-valley {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    object-fit: contain;
    z-index: 1;
}

.hero-tagline {
    min-height: 50px;
    margin-top: -10px;
}

.hero-subtitle {
    min-height: 54px;
}

.hero-actions {
    min-height: 52px;
}

/* Footer fixed height to prevent shift */
.footer {
    min-height: 81px;
    box-sizing: border-box;
}

/* Preload font to prevent FOUT */
@font-face {
    font-family: "Inter";
    font-display: block;
}

/* Mobile fixed dimensions */
@media (max-width: 768px) {
    .hero-logo-container {
        height: 200px;
    }

    .hero-logo,
    .hero-valley {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 400px;
        max-width: 100%;
        height: auto;
    }

    .hero-tagline {
        min-height: 34px;
    }

    .hero-subtitle {
        min-height: 81px;
    }
}

/* Fix screenshot to relative positioning with fixed spacing */
.hero {
    min-height: auto !important;
    padding-bottom: 60px !important;
}

.hero-screenshot {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 60px auto 0 !important;
    width: 90% !important;
    max-width: 800px !important;
}

.hero-screenshot .screenshot-img {
    transform: rotateX(15deg);
    transform-origin: center top;
}

.features {
    padding-top: 80px !important;
}

.feature-block-first {
    margin-top: 0 !important;
}

/* Lucide icons in features and comparison */
.feature-title {
    display: flex;
    align-items: center;
}

.feature-title svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    stroke: var(--text-muted);
    stroke-width: 1.2;
    opacity: 1;
    flex-shrink: 0;
}

.comparison-feature-col {
    display: flex;
    align-items: center;
}

.comparison-feature-col svg {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    stroke: var(--text-muted);
    stroke-width: 1.2;
    opacity: 1;
    flex-shrink: 0;
}

/* Valley centering override */
.hero-valley {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
}

/* Logo centering override */
.hero-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Center the logo container itself */
.hero-logo-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Global mobile overflow fix */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 24px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .hero-tagline,
    .hero-subtitle {
        max-width: 100% !important;
        word-wrap: break-word;
    }

    .hero-actions {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-logo-container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .download-section,
    .hero-actions .download-button-inline-wrapper,
    .hero-actions > .button {
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Fix scroll on grid */
.grid-container,
#gridCanvas {
    pointer-events: none !important;
    touch-action: auto !important;
}

/* Ensure smooth scrolling during animations */
html,
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.grid-container,
#gridCanvas,
.hero-valley-canvas {
    will-change: transform;
    pointer-events: none !important;
}

/* Squircle corners for elements with border-radius */
.button,
.download-button,
.screenshot-img,
.feature-block,
.feature-block-highlight,
.comparison-table,
.pricing-graph,
.ai-provider,
.billing-toggle,
.billing-option,
.feature-badge,
.plan-badge,
.nova-x-cta-card,
.nova-x-feature-item {
    corner-shape: squircle;
}

/* Comparison table - use round corners, not squircle */
.comparison-table {
    corner-shape: round;
}
