/* ============================================================
   MiniPM Official Website - Master Stylesheet
   Brand: Emerald Green + Intelligence Blue + Energy Yellow
   AI-inspired dynamic gradient color system
   Awwwards-inspired modern tech design
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Green - Emerald (refined) */
  --green-100: #d1fae5;
  --green-400: #34d399;
  --green-500: #10b981;
  --green-600: #059669;

  /* Blue - Intelligence (logo inspired) */
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  /* Yellow - Energy (logo inspired) */
  --yellow-100: #fef3c7;
  --yellow-400: #fbbf24;
  --yellow-500: #f59e0b;
  --yellow-600: #d97706;

  /* AI Dynamic Gradients */
  --gradient-primary: linear-gradient(135deg, #10b981, #3b82f6);
  --gradient-accent: linear-gradient(135deg, #3b82f6, #f59e0b);
  --gradient-full: linear-gradient(135deg, #10b981, #3b82f6, #f59e0b);
  --gradient-text: linear-gradient(135deg, #10b981, #3b82f6);
  --gradient-warm: linear-gradient(135deg, #3b82f6, #f59e0b);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #0f1a2e 35%, #1a1a2e 65%, #0f2a1e 100%);
  --gradient-glow: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(59,130,246,0.18), rgba(245,158,11,0.10));

  /* Dark / Neutral */
  --dark-900: #0a0a1a;
  --dark-800: #1a1a2e;
  --dark-700: #2a2a3e;
  --dark-600: #3a3a4e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --white: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-glow-green: 0 0 30px rgba(16,185,129,0.15);
  --shadow-glow-blue: 0 0 30px rgba(59,130,246,0.15);
  --shadow-glow: 0 0 30px rgba(16,185,129,0.15);

  /* Motion */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 100px 0;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--font-sans);
  color: var(--dark-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-500);
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(59,130,246,0.1));
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(16,185,129,0.15);
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav a:hover { color: var(--green-500); background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(59,130,246,0.08)); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}
.lang-switch:hover { border-color: var(--blue-500); color: var(--blue-500); }
.lang-wrap { position: relative; }
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 140px;
  display: none;
  z-index: 100;
  overflow: hidden;
}
.lang-dropdown.open { display: block; }
.lang-dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
}
.lang-dropdown a:hover { background: var(--gray-100); color: var(--blue-500); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--dark-800); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO SECTION
   ============================================================ */
