/*
Theme Name: ServerForge
Theme URI: https://serverforge.shop
Description: Dark-mode-first VPS hosting theme for ServerForge Shop.
Version: 1.0.0
Author: ServerForge
Text Domain: serverforge
*/

/* ============================================================
   1. DESIGN TOKENS (CSS variables)
   ============================================================ */
:root {
  /* Brand */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(37, 99, 235, 0.45);

  /* Light mode (default) */
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-hero: #0b1220;
  --bg-hero-2: #111c33;
  --bg-band: #0b1220;
  --bg-footer: #0b1220;

  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: #94a3b8;

  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.10), 0 16px 40px rgba(15, 23, 42, 0.12);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --header-h: 72px;
  --section-pad: 96px;
  --section-pad-sm: 64px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

/* Dark mode */
html.dark {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --bg-elevated: #13203a;
  --bg-hero: #070d1a;
  --bg-hero-2: #0d1730;
  --bg-band: #070d1a;
  --bg-footer: #070d1a;

  --text: #e6edf7;
  --text-muted: #a3b2c9;
  --text-soft: #7c8ba3;
  --text-on-dark: #e6edf7;
  --text-on-dark-muted: #94a3b8;

  --border: #1e2c47;
  --border-strong: #2c3e5f;

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);
  --accent-soft: rgba(37, 99, 235, 0.20);
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { color: var(--text-muted); }
ul, ol { padding-left: 1.2em; }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: var(--section-pad) 0; }
.section-sm { padding: var(--section-pad-sm) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-band); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--section-pad-sm); }
.section-head .eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem; padding: 13px 26px; border-radius: var(--radius-sm);
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #0b1220; }
.btn-light:hover { background: #eef2ff; color: var(--accent); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============================================================
   5. HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand .logo-text b { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s ease;
}
.main-nav a:hover { color: var(--text); background: var(--bg-alt); }
.main-nav a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1.5px solid var(--border); color: var(--text-muted); transition: all 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--border); color: var(--text); place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, var(--bg-hero-2), transparent 60%),
              linear-gradient(180deg, var(--bg-hero) 0%, var(--bg-hero-2) 100%);
  padding: 110px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, var(--accent-glow), transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600;
  color: #93c5fd; background: rgba(37, 99, 235, 0.16); border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.18rem; color: var(--text-on-dark-muted); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 0.85rem; color: var(--text-on-dark-muted); }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  padding: 28px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hero-card .hc-title { color: #fff; font-weight: 700; font-size: 1.05rem; }
.hero-card .hc-badge { font-size: 0.72rem; font-weight: 700; color: #4ade80; background: rgba(74,222,128,0.15); padding: 4px 10px; border-radius: 999px; }
.hc-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hc-row:last-child { border-bottom: none; }
.hc-row .k { color: var(--text-on-dark-muted); font-size: 0.9rem; }
.hc-row .v { color: #fff; font-weight: 600; font-size: 0.95rem; }
.hc-price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.hc-price .amt { font-size: 2.2rem; font-weight: 800; color: #fff; }
.hc-price .per { color: var(--text-on-dark-muted); font-size: 0.9rem; }

/* ============================================================
   7. PRODUCT GRID (VPS plans)
   ============================================================ */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--card-shadow); transition: all 0.25s ease; position: relative;
  display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: var(--accent); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--card-shadow-hover); }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 16px; border-radius: 999px;
}
.plan-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.plan-desc { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 20px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.plan-price .amt { font-size: 2.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.plan-price .per { color: var(--text-soft); font-size: 0.9rem; }
.plan-specs { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-specs li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 0.92rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.plan-specs li:last-child { border-bottom: none; }
.plan-specs li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.plan-specs li b { color: var(--text); font-weight: 600; margin-left: auto; }

/* ============================================================
   8. STEPS (How it works)
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 32px 22px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; font-weight: 800; border-radius: 14px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; }

/* ============================================================
   9. FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 30px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.25s ease; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 14px; margin-bottom: 18px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.94rem; }

/* ============================================================
   10. PRICING (detailed table)
   ============================================================ */
.pricing-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.pricing-table th, .pricing-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.pricing-table thead th { background: var(--bg-alt); color: var(--text); font-weight: 700; position: sticky; top: 0; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--bg-alt); }
.pricing-table td.price { font-weight: 800; color: var(--accent); font-size: 1.05rem; }
.pricing-table .plan-link { font-weight: 600; color: var(--accent); }

/* ============================================================
   11. TESTIMONIALS (dark band)
   ============================================================ */
.testimonials { background: var(--bg-band); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px; }
.testi-stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testi-card blockquote { color: var(--text-on-dark); font-size: 0.98rem; line-height: 1.7; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #60a5fa); display: grid; place-items: center; color: #fff; font-weight: 700; }
.testi-author .name { color: #fff; font-weight: 600; font-size: 0.95rem; }
.testi-author .role { color: var(--text-on-dark-muted); font-size: 0.82rem; }

/* ============================================================
   12. BLOG TEASER
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: var(--accent); }
.blog-thumb { height: 180px; background: linear-gradient(135deg, var(--bg-hero-2), var(--accent-soft)); display: grid; place-items: center; }
.blog-thumb svg { width: 48px; height: 48px; color: var(--accent); opacity: 0.7; }
.blog-body { padding: 24px; }
.blog-meta { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.92rem; margin-bottom: 14px; }
.blog-card .read-more { font-weight: 600; font-size: 0.9rem; }

/* ============================================================
   13. FAQ (2 columns)
   ============================================================ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-intro h2 { margin-bottom: 16px; }
.faq-intro p { margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-weight: 600; font-size: 1rem; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .chev { transition: transform 0.25s ease; color: var(--accent); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 22px 20px; font-size: 0.95rem; color: var(--text-muted); }

/* ============================================================
   14. NEWSLETTER / CTA
   ============================================================ */
.newsletter { background: linear-gradient(135deg, var(--bg-hero), var(--bg-hero-2)); border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 250px at 50% 0%, var(--accent-glow), transparent 70%); opacity: 0.4; }
.newsletter .container { position: relative; z-index: 1; }
.newsletter h2 { color: #fff; margin-bottom: 14px; }
.newsletter p { color: var(--text-on-dark-muted); max-width: 520px; margin: 0 auto 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; }
.newsletter-form input::placeholder { color: var(--text-on-dark-muted); }

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer { background: var(--bg-footer); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.92rem; max-width: 300px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--text-on-dark-muted); transition: all 0.2s ease; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-on-dark-muted); font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-on-dark-muted); font-size: 0.88rem; }
.pay-badges { display: flex; gap: 10px; align-items: center; }
.pay-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 6px 12px; font-size: 0.78rem; font-weight: 700; color: #e2e8f0; }

/* ============================================================
   16. COOKIE BAR
   ============================================================ */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15); padding: 16px 0; transform: translateY(110%); transition: transform 0.35s ease;
}
.cookie-bar.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 0.88rem; color: var(--text-muted); max-width: 640px; }
.cookie-inner p a { font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ============================================================
   17. PAGE HEADER (inner pages)
   ============================================================ */
.page-hero { background: linear-gradient(180deg, var(--bg-hero), var(--bg-hero-2)); padding: 72px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: var(--text-on-dark-muted); max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-on-dark-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-on-dark-muted); }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   18. CONTENT / POLICY PAGES
   ============================================================ */
