/* ============================
   CloudCord - Premium Theme
   ============================ */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --accent: #a78bfa;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-0: #05060f;
    --bg-1: #0a0b18;
    --bg-2: #111225;
    --bg-3: #191a32;
    --bg-4: #21223d;

    --text-0: #f1f5f9;
    --text-1: #cbd5e1;
    --text-2: #94a3b8;
    --text-3: #64748b;

    --border: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(148, 163, 184, 0.15);
    --border-active: rgba(99, 102, 241, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-0);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ── Buttons ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; text-decoration: none; cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: transparent; color: var(--text-1);
    border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; text-decoration: none;
    transition: all 0.2s ease;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-ghost {
    display: inline-flex; align-items: center; padding: 8px 16px;
    color: var(--text-2); text-decoration: none; font-weight: 500;
    font-size: 0.9rem; border-radius: var(--radius-sm); transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text-0); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.full-w { width: 100%; justify-content: center; }

/* ── Navbar ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(5, 6, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; }
.logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-cloud { color: var(--primary-light); }
.logo-cord { color: var(--text-0); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-0); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px; font-size: 0.8rem; color: var(--success);
    font-weight: 500; margin-bottom: 28px;
}
.badge-dot {
    width: 8px; height: 8px; background: var(--success);
    border-radius: 50%; display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900;
    line-height: 1.1; color: var(--text-0);
    letter-spacing: -1.5px; margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.15rem; color: var(--text-2);
    max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }

.hero-proof { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 64px; }
.proof-item { display: flex; flex-direction: column; align-items: center; padding: 0 28px; }
.proof-value { font-size: 1.4rem; font-weight: 800; color: var(--text-0); letter-spacing: -0.5px; }
.proof-label { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-top: 2px; }
.proof-divider { width: 1px; height: 36px; background: var(--border-hover); }

/* ── Terminal ── */
.terminal {
    max-width: 680px; margin: 0 auto;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.terminal-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--bg-3); border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }
.terminal-title { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }
.terminal-body { padding: 20px; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 0.85rem; line-height: 1.8; }
.term-line { display: flex; gap: 8px; align-items: baseline; }
.term-prompt { color: var(--success); font-weight: 700; }
.term-cmd { color: var(--text-0); }
.term-output { padding-left: 20px; }
.term-success { color: var(--success); }
.term-dim { color: var(--text-3); }
.term-highlight { color: var(--primary-light); font-weight: 600; }
.term-cursor { color: var(--text-0); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Trust ── */
.trust { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 24px; }
.trust-logos { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { font-size: 1rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.5px; opacity: 0.5; transition: opacity 0.2s; }
.trust-item:hover { opacity: 0.8; }

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; padding: 4px 14px;
    background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px; font-size: 0.8rem; color: var(--primary-light);
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
    color: var(--text-0); letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-header p { font-size: 1.05rem; color: var(--text-2); max-width: 520px; margin: 0 auto; }

/* ── Features ── */
.features { padding: 120px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    padding: 28px; background: var(--bg-1);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: var(--border-active); background: var(--bg-2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}
.feature-icon-wrap {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm); color: var(--primary-light); margin-bottom: 18px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-0); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── How It Works ── */
.how-it-works { padding: 120px 0; background: var(--bg-1); }
.steps { max-width: 600px; margin: 0 auto; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step-number {
    width: 48px; height: 48px; min-width: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-size: 1.2rem; font-weight: 800;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}
.step-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; color: var(--text-2); }
.step-connector { width: 2px; height: 40px; background: var(--border-hover); margin-left: 23px; }

/* ── Pricing ── */
.pricing { padding: 120px 0; }
.pricing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.pricing-card {
    background: var(--bg-1); border: 1px solid var(--border-active);
    border-radius: var(--radius-lg); padding: 36px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-glow);
}
.pricing-popular {
    position: absolute; top: 16px; right: -32px;
    background: var(--primary); color: #fff;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 40px; transform: rotate(45deg);
}
.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--text-0); }
.pricing-tagline { font-size: 0.85rem; color: var(--text-2); margin-top: 4px; }
.pricing-price { margin-bottom: 28px; display: flex; align-items: baseline; gap: 2px; }
.price-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-2); align-self: flex-start; margin-top: 8px; }
.price-amount { font-size: 4rem; font-weight: 900; color: var(--text-0); letter-spacing: -2px; line-height: 1; }
.price-period { font-size: 1rem; color: var(--text-3); font-weight: 500; }
.pricing-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.pricing-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-1); }
.pricing-list li svg { flex-shrink: 0; }

