/* ============================================================
   CLOUDYNET — Global Stylesheet
   Dark Modern Theme
   ============================================================ */

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-tertiary: #14141f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Accent */
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-dark: #0284c7;
  --accent: #a855f7;
  --accent-light: #c084fc;
  --success: #10b981;

  /* Border */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Gradients */
  --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #a855f7 100%);
  --gradient-text: linear-gradient(135deg, #0ea5e9 0%, #a855f7 50%, #0ea5e9 100%);
  --gradient-bg: radial-gradient(ellipse at 30% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
                 radial-gradient(ellipse at 70% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);

  /* Layout */
  --container: 1200px;
  --section: 120px 0;

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

  /* Effects */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --glow: 0 0 80px rgba(14, 165, 233, 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.25s var(--ease); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ==================== Navbar ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.95);
}

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

.logo {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: 800;
}

.logo-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.nav-menu a:hover::after { width: 100%; }

.nav-btn {
  padding: 10px 24px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: all 0.3s var(--ease);
}

.nav-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.nav-btn::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

/* ==================== Hero ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 24px 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-bg);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  opacity: 0.08;
  top: -150px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  opacity: 0.06;
  bottom: -100px;
  left: -50px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
}

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

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  font-family: inherit;
}

.btn-main {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.25);
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(14, 165, 233, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

/* ==================== Section Base ==================== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

/* ==================== Products ==================== */
.products {
  padding: var(--section);
  background: var(--bg-secondary);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.05), rgba(168,85,247,0.05));
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(168,85,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.product-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.product-tag {
  padding: 4px 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
}

/* ==================== Solutions ==================== */
.solutions {
  padding: var(--section);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  gap: 28px;
  transition: all 0.35s var(--ease);
  align-items: flex-start;
}

.solution-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.solution-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.solution-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.solution-info p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.solution-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.solution-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
}

.solution-check::before {
  content: '✓';
  font-weight: 700;
  font-size: 12px;
}

/* ==================== Cases ==================== */
.cases {
  padding: var(--section);
  background: var(--bg-secondary);
  position: relative;
}

.cases::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 24px;
  width: fit-content;
}

.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.case-card > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 28px;
}

.case-stats {
  display: flex;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.case-stat {
  flex: 1;
  text-align: center;
}

.case-stat .val {
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
}

.case-stat .lbl {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ==================== CTA ==================== */
.cta {
  padding: 120px 0;
  text-align: center;
}

.cta-box {
  background: var(--gradient-main);
  border-radius: var(--radius-xl);
  padding: 88px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.cta-box h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  letter-spacing: -1px;
}

.cta-box p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 16px 44px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==================== Footer ==================== */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

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

.footer-about .logo {
  margin-bottom: 18px;
}

.footer-about p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-col ul li { margin-bottom: 14px; }

.footer-col ul li a {
  color: var(--text-dim);
  font-size: 14px;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

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

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }

  .hero h1 { letter-spacing: -1px; }

  .product-grid { grid-template-columns: 1fr; }
  .solution-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }

  .solution-card {
    flex-direction: column;
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root { --section: 72px 0; }

  .hero { padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 320px; }

  .cta-box { padding: 48px 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .case-stats { flex-direction: column; gap: 16px; }
}
