/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0a0a0f; color: #e2e8f0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== VARIABLES ===== */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52e0;
  --accent: #00d4ff;
  --green: #10b981;
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #13131f;
  --card: #1a1a2e;
  --border: rgba(255,255,255,0.08);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --radius: 16px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all 0.25s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 4px 24px rgba(108,99,255,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,99,255,0.6); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-ghost-white { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.3); }
.btn-nav { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

/* ===== BADGE ===== */
.badge-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }

/* ===== GRADIENT TEXT ===== */
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-header p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; background: rgba(10,10,15,0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 50%, rgba(0,212,255,0.08) 0%, transparent 60%); pointer-events: none; }
.hero-content { flex: 1; max-width: 600px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { color: var(--muted); font-size: 18px; margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 24px; font-weight: 800; color: var(--text); }
.stat span { font-size: 13px; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* SERVER CARD (hero visual) */
.hero-visual { position: relative; flex: 0 0 420px; display: flex; justify-content: center; align-items: center; z-index: 1; }
.server-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; width: 320px; box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,99,255,0.1); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.server-header { display: flex; gap: 8px; margin-bottom: 20px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.green { background: #10b981; }
.dot.yellow { background: #f59e0b; }
.dot.red { background: #ef4444; }
.metric { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.metric span:first-child { width: 60px; }
.bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; transition: width 1s ease; }
.bar-fill.ram { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.bar-fill.storage { background: linear-gradient(90deg, #10b981, #00d4ff); }
.ping { text-align: center; margin-top: 16px; padding: 10px; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); border-radius: 8px; font-size: 14px; color: #10b981; }

@media (max-width: 960px) { .hero { flex-direction: column; text-align: center; } .hero-content { max-width: 100%; } .hero-cta, .hero-stats { justify-content: center; } .hero-visual { flex: none; width: 100%; margin-top: 40px; } }

/* ===== TRUST ===== */
.trust-section { padding: 40px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-label { text-align: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-logos span { font-size: 15px; font-weight: 600; color: var(--muted); opacity: 0.7; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(108,99,255,0.05), transparent); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.3); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing { padding: 100px 0; background: var(--bg2); }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.toggle-label { font-weight: 600; color: var(--muted); font-size: 15px; transition: color 0.2s; }
.toggle-label.active { color: var(--text); }
.save-badge { background: rgba(16,185,129,0.15); color: #10b981; font-size: 11px; padding: 2px 8px; border-radius: 50px; margin-left: 6px; }
.toggle-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 50px; cursor: pointer; transition: 0.3s; border: 1px solid var(--border); }
.slider::before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background: var(--primary); }
input:checked + .slider::before { transform: translateX(24px); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.pricing-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; transition: all 0.3s; }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 24px 64px rgba(108,99,255,0.2); transform: scale(1.03); }
.popular-badge { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 50px; display: inline-block; margin-bottom: 16px; }
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.currency { font-size: 18px; font-weight: 600; color: var(--muted); }
.amount { font-size: 42px; font-weight: 900; color: var(--text); }
.period { font-size: 15px; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.plan-features li { font-size: 14px; color: var(--muted); }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 32px; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 100px 0; background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testi-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s; }
.testi-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.3); }
.stars { font-size: 18px; margin-bottom: 16px; }
.testi-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.testi-author strong { display: block; font-size: 14px; }
.testi-author span { font-size: 12px; color: var(--muted); }

/* ===== FAQ ===== */
.faq { padding: 100px 0; background: var(--bg2); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: none; border: none; color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit; transition: background 0.2s; }
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-icon { font-size: 20px; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-answer p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ===== CTA FINAL ===== */
.cta-final { padding: 100px 0; background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(0,212,255,0.08) 100%); border-top: 1px solid var(--border); }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; margin-bottom: 16px; }
.cta-inner p { color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--bg3); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 240px; line-height: 1.7; }
.footer-links { display: contents; }
.footer-links > div h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 16px; }
.footer-links > div ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links > div ul a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links > div ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--muted); font-size: 13px; text-align: center; }
.footer-bottom a { color: var(--muted); text-decoration: underline; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: scale(1); }
}

/* ===== SCROLL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
