/* ==========================================================================
   FlyBird Host — style.css
   Dark, gaming-inspired theme with emerald → cyan gradient accents.
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-soft: #0a101d;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7edf7;
  --muted: #96a3b8;
  --brand: #83B8FF;
  --brand-2: #5B9EFF;
  --amber: #fbbf24;
  --grad: linear-gradient(120deg, #A9D2FF 0%, #5B9EFF 100%);
  --grad-soft: linear-gradient(120deg, rgba(131, 184, 255, 0.14), rgba(91, 158, 255, 0.14));
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code {
  font-family: var(--mono);
  background: rgba(131, 184, 255, 0.14);
  border: 1px solid rgba(131, 184, 255, 0.3);
  color: var(--brand);
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.92em;
}

section[id] { scroll-margin-top: 86px; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(860px, 92%); }

.section { padding: 104px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--grad-soft);
  border: 1px solid rgba(131, 184, 255, 0.35);
  color: var(--brand);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: 0.01em; }
.lead { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }

.btn-primary {
  background: var(--grad);
  color: #071627;
  box-shadow: 0 10px 30px rgba(91, 158, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(91, 158, 255, 0.42); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(131, 184, 255, 0.55); color: var(--brand); transform: translateY(-2px); }

.btn-dark { background: #0b1322; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.btn-dark:hover { transform: translateY(-2px); }

.btn-outline { border-color: rgba(6, 20, 14, 0.55); color: #071627; }
.btn-outline:hover { background: rgba(7, 22, 39, 0.1); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 11, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-icon { width: 30px; height: 30px; }
.logo-text { font-size: 1.28rem; font-weight: 900; letter-spacing: 0.01em; }
.logo-text em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.logo-img { height: 34px; width: auto; }
.footer .logo-img { height: 30px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu > a:not(.btn) {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.nav-menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.22s ease;
}
.nav-menu > a:not(.btn):hover { color: var(--text); }
.nav-menu > a:not(.btn):hover::after { width: 100%; }
.nav-menu .nav-cta { padding: 9px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background:
    radial-gradient(closest-side, rgba(131, 184, 255, 0.16), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(91, 158, 255, 0.13), transparent);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.badge {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 32px; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: rgba(150, 163, 184, 0.75); }

/* --- Hero visual: pixel cube + chips --- */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.scene { perspective: 900px; position: relative; }
.cube {
  position: relative;
  width: 160px;
  height: 160px;
  transform-style: preserve-3d;
  transform: rotateX(-28deg) rotateY(-45deg);
  animation: cubeFloat 7s ease-in-out infinite;
}
@keyframes cubeFloat {
  0%, 100% { transform: rotateX(-28deg) rotateY(-45deg) translateY(0); }
  50% { transform: rotateX(-28deg) rotateY(-45deg) translateY(-16px); }
}
.face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.14) 50%, transparent 50%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 50%, transparent 50%);
  background-size: 22.85px 22.85px;
}
.face.top {
  transform: rotateX(90deg) translateZ(80px);
  background: linear-gradient(135deg, #a3e635, #65a30d);
}
.face.front {
  transform: translateZ(80px);
  background: linear-gradient(180deg, #65a30d 0 25%, #a16207 25%, #78350f 100%);
}
.face.side {
  transform: rotateY(90deg) translateZ(80px);
  background: linear-gradient(180deg, #4d7c0f 0 25%, #92400e 25%, #713f12 100%);
  filter: brightness(0.82);
}
.cube-shadow {
  position: absolute;
  left: 50%;
  bottom: -64px;
  width: 210px;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  filter: blur(6px);
}

.hero-chip {
  position: absolute;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(10, 16, 29, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: chipFloat 5s ease-in-out infinite;
}
.hero-chip-1 { top: 8%; right: 2%; animation-delay: 0.4s; border-color: rgba(251, 191, 36, 0.4); }
.hero-chip-2 { bottom: 18%; right: -2%; animation-delay: 1.3s; border-color: rgba(131, 184, 255, 0.4); }
.hero-chip-3 { top: 34%; left: -4%; animation-delay: 2.1s; border-color: rgba(91, 158, 255, 0.4); }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Promo bar
   ========================================================================== */
.promo-bar {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.12), rgba(249, 115, 22, 0.1));
  border-top: 1px solid rgba(251, 191, 36, 0.28);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  padding: 13px 0;
}
.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.96rem;
  text-align: center;
}
.promo-inner b { color: var(--amber); }
.promo-inner code { border-color: rgba(251, 191, 36, 0.45); color: var(--amber); background: rgba(251, 191, 36, 0.1); }
.promo-inner a { color: var(--amber); font-weight: 700; }
.promo-inner a:hover { text-decoration: underline; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding: 64px 0 8px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  padding: 30px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.stat:hover { border-color: rgba(131, 184, 255, 0.4); background: var(--bg-card-hover); }
.stat-num {
  font-size: 2.35rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.15;
}
.stat-unit { font-size: 1.2rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 0.93rem; margin-top: 4px; }

/* ==========================================================================
   Products
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 38px 34px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(131, 184, 255, 0.45);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}
.product-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.product-icon.mc { background: linear-gradient(135deg, rgba(101, 163, 13, 0.25), rgba(34, 197, 94, 0.12)); }
.product-icon.vps { background: linear-gradient(135deg, rgba(91, 158, 255, 0.2), rgba(59, 130, 246, 0.12)); }
.product-card h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 12px; }
.product-card > p { color: var(--muted); font-size: 0.98rem; }
.product-points { margin: 20px 0 26px; display: grid; gap: 9px; }
.product-points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--text);
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}
.plan-card.featured {
  border-color: rgba(131, 184, 255, 0.5);
  background: linear-gradient(180deg, rgba(131, 184, 255, 0.07), rgba(91, 158, 255, 0.04) 45%, var(--bg-card));
  box-shadow: 0 22px 60px rgba(91, 158, 255, 0.14);
}
.plan-card.featured:hover { box-shadow: 0 26px 70px rgba(91, 158, 255, 0.24); }
.plan-card.promo { border-color: rgba(251, 191, 36, 0.45); }
.plan-card.promo:hover { box-shadow: 0 22px 60px rgba(251, 191, 36, 0.12); }

.plan-head { margin-bottom: 20px; }
.plan-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}
.plan-tag.hot { background: var(--grad-soft); border-color: rgba(131, 184, 255, 0.4); color: var(--brand); }
.plan-tag.deal { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.4); color: var(--amber); }

.plan-head h3 { font-size: 1.3rem; font-weight: 900; }
.plan-cpu { color: var(--muted); font-size: 0.92rem; margin-top: 6px; line-height: 1.55; }
.plan-cpu span { font-size: 0.84rem; color: rgba(150, 163, 184, 0.75); }

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.plan-price .from { font-size: 0.9rem; color: var(--muted); }
.plan-price .amount {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.plan-card.promo .plan-price .amount {
  background: linear-gradient(120deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
}
.plan-price .per { font-size: 0.9rem; color: var(--muted); }

.plan-list { display: grid; gap: 10px; margin-bottom: 26px; }
.plan-list li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.94rem;
  color: var(--muted);
  padding-left: 26px;
  position: relative;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  flex: none;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-list li strong { color: var(--text); font-weight: 700; }
.plan-list li em { font-style: normal; font-size: 0.85rem; color: rgba(150, 163, 184, 0.7); }

.plan-btn { margin-top: auto; width: 100%; }
.plan-promo-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--amber);
  text-align: center;
}

.plans-foot { text-align: center; color: var(--muted); font-size: 0.94rem; margin-top: 34px; }

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(131, 184, 255, 0.4); background: var(--bg-card-hover); }
.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--grad-soft);
  border: 1px solid rgba(131, 184, 255, 0.28);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* ==========================================================================
   VPS
   ========================================================================== */
.vps-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.vps-copy .lead { max-width: 520px; }
.vps-points { margin: 26px 0 30px; display: grid; gap: 11px; }
.vps-points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.97rem;
}
.vps-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vps-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.terminal {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-family: var(--mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #83B8FF; }
.terminal-title { margin-left: 10px; font-size: 0.8rem; color: var(--muted); }
.terminal-body { padding: 22px 20px; font-size: 0.86rem; line-height: 1.9; }
.terminal-body p { white-space: nowrap; overflow: hidden; }
.terminal-body .prompt { color: var(--brand); font-weight: 700; margin-right: 8px; }
.terminal-body .ok { color: #b6dcff; }
.terminal-body .done { color: var(--amber); font-weight: 700; }
.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--brand);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  text-align: center;
  padding: 38px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-5px); border-color: rgba(131, 184, 255, 0.4); }
.step-num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.9;
}
.step h3 { font-size: 1.15rem; font-weight: 900; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.open { border-color: rgba(131, 184, 255, 0.45); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(131, 184, 255, 0.45);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { padding: 96px 0; }
.cta-inner {
  position: relative;
  text-align: center;
  background: var(--grad);
  border-radius: 26px;
  padding: 68px 34px;
  color: #071627;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(91, 158, 255, 0.3);
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.14), transparent 45%);
  pointer-events: none;
}
.cta-inner h2 { position: relative; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 900; }
.cta-inner p { position: relative; margin: 14px auto 30px; max-width: 560px; font-weight: 500; }
.cta-inner code {
  position: relative;
  background: rgba(7, 22, 39, 0.1);
  border-color: rgba(7, 22, 39, 0.35);
  color: #071627;
  font-weight: 700;
}
.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #060910;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
.footer-col h4 {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 5px 0;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: rgba(150, 163, 184, 0.7);
  font-size: 0.86rem;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { min-height: 330px; margin-top: 10px; }
  .vps-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .section { padding: 78px 0; }
  .hero { padding: 138px 0 72px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-card.featured { order: -1; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(7, 11, 20, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 18px 5% 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu > a:not(.btn) { padding: 13px 10px; font-size: 1.02rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-menu > a:not(.btn)::after { display: none; }
  .nav-menu .nav-cta { margin-top: 14px; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 22px 10px; }
  .stat-num { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 300px; }
  .cube { width: 120px; height: 120px; }
  .face.top { transform: rotateX(90deg) translateZ(60px); }
  .face.front { transform: translateZ(60px); }
  .face.side { transform: rotateY(90deg) translateZ(60px); }
  .face::after { background-size: 17.14px 17.14px; }
  .hero-chip { font-size: 0.78rem; padding: 6px 12px; }
  .btn-lg { padding: 13px 24px; font-size: 0.98rem; }
  .cta-inner { padding: 48px 22px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Configurator page (configure.html)
   ========================================================================== */
.nav-menu > a.active { color: var(--brand); }
.nav-menu > a.active::after { width: 100%; }

.hero-note-link { color: var(--brand); font-weight: 700; }
.hero-note-link:hover { text-decoration: underline; }

.plans-foot .btn { margin-top: 18px; }

.page-head { padding: 158px 0 30px; text-align: center; position: relative; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; margin-bottom: 14px; }
.page-head .lead { max-width: 640px; margin: 0 auto; }

.cfg-wrap { padding: 30px 0 104px; }
.cfg-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: start; }

.cfg-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}

.cfg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.cfg-tab {
  position: relative;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.cfg-tab:hover { transform: translateY(-2px); border-color: rgba(131, 184, 255, 0.4); }
.cfg-tab.active {
  border-color: rgba(131, 184, 255, 0.65);
  background: var(--grad-soft);
  box-shadow: 0 10px 30px rgba(91, 158, 255, 0.15);
}
.cfg-tab > *, .faq-q > *, .nav-toggle > * { pointer-events: none; }
.cfg-tab-name { display: block; font-weight: 900; font-size: 1.02rem; }
.cfg-tab-sub { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.cfg-tab.active .cfg-tab-sub { color: rgba(231, 237, 247, 0.85); }
.tab-deal {
  position: absolute;
  top: -11px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(120deg, #fbbf24, #fb923c);
  color: #201200;
  padding: 3px 10px;
  border-radius: 999px;
}

.cfg-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.presets-label { font-size: 0.88rem; color: var(--muted); }
.cfg-presets button {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.cfg-presets button:hover { border-color: rgba(131, 184, 255, 0.5); color: var(--brand); transform: translateY(-1px); }

.cfg-control { padding: 22px 0; }
.cfg-control + .cfg-control { border-top: 1px solid var(--border); }
.cfg-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.cfg-label { display: flex; align-items: center; gap: 13px; }
.cfg-icon {
  font-size: 1.35rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(131, 184, 255, 0.28);
  border-radius: 12px;
}
.cfg-label h4 { font-size: 1.02rem; font-weight: 700; }
.cfg-unit { font-size: 0.82rem; color: var(--muted); }
.cfg-unit b { color: var(--brand); font-weight: 700; }
.cfg-value {
  font-weight: 900;
  font-size: 1.18rem;
  min-width: 92px;
  text-align: right;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}
.cfg-range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(150, 163, 184, 0.7);
}
.cfg-sub { color: var(--brand); font-weight: 700; font-size: 0.86rem; }

/* --- Range slider --- */
.cfg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, #A9D2FF, #5B9EFF) no-repeat, rgba(255, 255, 255, 0.09);
  background-size: var(--fill, 0%) 100%, 100% 100%;
}
.cfg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a101d;
  border: 3px solid #83B8FF;
  box-shadow: 0 4px 14px rgba(131, 184, 255, 0.4);
  cursor: grab;
  transition: transform 0.15s ease;
}
.cfg-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cfg-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.cfg-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0a101d;
  border: 3px solid #83B8FF;
  box-shadow: 0 4px 14px rgba(131, 184, 255, 0.4);
  cursor: grab;
}
.cfg-slider::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.cfg-slider::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #A9D2FF, #5B9EFF); }
.cfg-slider:focus-visible { box-shadow: 0 0 0 3px rgba(131, 184, 255, 0.35); }

.cfg-included {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.cfg-included span {
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* --- Summary card --- */
.cfg-summary {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, rgba(131, 184, 255, 0.06), transparent 32%), var(--bg-card);
  border: 1px solid rgba(131, 184, 255, 0.35);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.cfg-summary-head { padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); }
.cfg-summary-head h3 { font-size: 1.5rem; font-weight: 900; margin: 10px 0 4px; }
.sum-platform { font-size: 0.88rem; color: var(--muted); }
.sum-loc { font-size: 0.85rem; color: var(--brand); margin-top: 8px; font-weight: 500; }

.sum-lines { margin: 18px 0; display: grid; gap: 13px; }
.sum-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-lines .l { color: var(--text); font-size: 0.94rem; font-weight: 500; }
.sum-lines em { display: block; font-style: normal; font-size: 0.78rem; color: rgba(150, 163, 184, 0.65); margin-top: 2px; }
.sum-lines b { font-weight: 700; white-space: nowrap; }

.sum-promo { display: flex; gap: 10px; margin: 4px 0 10px; }
.sum-promo input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.sum-promo input:focus { border-color: rgba(131, 184, 255, 0.55); }
.sum-promo input::placeholder { color: rgba(150, 163, 184, 0.55); }
.sum-promo .btn { padding: 10px 16px; font-size: 0.88rem; }
.sum-promo-msg { font-size: 0.82rem; min-height: 1.3em; margin-bottom: 10px; }
.sum-promo-msg.ok { color: var(--brand); }
.sum-promo-msg.err { color: #f87171; }

.sum-total { padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.14); }
.sum-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--muted); margin-bottom: 6px; }
.sum-row.discount { color: var(--amber); font-weight: 700; }
.sum-final { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.sum-final .from { font-size: 0.9rem; color: var(--muted); }
.sum-final .amount {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sum-daily { font-size: 0.82rem; color: rgba(150, 163, 184, 0.7); margin-top: 2px; }

.cfg-summary .plan-btn { width: 100%; }
.cfg-summary .plan-btn + .plan-btn { margin-top: 10px; }
.sum-note { margin-top: 16px; font-size: 0.78rem; color: rgba(150, 163, 184, 0.65); line-height: 1.7; }

@media (max-width: 1024px) {
  .cfg-grid { grid-template-columns: 1fr; }
  .cfg-summary { position: static; }
}

@media (max-width: 720px) {
  .cfg-tabs { grid-template-columns: 1fr; }
  .cfg-panel { padding: 22px; }
  .page-head { padding-top: 138px; }
  .cfg-value { min-width: 78px; font-size: 1.05rem; }
}

/* ==========================================================================
   About page (about.html)
   ========================================================================== */
.about-head .lead { font-size: 1.08rem; }
.about-en {
  color: rgba(150, 163, 184, 0.65);
  font-size: 0.9rem;
  font-style: italic;
  max-width: 680px;
  margin: 14px auto 0;
}

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px dashed rgba(131, 184, 255, 0.55);
  background: var(--grad-soft);
  font-size: 0.93rem;
  color: var(--text);
}
.ds-badge strong { color: var(--brand); }

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.story-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; margin: 14px 0 20px; }
.story-copy p { color: var(--muted); margin-bottom: 16px; }
.story-copy p strong { color: var(--brand); }

.story-card {
  background: linear-gradient(180deg, rgba(131, 184, 255, 0.07), transparent 40%), var(--bg-card);
  border: 1px solid rgba(131, 184, 255, 0.3);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.founded { padding-bottom: 24px; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); text-align: center; }
.founded-year {
  display: block;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.founded-month { color: var(--muted); font-size: 0.95rem; }
.story-facts { margin-top: 24px; display: grid; gap: 14px; }
.story-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.story-facts li span { font-size: 1.15rem; }

.feature-en {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(131, 184, 255, 0.8);
  margin-top: 3px;
}

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(131, 184, 255, 0.75), rgba(91, 158, 255, 0.4));
}
.tl-item { position: relative; padding: 0 0 36px 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px rgba(131, 184, 255, 0.14);
}
.tl-date {
  display: inline-block;
  font-weight: 900;
  font-size: 0.88rem;
  color: var(--brand);
  background: var(--grad-soft);
  border: 1px solid rgba(131, 184, 255, 0.35);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tl-item h3 { font-size: 1.12rem; font-weight: 900; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: 0.96rem; }

.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.region-card {
  text-align: center;
  padding: 38px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.region-card:hover { transform: translateY(-5px); border-color: rgba(131, 184, 255, 0.4); background: var(--bg-card-hover); }
.region-flag { font-size: 2.7rem; line-height: 1; margin-bottom: 16px; }
.region-card h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 8px; }
.region-card h3 span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(131, 184, 255, 0.8);
  margin-top: 3px;
}
.region-card p { color: var(--muted); font-size: 0.93rem; }

@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .regions-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

/* ==========================================================================
   Tutorials (tutorials.html + article pages)
   ========================================================================== */
.tut-hero { padding: 152px 0 34px; }
.tut-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 900; margin-bottom: 16px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--brand); }
.crumbs span { margin: 0 8px; color: rgba(150, 163, 184, 0.5); }
.tut-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.meta-chip {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 999px;
}
.tut-hero .lead { max-width: 700px; }

