@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #fafbfc;
  --bg2: #f5f6f8;
  --bg3: #eeeff3;
  --surface: #ffffff;
  --border: #dce0e8;
  --border2: #c9cdd8;
  --accent: #4f7cff;
  --accent-light: #e8f0fe;
  --accent-dark: #0052cc;
  --secondary: #00d4aa;
  --secondary-light: #e0f9f5;
  --orange: #ff9a5a;
  --orange-light: #ffe8d6;
  --text: #2d3142;
  --text2: #5c6578;
  --text3: #8b94a8;
  --white: #ffffff;
  --green: #22c55e;
  --red: #ef4444;
  --font: 'Inter', sans-serif;
  --r: 10px;
  --r2: 16px;
  --shadow: 0 2px 8px rgba(45, 49, 66, 0.08);
  --shadow2: 0 4px 16px rgba(45, 49, 66, 0.12);
  --transition: 0.2s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text2); }

.lead { font-size: 1.05rem; color: var(--text2); font-weight: 400; line-height: 1.8; }

.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--accent-dark);
  background: var(--accent-light);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(79, 124, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--accent);
  border: 1.5px solid var(--accent-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.btn-ghost { background: transparent; color: var(--text2); font-weight: 500; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 224, 232, 0.5);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--r);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg2);
}

.nav-cta {
  margin-left: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-menu-btn { display: none; padding: 8px; margin-left: auto; color: var(--text); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 16px 24px; }
.nav-mobile a { padding: 10px 12px; border-radius: var(--r); font-size: 0.9rem; color: var(--text2); }
.nav-mobile a:hover { background: var(--bg2); color: var(--text); }
.nav-mobile.open { display: flex; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
}
.hero-glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -150px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  right: -100px;
  background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
}

.hero-content { position: relative; max-width: 700px; }
.hero-tag { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero-desc { margin-bottom: 36px; font-size: 1.05rem; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 0.8rem; color: var(--text3); margin-top: 4px; font-weight: 500; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 12px auto 0; }

.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow2);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow2); border-color: var(--accent-light); }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-light), var(--shadow2);
  transform: scale(1.02);
}
.pricing-card:hover { box-shadow: var(--shadow2); }

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange) 0%, #ff7a3a 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-cycle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price sup { font-size: 0.8rem; font-weight: 400; }
.pricing-price span { font-size: 0.85rem; font-weight: 400; color: var(--text2); }

.pricing-original {
  font-size: 0.8rem;
  color: var(--text3);
  text-decoration: line-through;
  margin-bottom: 8px;
}

.pricing-economy {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text2);
}
.pricing-features li::before { content: '✓'; color: var(--secondary); font-weight: 700; }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow2);
  transform: translateY(-2px);
}

.product-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 0.95rem; margin-bottom: 8px; }
.product-body p { font-size: 0.85rem; flex: 1; }

.product-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tech-pill {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg2);
  color: var(--text3);
  border: 1px solid var(--border);
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow2);
  transform: translateY(-2px);
}

.post-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: 10px; font-size: 0.75rem; color: var(--text3); margin-bottom: 10px; }
.post-cat { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; }
.post-body h3 { font-size: 0.95rem; margin-bottom: 8px; }
.post-body p { font-size: 0.85rem; flex: 1; }
.post-read-more {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.form-control {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-control::placeholder { color: var(--text3); }

.alert { padding: 12px 16px; border-radius: var(--r); font-size: 0.9rem; margin-bottom: 20px; display: flex; gap: 10px; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 24px;
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow2); }
.testimonial-quote { font-size: 1.8rem; color: var(--accent-light); line-height: 1; margin-bottom: 10px; }
.testimonial-text { font-size: 0.9rem; font-style: italic; margin-bottom: 20px; color: var(--text2); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.stars { color: var(--orange); font-size: 0.8rem; margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.step { text-align: center; padding: 0 16px; }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin: 0 auto 16px;
}
.step h4 { font-size: 0.95rem; margin-bottom: 8px; }
.step p { font-size: 0.8rem; color: var(--text3); }

.cta-section {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--secondary-light) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.cta-section h2 { color: var(--text); margin-bottom: 16px; }

footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.85rem; margin-top: 10px; max-width: 260px; color: var(--text2); }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--text2); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text3);
}

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text2);
  transition: var(--transition);
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.page-hero { padding: 130px 0 70px; background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%); border-bottom: 1px solid var(--border); position: relative; }
.page-hero .hero-grid { opacity: 0.2; }

.post-content { max-width: 760px; }
.post-content h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.post-content h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content pre { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; overflow-x: auto; margin-bottom: 16px; }
.post-content code { font-size: 0.85rem; color: var(--orange); }

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text2); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.w-full { width: 100%; }
.hidden { display: none !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (max-width: 1024px) {
  .grid-4, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: flex; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 60px 0; }
}