section#hero.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a1a 0%, #0f1a2e 35%, #1a1a2e 65%, #0f2a1e 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(59,130,246,0.12), rgba(245,158,11,0.15), rgba(59,130,246,0.08), rgba(16,185,129,0.12));
  background-size: 400% 400%;
  animation: heroColorFlow 10s ease infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 0; left: 0;
  width: 130vw; height: 130vw;
  background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.12) 0%, rgba(59,130,246,0.06) 25%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero-glow-2 {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vw;
  background: radial-gradient(circle at 50% 50%, rgba(245,158,11,0.08) 0%, rgba(59,130,246,0.05) 25%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero-glow-3 {
  position: absolute;
  top: 0; left: 0;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, rgba(16,185,129,0.03) 30%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* --- Galaxy Neural Canvas --- */
#digitalRain {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

@keyframes heroColorFlow {
  0% { background-position: 0% 50%; opacity: 0.35; }
  25% { background-position: 100% 0%; opacity: 0.85; }
  50% { background-position: 50% 100%; opacity: 1.0; }
  75% { background-position: 0% 100%; opacity: 0.7; }
  100% { background-position: 0% 50%; opacity: 0.35; }
}
.hero .container { position: relative; z-index: 1; text-align: center; padding-top: 80px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(59,130,246,0.12));
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--blue-400);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(26px, 3.5vw, 50px);
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
  line-height: 1.35;
}
.hero h1 span {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 45%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGradientShift 6s ease-in-out infinite;
  background-size: 400% 400%;
  filter: drop-shadow(0 0 30px rgba(16,185,129,0.12));
}
.hero h1 .hero-slogan-lg {
  font-size: clamp(32px, 5vw, 56px);
}
@keyframes textGradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0), rgba(255,255,255,0.1), rgba(255,255,255,0));
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(16,185,129,0.25); background-position: 100% 50%; }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.btn-secondary:hover { border-color: transparent; color: var(--white); transform: translateY(-2px); background: var(--gradient-primary); }
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.hero-scroll a { color: rgba(255,255,255,0.4); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============================================================
   SECTION COMMON
   ============================================================ */
section { padding: var(--section-padding); position: relative; }
section:nth-child(even) { background: var(--gray-100); }
.section-center { text-align: center; }
#brand.section-center,
#products.section-center,
#modules.section-center,
#pricing.section-center,
#services.section-center { padding-top: 40px; }

/* --- Tech Architecture section: reduce top padding --- */
section#tech { padding-top: 40px; }
section#trial { padding-top: 40px; }

/* --- Tech Highlights title --- */
.tech-highlights-title { margin-top: 60px !important; }

/* ============================================================
   CORE TECH
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.tech-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-primary) border-box; }
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}
.tech-card:hover::before { opacity: 1; }
.tech-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--green-500);
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(59,130,246,0.1));
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.tech-card h3 { font-size: 20px; margin-bottom: 12px; }
.tech-card p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 1100px; margin: 40px auto 0; }
.cap-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  transition: var(--transition);
}
.cap-card:hover { border-color: transparent; box-shadow: var(--shadow-glow-blue); transform: translateY(-2px); background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-accent) border-box; }
.cap-canvas { display: block; margin: 0 auto 12px; width: 104px; height: 104px; }
.cap-card p { font-size: 15px; font-weight: 600; color: var(--dark-800); word-break: break-word; hyphens: auto; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card h3 { font-size: 18px; margin-bottom: 8px; text-align: center; }
.product-role { font-size: 13px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.6; text-align: center; }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.product-features span {
  font-size: 12px;
  background: linear-gradient(135deg, var(--green-100), var(--blue-100));
  color: var(--green-600);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

/* ============================================================
   TECH ARCHITECTURE
   ============================================================ */
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto 48px; }
.arch-card {
  background: var(--dark-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
}
.arch-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(26,26,46,0.3); }
.arch-card h4 { font-size: 16px; margin-bottom: 12px; word-break: keep-all; }
.arch-card .tech-stack { font-size: 13px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: var(--font-mono); margin-bottom: 12px; word-break: keep-all; }
.arch-card p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; word-break: keep-all; }
.tech-table-wrap { max-width: 1400px; margin: 0 auto; overflow-x: auto; }
.tech-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.tech-table th {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
}
.tech-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-200); text-align: center; }
.tech-table td:last-child { letter-spacing: 2px; font-size: 14px; text-align: center; }
.tech-table td:last-child .level-group { display: inline-flex; align-items: baseline; gap: 6px; }
.tech-table td:last-child .level-label { letter-spacing: normal; text-align: right; flex-shrink: 0; min-width: 5em; }
.tech-table td:last-child .level-boxes { letter-spacing: 2px; text-align: left; flex-shrink: 0; }
.tech-table .box-lit { color: #fbbf24; }
.tech-table .box-dim { color: #d1d5db; }
.tech-table tr:hover td { background: var(--gray-100); }

/* ============================================================
   MODULES
   ============================================================ */
.modules-grid { display: flex; flex-wrap: wrap; gap: 20px; max-width: 1000px; margin: 0 auto; justify-content: center; }
.module-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  text-align: center;
  width: calc((100% - 60px) / 4);
  max-width: 286px;
  min-width: 200px;
}
.module-card:hover { box-shadow: var(--shadow-md); border-color: transparent; background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-primary) border-box; }
.module-card .module-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.module-card h4 { font-size: 15px; margin-bottom: 12px; }
.module-card ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.module-card ul li {
  font-size: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--blue-600);
  background: linear-gradient(135deg, var(--green-100), var(--blue-100));
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  max-width: 500px;
  margin: -24px auto 40px;
  border: 1px solid rgba(59,130,246,0.15);
}
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto 48px; }
.plan-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.featured {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-full) border-box;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.3), var(--shadow-md);
}
.plan-tag {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 10px;
  letter-spacing: 1px;
}
.plan-card h3 { font-size: 18px; margin-bottom: 8px; }
.plan-price { font-size: 28px; font-weight: 700; color: var(--dark-800); margin-bottom: 4px; }
.plan-price + p { font-size: 13px; color: var(--gray-600); margin-bottom: 16px; }
.plan-meta { font-size: 13px; color: var(--gray-600); margin-bottom: 6px; }
.plan-card .btn-primary { width: 100%; justify-content: center; margin-top: auto; }
.plan-features { list-style: none; padding: 0; margin: 16px 0 0; flex: 1; display: grid; grid-template-columns: minmax(0, max-content); justify-content: center; }
.plan-features li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.plan-features li::before { content: '✓'; color: var(--green-500); font-weight: bold; flex-shrink: 0; width: 14px; text-align: left; }
.pricing-table-wrap { max-width: 1100px; margin: 0 auto; overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.pricing-table th {
  color: transparent;
  padding: 16px 20px 18px;
  text-align: center;
  font-weight: 600;
  width: 22%;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
}
.pricing-table thead {
  position: relative;
}
.pricing-table thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  pointer-events: none;
}
.pricing-table th:first-child { text-align: center; width: 34%; }
.pricing-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.pricing-table td:first-child { text-align: center; font-weight: 500; vertical-align: middle; }
.pricing-table tr:hover td { background: var(--gray-100); }
.has-tip { position: relative; cursor: default; display: inline-block; }
.has-tip .tip-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -16px;
  font-size: 12px;
  color: var(--blue-500);
  cursor: pointer;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 1000px; margin: 0 auto; }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  text-align: center;
  width: calc(33.333% - 20px);
  min-width: 280px;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-card h4 { font-size: 16px; margin-bottom: 14px; color: var(--dark-800); }