.content-page { max-width: var(--container-narrow); margin: 0 auto; }
.content-page h2 { margin: 36px 0 14px; font-size: 1.5rem; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { margin: 24px 0 10px; font-size: 1.15rem; }
.content-page p { margin-bottom: 16px; }
.content-page ul, .content-page ol { margin-bottom: 16px; }
.content-page li { margin-bottom: 8px; }
.content-page a { font-weight: 500; }
.content-page .updated { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

/* ============================================================
   19. PRODUCT DETAIL
   ============================================================ */
.product-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.product-main h1 { margin-bottom: 12px; }
.product-tagline { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.spec-table th, .spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.95rem; }
.spec-table th { color: var(--text-soft); font-weight: 500; width: 40%; }
.spec-table td { color: var(--text); font-weight: 600; }
.product-features { list-style: none; padding: 0; margin: 0 0 32px; }
.product-features li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text-muted); }
.product-features li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.product-buy { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--card-shadow); }
.product-buy .pb-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.product-buy .pb-price .amt { font-size: 2.6rem; font-weight: 800; color: var(--text); }
.product-buy .pb-price .per { color: var(--text-soft); }
.product-buy .pb-note { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 22px; }
.product-buy .pb-specs { list-style: none; padding: 0; margin: 0 0 24px; }
.product-buy .pb-specs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.product-buy .pb-specs li span:first-child { color: var(--text-soft); }
.product-buy .pb-specs li span:last-child { color: var(--text); font-weight: 600; }
.product-buy .btn { margin-bottom: 12px; }
.product-buy .pb-trust { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; color: var(--text-soft); margin-top: 16px; }
.product-buy .pb-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================
   20. CHECKOUT (step-by-step)
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: start; }
.checkout-steps { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step-dot { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-dot:last-child { flex: 0; }
.step-dot .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--text-soft); font-weight: 700; border: 2px solid var(--border); flex-shrink: 0; transition: all 0.25s ease; }
.step-dot .dot-lbl { font-size: 0.85rem; color: var(--text-soft); font-weight: 600; }
.step-dot.active .dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-dot.active .dot-lbl { color: var(--text); }
.step-dot.done .dot { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.step-dot .line { flex: 1; height: 2px; background: var(--border); margin: 0 12px; }
.step-dot.done .line { background: var(--accent); }

.checkout-step { display: none; }
.checkout-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.checkout-step h3 { margin-bottom: 6px; }
.checkout-step .step-desc { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field .hint { font-size: 0.78rem; color: var(--text-soft); }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .rc-body { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px; text-align: center; transition: all 0.2s ease; cursor: pointer; }
.radio-card input:checked + .rc-body { border-color: var(--accent); background: var(--accent-soft); }
.radio-card .rc-body .rc-title { font-weight: 700; margin-bottom: 4px; }
.radio-card .rc-body .rc-sub { font-size: 0.82rem; color: var(--text-soft); }

.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pay-method { position: relative; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method .pm-body { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px; display: flex; align-items: center; gap: 14px; transition: all 0.2s ease; cursor: pointer; }
.pay-method input:checked + .pm-body { border-color: var(--accent); background: var(--accent-soft); }
.pay-method .pm-icon { width: 44px; height: 30px; border-radius: 6px; background: var(--bg-alt); display: grid; place-items: center; font-weight: 800; font-size: 0.7rem; color: var(--text); }
.pay-method .pm-body .pm-name { font-weight: 700; }
.pay-method .pm-body .pm-sub { font-size: 0.8rem; color: var(--text-soft); }

.checkout-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }

/* Order summary */
.order-summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--card-shadow); }
.order-summary h3 { font-size: 1.1rem; margin-bottom: 20px; }
.os-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.os-item .k { color: var(--text-soft); }
.os-item .v { color: var(--text); font-weight: 600; }
.os-total { display: flex; justify-content: space-between; padding-top: 18px; margin-top: 6px; }
.os-total .k { font-weight: 700; color: var(--text); }
.os-total .v { font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.os-trust { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-soft); margin-top: 20px; }
.os-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* Success screen */
.checkout-success { text-align: center; padding: 40px 20px; }
.success-icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: rgba(74,222,128,0.15); display: grid; place-items: center; }
.success-icon svg { width: 44px; height: 44px; color: #4ade80; }
.checkout-success h2 { margin-bottom: 14px; }
.checkout-success p { max-width: 460px; margin: 0 auto 28px; }

/* ============================================================
   21. CONTACT
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 28px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-item .ci-icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 12px; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item .ci-label { font-size: 0.82rem; color: var(--text-soft); }
.contact-item .ci-value { font-weight: 600; color: var(--text); }
.contact-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* ============================================================
   22. TUTORIALS / DOCS
   ============================================================ */
.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tutorial-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all 0.25s ease; }
.tutorial-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.tutorial-card .t-cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.tutorial-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.tutorial-card p { font-size: 0.92rem; margin-bottom: 14px; }
.tutorial-card .t-meta { font-size: 0.8rem; color: var(--text-soft); }

