/* * DESIGN SYSTEM & VARIABLES
 * -------------------------
 */
:root {
    /* Colors */
    --bg-body: #050507;
    --bg-card: #0e0e11;
    --bg-card-hover: #16161a;

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;

    --accent-primary: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border-color: rgba(255, 255, 255, 0.1); /* Increased visibility */

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Animation */
    --transition-speed: 0.2s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* * RESET & BASE STYLES
 * -------------------
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) var(--ease);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* * UTILITIES
 * ---------
 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-speed) var(--ease);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-body);
}

.btn-primary:hover {
    background-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.section-padding {
    padding: 6rem 0;
}

.text-gradient {
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(173, 198, 255, 1) 50%, rgba(218, 163, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* * NAVIGATION
 * ----------
 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1002; /* Above mobile menu */
}

.logo svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    z-index: 1002; /* Above mobile menu */
}

/* * HERO SECTION
 * ------------
 */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

/* Subtle Glow Background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* * SOCIAL PROOF
 * ------------
 */
.social-proof {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.proof-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6; /* Increased visibility */
}

.model {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* * FEATURES
 * --------
 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-speed) var(--ease);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* * HOW IT WORKS
 * ------------
 */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

/* Connecting line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 0 0 8px var(--bg-body); /* Mask the line */
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* * PRODUCT PREVIEW
 * ---------------
 */
.preview-container {
    margin-top: 3rem;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.preview-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    min-height: 500px;
    background: #0a0a0c;
}

/* Mock UI Elements - INCREASED CONTRAST */
.mock-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mock-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mock-nav-item {
    height: 10px;
    background: rgba(255, 255, 255, 0.1); /* Visible gray */
    border-radius: 4px;
    width: 100%;
}

.mock-nav-item.active {
    background: var(--accent-primary);
    width: 80%;
    opacity: 0.8;
}

.mock-nav-item.short { width: 60%; }

.mock-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mock-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mock-title-block {
    height: 24px;
    width: 140px;
    background: rgba(255, 255, 255, 0.15); /* More visible */
    border-radius: 4px;
}

.mock-user-block {
    height: 32px;
    width: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.mock-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mock-stat-card {
    background: rgba(255, 255, 255, 0.05); /* Increased opacity */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mock-stat-value {
    height: 20px;
    width: 40%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.mock-stat-label {
    height: 8px;
    width: 60%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.mock-chart-container {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4%;
    min-height: 200px;
}

.mock-bar {
    width: 100%;
    background: var(--accent-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.4; /* Increased opacity */
    position: relative;
}

.mock-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 4px 4px 0 0;
    opacity: 1;
}

/* * EXAMPLES / COMPARISON GALLERY
 * -----------------------------
 */
.examples-grid {
    margin-top: 3rem;
    align-items: stretch;
}

.comparison-card {
    padding: 0;
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-2px);
}

.comparison-media {
    --position: 50%;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #09090c;
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
}

.comparison-layer {
    position: absolute;
    inset: 0;
}

.comparison-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-after {
    clip-path: inset(0 0 0 var(--position));
}

.comparison-badge {
    position: absolute;
    top: 1rem;
    z-index: 4;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.comparison-badge-left {
    left: 1rem;
    background: rgba(10, 10, 14, 0.78);
    color: rgba(244, 244, 245, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-badge-right {
    right: 1rem;
    background: rgba(10, 10, 14, 0.78);
    color: rgba(244, 244, 245, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    background: rgba(255, 255, 255, 0.96);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #ffffff;
    color: #17171c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    z-index: 3;
    pointer-events: auto;
}

.comparison-handle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

.comparison-handle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-content {
    padding: 1.6rem;
}

.comparison-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.comparison-tag {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

/* * PRICING
 * -------
 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-card) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
    z-index: 10;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.price-features {
    margin-bottom: 2rem;
}

.price-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.check-icon {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* * FAQ
 * ---
 */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
    padding-right: 2rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* * CTA SECTION
 * -----------
 */
.cta-section {
    text-align: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
}

/* * FOOTER
 * ------
 */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-tertiary);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-heading {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* * RESPONSIVE DESIGN & FIXES
 * -------------------------
 */

/* TABLET (1024px and below) */
@media (max-width: 1024px) {
    .steps-container::before { display: none; }
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    .step-item {
        display: flex;
        text-align: left;
        gap: 1.5rem;
        align-items: center;
    }
    .step-number { margin: 0; }

    /* Tablet Grids */
    .features-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-card.popular {
        transform: scale(1);
    }
}

/* TABLET PORTRAIT / LARGE MOBILE (768px and below) */
@media (max-width: 768px) {
    .logo img {
        height: 28px;
    }

    .section-padding { padding: 4rem 0; }
    .hero { padding: 6rem 0 4rem; }

    .hero-title { font-size: 2.75rem; }

    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Navigation Mobile State */
    .nav-links, .nav-actions .btn, .nav-actions .nav-link { display: none; }
    .mobile-menu-btn { display: block; }

    .nav-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #0a0a0c; /* Solid Background */
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        height: calc(100vh - var(--header-height));
        justify-content: flex-start;
        gap: 1.5rem;
        z-index: 1001;
    }

    /* Add actions to mobile menu */
    .nav-open .nav-links::after {
        content: '';
        display: block;
        height: 1px;
        width: 100%;
        background: var(--border-color);
        margin: 1rem 0;
    }

    .nav-open .mobile-actions-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns for tablet/large phone */
        gap: 3rem;
    }
    .footer-brand { grid-column: span 2; }

    /* Preview Fixes */
    .preview-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .mock-sidebar { display: none; }
    .mock-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mock-stats-grid .mock-stat-card:last-child { display: none; }
}

/* MOBILE (480px and below) */
@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }

    .logos-grid { gap: 1.5rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand { grid-column: span 1; }

    .steps-container { padding: 0 10px; }
    .step-item { flex-direction: column; text-align: center; }
    .step-number { margin: 0 auto 1rem; }

    /* Tighten preview on small screens */
    .mock-stats-grid { grid-template-columns: 1fr; }
    .mock-stats-grid .mock-stat-card:last-child { display: flex; } /* Show all stacked */
    .mock-chart-container { min-height: 150px; }
}

/* Email form styling */
.waitlist-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.waitlist-form input[type="email"] {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 260px;
    outline: none;
    transition: border-color var(--transition-speed) var(--ease),
                box-shadow var(--transition-speed) var(--ease);
}

.waitlist-form input::placeholder {
    color: var(--text-tertiary);
}

.waitlist-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Button alignment fix */
.waitlist-form button {
    height: 42px;
}
