/*
 * Mokko Landing Page - Fake Door Test v2
 * Simplified, designer-focused landing page
 */

:root {
    --black: #000;
    --white: #fff;

    /* Dark theme colors */
    --bg-primary: #1C1C1C;
    --bg-secondary: #262626;
    --bg-tertiary: #3F3F3F;

    --text-primary: #FFFFFF;
    --text-secondary: #8C8C8C;
    --text-muted: #6B6B6B;
    --text-tertiary: rgba(255, 255, 255, 0.35);

    --border-color: #3F3F3F;

    --accent: #FF6B35;
    --accent-hover: #FF8052;
    --accent-soft: rgba(255, 107, 53, 0.1);

    --green: #22c55e;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.5px; }
h3 { font-size: 20px; letter-spacing: -0.3px; }
h4 { font-size: 18px; font-weight: 600; }

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}


.logo {
    text-decoration: none;
}

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

.nav-badge {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 100px;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    padding: 0;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Mobile Menu - Hidden by Default */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-family: inherit;
    padding: 0.75rem 0;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

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

.mobile-cta {
    margin-top: 1rem;
    width: 100%;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.cta-btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Outlined Button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 19px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent-soft);
}

/* Navbar button sizing */
.navbar .btn-primary {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

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

    .cta-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ===== BUTTONS ===== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    background: var(--accent);
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-outline:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.hero {     
    position: relative;
    padding: 120px 0 60px;
    background: var(--bg-primary);
    text-align: center;
    overflow: hidden;
}

/* ===== PRISMO-STYLE HERO BACKGROUND ===== */

/* Hero Background Container */
.hero-bg {
    position: absolute;
    top: -50px;
    left: -120px;
    right: -120px;
    bottom: -50px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Fade overlay at bottom of hero */
.hero-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 500px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: 4;
    pointer-events: none;
}

/* Gradient Abstract Containers */
.gradient-abstract {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(2px);
    opacity: 0;
    animation: fadeSlideIn 1.2s ease-out forwards;
}

.gradient-abstract-left {
    left: 0;
    top: 0;
}

.gradient-abstract-right {
    right: 0;
    top: 0;
    transform: scaleX(-1);
    animation-delay: 0.15s;
}

/* Individual Ellipses */
.ellipse {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(180px);
}

.ellipse-red {
    background-color: #ff2f2f;
    left: 10px;
    top: 80px;
}

.ellipse-orange {
    background-color: #ef7b16;
    left: 180px;
    top: 0;
}

.ellipse-purple {
    background-color: #8a43e1;
    left: 0;
    top: 220px;
}

.ellipse-magenta {
    background-color: #d511fd;
    left: 40px;
    top: 360px;
}

/* Vertical Lines Container */
.vertical-lines {
    position: absolute;
    top: 0;
    left: 120px;
    right: 120px;
    bottom: 0;
    display: flex;
    z-index: 2;
}

/* Individual Vertical Lines */
.vertical-line {
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.vertical-line:last-child {
    border-right: none;
}

/* Hide vertical lines on iOS Safari - they cause rendering artifacts */
@supports (-webkit-touch-callout: none) {
    .vertical-lines {
        display: none;
    }
}

/* Noise Texture Overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/noise-texture.avif');
    background-size: 128px auto;
    background-repeat: repeat;
    mix-blend-mode: overlay;
    opacity: 0.15;
    pointer-events: none;
    z-index: 3;
}

/* Load Animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for right side needs to preserve horizontal flip */
.gradient-abstract-right {
    animation-name: fadeSlideInFlipped;
}

@keyframes fadeSlideInFlipped {
    from {
        opacity: 0;
        transform: scaleX(-1) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scaleX(-1) translateY(0);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.early-access-badge {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 100px;
    background: var(--accent-soft);
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

@media (min-width: 601px) {
    .hero h1 {
        white-space: nowrap;
    }
}

.hero-desc {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
}

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

/* Video Container */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.video-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    right: -25%;
    bottom: -50%;
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        rgba(255, 107, 53, 0.25) 0%,
        rgba(255, 140, 80, 0.1) 40%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.video-player {
    display: none;
    width: 100%;
    aspect-ratio: 1750 / 1296;
    background: var(--black);
}

.video-player.active {
    display: block;
}

.video-player iframe {
    width: 100%;
    height: 100%;
}

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

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

/* ===== HOW IT WORKS SECTION ===== */

.how-it-works {
    padding: 80px 0 120px;
    background: var(--bg-primary);
}

.section-intro {
    text-align: center;
    margin-bottom: 80px;
}

.section-intro h2 {
    color: var(--text-primary);
}

.section-subhead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.section-header {
    text-align: center;
}

/* Workflow Cards - Alternating Layout */
.workflow-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wf-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    min-height: 400px;
    overflow: hidden;
}

.wf-card.reverse {
    flex-direction: row-reverse;
}

.wf-card-content {
    flex: 1;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wf-card-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wf-card-content h3 {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.wf-card-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.wf-card-image {
    flex: 1;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.wf-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== WAVE GOODBYE SECTION ===== */

.wave-goodbye {
    background-color: var(--bg-primary);
    padding: 100px 40px;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.wave-goodbye-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.wave-goodbye-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wave-hand {
    width: 24px;
    height: 26px;
    flex-shrink: 0;
}

.wave-goodbye-heading {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    white-space: nowrap;
    margin: 0;
}


.wave-goodbye-right {
    flex: 1;
    position: relative;
    height: 300px;
    overflow: hidden;
    min-width: 0;
}

/* Hide saturation overlays - they kill the gradient colors */
.text-scroller-overlay {
    display: none;
}

/* Mask container for fade effect */
.text-scroller-mask {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    -webkit-mask: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.text-scroller-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-scroller-list li {
    display: flex;
}

.scroller-text {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: -1.5px;
}

.scroller-text.active {
    background: linear-gradient(90deg, #ff2f2f 0%, #ef7b16 35.88%, #8a43e1 69.92%, #d511fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Mobile Wave Goodbye - Simple single line */
.wave-goodbye-mobile {
    display: none;
    margin-top: 8px;
}

.wave-goodbye-mobile-text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #ff2f2f 0%, #ef7b16 35.88%, #8a43e1 69.92%, #d511fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.wave-goodbye-mobile-text.fade {
    opacity: 0;
}

/* Wave Goodbye - Tablet: Use simple mobile version */
@media (max-width: 900px) {
    .wave-goodbye-right {
        display: none;
    }

    .wave-goodbye-mobile {
        display: block;
    }

    .wave-goodbye-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wave-goodbye-mobile-text {
        font-size: 36px;
    }
}

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

.unique-features {
    position: relative;
    padding: 120px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.unique-features .noise-overlay {
    z-index: 1;
}

.unique-features .container {
    position: relative;
    z-index: 2;
}

.unique-features .section-intro {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.showcase-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 100px;
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.1);
}

.unique-features .section-intro .showcase-label {
    /* inherits from .showcase-label */
}

/* Features Slider - Two Column Layout */
.features-slider {
    position: relative;
    display: flex;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

/* Blur Background - Position behind right column */
.features-slider-blur {
    position: absolute;
    right: -20%;
    top: -30%;
    width: 80%;
    height: 160%;
    background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 107, 53, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 20% 40%, rgba(213, 17, 253, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 80% 60%, rgba(138, 67, 225, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 60% 20%, rgba(239, 123, 22, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Left Column - FAQ-style Selector */
.features-selector {
    flex: 1;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

/* Selector Items (FAQ-style, no icons) */
.selector-item {
    border-bottom: 1px solid var(--border-color);
}

.selector-item:first-child {
    border-top: 1px solid var(--border-color);
}

.selector-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 24px 0;
}

.selector-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.selector-item.active .selector-title {
    color: var(--accent);
}

/* Expandable Content (FAQ-style animation) */
.selector-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.selector-item.active .selector-content {
    max-height: 200px;
    padding-bottom: 24px;
}

.selector-content h3 {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.selector-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

/* Right Column - Display Area */
.features-display {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust mock-plugin for standalone use */
.features-display .mock-plugin {
    max-width: 100%;
}

/* Mock Plugin UI */
.mock-plugin {
    flex: 1;
    max-width: 50%;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(255, 107, 53, 0.15);
}

.mock-plugin-input {
    padding: 20px 24px;
    min-height: 80px;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.typing-text {
    color: var(--text-primary);
}

.typing-cursor {
    color: var(--text-secondary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.mock-plugin-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.mock-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: default;
}

.mock-dropdown svg {
    opacity: 0.6;
}

.mock-submit {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: default;
}

/* Features Slider Responsive */
@media (max-width: 900px) {
    .features-slider {
        flex-direction: column;
        gap: 40px;
    }

    .features-selector,
    .features-display {
        max-width: 100%;
    }

    .features-slider-blur {
        right: -20%;
        width: 100%;
    }

    .features-display .mock-plugin {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .unique-features {
        padding: 80px 0;
    }

    .unique-features .section-intro {
        margin-bottom: 40px;
    }

    .selector-content h3 {
        font-size: 24px;
    }

    .selector-content p {
        font-size: 15px;
    }

    .selector-title {
        font-size: 24px;
    }
}

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

.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 200%;
    background: radial-gradient(
        ellipse 40% 35% at 50% 50%,
        rgba(255, 107, 53, 0.2) 0%,
        rgba(255, 140, 80, 0.08) 40%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

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

.cta-content h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* Inline Signup Form */
.signup-form-inline {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.form-row .form-input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-row .form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row .form-input::placeholder {
    color: var(--text-secondary);
}

.form-row .btn-primary {
    flex-shrink: 0;
}

/* Signup Success State */
.signup-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.signup-success.active {
    display: block;
}

.signup-success .success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.signup-success h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.signup-success p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Hide form when success is shown */
.signup-form-inline.hidden,
.cta-subhead.hidden {
    display: none;
}

/* ===== PRODUCT OVERVIEW SECTION ===== */

.product-overview {
    padding: 120px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.product-overview .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.product-overview .section-intro .showcase-label {
    /* inherits from .showcase-label */
}

.product-overview .btn-primary {
    margin-top: 24px;
}

/* Parallax Container */
.parallax-container {
    position: relative;
    min-height: 500px;
    max-width: 1000px;
    margin: 0 auto;
}

.parallax-layer {
    will-change: transform;
}

.parallax-main {
    position: relative;
    z-index: 1;
}

.parallax-float-right {
    position: absolute;
    right: -5%;
    top: 20%;
    z-index: 2;
}

/* Figma Screenshot */
.figma-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Browser Mockup (legacy) */
.browser-mockup {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border-color);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dots .dot.red {
    background: #ff5f57;
}

.browser-dots .dot.yellow {
    background: #febc2e;
}

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

.browser-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-arrows {
    display: flex;
    gap: 4px;
    color: var(--text-muted);
}

.browser-url-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
    max-width: 300px;
    margin: 0 auto;
}

.browser-url-bar svg {
    opacity: 0.6;
}

.browser-content {
    padding: 0;
}

.browser-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder Images */
.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px dashed var(--border-color);
}

.placeholder-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.figma-placeholder {
    min-height: 400px;
    border: none;
    border-radius: 0;
}

.plugin-placeholder {
    min-height: 280px;
}

.output-placeholder {
    min-height: 200px;
}

/* Floating Cards */
.floating-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.floating-card img {
    width: 100%;
    height: auto;
    display: block;
}

.plugin-card {
    width: 280px;
}

.secondary-card {
    width: 260px;
}

/* Feature Icons Row */
.feature-icons-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.feature-icon-item {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.feature-icon-item h3 {
    
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-icon-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Product Overview Responsive */
@media (max-width: 1024px) {
    .parallax-container {
        min-height: auto;
    }

    .parallax-main {
        display: none;
    }

    .parallax-float-right {
        position: relative;
        right: auto;
        top: auto;
    }

    .plugin-card {
        width: 320px;
        max-width: 100%;
        margin: 0 auto;
    }

    .feature-icons-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .product-overview {
        padding: 80px 0;
    }

    .parallax-container {
        min-height: 300px;
    }

    .figma-placeholder {
        min-height: 250px;
    }

    .browser-header {
        padding: 10px 14px;
    }

    .browser-url-bar {
        display: none;
    }
}

@media (max-width: 600px) {
    .feature-icons-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== FAQ SECTION ===== */

.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq .section-header {
    margin-bottom: 48px;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 500;
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq-icon::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon::before {
    transform: translate(-50%, -30%) rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 28px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

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

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

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

.modal-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.modal-form input[type="email"].error {
    border-color: #ef4444;
}

.form-error {
    color: #ef4444;
    font-size: 0.8125rem;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

.form-error:empty {
    display: none;
}

.modal-form .btn-full {
    margin-top: 1rem;
}

.btn-full {
    width: 100%;
    padding: 0.875rem 1rem;
}

.modal-hint {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.modal-success {
    display: none;
    text-align: center;
}

.modal-success.active {
    display: block;
}

.modal-form.hidden {
    display: none;
}

.modal-success .success-icon {
    margin-bottom: 1rem;
}

.modal-success h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-success .success-email {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-success .success-email strong {
    color: var(--text-primary);
}

.modal-success .success-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== PRICING MODAL ===== */

.modal-pricing {
    max-width: 900px;
    padding: 2rem;
}

/* Pricing Section (on-page) */
section.pricing {
    padding: 100px 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

section.pricing .container {
    max-width: 1000px;
}

section.pricing .pricing-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

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

.pricing-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-header > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: var(--accent);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(22px);
}

.save-badge {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Pricing Cards Grid */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pricing-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.plan-price {
    margin: 0.5rem 0;
    display: flex;
    align-items: baseline;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

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

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.625rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: #ccc;
}

.plan-features li:first-child {
    border-top: none;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    padding: 0.75rem 1rem;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #4a4a4a;
}

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

.footer {
    padding: 32px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

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

@media (max-width: 900px) {
    .wf-card {
        flex-direction: column;
        min-height: auto;
    }

    .wf-card.reverse {
        flex-direction: column;
    }

    .wf-card-content {
        padding: 32px 24px;
    }

    .wf-card-content h3 {
        font-size: 24px;
    }

    .wf-card-image {
        min-height: 280px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0 80px;
    }

    /* Mobile responsive gradient background */
    .hero-bg {
        left: -80px;
        right: -80px;
    }

    .gradient-abstract {
        width: 280px;
        height: 450px;
    }

    .ellipse {
        width: 160px;
        height: 160px;
        filter: blur(120px);
    }

    .ellipse-orange {
        left: 120px;
    }

    .ellipse-purple {
        top: 180px;
    }

    .ellipse-magenta {
        top: 280px;
    }

    .vertical-lines {
        left: 80px;
        right: 80px;
    }

    /* Reduce number of visible lines on mobile via opacity */
    .vertical-line:nth-child(even) {
        opacity: 0;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn-primary {
        width: 100%;
    }

    .video-container {
        border-radius: var(--radius-lg);
    }

    .how-it-works {
        padding: 80px 0;
    }

    .section-intro {
        margin-bottom: 48px;
    }

    .wf-card-image {
        min-height: 220px;
    }

    /* Wave goodbye mobile */
    .wave-goodbye {
        padding: 60px 16px;
    }

    .wave-goodbye-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .wave-goodbye-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .wave-goodbye-heading {
        font-size: 28px;
    }

    .wave-hand {
        display: none;
    }

    .wave-arrow {
        display: none;
    }

    /* Hide complex scroller on mobile, show simple single line */
    .wave-goodbye-right {
        display: none;
    }

    .wave-goodbye-mobile {
        display: block;
    }

    .cta-section {
        padding: 80px 0;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .btn-primary {
        width: 100%;
    }

    .faq {
        padding: 80px 0;
    }

    .faq-item h4 {
        font-size: 17px;
    }

    .modal-container {
        padding: 2rem 1.5rem;
    }

    .modal-form h2,
    .modal-success h2 {
        font-size: 1.25rem;
    }

    /* Pricing Modal Mobile */
    .modal-pricing {
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Pricing Section Mobile */
    section.pricing {
        padding: 60px 20px;
    }

    .pricing-header h2 {
        font-size: 1.5rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .billing-toggle {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .save-badge {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* ===== COOKIE CONSENT (cookieconsent v3) ===== */

#cc-main {
    --cc-font-family: var(--font-body);
    --cc-modal-border-radius: var(--radius-lg);
    --cc-btn-border-radius: 8px;

    /* Background */
    --cc-bg: var(--bg-secondary);
    --cc-primary-color: var(--text-primary);
    --cc-secondary-color: var(--text-secondary);

    /* "Accept all" button — accent style */
    --cc-btn-primary-bg: var(--accent);
    --cc-btn-primary-color: var(--white);
    --cc-btn-primary-hover-bg: var(--accent-hover);
    --cc-btn-primary-hover-color: var(--white);

    /* "Manage preferences" button (cm__btn--secondary) — muted gray */
    --cc-btn-secondary-bg: transparent;
    --cc-btn-secondary-color: var(--text-secondary);
    --cc-btn-secondary-border-color: var(--border-color);
    --cc-btn-secondary-hover-bg: var(--bg-tertiary);
    --cc-btn-secondary-hover-color: var(--text-primary);
    --cc-btn-secondary-hover-border-color: var(--border-color);

    /* Separator / borders */
    --cc-separator-border-color: var(--border-color);

    /* Toggle switch */
    --cc-toggle-on-bg: var(--accent);
    --cc-toggle-off-bg: var(--bg-tertiary);
    --cc-toggle-on-knob-bg: var(--white);
    --cc-toggle-off-knob-bg: var(--text-secondary);
    --cc-toggle-readonly-bg: var(--bg-tertiary);
    --cc-toggle-readonly-knob-bg: var(--text-muted);

    /* Cookie category block */
    --cc-cookie-category-block-bg: var(--bg-primary);
    --cc-cookie-category-block-border: var(--border-color);
    --cc-cookie-category-block-hover-bg: var(--bg-tertiary);
    --cc-cookie-category-block-hover-border: transparent;
    --cc-cookie-category-expanded-block-bg: transparent;
    --cc-cookie-category-expanded-block-hover-bg: var(--bg-tertiary);
    --cc-section-category-border: var(--border-color);

    /* Section border */
    --cc-section-border: var(--border-color);

    /* Overlay */
    --cc-overlay-bg: rgba(0, 0, 0, 0.65);

    /* Footer */
    --cc-footer-bg: var(--bg-primary);
    --cc-footer-color: var(--text-secondary);
    --cc-footer-border-color: var(--border-color);
}

#cc-main .cm,
#cc-main .pm {
    border: 1px solid var(--border-color);
}

#cc-main .cm__btn,
#cc-main .pm__btn {
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 10px 20px;
    transition: background 0.2s;
}

/* "Reject all" button — btn-secondary style (consent + preferences modals) */
#cc-main .cm__btn[data-role="necessary"],
#cc-main .pm__btn[data-role="necessary"] {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: transparent;
}

#cc-main .cm__btn[data-role="necessary"]:hover,
#cc-main .pm__btn[data-role="necessary"]:hover {
    background: #4a4a4a;
}

#cc-main a {
    color: var(--accent);
}

#cc-main a:hover {
    color: var(--accent-hover);
}