.upgrades-card {
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    display: flex; flex-direction: column;
}
.upgrades-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.upgrades-card > p { font-size: 0.9rem; color: var(--text-2); margin-bottom: 24px; }
.upgrade-items { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.upgrade-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: var(--bg-2);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.upgrade-name { font-size: 0.95rem; font-weight: 600; color: var(--text-0); display: block; }
.upgrade-detail { font-size: 0.75rem; color: var(--text-3); display: block; margin-top: 2px; }
.upgrade-price { font-size: 1rem; font-weight: 800; color: var(--primary-light); white-space: nowrap; }
.upgrade-price small { font-size: 0.75rem; font-weight: 500; color: var(--text-3); }
.upgrade-maxed {
    margin-top: 24px; padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm); text-align: center;
}
.upgrade-maxed h4 { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.maxed-specs { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
.maxed-specs span { font-size: 0.85rem; font-weight: 600; color: var(--text-1); }
.maxed-price { font-size: 1.1rem; font-weight: 800; color: var(--primary-light); }

/* ── FAQ ── */
.faq { padding: 120px 0; background: var(--bg-1); }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-active); }
.faq-item summary {
    padding: 18px 20px; cursor: pointer; font-weight: 600;
    font-size: 0.95rem; color: var(--text-0);
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.3rem; color: var(--text-3); font-weight: 400;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item p {
    padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-2); line-height: 1.7;
}
.faq-item p a { color: var(--primary-light); text-decoration: none; }
.faq-item p a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta { padding: 120px 0; }
.cta-card {
    position: relative; text-align: center;
    padding: 80px 40px; background: var(--bg-2);
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}
.cta-card h2 { font-size: 2rem; font-weight: 800; color: var(--text-0); margin-bottom: 12px; position: relative; }
.cta-card > p { font-size: 1.05rem; color: var(--text-2); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { position: relative; }
.cta-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 16px; position: relative; }

/* ── Footer ── */
.footer { padding: 60px 0 28px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-3); margin-top: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3); margin-bottom: 4px; }
.footer-col a { font-size: 0.875rem; color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer-payment { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-3); }
.footer-payment strong { color: var(--text-2); }

/* ── Legal Pages ── */
.legal-page { padding: 140px 0 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--text-0); margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-3); font-size: 0.9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; color: var(--primary-light); }
.legal-page p, .legal-page li { color: var(--text-2); line-height: 1.8; margin-bottom: 10px; font-size: 0.925rem; }
.legal-page ul { padding-left: 24px; }
.legal-page a { color: var(--primary-light); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-content { max-width: 760px; }

/* Support page */
.support-page { padding: 140px 0 80px; }
.support-page h1 { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 12px; color: var(--text-0); }
.support-page .subtitle { text-align: center; color: var(--text-2); margin-bottom: 48px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.support-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 32px; text-align: center;
    transition: all 0.3s;
}
.support-card:hover { border-color: var(--border-active); transform: translateY(-2px); }
.support-card h3 { margin: 14px 0 8px; color: var(--text-0); font-size: 1.05rem; }
.support-card p { color: var(--text-2); font-size: 0.875rem; margin-bottom: 18px; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-layout { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10, 11, 24, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px; gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open a { font-size: 1rem; }
    .hamburger { display: flex; }
    .hero { padding: 130px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-proof { flex-wrap: wrap; gap: 16px; }
    .proof-divider { display: none; }
    .proof-item { padding: 8px 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 36px; }
    .footer-links { flex-wrap: wrap; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .support-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .terminal { margin: 0 -12px; border-radius: var(--radius-md); }
}
