/* ============================================================
   RANKHOSTZONE Solutions - Global Stylesheet
   Theme: Sky blue gradient, light (default) + dark toggle mode
   ============================================================ */

:root {
  --sky-50:  #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;

  --gradient: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
  --gradient-soft: linear-gradient(135deg, rgba(14,165,233,.12), rgba(56,189,248,.08));
  --gradient-btn: linear-gradient(135deg, #0284c7, #0ea5e9 55%, #38bdf8);

  --bg: #ffffff;
  --bg-soft: #f4fafe;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --text: #0f172a;
  --text-soft: #475569;
  --text-faint: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.18);
  --shadow-lg: 0 24px 70px -20px rgba(14, 165, 233, 0.35);
  --ring: rgba(14, 165, 233, 0.25);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: #0c4a6e;
  --footer-text: #e0f2fe;
}

[data-theme="dark"] {
  --bg: #060b18;
  --bg-soft: #0a1424;
  --bg-card: #0e1a2e;
  --bg-glass: rgba(10, 20, 36, 0.72);
  --text: #e8f3ff;
  --text-soft: #a8c3dd;
  --text-faint: #7e9bb9;
  --border: #1c2f4a;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, 0.65);
  --ring: rgba(56, 189, 248, 0.22);
  --nav-bg: rgba(6, 11, 24, 0.82);
  --footer-bg: #050a14;
  --footer-text: #bae6fd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--sky-500); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--sky-400), var(--sky-600)); border-radius: 10px; }

.container { width: min(1200px, 92%); margin: 0 auto; }
section { position: relative; padding: 90px 0; }

/* ---------- Gradient text / buttons ---------- */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 15px;
  transition: all .3s ease; position: relative; overflow: hidden; white-space: nowrap;
}
.btn-grad { background: var(--gradient-btn); color: #fff; box-shadow: var(--shadow); }
.btn-grad:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-grad::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-25deg); transition: left .6s ease;
}
.btn-grad:hover::after { left: 130%; }
.btn-outline { border: 2px solid var(--sky-400); color: var(--sky-500); }
.btn-outline:hover { background: var(--gradient-btn); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--sky-800); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 55px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-soft); color: var(--sky-600);
  border: 1px solid var(--ring); padding: 7px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
[data-theme="dark"] .section-eyebrow { color: var(--sky-300); }
.section-title { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.2; font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--text-soft); font-size: 16.5px; }

