:root {
    --bg-body: #050507;
    --bg-card: rgba(20, 20, 30, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --gradient-text: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    --gradient-btn: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none; /* Custom cursor handling */
}

/* Custom Cursor & Glow */
#cursor-dot, #cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}
#cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
}
#cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    transition: width 0.3s, height 0.3s;
}

/* Particles Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }

a { text-decoration: none; color: inherit; transition: 0.2s; cursor: pointer; }
button { cursor: pointer; }

/* Premium Glass Effect */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.lang-select {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.2s;
}

.lang-select:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 120px;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
}

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

.lang-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-option:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 8px 30px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    min-height: 3.2em; /* Reserve space for typing */
}

/* Typewriter Cursor */
.cursor-type {
    display: inline-block;
    width: 2px;
    background-color: var(--primary);
    animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* App Visual */
.app-container {
    position: relative;
    perspective: 1000px;
}

.app-window {
    width: 100%;
    max-width: 420px;
    background: #1e1e2e;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5), 0 0 100px -20px rgba(79, 70, 229, 0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.app-window:hover { transform: rotateY(0) rotateX(0); }

.app-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-body {
    padding: 40px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #262638 0%, #1e1e2e 100%);
    border-radius: 0 0 20px 20px;
}

.connect-btn {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a3d, #1a1a28);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 10px 10px 20px #14141f, -10px -10px 20px #28283d;
}

.connect-btn i { font-size: 3rem; color: #10b981; filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4)); }
.connect-ring {
    position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #10b981; opacity: 0.4; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 0; } }

.stats-row {
    display: flex; justify-content: space-between; background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; margin-top: 20px;
}
.stat-box div:first-child { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-box div:last-child { font-weight: 700; color: #fff; }

/* Stats Strip */
.stats-strip {
    border-y: 1px solid var(--border-card); background: rgba(255,255,255,0.01); padding: 40px 0; margin: 80px 0;
}
.stat-block { text-align: center; }
.stat-val { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.stat-lbl { color: var(--text-muted); font-weight: 500; }

/* Features */
.features { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 60px; }
.feature-card { padding: 32px; border-radius: 20px; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.3); background: rgba(20, 20, 30, 0.8); }
.icon-box {
    width: 50px; height: 50px; border-radius: 12px; background: rgba(99, 102, 241, 0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: #818cf8; font-size: 1.25rem;
}

/* How It Works */
.steps-section { padding: 80px 0; position: relative; }
.steps-container { display: flex; justify-content: space-between; position: relative; margin-top: 60px; }
.step-line { position: absolute; top: 40px; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.1); z-index: 0; }
.step-item { position: relative; z-index: 1; text-align: center; flex: 1; }
.step-num {
    width: 80px; height: 80px; background: var(--bg-body); border: 2px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; font-weight: 700; color: var(--primary); box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Screenshots */
.screenshots { padding: 100px 0; }
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.screen-item {
    border-radius: 15px; overflow: hidden; border: 1px solid var(--border-card); transition: 0.3s; aspect-ratio: 16/10; position: relative;
}
.screen-item:hover { transform: scale(1.03); z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.screen-item img { width: 100%; height: 100%; object-fit: cover; }
.screen-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); opacity: 0; transition: 0.3s;
}
.screen-item:hover .screen-overlay { opacity: 1; }

/* FAQ */
.faq-section { padding: 80px 0; max-width: 800px; margin: 0 auto; }
.faq-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: 0.3s; }
.faq-header { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-body { max-height: 0; overflow: hidden; transition: 0.3s ease-out; padding: 0 20px; color: var(--text-muted); }
.faq-item.active { background: rgba(255,255,255,0.05); border-color: rgba(99, 102, 241, 0.3); }
.faq-item.active .faq-body { padding-bottom: 20px; max-height: 200px; }

/* Footer */
footer { border-top: 1px solid var(--border-card); padding: 60px 0; margin-top: 100px; background: #020203; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 3rem; }
    .screens-grid { grid-template-columns: 1fr; }
    .steps-container { flex-direction: column; gap: 40px; }
    .step-line { display: none; }
}
