@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

:root {
    --color-primary: #6366F1;
    --color-secondary: #8B5CF6;
    --color-accent: #06B6D4;
    --color-bg: #F8FAFC;
    --color-text: #0F172A;
    --color-text-light: #64748B;
    --color-surface: #FFFFFF;
    --color-border: rgba(0, 0, 0, 0.08);

    --font-cursive: 'Pacifico', cursive;
    --font-display: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.temporary_hidden {
    display: none !important;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    padding: 0.3rem 0 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: "Pacifico", cursive;
    font-size: 2.6rem;
    font-weight: 200;
    font-style: normal;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    position: relative;
    text-transform: lowercase;
    border: none;
    outline: none;
}

.logo:focus,
.logo:active,
.logo:visited {
    outline: none;
    border: none;
    text-decoration: none;
}

.logo-icon,
.logo svg {
    outline: none;
    border: none;
}

.nav .logo {
    background: linear-gradient(90deg, #4F46E5 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    transform: translateY(6px);
}

.nav .logo-icon rect {
    fill: url(#logo-gradient);
}

.nav .logo-icon path,
.nav .logo-icon circle {
    fill: none;
    stroke: white;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    position: relative;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Hide mobile-only links on desktop */
.nav-links .mobile-only {
    display: none;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: var(--spacing-md);
}

.lang-icon-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.lang-icon-btn:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

.lang-icon-btn svg {
    width: 18px;
    height: 18px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text);
}

.lang-option:first-child {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.lang-option:hover {
    background: var(--color-bg);
}

.lang-option.active {
    background: var(--color-primary);
    color: white;
}

.lang-option.active:hover {
    background: #4F46E5;
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-label {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.lang-name {
    font-weight: 500;
}

.lang-native {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost, .btn-hero, .btn-cta {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #4F46E5;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-ghost:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-hero {
    padding: 1rem 2.5rem;
    background: var(--color-secondary);
    color: white;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.btn-hero:hover {
    background: #7C3AED;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-cta {
    padding: 1.25rem 3rem;
    background: white;
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    background: var(--color-bg);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, #6366F1 100%);
    overflow: hidden;
}

.cta-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: -200px;
    right: -200px;
    animation: morphBlob 15s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        border-radius: 30% 70% 50% 50% / 50% 60% 40% 60%;
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        border-radius: 70% 30% 60% 40% / 40% 70% 50% 60%;
        transform: translate(10px, -30px) rotate(270deg);
    }
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

/* Footer */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--spacing-xs);
    background: none;
    -webkit-text-fill-color: white;
}

.footer .logo-icon rect {
    fill: white;
}

.footer .logo-icon path,
.footer .logo-icon circle {
    fill: none;
    stroke: var(--color-text);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: var(--spacing-xs);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--color-surface);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }

    .nav-links .btn-primary {
        margin-top: 1rem;
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Show mobile-only links on mobile */
    .nav-links .mobile-only {
        display: block;
    }

    /* Keep language switcher in header on mobile */
    .nav {
        padding: 0.3rem 0 0.75rem 0;
    }

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

    .logo {
        font-size: 2.2rem;
        order: 1;
        line-height: 1.1 !important;
    }

    .logo-icon {
        width: 1.8rem;
        height: 1.8rem;
        transform: translateY(2px);
    }

    .language-switcher {
        position: static;
        margin-left: auto;
        margin-right: 1rem;
        order: 2;
        display: flex;
        align-items: center;
        padding-top: 0.3rem;
    }

    .burger-menu {
        order: 3;
        display: flex;
        align-items: center;
        padding-top: 0.5rem;
    }

    .nav-links {
        margin-left: 0;
        order: 4;
    }

    .lang-icon-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .lang-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .lang-dropdown {
        right: 0;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

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

    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }

    .logo-icon {
        width: 1.65rem;
        height: 1.65rem;
        transform: translateY(5px);
    }

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