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

:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #14b8a6;
    --dark-bg: #0f172a;
    --light-bg: #f0f9ff;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1f35 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    scroll-margin-top: 90px;
}

img,
iframe {
    max-width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 60px;
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        100px 100px rgba(255, 255, 255, 0.6),
        200px 200px rgba(99, 102, 241, 0.4),
        300px 150px rgba(236, 72, 153, 0.5),
        400px 250px rgba(255, 255, 255, 0.7),
        600px 300px rgba(20, 184, 166, 0.4),
        800px 150px rgba(255, 255, 255, 0.5),
        900px 400px rgba(99, 102, 241, 0.3);
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 3.5vw + 1rem, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 900;
}

.text-3d {
    display: block;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    filter: drop-shadow(0 20px 20px rgba(99, 102, 241, 0.15));
}

.text-3d.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: drop-shadow(0 10px 20px rgba(99, 102, 241, 0.3)); }
    50% { filter: drop-shadow(0 10px 20px rgba(236, 72, 153, 0.3)); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-inner {
    text-align: center;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

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

.card-1 {
    top: 0;
    left: 0;
    animation: float 4s ease-in-out infinite;
}

.card-2 {
    top: 150px;
    right: 50px;
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    animation: float 5s ease-in-out infinite;
}

.card-3 {
    bottom: 0;
    left: 100px;
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

/* Features Section */
.features {
    padding: 100px 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
}

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

.section-title {
    font-size: clamp(1.9rem, 2vw + 1rem, 2.6rem);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.6s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: 0.8s; }
.feature-card:nth-child(6) .feature-icon { animation-delay: 1s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Preview Section */
.preview-section {
    padding: 100px 2rem;
    background: rgba(99, 102, 241, 0.05);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.preview-container {
    margin-top: 3rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-viewer {
    width: 100%;
    height: min(600px, 70vh);
    border: none;
}

.pdf-viewer iframe {
    border-radius: 20px;
}

.pdf-fallback {
    display: none;
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.pdf-cover {
    padding: 2rem 1.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.18));
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.45);
    text-align: left;
}

.pdf-cover-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.pdf-cover h3 {
    color: var(--text-primary);
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
}

.pdf-cover p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.pdf-fallback p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Download Section */
.download-section {
    padding: 100px 2rem;
    text-align: center;
}

.download-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: orbit 20s linear infinite;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.download-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.file-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        height: 360px;
    }
}

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

    .navbar-container {
        padding: 0 1rem;
        justify-content: center;
    }

    .logo {
        font-size: 1.35rem;
    }

    .nav-menu {
        gap: 1rem;
        padding-bottom: 0.25rem;
        width: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        border-top: 1px solid rgba(99, 102, 241, 0.15);
    }

    .nav-menu.open {
        max-height: 240px;
        opacity: 1;
        padding: 0.75rem 0 0.5rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        min-height: auto;
        padding: 80px 1.25rem 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 5vw + 0.6rem, 3rem);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .download-card {
        padding: 2rem 1rem;
    }

    .pdf-viewer {
        height: min(420px, 60vh);
    }

    .preview-container {
        border-radius: 16px;
    }

    .pdf-viewer iframe {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

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

    .features {
        padding: 70px 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .preview-section,
    .download-section {
        padding: 70px 1.25rem;
    }

    .download-card h3 {
        font-size: 1.6rem;
    }

    .pdf-viewer {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .pdf-viewer iframe {
        display: none;
    }

    .pdf-fallback {
        display: block;
    }
}

@media (hover: none) {
    .feature-card:hover,
    .download-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: none;
    }

    .floating-card:hover::before {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .stars {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Smooth scroll behavior and animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
