/* ============================================================
   SOLAR CLOUD - styles.css
   Premium Dark Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --bg-main:      #060a12;
    --bg-card:      #0d1420;
    --bg-card-2:    #111827;
    --bg-glass:     rgba(13, 20, 32, 0.6);
    --border:       rgba(59, 130, 246, 0.12);
    --border-hover: rgba(59, 130, 246, 0.35);
    --text-main:    #f0f6ff;
    --text-muted:   #8b9ab4;
    --text-subtle:  #4a5568;
    --accent:       #3b82f6;
    --accent-2:     #7c3aed;
    --accent-glow:  rgba(59, 130, 246, 0.25);
    --success:      #10b981;
    --warning:      #f59e0b;
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #7c3aed 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(124,58,237,0.05) 100%);
    --shadow-card:  0 4px 32px rgba(0,0,0,0.4);
    --shadow-glow:  0 0 40px rgba(59,130,246,0.15);
    --radius:       14px;
    --radius-sm:    8px;
    --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    animation: fadeIn 0.5s ease-out forwards;
}

body.fade-out { animation: fadeOut 0.3s ease-in forwards; }

@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 0 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    background: rgba(6, 10, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 10, 18, 0.95);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gradient-hero);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(59,130,246,0.4);
}

.nav-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
    background: rgba(59,130,246,0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
    background: rgba(59,130,246,0.1);
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    background: url('hero_bg.png') no-repeat center center / cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(6,10,18,0.55) 0%,
        rgba(6,10,18,0.5) 50%,
        rgba(6,10,18,0.95) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: fadeIn 0.6s ease 0.1s both;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeIn 0.6s ease 0.2s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeIn 0.6s ease 0.3s both;
}

.price-highlight { color: #60a5fa; font-weight: 700; }

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeIn 0.6s ease 0.4s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-hero);
    color: white;
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59,130,246,0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-main);
    padding: 14px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--border-hover);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: rgba(59,130,246,0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease 0.5s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
section { padding: 90px 5%; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-overline {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.section-desc { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ─── FEATURE CARDS ──────────────────────────────────────────── */
#features { background: var(--bg-card); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-hero);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(59,130,246,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

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

/* ─── PRICING ────────────────────────────────────────────────── */
#pricing { background: var(--bg-main); }
#bots-pricing { background: var(--bg-card); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card.popular {
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 32px rgba(59,130,246,0.12);
}

.popular-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--gradient-hero);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.plan-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.plan-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 9px;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.plan-features li.unavailable { opacity: 0.4; text-decoration: line-through; }
.plan-features li.unavailable::before { content: '✕'; color: var(--text-subtle); }

.btn-plan {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-plan-outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-main);
}

.btn-plan-outline:hover {
    background: rgba(59,130,246,0.1);
    border-color: var(--accent);
}

.btn-plan-filled {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-plan-filled:hover {
    box-shadow: 0 6px 28px rgba(59,130,246,0.5);
    transform: translateY(-1px);
}

/* ─── MODAL (Location Selector) ──────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(6,10,18,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 60px rgba(59,130,246,0.1);
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover { color: var(--text-main); transform: rotate(90deg); }

.modal-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(59,130,246,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.modal h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.modal-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-plan-info {
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #93c5fd;
    font-weight: 600;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.location-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
}

.location-btn:hover {
    border-color: var(--accent);
    background: rgba(59,130,246,0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.15);
}

.location-flag { font-size: 2rem; }
.location-name { font-size: 0.82rem; font-weight: 700; }
.location-city { font-size: 0.72rem; color: var(--text-muted); }

/* ─── LEGAL PAGES ────────────────────────────────────────────── */
.legal-hero {
    padding: 130px 5% 60px;
    border-bottom: 1px solid var(--border);
}

.legal-hero .section-overline { margin-bottom: 10px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.legal-hero p { color: var(--text-muted); font-size: 0.9rem; }

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 5%;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 40px 0 14px;
    color: var(--text-main);
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }

.legal-content strong { color: var(--text-main); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 56px 5% 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 48px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 240px;
}

.footer-col h5 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: var(--shadow-card);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateX(0); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .navbar { padding: 0 20px; }
    .nav-links { gap: 2px; }
    .nav-links a { font-size: 0.82rem; padding: 6px 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .navbar { height: 60px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.4rem; }
    .hero-stats { gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .location-grid { grid-template-columns: 1fr; }
    .modal { padding: 28px 20px; }
}