/* ============================================================
   23. API DOCS
   ============================================================ */
.api-endpoint { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; overflow: hidden; }
.api-endpoint .api-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.api-method { font-size: 0.78rem; font-weight: 800; padding: 5px 12px; border-radius: 6px; font-family: var(--mono); }
.api-method.get { background: rgba(74,222,128,0.15); color: #4ade80; }
.api-method.post { background: rgba(37,99,235,0.15); color: #60a5fa; }
.api-method.delete { background: rgba(248,113,113,0.15); color: #f87171; }
.api-path { font-family: var(--mono); font-size: 0.92rem; color: var(--text); }
.api-endpoint .api-desc { padding: 0 20px 18px; font-size: 0.9rem; color: var(--text-muted); }
.code-block { background: var(--bg-hero); border-radius: var(--radius-sm); padding: 20px; overflow-x: auto; margin: 16px 0; }
.code-block code { font-family: var(--mono); font-size: 0.85rem; color: #e2e8f0; line-height: 1.7; }

/* ============================================================
   24. ABOUT / INFRASTRUCTURE
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-box { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.stat-box .num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-box .lbl { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

.datacenter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dc-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dc-card .dc-flag { font-size: 2rem; margin-bottom: 12px; }
.dc-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.dc-card .dc-loc { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 16px; }
.dc-card .dc-specs { list-style: none; padding: 0; }
.dc-card .dc-specs li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.dc-card .dc-specs li:last-child { border-bottom: none; }
.dc-card .dc-specs li span:first-child { color: var(--text-soft); }
.dc-card .dc-specs li span:last-child { color: var(--text); font-weight: 600; }

/* ============================================================
   25. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .plans-grid, .features-grid, .testi-grid, .blog-grid, .tutorial-grid, .datacenter-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-layout, .checkout-layout, .contact-layout, .about-grid, .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .product-buy, .order-summary { position: static; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; --section-pad-sm: 40px; --header-h: 64px; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; transform: translateY(-140%); transition: transform 0.3s ease; box-shadow: var(--card-shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 14px; border-radius: 8px; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .plans-grid, .features-grid, .testi-grid, .blog-grid, .tutorial-grid, .datacenter-grid, .steps-grid, .radio-cards, .pay-methods, .form-grid, .about-stats { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 80px; }
  .hero-stats { gap: 24px; }
  .newsletter { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 32px; }
  .step-dot .dot-lbl { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .plan-card { padding: 22px; }
}
