:root {
  --blue: #4687ff;
  --blue-deep: #305eb2;
  --blue-dark: #233b67;
  --blue-soft: #edf3ff;
  --ink: #151922;
  --text: #383c43;
  --muted: #73757a;
  --red: #f64f64;
  --orange: #ff7e23;
  --green: #27be56;
  --purple: #7f7aee;
  --pink: #f95f83;
  --white: #fff;
  --surface: #fff;
  --surface-soft: #f8f8f8;
  --border: #e8e8e9;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --page-max: 1200px;
  --gutter: 32px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 8px 30px rgba(21,25,34,.08);
  --shadow-popover: 0 14px 40px rgba(21,25,34,.12);
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--page-max));
  margin-inline: auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.desktop-nav {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.desktop-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: background .15s, color .15s;
}
.desktop-nav a:hover, .desktop-nav a.active {
  background: var(--blue-soft); color: var(--blue);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { font-size: 14px; padding: 0 20px; min-height: 40px; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 110;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 100%;
  height: 100dvh; background: var(--white); z-index: 105;
  transition: right .3s ease;
  overflow-y: auto; padding: 80px 24px 40px;
}
.mobile-menu.open { right: 0; }
.mobile-menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 104; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block; padding: 14px 16px; font-size: 18px; font-weight: 600;
  color: var(--ink); border-radius: var(--radius-sm);
  transition: background .15s;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--blue-soft); color: var(--blue); }
.mobile-cta {
  display: block; text-align: center; margin-top: 24px;
  width: 100%; font-size: 16px;
}

/* ── BUTTONS ── */
.btn {
  min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: .15s ease; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--border); }
.btn-secondary:hover { background: var(--blue-soft); border-color: var(--blue); }

/* ── SECTIONS ── */
.section { padding-block: 88px; }
.section-soft { background: var(--surface-soft); }
.section-blue { background: var(--blue-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b9babd; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header p { color: var(--muted); font-size: 18px; margin-top: 16px; }

.assurance { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ── HERO ── */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 18px; color: var(--muted); margin-bottom: 28px; max-width: 520px; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── CARDS ── */
.card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-body { padding: 24px; }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

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

/* Feature tile (expanded) */
.feature-tile {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 48px;
  background: var(--surface-soft); border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.feature-tile.reverse { direction: rtl; }
.feature-tile.reverse > * { direction: ltr; }
.feature-tile img { border-radius: var(--radius-md); width: 100%; }
.feature-tile h3 { margin-bottom: 16px; }
.feature-tile p { color: var(--muted); }
.feature-tile .eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px; letter-spacing: .05em;
}

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat-label { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; gap: 16px;
  background: none; border: none; width: 100%; text-align: left;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-q::after {
  content: '+'; font-size: 22px; color: var(--muted);
  transition: transform .2s; flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding-bottom: 20px; color: var(--muted); line-height: 1.7; }

/* ── CTA BAND ── */
.cta-band {
  text-align: center; padding: 72px 0;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff; border-radius: var(--radius-lg);
  margin: 0 auto; max-width: var(--page-max);
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 18px; }
.cta-band .btn-primary { background: #fff; color: var(--blue); }
.cta-band .btn-primary:hover { background: #f0f4ff; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white); padding: 32px; position: relative;
  transition: box-shadow .2s;
}
.plan-card:hover { box-shadow: var(--shadow-popover); }
.plan-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(70,135,255,.12);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.plan-price { font-size: 42px; font-weight: 700; color: var(--ink); line-height: 1; }
.plan-price small { font-size: 16px; font-weight: 400; color: var(--muted); }
.plan-period { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan-features { list-style: none; padding: 0; margin: 24px 0; }
.plan-features li {
  padding: 8px 0; font-size: 14px; color: var(--text);
  display: flex; align-items: flex-start; gap: 8px;
}
.plan-features li::before {
  content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0;
}
.plan-card .btn { width: 100%; }

/* ── SERVER TABLE ── */
.server-table { width: 100%; border-collapse: collapse; }
.server-table th {
  text-align: left; padding: 12px 16px; font-size: 13px;
  font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--border);
  text-transform: uppercase; letter-spacing: .05em;
}
.server-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.server-table tr:hover { background: var(--surface-soft); }
.check { color: var(--green); font-weight: 700; }

/* ── PLATFORM STRIP ── */
.platform-grid {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.platform-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 24px; border: 1px solid var(--border);
  border-radius: var(--radius-md); min-width: 100px;
  transition: border-color .2s, box-shadow .2s;
  color: var(--text); font-size: 14px; font-weight: 500;
}
.platform-item:hover { border-color: var(--blue); box-shadow: var(--shadow-card); }
.platform-icon { font-size: 28px; }

/* ── TRUST / REVIEWS ── */
.review-card {
  padding: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--white);
}
.review-quote { font-size: 16px; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 16px; }
.review-author { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-meta { font-size: 13px; color: var(--muted); }
.stars { color: var(--orange); letter-spacing: 2px; }

/* ── ABOUT ── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-split img { border-radius: var(--radius-lg); }
.value-list { list-style: none; padding: 0; }
.value-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; align-items: flex-start;
}
.value-icon { font-size: 24px; flex-shrink: 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); color: #b9babd; padding: 64px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.social-icons { display: flex; gap: 16px; margin-top: 20px; }
.social-icons a { color: #b9babd; transition: color .15s; }
.social-icons a:hover { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a {
  display: block; color: #8a8c91; font-size: 14px;
  padding: 4px 0; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 32px; text-align: center; }
.footer-bottom p { font-size: 13px; color: #73757a; margin: 0; }

/* ── FOCUS ── */
:focus-visible { outline: 3px solid rgba(70,135,255,.45); outline-offset: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .feature-tile { grid-template-columns: 1fr; padding: 32px; }
  .feature-tile.reverse { direction: ltr; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .about-split { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .section { padding-block: 56px; }
  .hero { padding: 48px 0 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .desktop-nav, .header-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .server-table { display: block; overflow-x: auto; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-band { margin: 0 16px; padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
