:root {
  /* Colors */
  --bg-primary: #0f111a;
  --bg-secondary: #1a1d2d;
  --bg-card: #222638;
  --bg-card-hover: #2a2f45;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-color: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --primary-color: #0066ff;
  --primary-hover: #3385ff;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* ================= Navbar ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 6px;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-login {
  color: var(--text-secondary);
  background: transparent;
}

.btn-login:hover {
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger svg {
  fill: var(--text-primary);
}

/* ================= Hero Section ================= */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,102,255,0.15) 0%, rgba(15,17,26,0) 70%);
  z-index: -1;
}

.hero-tags {
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
  margin: 0 5px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ================= Features ================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ================= Pricing ================= */
.promo-banner {
  background: linear-gradient(90deg, rgba(0,102,255,0.2) 0%, rgba(0,212,255,0.2) 100%);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.promo-banner span {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.promo-banner code {
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 10px;
  font-family: monospace;
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  background: var(--bg-card);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-data {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.plan-price {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plan-price .currency {
  font-size: 1.5rem;
}

.plan-price .amount {
  font-size: 3rem;
  font-weight: 800;
}

.plan-price .period {
  color: var(--text-secondary);
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
  min-height: 45px;
}

.discount-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 10px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-notes {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.unlimited-plans {
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px dashed rgba(255,255,255,0.1);
}

.unlimited-plans h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

/* ================= Nodes & Security ================= */
.nodes-section {
  display: flex;
  align-items: center;
  gap: 50px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  overflow: hidden;
}

.nodes-content {
  flex: 1;
}

.nodes-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.nodes-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.nodes-visual {
  flex: 1;
  background: #000;
  border-radius: 12px;
  padding: 20px;
  font-family: monospace;
  color: #0f0;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}
.nodes-visual::before {
  content: " Terminal - ssh root@nicecloud";
  display: block;
  background: #222;
  color: #ccc;
  padding: 5px 10px;
  margin: -20px -20px 20px;
  border-radius: 12px 12px 0 0;
  font-size: 0.8rem;
}

.code-line {
  margin-bottom: 10px;
}
.code-comment {
  color: #666;
}
.code-highlight {
  color: #fff;
}

/* ================= Testimonials ================= */
.reviews-section {
  overflow: hidden;
}

.marquee {
  display: flex;
  width: fit-content;
  animation: scroll 40s linear infinite;
  gap: 20px;
  padding: 20px 0;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 10px)); }
}

.review-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: var(--border-radius);
  width: 350px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
  color: #fbbf24;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--accent-color);
}

/* ================= FAQ ================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

summary {
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 25px 25px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================= Footer ================= */
.footer-cta {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.footer {
  background: #0a0b10;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 15px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ================= News & Articles ================= */
.news-header {
  text-align: center;
  padding: 120px 0 60px;
}
.news-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}
.news-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.news-thumb {
  height: 200px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.news-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-date {
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}
.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}
.news-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}
.read-more {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}
.news-card:hover .read-more {
  color: var(--accent-color);
}

/* Article Page */
.article-container {
  max-width: 900px;
  margin: 120px auto 80px;
  padding: 0 20px;
}
.article-header {
  margin-bottom: 40px;
  text-align: center;
}
.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
}
.article-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #e2e8f0;
}
.article-body h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}
.article-body h3 {
  font-size: 1.4rem;
  margin: 30px 0 15px;
  color: #fff;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin-left: 25px;
  margin-bottom: 25px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-color: rgba(0,212,255,0.3);
}
.article-body a:hover {
  text-decoration-color: var(--accent-color);
}
.article-body strong {
  color: #fff;
}
.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 30px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(255,255,255,0.02);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
}
.article-nav {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .nodes-section { flex-direction: column; padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  
  .navbar.active .nav-links,
  .navbar.active .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .navbar.active .nav-links {
    margin-bottom: 20px;
    align-items: center;
  }
  
  .navbar.active .nav-actions {
    position: static;
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-cta { flex-direction: column; }
  
  .btn { width: 100%; min-height: 48px; display: flex; justify-content: center; align-items: center; }
  
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 15px auto; }
}