.service-card ul li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.service-card ul li::before { content: ''; }

/* ============================================================
   BRAND
   ============================================================ */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}
.brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.brand-card h3 { font-size: 18px; margin-bottom: 12px; }
.brand-card p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }

/* ============================================================
   TRIAL
   ============================================================ */
.trial-wrap { max-width: 720px; margin: 0 auto; }
.trial-combined-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px;
}
.trial-combined-inner {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.trial-combined-section {
  flex: 1;
  padding: 0 24px;
}
.trial-combined-section:first-child { padding-left: 0; }
.trial-combined-section:last-child { padding-right: 0; }
.trial-combined-section h4 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--dark-800);
  position: relative;
  padding-bottom: 10px;
  text-align: left;
}
.trial-combined-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.trial-combined-section ul,
.trial-combined-section ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trial-combined-section ul li {
  font-size: 14px;
  color: var(--gray-700);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trial-combined-section ul li::before {
  content: '✓';
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  font-size: 15px;
}
.trial-combined-section ol li {
  font-size: 14px;
  color: var(--gray-700);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  counter-increment: step-counter;
}
.trial-combined-section ol li::before {
  content: counter(step-counter);
  width: 22px;
  height: 22px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.trial-combined-section ol { counter-reset: step-counter; }
.trial-reg-btn,
.trial-test-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 13px;
}
.trial-combined-divider {
  width: 1px;
  background: var(--gray-200);
  align-self: stretch;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 1.2fr 1.2fr 1.2fr; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 24px; align-items: start; }
.footer-brand .logo { font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer ul li a:hover { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tech-grid, .caps-grid, .arch-grid, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .trial-combined-inner { flex-direction: column; }
  .brand-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px; box-shadow: var(--shadow-md); }
  .mobile-toggle { display: flex; }
  .tech-grid, .caps-grid, .arch-grid, .plans-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .caps-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Gradient Shimmer Animation --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Floating Particles Effect --- */
@keyframes floatUp {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* --- Gradient Border Animation --- */
@keyframes gradientBorder {
  0%,100% { border-color: rgba(16,185,129,0.3); }
  50% { border-color: rgba(59,130,246,0.3); }
}

/* --- Pulsing Glow --- */
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 20px rgba(16,185,129,0.1); }
  50% { box-shadow: 0 0 40px rgba(59,130,246,0.15); }
}
