:root {
    /* Color Palette - Light Mode */
    --primary: #667eea;
    --primary-hover: #5a6fd6;
    --bg-color: #f2f2f7;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e5e5ea;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #222222;
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-text-size-adjust: 100%;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1100px;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
}

.mobile-menu-link {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 8rem);
    gap: 4rem;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 10;
    max-width: 450px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.typing-container {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    min-height: 2.2rem;
}

.cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* ===== HERO MOCKUP NEW ARCHITECTURE ===== */
.hero-mockup-container {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 900px;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: -15%;
    z-index: 0;
    pointer-events: none;
}

.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(10deg) scale(1.2);
    pointer-events: auto;
}

.hero-mockup {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-device-image {
    width: 100%;
    height: auto;
    border-radius: 50px;
}

/* Floating UI Elements */
.floating-ui {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: var(--transition);
}

.floating-ui:hover {
    transform: translateZ(50px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.ui-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.ui-text {
    display: flex;
    flex-direction: column;
}

.ui-text strong {
    font-size: 0.9rem;
    color: var(--text-main);
}

.ui-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Removed hover zoom effect as requested */

/* ===== MOCKUP PLACEHOLDERS / IMAGES ===== */
.mockup-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.mini-mockup {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 2rem;
    border-radius: 16px;
}

.mini-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

/* ===== FEATURES GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.lone-feature {
    text-align: center;
    margin-top: 6rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: transparent;
    padding: 0;
    border: none;
    transition: var(--transition);
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ===== MARKET GAP ===== */
.market-gap {
    padding: 10rem 0;
    text-align: left;
}

.large-text {
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 1.05;
    margin-bottom: 4rem;
    letter-spacing: -3px;
    font-weight: 900;
}

.market-subtext {
    max-width: 500px;
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.market-subtext p {
    margin-bottom: 2rem;
}

/* ===== WHAT IF ===== */
.what-if {
    padding: 8rem 0;
    background: var(--bg-color);
}

.what-if .section-title {
    text-align: left;
    margin-bottom: 6rem;
}

.what-if .section-title h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -2px;
}

.what-if .feature-grid {
    gap: 4rem;
}

/* ===== MANIFESTO ===== */
.manifesto {
    padding: 10rem 0;
}

.manifesto-lines {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -4px;
    text-transform: uppercase;
}

.manifesto-lines p {
    margin-bottom: 1rem;
    opacity: 0.1;
    transition: all 1s ease;
    transform: translateX(-20px);
}

.manifesto-lines p.active {
    opacity: 1;
    transform: translateX(0);
}

.manifesto-lines p.highlight {
    color: var(--primary);
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 10rem 0 100vh 0;
    text-align: center;
    background: var(--bg-color);
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 4rem);
    margin-bottom: 3rem;
    letter-spacing: -2px;
    font-weight: 800;
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE — TABLET (max 1024px)
   ========================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .large-text {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .manifesto-lines {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .final-cta h2 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

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

/* ==========================================================
   RESPONSIVE — SMALL TABLET (max 820px)
   ========================================================== */
@media (max-width: 820px) {
    .hero-mockup-container {
        right: auto;
        left: 50%;
        margin-left: -350px;
        opacity: 0.2;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* --- Navigation --- */
    nav {
        width: calc(100% - 1.5rem);
        top: 0.75rem;
        padding: 0.5rem 0;
        border-radius: 60px;
    }

    .desktop-only {
        display: none !important;
    }

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

    .mobile-menu {
        display: block;
    }

    /* --- Hero --- */
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        position: relative;
        /* Context for absolute mockup */
        min-height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

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

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .typing-container {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        min-height: 1.6rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .cta-group {
        justify-content: center;
        width: 100%;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .hero-device-image {
        width: 80%;
        height: auto;
        border-radius: 30px;
        filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    }

    .floating-ui {
        padding: 0.6rem;
        border-radius: 12px;
        gap: 0.6rem;
    }

    .ui-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .f-match {
        right: -15%;
        top: -10%;
    }

    .f-message {
        left: -15%;
        bottom: 5%;
    }

    .f-badge {
        display: none;
    }

    /* --- Market Gap --- */
    .market-gap {
        padding: 5rem 0;
        text-align: left;
    }

    .large-text {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        letter-spacing: -1px;
        margin-bottom: 2rem;
        line-height: 1.15;
    }

    .market-subtext {
        margin: 0;
        font-size: 1.05rem;
        max-width: 100%;
    }

    .market-subtext p {
        margin-bottom: 1.25rem;
    }

    /* --- What If / Features --- */
    .what-if {
        padding: 5rem 0;
    }

    .what-if .section-title {
        text-align: center;
        margin-bottom: 3rem;
    }

    .what-if .section-title h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        letter-spacing: -1px;
        text-align: left;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.4rem;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .mini-mockup {
        height: auto;
        aspect-ratio: auto;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .mini-mockup img {
        object-fit: contain;
    }

    /* --- Manifesto --- */
    .manifesto {
        padding: 5rem 0;
    }

    .manifesto-lines {
        font-size: clamp(1.6rem, 8vw, 2.8rem);
        letter-spacing: -1.5px;
        text-align: left;
    }

    .manifesto-lines p {
        transform: translateY(15px);
    }

    .manifesto-lines p.active {
        transform: translateY(0);
    }

    /* --- Final CTA --- */
    .final-cta {
        padding: 5rem 0 15rem 0;
    }

    .final-cta h2 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        margin-bottom: 2rem;
        letter-spacing: -1px;
    }

    /* --- Footer --- */
    footer {
        padding: 3rem 0;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* ==========================================================
   RESPONSIVE — SMALL PHONE (max 400px)
   ========================================================== */
@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

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

    .large-text,
    .final-cta h2 {
        font-size: 1.5rem;
    }

    .manifesto-lines {
        font-size: 1.5rem;
        letter-spacing: -1px;
    }

    .chat-mockup {
        width: 180px;
        height: 360px;
    }

    .typing-container {
        font-size: 0.95rem;
    }
}