/* ---------- Particles canvas ---------- */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
main, .hero, .page-hero { position: relative; z-index: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg); border-bottom: 1px solid var(--border);
  transition: all .35s ease;
}
.navbar.scrolled { box-shadow: 0 6px 30px -10px rgba(14,165,233,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-badge {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gradient-btn); color: #fff; font-weight: 800; box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.logo span:last-child { font-size: 13px; font-weight: 600; color: var(--text-faint); display: block; line-height: 1.15; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--text-soft); position: relative; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--sky-500); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gradient); transition: width .35s ease; border-radius: 2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.has-drop { position: relative; }
.has-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.dropdown {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  min-width: 250px; padding: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 200;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  color: var(--text) !important; font-weight: 500; font-size: 14px;
}
.dropdown a:hover { background: var(--gradient-soft); color: var(--sky-500) !important; }
.dropdown a::after { display: none; }
.dropdown i { color: var(--sky-500); width: 20px; text-align: center; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
/* Theme toggle */
.theme-toggle {
  width: 54px; height: 30px; border-radius: 50px; position: relative;
  background: var(--gradient-btn); cursor: pointer; transition: all .3s;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.18);
}
.theme-toggle .thumb {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; font-size: 13px;
  transition: left .35s ease; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
[data-theme="dark"] .theme-toggle .thumb { left: 27px; }
.nav-cta { padding: 11px 24px; font-size: 14px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 74px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--bg); padding: 24px 6%; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s ease; border-top: 1px solid var(--border);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; padding: 14px 6px; font-weight: 600; font-size: 16px;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.mobile-nav .m-sub { padding-left: 18px; font-size: 14px; color: var(--text-soft); }
.mobile-nav .m-cta { margin-top: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 170px 0 90px; overflow: hidden;
  background:
    radial-gradient(60% 60% at 12% 20%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(56,189,248,.16), transparent 60%),
    radial-gradient(40% 40% at 70% 90%, rgba(125,211,252,.14), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .hero { background:
    radial-gradient(60% 60% at 12% 20%, rgba(14,165,233,.20), transparent 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(56,189,248,.16), transparent 60%),
    radial-gradient(40% 40% at 70% 90%, rgba(125,211,252,.12), transparent 60%),
    var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: var(--gradient-soft); border: 1px solid var(--ring); border-radius: 50px;
  color: var(--sky-600); font-size: 13.5px; font-weight: 600; margin-bottom: 22px;
}
[data-theme="dark"] .hero-badge { color: var(--sky-300); }
.hero-title { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.12; margin-bottom: 20px; }
.hero-title .type {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  border-right: 3px solid var(--sky-500); padding-right: 4px;
}
.hero-desc { color: var(--text-soft); font-size: 17px; max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 30px; font-weight: 800; display: block; }
.hero-stats .stat span { color: var(--text-faint); font-size: 14px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: var(--bg-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ring); border-radius: 24px; padding: 30px;
  box-shadow: var(--shadow-lg); position: relative; animation: float 6s ease-in-out infinite;
}
.hero-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-card-head .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #f87171; } .dot.y { background: #fbbf24; } .dot.g { background: #34d399; }
.code-lines { font-family: 'Consolas', monospace; font-size: 13.5px; color: var(--text-soft); }
.code-lines p { margin-bottom: 8px; }
.code-lines .tag { color: var(--sky-500); }
.code-lines .val { color: #34d399; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--ring); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 600;
}
.float-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient-btn); color: #fff; }
.float-card small { display: block; color: var(--text-faint); font-weight: 500; }
.fc-1 { top: -20px; right: -14px; animation: float 5s ease-in-out infinite; }
.fc-2 { bottom: 40px; left: -30px; animation: float 6.5s ease-in-out infinite reverse; }
.fc-3 { bottom: -24px; right: 40px; animation: float 5.5s ease-in-out infinite 1s; }

/* ============================================================
   MARQUEE (services strip)
   ============================================================ */
.marquee-wrap { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--gradient-soft); }
.marquee { display: flex; gap: 50px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--sky-600); white-space: nowrap; }
[data-theme="dark"] .marquee span { color: var(--sky-300); }
.marquee span::after { content: '✦'; color: var(--sky-400); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px; transition: all .4s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient-soft);
  opacity: 0; transition: opacity .4s ease; z-index: 0;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--sky-300); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.service-card { text-align: left; }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--gradient-btn); color: #fff; font-size: 26px; margin-bottom: 20px;
  box-shadow: var(--shadow); transition: transform .4s ease;
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.1); }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 16px; }
.service-card .s-link { color: var(--sky-500); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: gap .3s; }
.service-card .s-link:hover { gap: 12px; }

.step-card { text-align: center; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff;
  background: var(--gradient-btn); box-shadow: var(--shadow); position: relative;
}
.step-num::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px dashed var(--sky-300); animation: spin 14s linear infinite;
}
.step-card h3 { margin-bottom: 10px; font-size: 18px; }
.step-card p { color: var(--text-soft); font-size: 14.5px; }

.icon-feature { display: flex; gap: 16px; align-items: flex-start; }
.icon-feature .ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient-soft); color: var(--sky-500); font-size: 20px; border: 1px solid var(--ring); }
.icon-feature h4 { font-size: 16.5px; margin-bottom: 6px; }
.icon-feature p { color: var(--text-soft); font-size: 14px; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-img { position: relative; }
.glow-orb { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(14,165,233,.4), transparent 70%); filter: blur(10px); animation: float 5s ease-in-out infinite; }
.orb-1 { top: -30px; right: -20px; } .orb-2 { bottom: -30px; left: -20px; animation-delay: 1.5s; }
.split-img .main-img { border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--ring); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text-soft); }
.check-list li::before {
  content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gradient-btn); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--gradient-btn); border-radius: 24px; padding: 50px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.stats-band::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.1); top: -150px; right: -100px; }