.tut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tut-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tut-card:hover { transform: translateY(-5px); border-color: rgba(131, 184, 255, 0.45); background: var(--bg-card-hover); }
.tut-emoji { font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.tut-card h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 8px; }
.tut-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.tut-card .tut-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 0.8rem;
  color: rgba(150, 163, 184, 0.75);
}
.tut-card .go { color: var(--brand); font-weight: 700; }

.article { padding-top: 20px; padding-bottom: 90px; }
.article-wrap { width: min(1280px, 94%); max-width: none; }
.article-body > p, .article-body > ul, .article-body > ol { max-width: 820px; }
.step p, .step ul, .step ol { max-width: 800px; }
.callout { max-width: 880px; }
.article-body h2 { font-size: 1.45rem; font-weight: 900; margin: 44px 0 18px; }
.article-body p { color: var(--muted); margin-bottom: 14px; }
.article-body p strong, .article-body li strong { color: var(--text); }
.article-body ul, .article-body ol { color: var(--muted); padding-left: 22px; margin-bottom: 14px; display: grid; gap: 8px; }
.article-body code { font-size: 0.88em; }

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 18px 0;
}
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid rgba(131, 184, 255, 0.35);
  color: var(--brand);
  font-weight: 900;
  font-size: 0.95rem;
}
.step h3 { font-size: 1.08rem; font-weight: 800; }
.step p { color: var(--muted); font-size: 0.96rem; margin-bottom: 8px; }
.step p b { color: var(--text); }

