/* ============================================
   ServerAdmin Pro — Hosting/VPS classic theme
   Visual: clean light, strong contrast CTA,
   feature grid, contrast pricing table
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4f9;
  --text: #0f1b2d;
  --text-dim: #4b5b73;
  --text-muted: #7a899c;
  --primary: #1056d4;
  --primary-dark: #0a47b0;
  --primary-light: #e8f0ff;
  --accent: #00b67a;
  --accent-dark: #00945f;
  --accent-light: #e3f8ef;
  --success: #00b67a;
  --danger: #e23b3b;
  --warning: #f0a500;
  --border: #e2e8f1;
  --border-strong: #cdd7e6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 30, 60, 0.06), 0 1px 2px rgba(16, 30, 60, 0.04);
  --shadow: 0 4px 14px -2px rgba(16, 30, 60, 0.08), 0 2px 6px -2px rgba(16, 30, 60, 0.05);
  --shadow-lg: 0 20px 40px -12px rgba(16, 30, 60, 0.18);
  --container: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: rgba(16, 86, 212, 0.18); color: var(--text); }

/* ---------- Container ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--primary); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.18rem; }
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); color: #fff;
}
.logo-text strong { color: var(--primary); }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 600; font-size: 0.94rem;
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--primary-light); }
.nav-menu a.cta-link {
  background: var(--accent); color: #fff; font-weight: 700;
}
.nav-menu a.cta-link:hover { color: #fff; background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0, 182, 122, 0.6); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all var(--transition); transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.96rem; cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; white-space: nowrap; letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 182, 122, 0.55);
}
.btn-primary:hover { color: #fff; background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0, 182, 122, 0.6); }
.btn-secondary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(16, 86, 212, 0.5);
}
.btn-secondary:hover { color: #fff; background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: #fff; color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 130px 0 60px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(16, 86, 212, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(0, 182, 122, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-bg { display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--accent-light); border: 1px solid rgba(0, 182, 122, 0.35);
  color: var(--accent-dark); font-size: 0.82rem; font-weight: 700; margin-bottom: 22px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 182, 122, 0.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 182, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 182, 122, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 900;
  letter-spacing: -0.035em; margin-bottom: 22px; color: var(--text);
}
.grad { color: var(--primary); }
.hero-sub { font-size: 1.08rem; color: var(--text-dim); max-width: 580px; margin-bottom: 30px; }
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-stats li {
  display: flex; flex-direction: column; padding: 20px 18px;
  border-right: 1px solid var(--border);
}
.hero-stats li:last-child { border-right: none; }
.hero-stats strong { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--primary); font-family: var(--mono); }
.hero-stats span { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* Terminal */
.hero-visual { display: flex; justify-content: center; }
.terminal {
  width: 100%; max-width: 480px; border-radius: var(--radius);
  background: #0b1220; border: 1px solid #1c2740;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--mono);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  background: #142037; border-bottom: 1px solid #1c2740;
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .dot.red { background: #ff5f57; }
.terminal-bar .dot.yellow { background: #febc2e; }
.terminal-bar .dot.green { background: #28c840; }
.terminal-title { margin-left: auto; color: #98a8bd; font-size: 0.76rem; }
.terminal-body { padding: 18px; font-size: 0.82rem; min-height: 200px; color: #d7e0ee; }
.terminal-body code { white-space: pre-wrap; word-break: break-word; }
.prompt { color: #4ad99a; }
.path { color: #6fb1ff; }
.cursor { color: #fff; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Trust Bar ---------- */
.trust-bar { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trust-label { text-align: center; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 22px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; align-items: center; }
.trust-item {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 700; font-size: 0.86rem;
  transition: all var(--transition);
}
.trust-item:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.trust-item .ti-icon { font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--primary-light); border: 1px solid rgba(16, 86, 212, 0.25);
  color: var(--primary); font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.025em; margin-bottom: 14px; color: var(--text); }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all var(--transition); height: 100%;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }

.service-card { border-top: 3px solid var(--primary); }
.service-card .card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 16px;
  background: var(--primary-light); border: 1px solid rgba(16, 86, 212, 0.2); color: var(--primary);
}
.service-card .card-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.service-card > p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 16px; }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-list li {
  position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.9rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent);
  font-weight: 900; font-size: 0.9rem;
}

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.skill-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-card .skill-emoji { font-size: 2rem; margin-bottom: 10px; display: block; }
.skill-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.skill-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.skill-bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-card .skill-level { font-size: 0.78rem; color: var(--text-muted); margin-top: 8px; }

.skill-chip {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-dim); font-weight: 700; font-size: 0.9rem;
}

/* ---------- How It Works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 36px; }
.how-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all var(--transition); position: relative;
  box-shadow: var(--shadow-sm);
}
.how-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  font-family: var(--mono); font-weight: 800; font-size: 0.95rem; color: #fff;
  background: var(--primary);
}
.how-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.how-card p { color: var(--text-dim); font-size: 0.92rem; }

.how-note {
  background: var(--primary-light);
  border: 1px solid rgba(16, 86, 212, 0.2); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 26px 30px;
}
.how-note p { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.how-note strong { color: var(--text); }

/* ---------- Features ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.feature p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.price-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0; transition: all var(--transition); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px -12px rgba(0, 182, 122, 0.35);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--surface) 40%);
}
.ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--accent); color: #fff;
  padding: 7px 24px; font-size: 0.74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; text-align: center;
}
.price-card.featured .price-head { padding-top: 56px; }

.price-head { padding: 32px 32px 0; position: relative; }
.price-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(16, 86, 212, 0.25); margin-bottom: 14px;
}
.price-card.featured .price-tag { background: var(--accent-light); color: var(--accent-dark); border-color: rgba(0, 182, 122, 0.35); }
.price-head h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -0.01em; color: var(--text); }
.price-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; min-height: 40px; }

.price {
  padding: 0 32px 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.price-amount { font-family: var(--mono); font-size: 2.5rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.price-amount small { font-size: 1.2rem; color: var(--text-dim); margin-left: 2px; }
.price-per { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.price-card .check-list { margin: 22px 32px; flex: 1 1 auto; }
.price-card .check-list li { font-size: 0.88rem; }
.price-card .price-actions { padding: 0 32px 32px; display: flex; justify-content: stretch; }
.price-card .price-actions .btn { width: 100%; }
.price-card.featured .btn-primary { background: var(--accent); }

.price-foot { text-align: center; margin-top: 32px; color: var(--text-muted); font-size: 0.92rem; }
.price-foot a { color: var(--primary); font-weight: 700; }
.price-foot a:hover { color: var(--primary-dark); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item[open] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 86, 212, 0.1); }
.faq-item summary {
  padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 1rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 400;
  transition: transform var(--transition); flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 18px; color: var(--text-dim); }
.faq-answer p { font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; margin: 8px 0 14px; letter-spacing: -0.02em; color: var(--text); }
.contact-info > p { color: var(--text-dim); margin-bottom: 26px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.ci-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.contact-list a, .contact-list span:last-child { color: var(--text); font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-muted); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 86, 212, 0.15); background: #fff;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input.invalid, .form-row select.invalid, .form-row textarea.invalid { border-color: var(--danger); }
.form-note { font-size: 0.88rem; min-height: 1.2em; }
.form-note.success { color: var(--accent-dark); }
.form-note.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: #0c1729; color: #cdd7e6; border-top: 1px solid #1c2740; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-brand .logo { margin-bottom: 16px; color: #fff; }
.footer-brand .logo .logo-text strong { color: #4ad99a; }
.footer-brand p { color: #94a8bd; font-size: 0.9rem; max-width: 360px; margin-bottom: 12px; }
.footer-note { color: #7a899c; font-size: 0.86rem; font-style: italic; max-width: 360px; }
.footer-note::before { content: ""; display: block; width: 32px; height: 2px; background: var(--accent); margin-bottom: 10px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 16px; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a8bd; font-size: 0.9rem; }
.footer-col a:hover { color: #4ad99a; }
.footer-bottom { border-top: 1px solid #1c2740; padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: #7a899c; font-size: 0.84rem; }
.made-with { color: #7a899c; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(20px); transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px; gap: 4px; align-items: stretch;
    transform: translateY(-130%); transition: transform var(--transition);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 14px 16px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(2) { border-right: none; }
  .hero-stats li:nth-child(1), .hero-stats li:nth-child(2) { border-bottom: 1px solid var(--border); }
  .section { padding: 60px 0; }
  .contact-wrap { padding: 24px; }
  .price-card .price-amount { font-size: 2.1rem; }
}

@media (max-width: 540px) {
  .grid-3, .grid-4, .skills-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-sub { font-size: 1rem; }
  .price-head { padding: 26px 22px 0; }
  .price { padding: 0 22px 20px; }
  .price-card .check-list { margin: 18px 22px; }
  .price-card .price-actions { padding: 0 22px 24px; }
  .contact-wrap { padding: 22px; }
  .contact-info h2 { font-size: 1.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .back-to-top, .hero-visual, .nav-toggle, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 20px 0; }
}
