@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@400;500;700&display=swap');

:root {
    --bg-dark: #ffffff;
    --bg-accent: #f8f9fa;
    --text-primary: #121317;
    --text-secondary: rgba(18, 19, 23, 0.6);
    --color-primary: #121317;
    --color-bg-btn: #121317;
    --color-text-btn: #ffffff;
    --color-secondary: #007aff;
    --color-accent: #5856d6;
    --gradient-hero: linear-gradient(135deg, #121317 0%, #5856d6 100%);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #ffffff;
}

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Antigravity-style Vignette Layer */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 30%, rgba(88, 86, 214, 0.05) 70%, rgba(88, 86, 214, 0.08) 100%);
    z-index: 999;
}

h1,
h2,
h3 {
    font-family: var(--font-outfit);
}

/* --- Layout --- */

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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-outfit);
    color: var(--text-primary);
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 122, 255, 0.08);
    color: var(--color-secondary);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 150px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    filter: blur(80px);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Text Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    text-align: center;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero h1 span {
    display: block;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.8rem;
    background: var(--color-bg-btn);
    color: var(--color-text-btn);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.btn-primary .platform-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-primary .icon-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 -0.2rem;
}


.btn-primary:hover {
    transform: scale(1.05);
    background: #000000;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.btn-appstore:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.8rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--text-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary .platform-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0);
    /* Make icons solid black */
    opacity: 0.8;
}

/* Make Windows icon slightly larger for better visual balance */
.btn-secondary img[alt="Windows"] {
    width: 22px;
    height: 22px;
}

.btn-secondary .icon-sep.dark {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.5);
    /* Increased opacity for visibility */
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: scale(1.05);
}

/* --- Features Section --- */

.features {
    padding: 20rem 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 8rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

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

.feature-card {
    padding: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.3), rgba(0, 122, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(0, 0, 0, 0.02);
    box-shadow: 0 30px 80px rgba(88, 86, 214, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* --- God Mode Section --- */

.god_mode {
    padding: 15rem 0;
    position: relative;
}

.god-mode-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.god-mode-text {
    flex: 1;
}

.god_mode_visual {
    flex: 1.2;
    min-height: 600px;
    background: #f8f9fa;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.god_mode_visual svg {
    width: 100%;
    height: auto;
    max-height: 100%;
}

.god_mode_visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.god_mode_visual:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Animated scan effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    animation: scan 4s linear infinite;
}

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

    100% {
        top: 100%;
    }
}

/* --- Footer --- */

footer {
    padding: 5rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer p {
    color: var(--text-secondary);
}

/* --- Responsive --- */

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

    .hero h1 {
        font-size: 3.5rem;
    }

    .god-mode-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- New Sections Styles --- */
.pain-points {
    padding: 18rem 0;
    background: #ffffff;
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.pain-point-card {
    text-align: center;
    padding: 2rem;
}

.pain-point-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.pain-point-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pain-point-summary {
    text-align: center;
    margin-top: 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.comparison-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 30px;
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.comparison-container.resizing .comparison-slider-handle {
    background: var(--color-secondary);
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid #ffffff;
    z-index: 2;
}

.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    cursor: ew-resize;
    z-index: 3;
}

.ai-agent-section {
    padding: 18rem 0;
    background: var(--bg-accent);
}

.agent-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.agent-chat {
    flex: 1;
}

.agent-chat img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.factory-section {
    padding: 18rem 0;
    text-align: center;
}

.map-container {
    width: 100%;
    max-width: 800px;
    margin: 4rem auto;
    position: relative;
}

.map-container img {
    width: 100%;
    opacity: 0.8;
}

.dashboard-section {
    padding: 18rem 0;
    background: #ffffff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.dashboard-card {
    background: var(--bg-accent);
    border-radius: 30px;
    padding: 3rem;
    min-height: 400px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    header {
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

    .agent-container {
        flex-direction: column;
        text-align: center;
    }

    .comparison-container {
        aspect-ratio: 1 / 1;
        min-height: 300px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    nav ul {
        display: none;
        /* Mobile menu would go here, but keeping it simple for now as per minimal logo-only design preference earlier */
    }
}

/* --- New Additions: Commercial Appeal --- */

/* Social Proof */
.social-proof {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

/* Video Play Button */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

/* Alternate Layout for Features (Desktop Only) */
@media (min-width: 993px) {
    .alternate-layout .god-mode-content {
        flex-direction: row-reverse;
    }
}

/* --- Download Section --- */
.downloads-section {
    padding: 10rem 0;
    background: var(--bg-accent);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.download-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.download-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.download-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.download-card .btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    background: var(--color-bg-btn);
    color: var(--color-text-btn);
    text-decoration: none;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    background: #000;
}

.download-btn svg {
    opacity: 0.9;
}

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

    .download-card .btn-group {
        flex-direction: column;
    }

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

/* --- Global Download Buttons --- */
.primary-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--color-bg-btn);
    color: var(--color-text-btn);
    text-decoration: none;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-download-btn:hover {
    transform: scale(1.05);
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

nav a.active {
    color: var(--text-primary);
    font-weight: 700;
}