/* ===== CSS Variables & Design System ===== */
:root {
    /* Colors */
    --accent: #6B3FA0;
    --primary: #000000;
    --secondary: #F5F5F5;
    --muted-foreground: #666666;
    --border: #E5E5E5;
    --glass-bg: #FAFAFA;
    --glass-border: #E0E0E0;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-32: 8rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    
    /* Border Radius */
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    color: var(--primary);
    line-height: 1.6;
    font-weight: var(--font-weight-light);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-light);
    line-height: 1.2;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.875rem;
}

p {
    font-weight: var(--font-weight-light);
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.text-7xl {
    font-size: 4.5rem;
}

/* ===== Utility Classes ===== */
.font-light {
    font-weight: var(--font-weight-light);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.text-accent {
    color: var(--accent);
}

.bg-accent {
    background-color: var(--accent);
}

.text-accent-foreground {
    color: white;
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-secondary-30 {
    background-color: rgba(245, 245, 245, 0.3);
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary-foreground {
    color: white;
}

.border {
    border: 1px solid var(--border);
}

.border-gray-200 {
    border-color: #E5E5E5;
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* ===== Layout ===== */
.max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

.max-w-5xl {
    max-width: 64rem;
    margin: 0 auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-lg {
    max-width: 32rem;
}

.w-full {
    width: 100%;
}

.w-11-12 {
    width: 91.666667%;
}

.mx-auto {
    margin: 0 auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-0 {
    padding-bottom: 0;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

/* ===== Flexbox ===== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

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

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-24 {
    gap: 6rem;
}

/* ===== Grid ===== */
.grid {
    display: grid;
}

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

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    .md\:flex {
        display: none;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
    
    .gap-24 {
        gap: 2rem;
    }
    
    .md\:order-1 {
        order: 0;
    }
    
    .md\:order-2 {
        order: 0;
    }
}

@media (min-width: 769px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:order-1 {
        order: 1;
    }
    
    .lg\:order-2 {
        order: 2;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    background-color: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: var(--font-weight-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #5a2f88;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(107, 63, 160, 0.2);
}

.btn-lg {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Glass Effect ===== */
.glass-effect {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* ===== Cards ===== */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.min-h-screen {
    min-height: 100vh;
}

.aspect-square {
    aspect-ratio: 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ===== Borders & Spacing ===== */
.border-t {
    border-top: 1px solid var(--border);
}

.rounded-full {
    border-radius: var(--radius-full);
}

.rounded-2xl {
    border-radius: 1.5rem;
}

.rounded-3xl {
    border-radius: 2rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.overflow-hidden {
    overflow: hidden;
}

/* ===== Images & Media ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: 91.666667%;
}

nav .glass-effect {
    border-radius: var(--radius-full);
    padding: 1rem 2rem;
}

nav a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* ===== Hover Effects ===== */
.hover-shadow:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease;
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

/* ===== Inline Elements ===== */
svg {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

/* ===== Blockquote ===== */
blockquote {
    font-weight: var(--font-weight-light);
    font-style: italic;
    color: var(--primary);
}

/* ===== Links ===== */
a {
    color: inherit;
    text-decoration: none;
}

/* ===== Forms ===== */
input, textarea, button {
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.1);
}

/* ===== Space Utilities ===== */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-x-1 > * + * {
    margin-left: 0.25rem;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* ===== Margin ===== */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-0-5 {
    margin-top: 0.125rem;
}

/* ===== Flex Wrap ===== */
.flex-wrap {
    flex-wrap: wrap;
}

/* ===== Specific Styles ===== */
.language-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: var(--font-weight-light);
    transition: color 0.3s ease;
    padding: 0;
    margin: 0;
}

.language-btn:hover {
    color: var(--accent) !important;
}

/* ===== Feature Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(107, 63, 160, 0.3);
    background-color: rgba(107, 63, 160, 0.05);
    font-size: 0.875rem;
}

.badge span {
    color: var(--accent);
    font-weight: var(--font-weight-light);
}

/* ===== Section Backgrounds ===== */
.bg-primary {
    background-color: var(--primary);
}

.bg-secondary-30 {
    background-color: rgba(245, 245, 245, 0.3);
}

/* ===== Icon Styles ===== */
.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-md {
    width: 2rem;
    height: 2rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

/* ===== Tracking/Letter-spacing ===== */
.tracking-tight {
    letter-spacing: -0.025em;
}

.leading-relaxed {
    line-height: 1.625;
}

.leading-tight {
    line-height: 1.25;
}

/* ===== Footer ===== */
footer {
    background-color: white;
    border-top: 1px solid var(--border);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

/* ===== Video Embed ===== */
iframe {
    border: none;
}