.stats-band::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -100px; left: -60px; }
.stats-band .st b { font-size: 38px; font-weight: 800; display: block; }
.stats-band .st span { font-size: 14px; opacity: .9; }
.counter { display: inline-block; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.price-card {
  border-radius: 24px; padding: 40px; background: var(--bg-card); border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: all .4s ease;
}
.price-card.featured { border: 2px solid var(--sky-400); box-shadow: var(--shadow-lg); }
.price-card.featured::before { content: 'POPULAR'; position: absolute; top: 24px; right: -42px; transform: rotate(45deg); background: var(--gradient-btn); color: #fff; font-size: 11px; font-weight: 800; padding: 6px 46px; letter-spacing: 1px; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card .p-name { font-size: 15px; font-weight: 700; color: var(--sky-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
[data-theme="dark"] .price-card .p-name { color: var(--sky-300); }
.price-card h3 { font-size: 22px; margin-bottom: 8px; }
.price-card .p-desc { color: var(--text-soft); font-size: 14.5px; margin-bottom: 24px; }
.price-tag { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.price-tag small { font-size: 15px; font-weight: 600; color: var(--text-faint); }
.price-note { color: var(--text-faint); font-size: 13px; margin-bottom: 20px; }
.price-feats { margin-bottom: 26px; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--text-soft); font-size: 14.5px; border-bottom: 1px dashed var(--border); }
.price-feats li::before { content: '✓'; color: var(--sky-500); font-weight: 800; }

/* ---------- Hosting mini cards ---------- */
.hosting-card { text-align: center; }
.hosting-card .service-icon { margin: 0 auto 18px; }
.hosting-card h3 { margin-bottom: 8px; }
.hosting-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 18px; }

/* ---------- Testimonials ---------- */
.testi-slider { position: relative; overflow: hidden; padding: 10px 0; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.6,.05,.28,.99); }
.testi-slide { flex: 0 0 100%; padding: 0 8px; }
.testi-card {
  max-width: 780px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.testi-card .quote { font-size: 64px; color: var(--sky-400); opacity: .35; line-height: 0; position: absolute; top: 28px; left: 30px; }
.testi-stars { color: #fbbf24; font-size: 20px; margin-bottom: 18px; letter-spacing: 3px; }
.testi-card p { color: var(--text-soft); font-size: 16.5px; font-style: italic; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 14px; justify-content: center; }
.testi-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--gradient-btn); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.testi-author b { display: block; }
.testi-author span { color: var(--text-faint); font-size: 13.5px; }
.testi-nav { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.testi-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); transition: all .3s; background: var(--bg-card); }
.testi-nav button:hover { background: var(--gradient-btn); color: #fff; border-color: transparent; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.testi-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all .3s; }
.testi-dots span.active { width: 26px; border-radius: 10px; background: var(--gradient-btn); }

/* ---------- Blog cards ---------- */
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-thumb { height: 180px; overflow: hidden; border-radius: 14px; margin-bottom: 18px; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.08); }
.blog-date { color: var(--sky-500); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.blog-card .read-more { color: var(--sky-500); font-weight: 700; font-size: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gradient-btn); border-radius: 28px; padding: 60px 50px; text-align: center;
  color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12);
}
.cta-banner::before { width: 280px; height: 280px; top: -140px; left: -80px; }
.cta-banner::after { width: 200px; height: 200px; bottom: -100px; right: -60px; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; font-weight: 800; }
.cta-banner p { max-width: 640px; margin: 0 auto 28px; opacity: .95; font-size: 16px; }
.cta-banner .btn-light { margin: 0 8px 10px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 170px 0 70px; text-align: center;
  background:
    radial-gradient(55% 60% at 15% 15%, rgba(14,165,233,.16), transparent 60%),
    radial-gradient(50% 50% at 85% 20%, rgba(56,189,248,.15), transparent 60%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: var(--text-soft); max-width: 680px; margin: 0 auto; font-size: 16.5px; }
.breadcrumb { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; font-size: 13.5px; color: var(--text-faint); }
.breadcrumb a { color: var(--sky-500); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Feature list page section ---------- */
.feature-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-panel.reverse { direction: rtl; }
.feature-panel.reverse > * { direction: ltr; }
.panel-img { position: relative; }
.code-window {
  background: #0c1b2e; border-radius: 18px; border: 1px solid #1c2f4a; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-window .bar { display: flex; gap: 8px; padding: 12px 16px; background: #0e2036; align-items: center; }
.code-window .bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-window pre { padding: 20px; font-family: Consolas, monospace; font-size: 13px; color: #9fd8ff; overflow-x: auto; }
.code-window .k { color: #7dd3fc; } .code-window .s { color: #86efac; } .code-window .c { color: #64748b; }

/* ---------- Tech chips ---------- */
.tech-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-chip {
  padding: 10px 20px; border-radius: 50px; background: var(--bg-card); border: 1px solid var(--ring);
  color: var(--sky-600); font-weight: 600; font-size: 14px; transition: all .3s;
}
[data-theme="dark"] .tech-chip { color: var(--sky-300); }
.tech-chip:hover { background: var(--gradient-btn); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ---------- FAQ accordion ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; transition: all .3s; }
.faq-item.open { border-color: var(--sky-300); box-shadow: var(--shadow); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16px; }
.faq-q .faq-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-soft); color: var(--sky-500); transition: transform .3s; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--text-soft); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; transition: all .3s; }
.contact-info-card:hover { border-color: var(--sky-300); box-shadow: var(--shadow); transform: translateX(4px); }
.contact-info-card .ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient-btn); color: #fff; font-size: 20px; }
.contact-info-card b { display: block; margin-bottom: 2px; }
.contact-info-card p, .contact-info-card a { color: var(--text-soft); font-size: 14.5px; }
.contact-info-card a:hover { color: var(--sky-500); }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-control {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text); font-size: 15px; transition: all .3s;
}
.form-control:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 4px var(--ring); background: var(--bg-card); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.form-msg.success { background: rgba(52,211,153,.15); color: #059669; border: 1px solid rgba(52,211,153,.4); }
.form-msg.error { background: rgba(248,113,113,.15); color: #dc2626; border: 1px solid rgba(248,113,113,.4); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 80px 0 0; position: relative; overflow: hidden; margin-top: 60px; }
.footer::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(56,189,248,.12); top: -200px; right: -100px; filter: blur(60px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; position: relative; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--gradient-btn); }
.footer .about-p { font-size: 14.5px; opacity: .85; margin: 18px 0 20px; max-width: 320px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; opacity: .85; transition: all .3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '›'; color: var(--sky-400); font-weight: 800; }
.footer-links a:hover { opacity: 1; color: #7dd3fc; padding-left: 5px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; opacity: .9; }
.footer-contact .ic { color: var(--sky-400); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: all .3s; }
.socials a:hover { background: var(--gradient-btn); transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; opacity: .85; position: relative; }
.footer-bottom a { color: #7dd3fc; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 28px; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s;
}
.whatsapp-fab:hover { transform: scale(1.1) rotate(8deg); }
.whatsapp-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 96px; right: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient-btn); color: #fff; font-size: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .3s; transform: translateY(20px);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.6,.05,.28,.99); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(.85); transition: all .8s ease; }
.reveal-zoom.in { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; } .delay-4 { transition-delay: .48s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blob { 0%,100% { border-radius: 42% 58% 63% 37%/45% 45% 55% 55%; } 50% { border-radius: 58% 42% 37% 63%/55% 55% 45% 45%; } }

/* ---------- 404 ---------- */
.err-404 { text-align: center; padding: 160px 0 90px; }
.err-404 .big { font-size: clamp(90px, 18vw, 170px); font-weight: 900; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err-404 h2 { font-size: 30px; margin: 20px 0 10px; }
.err-404 p { color: var(--text-soft); margin-bottom: 28px; }

/* ---------- Portfolio filters ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 10px 22px; border-radius: 50px; border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text-soft); transition: all .3s; background: var(--bg-card); }
.filter-btn.active, .filter-btn:hover { background: var(--gradient-btn); color: #fff; border-color: transparent; }
.project-card { cursor: pointer; }
.project-cover { height: 210px; border-radius: 14px; margin-bottom: 18px; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 46px; color: #fff; }
.project-cover .hover-info { position: absolute; inset: 0; background: rgba(2,132,199,.75); display: grid; place-items: center; opacity: 0; transition: all .4s; }
.project-card:hover .hover-info { opacity: 1; }
.project-card .cat { color: var(--sky-500); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
[data-theme="dark"] .project-card .cat { color: var(--sky-300); }
.project-card h3 { font-size: 18px; margin-bottom: 8px; }

/* ---------- Pagination / misc ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); font-weight: 600; color: var(--text-soft); }
.pagination .active, .pagination a:hover { background: var(--gradient-btn); color: #fff; border-color: transparent; }

.notice-bar { background: var(--gradient-soft); border: 1px solid var(--ring); color: var(--sky-700); padding: 14px 20px; border-radius: 14px; font-size: 14.5px; display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
[data-theme="dark"] .notice-bar { color: var(--sky-300); }

/* ---------- Blog detail ---------- */
.blog-hero-img { border-radius: 24px; overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-lg); }
.blog-meta { display: flex; gap: 20px; color: var(--text-faint); font-size: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.prose { font-size: 16px; color: var(--text-soft); }
.prose h3 { color: var(--text); margin: 28px 0 12px; font-size: 22px; }
.prose p { margin-bottom: 18px; }
.prose ul { margin-bottom: 18px; padding-left: 6px; }
.prose li { padding-left: 24px; position: relative; margin-bottom: 8px; }
.prose li::before { content: '✦'; position: absolute; left: 0; color: var(--sky-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .feature-panel { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 70px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2, .contact-grid, .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
  .float-card { display: none; }
  .stats-band { padding: 36px 20px; }
}