/* ═══════════════════════════════════════
   Songoo Landing Page — Design System
   Theme-aware via CSS custom properties
   Font: Vazirmatn (primary) + system fallbacks
   ═══════════════════════════════════════ */

/* ── Reset & Base (Vazirmatn @font-face is in theme.php) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.songoo-landing {
    background: var(--bg-window, #0D0D0D);
    color: var(--body-color, #CCCCCC);
    font-family: 'Vazirmatn', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "ss02", "ss03";
}

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

/* ── Typography ── */
.text-accent { color: var(--accent, #00FF00); }

h1, h2, h3, h4 { color: var(--text-bright, #FFFFFF); line-height: 1.5; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 700; }

/* Vazirmatn fine-tuning */
.sg-hero-title { line-height: 1.4; }
.sg-hero-desc { font-weight: 400; line-height: 2; }
.sg-hero-badge { font-weight: 500; }
.sg-feature-card h3 { font-weight: 700; }
.sg-feature-card p { font-weight: 350; line-height: 1.9; }
.sg-stat-number { font-weight: 900; }
.sg-stat-label { font-weight: 500; }
.sg-nav-link { font-weight: 500; }
.sg-btn { font-weight: 600; }
.sg-section-header p { font-weight: 400; }
[dir="rtl"] .sg-hero-desc { line-height: 2.2; }
[dir="rtl"] .sg-feature-card p { line-height: 2.1; }

/* ── Buttons ── */
.sg-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: all 0.2s ease;
    border: 1px solid transparent; white-space: nowrap;
}
.sg-btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.sg-btn-accent {
    background: var(--btn-accent-bg, #1A5C1A);
    color: var(--btn-accent-fg, #00FF00);
    border-color: var(--accent, #00FF00);
}
.sg-btn-accent:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent, #00FF00) 30%, transparent);
}
.sg-btn-outline {
    background: transparent;
    color: var(--text-bright, #FFFFFF);
    border-color: var(--border-color, #2A2A2A);
}
.sg-btn-outline:hover {
    border-color: var(--border-strong, #444444);
    background: var(--bg-panel, #1B1B1B);
}

/* ── Navigation ── */
.sg-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    padding: 16px 0;
}
.sg-nav.scrolled {
    background: var(--bg-window, #0D0D0D);
    border-bottom: 1px solid var(--border-color, #2A2A2A);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.sg-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sg-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.sg-logo-img { height: 36px; width: auto; }
.sg-logo-text {
    font-size: 22px; font-weight: 700;
    color: var(--accent, #00FF00);
    letter-spacing: -0.5px;
}
.sg-nav-links {
    display: flex; align-items: center; gap: 8px;
}
.sg-nav-link {
    color: var(--text-muted, #888);
    text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 8px 12px; border-radius: 6px; transition: all 0.2s;
}
.sg-nav-link:hover { color: var(--text-bright, #FFF); background: var(--bg-panel, #1B1B1B); }
.sg-nav-actions { display: flex; align-items: center; gap: 12px; }
.sg-lang-switch {
    color: var(--accent, #00FF00); text-decoration: none; font-size: 13px;
    font-weight: 700; padding: 6px 10px; border: 1px solid var(--border-color, #2A2A2A);
    border-radius: 6px; transition: all 0.2s;
}
.sg-lang-switch:hover { background: var(--bg-panel, #1B1B1B); }
.sg-mobile-toggle {
    display: none; background: none; border: none; color: var(--text-bright, #FFF);
    font-size: 24px; cursor: pointer; padding: 4px 8px;
}

@media (max-width: 768px) {
    .sg-nav-links { display: none; }
    body.nav-open .sg-nav-links {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--bg-window, #0D0D0D);
        border-bottom: 1px solid var(--border-color, #2A2A2A);
        padding: 16px 24px; gap: 4px;
    }
    .sg-mobile-toggle { display: block; }
    .sg-hero-title { font-size: 32px !important; }
    .sg-features-grid { grid-template-columns: 1fr !important; }
    .sg-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .sg-footer-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── Hero ── */
.sg-hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; text-align: var(--text-align, center);
    padding: 120px 24px 80px; overflow: hidden;
}
.sg-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%,
        color-mix(in srgb, var(--accent, #00FF00) 15%, transparent) 0%,
        transparent 70%);
    opacity: 0.5;
}
.sg-hero-glow {
    position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--accent, #00FF00) 20%, transparent),
        transparent 70%);
    filter: blur(80px); pointer-events: none; opacity: 0.4;
}
.sg-hero-content {
    position: relative; z-index: 1; max-width: 700px;
}
.sg-hero-brand { margin-bottom: 8px; }
.sg-hero-logo { filter: drop-shadow(0 0 20px color-mix(in srgb, var(--accent, #00FF00) 50%, transparent)); }
.sg-hero-title em { font-style: normal; color: var(--accent, #00FF00); }
.sg-hero-badge {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
    background: color-mix(in srgb, var(--accent, #00FF00) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, #00FF00) 25%, transparent);
    color: var(--text-label, #AAA); font-size: 13px; font-weight: 400;
    padding: 8px 18px; border-radius: 20px; margin-bottom: 24px; line-height: 1.8;
}
.sg-hero-badge strong { color: var(--accent, #00FF00); }
.sg-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent, #00FF00);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.sg-hero-title {
    margin-bottom: 20px; letter-spacing: -0.5px;
}
.sg-hero-desc {
    color: var(--text-muted, #888); font-size: 17px;
    line-height: 1.7; margin-bottom: 36px; max-width: 550px;
    margin-left: auto; margin-right: auto;
}
.sg-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Section Headers ── */
.sg-section-header {
    text-align: center; margin-bottom: 60px;
}
.sg-section-header h2 { margin-bottom: 12px; }
.sg-section-header p { color: var(--text-muted, #888); font-size: 16px; }

/* ── Features ── */
.sg-features { padding: 100px 24px; }
.sg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.sg-feature-card {
    background: var(--bg-card, #121212);
    border: 1px solid var(--border-color, #2A2A2A);
    border-radius: 14px; padding: 32px 28px;
    transition: all 0.3s ease;
}
.sg-feature-card:hover {
    border-color: var(--accent, #00FF00);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent, #00FF00) 10%, transparent);
    transform: translateY(-4px);
}
.sg-feature-icon { font-size: 36px; margin-bottom: 16px; }
.sg-feature-card h3 { margin-bottom: 10px; font-size: 17px; }
.sg-feature-card p { color: var(--text-muted, #888); font-size: 14px; line-height: 1.6; }

/* ── Stats ── */
.sg-stats {
    padding: 80px 24px;
    background: var(--bg-panel, #1B1B1B);
    border-top: 1px solid var(--border-color, #2A2A2A);
    border-bottom: 1px solid var(--border-color, #2A2A2A);
}
.sg-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px; text-align: center;
}
.sg-stat-number {
    font-size: 40px; font-weight: 800;
    color: var(--text-bright, #FFF);
    margin-bottom: 8px; letter-spacing: -1px;
}
.sg-stat-label {
    color: var(--text-muted, #888); font-size: 14px; font-weight: 500;
}

/* ── Contact ── */
.sg-contact { padding: 100px 24px; }
.sg-contact-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center;
}
@media (max-width: 768px) {
    .sg-contact-grid { grid-template-columns: 1fr; }
    .sg-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.sg-contact-info h2 { margin-bottom: 16px; }
.sg-contact-info > p { color: var(--text-muted, #888); margin-bottom: 24px; }
.sg-contact-details { display: flex; flex-direction: column; gap: 12px; }
.sg-contact-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-label, #AAA); font-size: 14px;
}
.sg-contact-icon { font-size: 20px; }
.sg-contact-form-wrap {
    background: var(--bg-card, #121212);
    border: 1px solid var(--border-color, #2A2A2A);
    border-radius: 14px; padding: 32px;
}

/* ── Footer ── */
.sg-footer {
    padding: 60px 24px 40px;
    border-top: 1px solid var(--border-color, #2A2A2A);
    background: var(--bg-deep, #060606);
}
.sg-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
}
.sg-footer-brand p { margin-top: 4px; }
.sg-footer-links { display: flex; flex-direction: column; gap: 10px; }
.sg-footer-links h4 { font-size: 14px; margin-bottom: 4px; color: var(--text-label, #AAA); }
.sg-footer-links a {
    color: var(--text-muted, #888); text-decoration: none; font-size: 13px; transition: color 0.2s;
}
.sg-footer-links a:hover { color: var(--accent, #00FF00); }

/* ── Theme Switcher ── */
.theme-switcher {
    display: flex; align-items: center; gap: 8px;
}
.theme-label { color: var(--text-muted, #888); font-size: 12px; }
#theme-select {
    background: var(--bg-input, #111); color: var(--text-bright, #FFF);
    border: 1px solid var(--border-color, #2A2A2A); border-radius: 6px;
    padding: 6px 10px; font-size: 13px; cursor: pointer;
    font-family: inherit;
}
#theme-select:focus { outline: none; border-color: var(--accent, #00FF00); }
#theme-select option { background: var(--bg-panel, #1B1B1B); color: var(--text-bright); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep, #060606); }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-bg, #2A2A2A);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-light, #3A3A3A); }