.shot {
  margin: 16px 0 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0a0f1a;
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.callout {
  border-left: 3px solid var(--brand);
  background: linear-gradient(120deg, rgba(131, 184, 255, 0.1), rgba(91, 158, 255, 0.05));
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  font-size: 0.94rem;
  color: var(--text);
  margin: 18px 0;
}
.callout.warn { border-left-color: var(--amber); background: linear-gradient(120deg, rgba(251, 191, 36, 0.1), rgba(251, 146, 60, 0.04)); }
.callout b { color: var(--brand); }
.callout.warn b { color: var(--amber); }

.tut-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.tut-nav a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tut-nav a:hover { border-color: rgba(131, 184, 255, 0.45); transform: translateY(-3px); }
.tut-nav .dir { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.tut-nav .ttl { font-weight: 800; margin-top: 4px; display: block; }
.tut-nav a.next { text-align: right; }

@media (max-width: 900px) {
  .tut-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tut-nav { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Mobile optimization
   ========================================================================== */
* { -webkit-tap-highlight-color: transparent; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 620px; }

code { overflow-wrap: anywhere; }

@media (max-width: 768px) {
  /* 16px 以上避免 iOS 點擊輸入框時自動放大頁面 */
  .sum-promo input { font-size: 16px; }
  .sum-promo .btn { padding: 10px 14px; }
}

@media (max-width: 640px) {
  .article-wrap { width: 92%; }

  /* 主要按鈕群組手機上全寬，方便點擊 */
  .hero-actions .btn, .cta-actions .btn, .vps-actions .btn { flex: 1 1 100%; }

  /* 教學文章 */
  .step { padding: 20px 16px; }
  .step-head { gap: 10px; }
  .step-num { width: 30px; height: 30px; font-size: 0.85rem; }
  .step h3 { font-size: 1rem; }
  .shot { border-radius: 10px; }
  .shot figcaption { font-size: 0.76rem; padding: 8px 12px; }
  .tut-meta { gap: 8px; }
  .meta-chip { font-size: 0.75rem; padding: 4px 10px; }
  .callout { padding: 12px 14px; font-size: 0.9rem; }
  .tut-nav a { padding: 14px 16px; }
  .crumbs { font-size: 0.8rem; }
  .article-body table { font-size: 0.85rem; }
  .article-body h2 { font-size: 1.25rem; margin: 34px 0 14px; }
  .section { padding: 64px 0; }
  .tut-hero { padding-top: 126px; }
  .article { padding-bottom: 60px; }

  /* 卡片與元件收緊 */
  .plan-card { padding: 26px 20px; }
  .tut-card { padding: 22px 18px; }
  .region-card { padding: 28px 20px; }
  .feature { padding: 22px 18px; }
  .product-card { padding: 28px 20px; }
  .cfg-panel { padding: 16px 14px; }
  .cfg-tab { padding: 12px 14px; }
  .cfg-summary { padding: 22px 18px; }
  .sum-final .amount { font-size: 2rem; }
  .cfg-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  .founded-year { font-size: 3.2rem; }
  .story-card { padding: 28px 22px; }
  .faq-q { padding: 16px 16px; font-size: 0.95rem; }
  .hero-sub { font-size: 1rem; }
  .hero-badges .badge { font-size: 0.78rem; padding: 4px 11px; }
  .plan-price .amount { font-size: 1.9rem; }
  .promo-inner { font-size: 0.88rem; }
}

@media (max-width: 560px) {
  .hero-chip-2 { right: 2%; }
  .hero-chip-3 { left: 2%; }
  .cfg-presets .presets-label { width: 100%; }
}

/* ==========================================================================
   Panel features page (panel.html)
   ========================================================================== */
.pf-hero { padding: 152px 0 36px; }
.pf-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 900; margin-bottom: 16px; }
.pf-hero .lead { max-width: 720px; }

.pf-row {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.pf-row:first-of-type { border-top: none; }
.pf-media { order: 1; }
.pf-copy { order: 2; }
.pf-row.flip .pf-media { order: 2; }
.pf-row.flip .pf-copy { order: 1; }

.pf-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.pf-num {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad);
  color: #071627;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(91, 158, 255, 0.3);
}
.pf-copy h2 { font-size: 1.35rem; font-weight: 900; line-height: 1.35; }
.pf-copy h2 span { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(131, 184, 255, 0.85); margin-top: 3px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pf-chips .chip { font-size: 0.76rem; }

/* 通用膠囊標籤（來源、配置等） */
.chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(131, 184, 255, 0.12);
  border: 1px solid rgba(131, 184, 255, 0.3);
  color: var(--brand);
  white-space: nowrap;
}
.pf-points { display: grid; gap: 9px; margin-bottom: 20px; }
.pf-points li {
  position: relative;
  padding-left: 25px;
  font-size: 0.94rem;
  color: var(--muted);
}
.pf-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pf-points li b { color: var(--text); }
.pf-link { font-size: 0.9rem; font-weight: 700; color: var(--brand); }
.pf-link:hover { text-decoration: underline; }

.cmp-head { max-width: 760px; margin: 0 auto 40px; }

/* BGP band (vps.html) */
.bgp-band {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(180deg, rgba(131, 184, 255, 0.07), transparent 45%), var(--bg-card);
  border: 1px solid rgba(131, 184, 255, 0.32);
  border-radius: 22px;
  padding: 42px 44px;
  box-shadow: var(--shadow);
}
.bgp-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; margin: 14px 0 14px; }
.bgp-copy > p { color: var(--muted); margin-bottom: 16px; }
.bgp-copy > p strong { color: var(--text); }
@media (max-width: 1024px) {
  .bgp-band { grid-template-columns: 1fr; padding: 30px 24px; gap: 30px; }
}

/* ==========================================================================
   Contact page (contact.html)
   ========================================================================== */
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.product-icon.sup { background: linear-gradient(135deg, rgba(43, 119, 226, 0.22), rgba(34, 211, 238, 0.12)); }
.product-icon.abuse { background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(249, 115, 22, 0.12)); }
.product-icon.dc { background: linear-gradient(135deg, rgba(124, 139, 255, 0.22), rgba(43, 119, 226, 0.12)); }
.contact-mail {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--grad-soft);
  border: 1px solid rgba(131, 184, 255, 0.3);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.contact-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

.ticket-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  background: linear-gradient(180deg, rgba(131, 184, 255, 0.07), transparent 50%), var(--bg-card);
  border: 1px solid rgba(131, 184, 255, 0.32);
  border-radius: 20px;
  padding: 34px 38px;
  box-shadow: var(--shadow);
}
.ticket-band h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 8px; }
.ticket-band p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .ticket-band { padding: 26px 22px; }
  .ticket-band .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Theme toggle + light mode
   ========================================================================== */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  margin-left: 12px;
  flex: none;
}
.theme-toggle:hover { border-color: rgba(131, 184, 255, 0.55); }

