:root {
    --primary-gradient: -webkit-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --primary-gradient: -moz-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --primary-gradient: -ms-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --primary-gradient: -o-linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --bg-dark: #18181b;
    --bg-card: #27272a;
    --navbar-bg: rgba(24, 24, 27, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --hero-shadow: rgba(0, 0, 0, 0.6);
    --content-shadow: rgba(0, 0, 0, 0.5);
    --secondary-button-border: rgba(255, 255, 255, 0.3);
    --button-text: #ffffff;
}

@media (prefers-color-scheme: light) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.04);
        --glass-border: rgba(0, 0, 0, 0.12);
        --text-primary: #1a1a1a;
        --text-secondary: rgba(0, 0, 0, 0.65);
        --bg-dark: #ffffff;
        --bg-card: #f8f8fa;
        --navbar-bg: rgba(255, 255, 255, 0.85);
        --shadow-color: rgba(0, 0, 0, 0.15);
        --hero-shadow: rgba(0, 0, 0, 0.2);
        --content-shadow: rgba(0, 0, 0, 0.15);
        --secondary-button-border: rgba(0, 0, 0, 0.2);
        --button-text: #ffffff;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    max-width: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
    display: inline-block;
}

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

.nav-links a:not(.cta-button):hover {
    transform: translateY(-2px);
}

.cta-button {
    padding: 0.6rem 1.5rem;
    background: var(--primary-gradient);
    border-radius: 12px;
    color: var(--button-text) !important;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.primary-button {
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 16px;
    color: var(--button-text);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.primary-button:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.secondary-button {
    padding: 1rem 2.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background: var(--glass-border);
    border-color: var(--secondary-button-border);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-image picture {
    width: 100%;
    display: block;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    filter: drop-shadow(0 25px 60px var(--hero-shadow)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: filter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image:hover img {
    filter: drop-shadow(0 40px 70px var(--hero-shadow)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: -moz-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: -ms-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: -o-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.features > * {
    position: relative;
    z-index: 1;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
}

.feature-card-1:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.4);
}

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

.feature-card-2:hover {
    border-color: rgba(245, 87, 108, 0.6);
    box-shadow: 0 25px 60px rgba(245, 87, 108, 0.4);
}

.feature-card-2::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-card-2:hover::before {
    opacity: 0.12;
}

.feature-card-3:hover {
    border-color: rgba(79, 172, 254, 0.6);
    box-shadow: 0 25px 60px rgba(79, 172, 254, 0.4);
}

.feature-card-3::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-card-3:hover::before {
    opacity: 0.12;
}

.feature-card-4:hover {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 25px 60px rgba(96, 165, 250, 0.4);
}

.feature-card-4::before {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.feature-card-4:hover::before {
    opacity: 0.12;
}

.feature-card-5:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 25px 60px rgba(34, 197, 94, 0.4);
}

.feature-card-5::before {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.feature-card-5:hover::before {
    opacity: 0.12;
}

.feature-card-6:hover {
    border-color: rgba(251, 146, 60, 0.6);
    box-shadow: 0 25px 60px rgba(251, 146, 60, 0.4);
}

.feature-card-6::before {
    background: linear-gradient(135deg, #fb923c 0%, #f59e0b 100%);
}

.feature-card-6:hover::before {
    opacity: 0.12;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

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

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

/* Split Content Sections */
.ambient-mode,
.unified-search,
.semantic-search-section {
    padding: 6rem 0;
}

.semantic-search-section {
    position: relative;
    overflow: visible;
}

.semantic-search-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background: radial-gradient(ellipse at 20% 50%, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.semantic-search-section > * {
    position: relative;
    z-index: 1;
}

.ambient-mode {
    position: relative;
    overflow: visible;
}

.ambient-mode::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background: radial-gradient(ellipse at 20% 50%, rgba(245, 87, 108, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ambient-mode > * {
    position: relative;
    z-index: 1;
}

.unified-search {
    position: relative;
    overflow: visible;
}

.unified-search::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background: radial-gradient(ellipse at 80% 50%, rgba(79, 172, 254, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.unified-search > * {
    position: relative;
    z-index: 1;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.content-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-image:hover {
    transform: scale(1.05);
}

.content-image picture {
    width: 100%;
    display: block;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    filter: drop-shadow(0 20px 50px var(--content-shadow)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: filter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.content-image:hover img {
    filter: drop-shadow(0 40px 70px var(--hero-shadow)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

/* Privacy Section */
.privacy {
    padding: 6rem 0;
    position: relative;
}

.privacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: -webkit-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: -moz-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: -ms-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: -o-linear-gradient(top, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.06) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.privacy > * {
    position: relative;
    z-index: 1;
}

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

.privacy-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.privacy-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.privacy-item {
    text-align: center;
}

.privacy-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.privacy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.privacy-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Customization Section */
.customization {
    padding: 4rem 0;
    text-align: center;
}

.customization h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.customization-image {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.customization-image:hover {
    transform: translateY(-5px) scale(1.03);
}

.customization-image picture {
    width: 100%;
    display: block;
}

.customization-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    filter: drop-shadow(0 10px 30px var(--content-shadow)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: filter 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.customization-image:hover img {
    filter: drop-shadow(0 15px 40px var(--content-shadow)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    position: relative;
    overflow: visible;
}

.pricing::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pricing > * {
    position: relative;
    z-index: 1;
}

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

.pricing-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.pricing-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-gradient);
    border-radius: 16px;
    color: var(--button-text);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1rem;
}

.download-button:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.6);
}

.download-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    position: relative;
}

.faq h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.faq-item.active {
    transform: scale(1.02);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-question h3 {
    transform: translateX(4px);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.475), color 0.3s ease;
}

.faq-item:hover .faq-toggle {
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.faq-item.active .faq-answer p {
    transform: translateY(0);
    opacity: 1;
}

.faq-answer code {
    display: block;
    background: var(--glass-bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid var(--glass-border);
    margin: 0.5rem 2rem 1.5rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-left p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container,
    .split-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-content.reverse {
        direction: ltr;
    }

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

    .features h2,
    .privacy-content h2,
    .customization h2,
    .pricing-content h2 {
        font-size: 2.5rem;
    }

    .content-text h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-button,
    .secondary-button {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }
}

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

    .navbar {
        width: calc(100% - 2rem);
        top: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .features h2,
    .privacy-content h2,
    .customization h2,
    .pricing-content h2,
    .faq h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.25rem;
    }

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

    .nav-links a:not(.cta-button) {
        display: none;
    }

    .privacy-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}
