/* ===== DisTalk Landing Page ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blurple: #5865F2;
    --blurple-dark: #4752C4;
    --blurple-glow: rgba(88,101,242,0.25);
    --dark-bg: #0f0f13;
    --darker-bg: #0a0a0e;
    --card-bg: #1a1a24;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --border-color: #2a2a3a;
    --success: #23a55a;
    --danger: #da373c;
    --warning: #f0b232;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(10,10,14,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 30px; }
.logo-text {
    font-size: 24px; font-weight: 800;
    background: linear-gradient(135deg, var(--blurple), #9b59b6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px; font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--blurple);
    transition: width 0.2s;
    border-radius: 1px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-buttons { display: flex; gap: 12px; }

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px; font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
}
.btn-primary {
    background: var(--blurple);
    color: white;
    box-shadow: 0 4px 15px rgba(88,101,242,0.3);
}
.btn-primary:hover {
    background: var(--blurple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88,101,242,0.4);
}
.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}
.btn-large { padding: 14px 32px; font-size: 17px; border-radius: 12px; }

/* ===== HERO ===== */
.hero {
    padding: 160px 24px 100px;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(88,101,242,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(155,89,182,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { text-align: center; max-width: 720px; position: relative; z-index: 1; }
.hero h1 { font-size: 56px; font-weight: 800; margin-bottom: 20px; line-height: 1.15; letter-spacing: -1px; }
.gradient-text {
    background: linear-gradient(135deg, var(--blurple), #9b59b6, #e91e63);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero p {
    font-size: 19px; color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FEATURES ===== */
.features {
    padding: 120px 0;
    background: var(--darker-bg);
    position: relative;
}
.features h2 { text-align: center; font-size: 38px; font-weight: 800; margin-bottom: 64px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 36px 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blurple), #9b59b6);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--blurple);
    box-shadow: 0 12px 40px rgba(88,101,242,0.15);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(88,101,242,0.05) 0%, transparent 60%);
}
.about h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; }
.about p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 16px; font-size: 16px; }

/* ===== FOOTER ===== */
.footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--darker-bg);
}
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 16px; }
.footer-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 14px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.copyright { color: var(--text-muted); font-size: 13px; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 120px 24px 60px; min-height: 80vh; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 32px; background: linear-gradient(135deg, var(--blurple), #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.legal-page h2 { font-size: 24px; margin: 40px 0 16px; color: var(--text-primary); }
.legal-page h3 { font-size: 18px; margin: 24px 0 10px; color: var(--text-secondary); }
.legal-page p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.8; }
.legal-page .copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-color); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero { padding: 120px 16px 60px; }
    .nav-links { display: none; }
    .features h2 { font-size: 28px; }
    .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .nav-buttons .btn-secondary { display: none; }
}