/* ----- Light theme ----- */
html[data-theme="light"] {
  --bg: #f2f6fb;
  --bg-soft: #e9eef6;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f8fc;
  --border: rgba(18, 36, 66, 0.14);
  --text: #17263f;
  --muted: #5a6b84;
  --brand: #2b77e2;
  --brand-2: #1d5fc4;
  --grad: linear-gradient(120deg, #7cb8ff 0%, #2b77e2 100%);
  --grad-soft: linear-gradient(120deg, rgba(43, 119, 226, 0.1), rgba(29, 95, 196, 0.08));
  --shadow: 0 14px 40px rgba(23, 38, 63, 0.12);
}

html[data-theme="light"] body { background: var(--bg); color: var(--text); }
html[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(23, 38, 63, 0.08);
}
html[data-theme="light"] .nav-menu { background: none; }
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .theme-toggle { background: rgba(18, 36, 66, 0.05); }
html[data-theme="light"] .nav-toggle span { background: var(--text); }

html[data-theme="light"] .badge,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .sum-promo input,
html[data-theme="light"] .meta-chip,
html[data-theme="light"] .wiz-opt,
html[data-theme="light"] .cfg-presets button,
html[data-theme="light"] .cfg-tab,
html[data-theme="light"] .cfg-included span,
html[data-theme="light"] .table-scroll { background-color: rgba(18, 36, 66, 0.04); }

html[data-theme="light"] .hero-chip { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .hero-chip-2 { border-color: rgba(43, 119, 226, 0.4); }
html[data-theme="light"] .hero-chip-3 { border-color: rgba(43, 119, 226, 0.4); }

html[data-theme="light"] .eyebrow { border-color: rgba(43, 119, 226, 0.35); }
html[data-theme="light"] .chip {
  background: rgba(43, 119, 226, 0.1);
  border-color: rgba(43, 119, 226, 0.3);
  color: #1d5fc4;
}
html[data-theme="light"] .stat:hover,
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .tut-card:hover,
html[data-theme="light"] .region-card:hover,
html[data-theme="light"] .step:hover { border-color: rgba(43, 119, 226, 0.45); }

html[data-theme="light"] .plan-card.featured {
  border-color: rgba(43, 119, 226, 0.55);
  background: linear-gradient(180deg, rgba(43, 119, 226, 0.07), rgba(43, 119, 226, 0.03) 45%, var(--bg-card));
  box-shadow: 0 18px 50px rgba(43, 119, 226, 0.14);
}
html[data-theme="light"] .plan-tag.hot { border-color: rgba(43, 119, 226, 0.4); color: #1d5fc4; }
html[data-theme="light"] .feature-icon { border-color: rgba(43, 119, 226, 0.28); }
html[data-theme="light"] .cfg-tab:hover { border-color: rgba(43, 119, 226, 0.45); }
html[data-theme="light"] .cfg-tab.active {
  border-color: rgba(43, 119, 226, 0.6);
  box-shadow: 0 8px 26px rgba(43, 119, 226, 0.15);
}
html[data-theme="light"] .cfg-summary {
  border-color: rgba(43, 119, 226, 0.35);
  background: linear-gradient(180deg, rgba(43, 119, 226, 0.06), transparent 32%), var(--bg-card);
}
html[data-theme="light"] .cfg-slider {
  background: linear-gradient(90deg, #7cb8ff, #2b77e2) no-repeat, rgba(18, 36, 66, 0.15);
}
html[data-theme="light"] .cfg-slider::-webkit-slider-thumb { background: #ffffff; border-color: #2b77e2; }
html[data-theme="light"] .cfg-slider::-moz-range-thumb { background: #ffffff; border-color: #2b77e2; }
html[data-theme="light"] .cfg-slider:focus-visible { box-shadow: 0 0 0 3px rgba(43, 119, 226, 0.3); }
html[data-theme="light"] .sum-promo input:focus { border-color: rgba(43, 119, 226, 0.55); }
html[data-theme="light"] .sum-promo input::placeholder { color: rgba(90, 107, 132, 0.6); }
html[data-theme="light"] .faq-icon,
html[data-theme="light"] .faq-item.open { border-color: rgba(43, 119, 226, 0.45); }
html[data-theme="light"] .step-num { border-color: rgba(43, 119, 226, 0.35); }
html[data-theme="light"] .wiz-card { border-color: rgba(43, 119, 226, 0.3); }
html[data-theme="light"] .bgp-band {
  border-color: rgba(43, 119, 226, 0.32);
  background: linear-gradient(180deg, rgba(43, 119, 226, 0.06), transparent 45%), var(--bg-card);
}
html[data-theme="light"] .ds-badge { border-color: rgba(43, 119, 226, 0.55); }
html[data-theme="light"] .story-card {
  border-color: rgba(43, 119, 226, 0.3);
  background: linear-gradient(180deg, rgba(43, 119, 226, 0.06), transparent 40%), var(--bg-card);
}
html[data-theme="light"] .btn-primary { box-shadow: 0 10px 30px rgba(43, 119, 226, 0.25); }
html[data-theme="light"] .btn-primary:hover { box-shadow: 0 14px 38px rgba(43, 119, 226, 0.35); }
html[data-theme="light"] .cta-inner { box-shadow: 0 24px 60px rgba(43, 119, 226, 0.25); }
html[data-theme="light"] .pf-num { box-shadow: 0 10px 26px rgba(43, 119, 226, 0.25); }
html[data-theme="light"] .hl-ring { box-shadow: 0 0 0 3px rgba(43, 119, 226, 0.4); }

html[data-theme="light"] .callout {
  background: linear-gradient(120deg, rgba(43, 119, 226, 0.09), rgba(43, 119, 226, 0.04));
}
html[data-theme="light"] .shot { background: #0a0f1a; }
html[data-theme="light"] .shot figcaption { background: rgba(18, 36, 66, 0.03); }
html[data-theme="light"] .footer { background: #e8edf5; }
html[data-theme="light"] .footer-bottom p { color: var(--muted); }
html[data-theme="light"] .cfg-range-row,
html[data-theme="light"] .cfg-unit,
html[data-theme="light"] .sum-note,
html[data-theme="light"] .sum-daily,
html[data-theme="light"] .plan-cpu span,
html[data-theme="light"] .cfg-tab-sub,
html[data-theme="light"] .wr-upgrade,
html[data-theme="light"] .tut-card .tut-foot,
html[data-theme="light"] .crumbs { color: var(--muted); }
html[data-theme="light"] .promo-bar {
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.18), rgba(249, 115, 22, 0.12));
}

/* 淺色模式：流動選單（僅手機） */
@media (max-width: 900px) {
  html[data-theme="light"] .nav-menu { background: rgba(255, 255, 255, 0.98); }
  html[data-theme="light"] .nav-menu > a:not(.btn) { border-bottom: 1px solid rgba(18, 36, 66, 0.08); }
}
@media (max-width: 1024px) {
  .pf-row { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .pf-media, .pf-row.flip .pf-media { order: 1; }
  .pf-copy, .pf-row.flip .pf-copy { order: 2; }
}

/* ==========================================================================
   Plan wizard (configure.html)
   ========================================================================== */
.wiz-card {
  background: var(--bg-card);
  border: 1px solid rgba(131, 184, 255, 0.3);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
}
.wiz-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wiz-step { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }
.wiz-dots { display: flex; gap: 7px; }
.wiz-dots i { width: 26px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); transition: background 0.25s ease; }
.wiz-dots i.on { background: var(--grad); }
.wiz-dots i.done { background: var(--brand); opacity: 0.75; }
.wiz-q { font-size: 1.2rem; font-weight: 900; margin-bottom: 18px; }
.wiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wiz-opt {
  text-align: left;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.wiz-opt:hover { border-color: rgba(131, 184, 255, 0.55); transform: translateY(-2px); }
.wiz-opt.sel { border-color: var(--brand); background: var(--grad-soft); }
.wiz-opt-label { display: block; font-weight: 800; font-size: 0.98rem; }
.wiz-opt-desc { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.wiz-foot { margin-top: 18px; display: flex; }

.wr-plan { font-size: 1.5rem; font-weight: 900; margin: 12px 0 4px; }
.wr-platform { font-size: 0.88rem; color: var(--muted); }
.wr-config { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.wr-price { font-size: 1rem; color: var(--muted); margin-bottom: 14px; }
.wr-price b {
  font-size: 1.7rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-left: 4px;
}
.wr-reasons { display: grid; gap: 9px; margin-bottom: 22px; }
.wr-reasons li {
  position: relative;
  padding-left: 25px;
  font-size: 0.92rem;
  color: var(--muted);
}
.wr-reasons li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wiz-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wr-upgrade { margin-top: 14px; font-size: 0.82rem; color: rgba(150, 163, 184, 0.85); }

@media (max-width: 640px) {
  .wiz-card { padding: 22px 18px; }
  .wiz-opts { grid-template-columns: 1fr; }
  .wiz-actions .btn { flex: 1 1 100%; }
}
