@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   StayPilot — Shared Stylesheet
   Used by: index.html, about.html, blog.html, docs.html,
            privacy.html, terms.html, cookies.html
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, iframe, svg { max-width: 100%; }

/* ─── CSS VARIABLES ─── */
:root {
  --primary: #0891B2;
  --primary-dark: #0E7490;
  --primary-light: #22D3EE;
  --accent: #10B981;
  --accent2: #059669;
  --dark: #0C1A2E;
  --dark2: #14273F;
  --muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --surface: #F8FAFF;
  --gradient: linear-gradient(135deg, #0891B2 0%, #0D9488 50%, #059669 100%);
  --gradient-soft: linear-gradient(135deg, #ECFEFF 0%, #F0FDFA 100%);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
nav.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 8px 28px rgba(0,0,0,0.05);
  border-bottom-color: rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.98);
}

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img { height: 80px; width: auto; display: block; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.875rem;
  padding: 6px 11px; border-radius: 8px; transition: all 0.18s; white-space: nowrap;
}
.nav-links a:hover { color: var(--dark); background: rgba(8,145,178,0.06); }
.nav-links a.active { color: var(--primary); background: rgba(8,145,178,0.08); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 6px; }

.nav-signin {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 8px 14px; border-radius: 8px; transition: all 0.18s;
}
.nav-signin i, .nav-signin svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-signin:hover { color: var(--dark); background: #F1F5F9; }

.btn-nav-cta {
  background: var(--gradient); color: white; padding: 9px 20px; border: none;
  border-radius: 100px; font-size: 0.875rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 14px rgba(8,145,178,0.28); letter-spacing: -0.1px;
}
.btn-nav-cta i, .btn-nav-cta svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(8,145,178,0.38); }

.btn-ghost {
  background: none; border: 1.5px solid var(--border); color: var(--dark);
  padding: 7px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost i, .btn-ghost svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary {
  background: var(--primary); color: white; padding: 8px 18px; border: none;
  border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary svg, .btn-primary i { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(8,145,178,0.4); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px; color: var(--dark); align-items: center; justify-content: center;
  border-radius: 8px; transition: background 0.2s; margin-right: -4px;
}
.nav-hamburger:hover { background: #F0FDFA; }
.nav-hamburger svg { width: 22px; height: 22px; }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0;
  background: #FFFFFF; padding: 12px 5% 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  z-index: 99; display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-20px); opacity: 0; pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-link {
  padding: 12px 10px; font-size: 0.95rem; font-weight: 600;
  color: var(--dark); text-decoration: none;
  border-bottom: 1px solid #F0FDFA; transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.mobile-link:hover { color: var(--primary); }
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--primary); }
.mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.mobile-cta .btn-ghost, .mobile-cta .btn-nav-cta { width: 100%; text-align: center; justify-content: center; border-radius: 12px; padding: 12px; }

/* ─── FOOTER ─── */
footer { background: #0F172A; color: rgba(255,255,255,0.7); padding: 80px 5% 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; margin-top: 14px; margin-bottom: 24px; max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-size: 1.25rem; font-weight: 800; color: white; text-decoration: none; }
.footer-logo-img { height: 64px; width: auto; display: block; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0; text-decoration: none; color: rgba(255,255,255,0.6); transition: all 0.2s; }
.social-btn:hover { background: rgba(255,255,255,0.15); color: white; }
.social-btn svg, .social-btn i { width: 16px; height: 16px; flex-shrink: 0; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.87rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* ─── SELECTION ─── */
::selection { background: rgba(8,145,178,0.15); color: var(--dark); }

/* ─── SECTION COMMONS ─── */
section { padding: 100px 5%; }
.section-inner { max-width: 1300px; margin: 0 auto; }
.section-label {
  display: inline-block; background: var(--gradient-soft); color: var(--primary);
  border: 1px solid #A5F3FC; border-radius: 100px;
  padding: 4px 14px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: clamp(2rem, 3.2vw, 2.85rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.1; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 120px 5% 80px; background: linear-gradient(160deg, #F0FDFF 0%, #ECFDF5 100%);
  text-align: center;
}
.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1.5px solid #CFFAFE; color: var(--primary);
  padding: 5px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 20px;
}
.page-hero-label svg { width: 15px; height: 15px; }
.page-hero h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.5px;
  line-height: 1.1; margin-bottom: 18px;
}
.page-hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ─── INNER PAGE SECTION ─── */
.page-section { padding: 80px 5%; }
.page-section.alt { background: var(--surface); }
.inner { max-width: 1100px; margin: 0 auto; }

/* ─── SCROLL ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .nav-logo-img { height: 64px; }
  section { padding: 64px 5%; }
  .page-section { padding: 56px 5%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mobile-menu { top: 64px; }
  .page-hero { padding: 100px 5% 56px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .page-hero p { font-size: 0.95rem; }
  .code-block, .code-body { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}
@media (max-width: 480px) {
  section { padding: 48px 4%; }
  .page-section { padding: 40px 4%; }
  .page-hero { padding: 88px 4% 48px; }
  .footer-top { gap: 28px; }
  footer { padding: 60px 4% 32px; }
  .footer-logo-img { height: 40x; }
  .inner { padding: 0; }
  .mobile-cta { flex-direction: column; }
  .mobile-cta .btn-ghost, .mobile-cta .btn-nav-cta { width: 100%; }
}
