/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4c8dff;
    --primary-dark: #3a7ae8;
    --secondary-color: #af52de;
    --text-dark: #1c1c1e;
    --text-light: #4a4a4e;
    --background: #ffffff;
    --background-alt: #f5f5f7;
    --border-color: #e5e5ea;
    --gradient: linear-gradient(135deg, #af52de 0%, #5e9eff 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #5e9eff;
    --primary-dark: #4c8dff;
    --secondary-color: #bf63ec;
    --text-dark: #ffffff;
    --text-light: #c7c7cc;
    --background: #1c1c1e;
    --background-alt: #2c2c2e;
    --border-color: #3a3a3c;
    --gradient: linear-gradient(135deg, #bf63ec 0%, #5e9eff 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar {
    background: rgba(28, 28, 30, 0.95);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-hero {
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

[data-theme="dark"] .hero-subtitle {
    color: #e5e5ea;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.badge {
    background: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .badge {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

[data-theme="dark"] .hero-note {
    color: #d1d1d6;
}

.hero-image {
    position: relative;
    height: 500px;
    animation: fadeIn 1s ease-out;
}

.floating-card {
    position: absolute;
    background: var(--background);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--border-color);
    max-width: 280px;
    z-index: 1;
}

.floating-card:nth-child(1) {
    top: 5%;
    left: 0;
    animation-delay: 0s;
    z-index: 3;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 0;
    animation-delay: 1.5s;
    z-index: 2;
}

.floating-card:nth-child(3) {
    bottom: 5%;
    left: 10%;
    animation-delay: 1s;
    z-index: 1;
}

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

.card-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

[data-theme="dark"] .card-content p {
    color: #d1d1d6;
}

[data-theme="dark"] .card-content h4 {
    color: #ffffff;
}

/* Vision Section */
.vision {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

[data-theme="dark"] .vision {
    background: linear-gradient(135deg, #5567d8 0%, #663a8a 100%);
}

.vision-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.vision-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.vision-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.vision-highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

@media (max-width: 768px) {
    .vision-title {
        font-size: 2rem;
    }

    .vision-text {
        font-size: 1.1rem;
    }

    .vision-highlight {
        font-size: 1.2rem;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
}

[data-theme="dark"] .section-subtitle {
    color: #c7c7cc;
}

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

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

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

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

[data-theme="dark"] .feature-card h3 {
    color: #ffffff;
}

[data-theme="dark"] .feature-card p {
    color: #c7c7cc;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--background-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

[data-theme="dark"] .pricing-header h3 {
    color: #ffffff;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

[data-theme="dark"] .pricing-features li {
    color: #e5e5ea;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.btn-pricing {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: all 0.3s;
}

.btn-pricing:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-pricing-featured {
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: all 0.3s;
}

.btn-pricing-featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pricing-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

[data-theme="dark"] .pricing-note {
    color: #c7c7cc;
}

.pricing-details {
    text-align: center;
    margin-top: 4rem;
}

.pricing-details h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

[data-theme="dark"] .pricing-details h3 {
    color: #ffffff;
}

.credit-examples {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.credit-example {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

[data-theme="dark"] .credit-example {
    color: #e5e5ea;
}

.example-icon {
    font-size: 1.5rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
}

.cta-container {
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-weight: 500;
}

[data-theme="dark"] .cta p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-cta {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.cta-note {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-container > p:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #1c1c1e;
    color: white;
}

[data-theme="dark"] .footer {
    background: #0a0a0b;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-social {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) translateX(8px) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
    }
    75% {
        transform: translateY(-12px) translateX(-8px) rotate(-1deg);
    }
}

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

    .hero-image {
        height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

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

    .cta h2 {
        font-size: 2rem;
    }

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-features {
        justify-content: center;
    }

    .credit-examples {
        flex-direction: column;
        align-items: center;
    }
}

/* Theme Toggle & Language Selector */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.theme-toggle, .language-selector {
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover, .language-selector:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.language-selector {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
}

[data-theme="dark"] .language-selector {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8a8aa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-size: 12px 12px;
}

@media (max-width: 768px) {
    .nav-controls {
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--background);
        padding: 10px;
        border-radius: 8px;
        box-shadow: var(--shadow);
        display: none;
    }
    
    .nav-controls.active {
        display: flex;
    }
}
