:root {
    --primary: #5c6bc0;
    --primary-light: #7986cb;
    --primary-dark: #3f51b5;
    --accent: #ff4081;
    --container: 1100px;
    --gap: 2rem;
    --radius: 1.5rem;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Light Theme (Default) */
    --background: #ffffff;
    --foreground: #121212;
    --text-muted: #666666;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --navbar-bg: rgba(255, 255, 255, 0.7);
    --hero-gradient-1: rgba(92, 107, 192, 0.08);
    --hero-gradient-2: rgba(255, 64, 129, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0d0d12;
        --foreground: #ffffff;
        --text-muted: #9e9e9e;
        --glass: rgba(255, 255, 255, 0.04);
        --glass-border: rgba(255, 255, 255, 0.1);
        --navbar-bg: rgba(13, 13, 18, 0.7);
        --hero-gradient-1: rgba(92, 107, 192, 0.12);
        --hero-gradient-2: rgba(255, 64, 129, 0.08);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

a {
    transition: var(--transition);
    color: var(--foreground);
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar .logo img {
    height: 32px;
    border-radius: 8px;
}

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

.navbar .nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
}

.navbar .nav-links a:not(.btn):hover {
    opacity: 1;
}

.nav-gh {
    display: flex;
    align-items: center;
    height: 30px;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

@media (prefers-color-scheme: dark) {
    .btn-primary {
        background: #ffffff;
        color: #000000;
    }
}

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

.btn-secondary:hover {
    background: rgba(128, 128, 128, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.4rem;
    font-size: 1rem;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--foreground);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.btn-lang:hover {
    opacity: 1;
    background: var(--glass);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 140px;
    background: radial-gradient(circle at 80% 20%, var(--hero-gradient-1), transparent 45%),
                radial-gradient(circle at 20% 80%, var(--hero-gradient-2), transparent 45%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 6rem;
}

.hero .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 90%;
}

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

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.app-mockup {
    position: relative;
    width: 340px;
    height: 340px;
    background: var(--background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(-12deg) rotateX(12deg);
    box-shadow: 0 60px 120px rgba(0,0,0,0.1);
    animation: float 8s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
    .app-mockup {
        box-shadow: 0 60px 120px rgba(0,0,0,0.4);
        background: rgba(255,255,255,0.02);
    }
}

.app-mockup .main-icon {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.glass-plate {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    border-radius: var(--radius);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(-12deg) rotateX(12deg); }
    50% { transform: translateY(-30px) rotateY(-8deg) rotateX(16deg); }
}

/* Features */
.features {
    padding: 140px 0;
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(128, 128, 128, 0.04);
    border-color: rgba(128, 128, 128, 0.15);
    transform: translateY(-10px);
}

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

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

.feature-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    padding: 140px 0;
    background: rgba(128, 128, 128, 0.02);
}

.how-it-works .content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8rem;
    align-items: center;
}

.how-it-works .text h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.how-it-works .text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.steps {
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.steps li .num {
    width: 36px;
    height: 36px;
    background: var(--foreground);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.graphic {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator {
    width: 120px;
    height: 120px;
    position: relative;
}

.dot {
    width: 24px;
    height: 24px;
    background: #4caf50;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse {
    width: 120px;
    height: 120px;
    border: 2px solid #4caf50;
    border-radius: 50%;
    animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

/* Footer */
.footer {
    padding: 100px 0 60px;
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    height: 48px;
    border-radius: 12px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-top p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 3rem;
}

/* Responsive */
@media (max-width: 1000px) {
    .container { padding: 0 2rem; }
    .hero .container, .how-it-works .content-wrapper { 
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    .hero h1 { font-size: 2.8rem; }
    .hero .subtitle { margin: 0 auto 3.5rem; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .hero-image { transform: scale(0.85); }
    .feature-grid { grid-template-columns: 1fr; }
    .logo span { display: none; }
    .nav-links a:not(.btn) { display: none; }
}

/* Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}
