/* ═══════════════════════════════════════════════════════════════
   HamOrbit — shared website stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #04040d;
  --bg-1: #06061a;
  --bg-2: #0a0a20;
  --bg-3: #0f0f2a;
  --bg-card: #12122e;
  --bg-card-2: #18183a;
  --border: rgba(255,255,255,.06);
  --border-2: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --accent: #5fa3ff;
  --accent-d: #4d8aff;
  --accent-2: #00e5ff;
  --accent-3: #7c4dff;
  --green: #21d07a;
  --orange: #ff9100;
  --pink: #ff5ec7;
  --yellow: #ffd740;
  --red: #ff5e5e;
  --text: #f3f3ff;
  --text-2: #b3b3d8;
  --text-3: #797aa0;
  --text-mut: #4a4b6e;
  --easing-out: cubic-bezier(.16,1,.3,1);
  --easing-spring: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
code, .mono { font-family: 'JetBrains Mono', monospace; }
.italic { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
::selection { background: rgba(95, 163, 255, .35); color: white; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; position: relative; }

/* ═══ BACKGROUND LAYERS ═══════════════════════════════════════
   Performance notes for low-end browsers (esp. Firefox):
   • 2 blobs instead of 5 (was killing Firefox CPU on /pricing)
   • Reduced blur radius (40px instead of 90px)
   • Static positions on screens <1024px (no animation)
   • prefers-reduced-motion fully disables animation
   ═════════════════════════════════════════════════════════════ */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: var(--bg-1); pointer-events: none;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute;
  border-radius: 50%; filter: blur(60px);
  /* No will-change — kept blurs static on low-end GPUs */
}
.aurora::before {
  width: 50vw; height: 50vw; top: -15vw; left: -8vw;
  background: radial-gradient(circle, rgba(95,163,255,.15), transparent 60%);
}
.aurora::after {
  width: 45vw; height: 45vw; bottom: -10vw; right: -10vw;
  background: radial-gradient(circle, rgba(0,229,255,.10), transparent 65%);
}

/* Optional gentle animation only on larger screens with capable browsers */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .aurora::before, .aurora::after { will-change: transform; }
  .aurora::before { animation: float1 30s ease-in-out infinite alternate; }
  .aurora::after  { animation: float2 36s ease-in-out infinite alternate; }
  @keyframes float1 { from { transform: translate(0,0); } to { transform: translate(5vw,8vh); } }
  @keyframes float2 { from { transform: translate(0,0); } to { transform: translate(-5vw,-6vh); } }
}

/* Extra blobs disabled (kept in markup for backwards compat, hidden via CSS) */
.aurora .blob, .aurora .blob-2, .aurora .blob-3 { display: none; }

.world-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035;
  background-image: url('world_silhouette_white.png');
  background-repeat: no-repeat;
  background-position: center 80%;
  background-size: 110% auto;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 30%, black 30%, transparent 80%);
}
.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ NAV ═════════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(6, 6, 26, .65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease, background .3s ease;
  overflow: visible;
}
nav::after {
  content: "";
  position: absolute; bottom: -1px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,163,255,.45) 30%, rgba(0,229,255,.35) 70%, transparent);
  pointer-events: none;
}
nav.scrolled { padding: 12px 0; background: rgba(6, 6, 26, .88); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 19px; letter-spacing: -.01em;
  transition: transform .3s var(--easing-spring);
}
.logo:hover { transform: scale(1.03); }
.logo img { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(95,163,255,.4)); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .35s var(--easing-out);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { transform: scaleX(1); }

/* ═══ BUTTONS ═════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .25s var(--easing-spring),
              box-shadow .25s ease, background .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: white;
  box-shadow: 0 4px 14px rgba(95,163,255,.35), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(95,163,255,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-secondary {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--accent);
  border-color: rgba(95,163,255,.3);
}
.btn-ghost:hover { background: rgba(95,163,255,.08); border-color: var(--accent); }
.btn-large { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-disabled {
  background: rgba(255,255,255,.03);
  color: var(--text-mut);
  border: 1px solid var(--border);
  cursor: not-allowed;
}
.btn-disabled:hover { transform: none; box-shadow: none; }

/* ═══ EYEBROW + HEADINGS ═════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(95,163,255,.10);
  border: 1px solid rgba(95,163,255,.3);
  color: var(--accent-2);
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 28px;
}
h1 .accent {
  background: linear-gradient(120deg, #5fa3ff 0%, #00e5ff 50%, #7c4dff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient 5s ease infinite;
}
@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; letter-spacing: -.028em;
  margin-bottom: 16px; line-height: 1.05;
}
h2 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
h3 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 12px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 80px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { color: var(--text-2); font-size: 19px; line-height: 1.55; }

/* Page hero (smaller than landing hero) */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  margin-bottom: 20px;
}
.page-hero .lead {
  font-size: 19px; color: var(--text-2);
  max-width: 640px; margin: 0 auto 36px;
  line-height: 1.6;
}

/* ═══ CARDS ═══════════════════════════════════════════════════ */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 32px;
  position: relative;
}

/* ═══ FOOTER ══════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 36px;
  background: var(--bg-0);
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
footer h5 {
  color: var(--text); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px;
}
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 10px; }
footer a { color: var(--text-3); font-size: 14px; transition: color .2s; }
footer a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 60px; padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-mut); font-size: 13.5px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}

/* ═══ SCROLL PROGRESS ════════════════════════════════════════ */
.scroll-prog {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,229,255,.6), 0 0 20px rgba(95,163,255,.3);
  transition: width .08s linear;
}

/* ═══ STARS ══════════════════════════════════════════════════ */
.stars {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
.stars::before, .stars::after { content: ""; position: absolute; inset: 0; }
.stars::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700'%3E%3Ccircle cx='42' cy='31' r='.7' fill='rgba(255,255,255,.55)'/%3E%3Ccircle cx='157' cy='82' r='.5' fill='rgba(255,255,255,.4)'/%3E%3Ccircle cx='284' cy='15' r='.8' fill='rgba(255,255,255,.5)'/%3E%3Ccircle cx='392' cy='58' r='.6' fill='rgba(255,255,255,.35)'/%3E%3Ccircle cx='521' cy='24' r='.7' fill='rgba(255,255,255,.55)'/%3E%3Ccircle cx='678' cy='71' r='.5' fill='rgba(255,255,255,.4)'/%3E%3Ccircle cx='753' cy='41' r='.6' fill='rgba(255,255,255,.5)'/%3E%3Ccircle cx='94' cy='142' r='.8' fill='rgba(255,255,255,.35)'/%3E%3Ccircle cx='213' cy='168' r='.5' fill='rgba(255,255,255,.5)'/%3E%3Ccircle cx='347' cy='125' r='.6' fill='rgba(255,255,255,.6)'/%3E%3Ccircle cx='468' cy='189' r='.7' fill='rgba(255,255,255,.3)'/%3E%3Ccircle cx='589' cy='154' r='.5' fill='rgba(255,255,255,.45)'/%3E%3Ccircle cx='712' cy='178' r='.8' fill='rgba(255,255,255,.4)'/%3E%3Ccircle cx='58' cy='241' r='.6' fill='rgba(255,255,255,.55)'/%3E%3Ccircle cx='179' cy='275' r='.5' fill='rgba(255,255,255,.35)'/%3E%3Ccircle cx='312' cy='232' r='.7' fill='rgba(255,255,255,.5)'/%3E%3Ccircle cx='431' cy='267' r='.6' fill='rgba(255,255,255,.4)'/%3E%3Ccircle cx='556' cy='248' r='.8' fill='rgba(255,255,255,.3)'/%3E%3Ccircle cx='647' cy='289' r='.5' fill='rgba(255,255,255,.6)'/%3E%3Ccircle cx='778' cy='254' r='.7' fill='rgba(255,255,255,.45)'/%3E%3Ccircle cx='124' cy='342' r='.6' fill='rgba(255,255,255,.4)'/%3E%3Ccircle cx='245' cy='378' r='.5' fill='rgba(255,255,255,.5)'/%3E%3Ccircle cx='376' cy='351' r='.8' fill='rgba(255,255,255,.35)'/%3E%3Ccircle cx='498' cy='389' r='.6' fill='rgba(255,255,255,.55)'/%3E%3Ccircle cx='623' cy='363' r='.7' fill='rgba(255,255,255,.4)'/%3E%3Ccircle cx='745' cy='398' r='.5' fill='rgba(255,255,255,.5)'/%3E%3C/svg%3E");
  background-size: 900px 700px; background-repeat: repeat; opacity: .28;
}
.stars::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Ccircle cx='71' cy='52' r='1.1' fill='rgba(95,163,255,.55)'/%3E%3Ccircle cx='234' cy='38' r='.8' fill='rgba(0,229,255,.45)'/%3E%3Ccircle cx='389' cy='67' r='1.2' fill='rgba(124,77,255,.4)'/%3E%3Ccircle cx='512' cy='29' r='.9' fill='rgba(95,163,255,.5)'/%3E%3Ccircle cx='143' cy='148' r='.9' fill='rgba(0,229,255,.4)'/%3E%3Ccircle cx='318' cy='167' r='1.1' fill='rgba(33,208,122,.45)'/%3E%3Ccircle cx='487' cy='142' r='.8' fill='rgba(95,163,255,.4)'/%3E%3Ccircle cx='211' cy='278' r='.9' fill='rgba(0,229,255,.45)'/%3E%3Ccircle cx='379' cy='249' r='.8' fill='rgba(95,163,255,.5)'/%3E%3Ccircle cx='287' cy='378' r='1.1' fill='rgba(95,163,255,.5)'/%3E%3C/svg%3E");
  background-size: 600px 400px; background-repeat: repeat; opacity: .22;
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .stars::after { animation: twinkle 12s ease-in-out infinite alternate; }
}
@keyframes twinkle { 0%,100% { opacity: .2; } 50% { opacity: .32; } }

/* ═══ BTN PRIMARY GLOW HALO ══════════════════════════════════ */
.btn-primary { position: relative; }
.btn-primary::before {
  content: "";
  position: absolute; inset: -3px;
  border-radius: calc(12px + 3px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0; filter: blur(10px); z-index: -1;
  transition: opacity .3s ease;
}
.btn-primary:hover::before { opacity: .5; }

/* ═══ MARQUEE KEYWORD GRADIENT ═══════════════════════════════ */
.marquee-item b {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ═══ REVEAL ON SCROLL ═══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--easing-out), transform .8s var(--easing-out);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }
.reveal.delay-3 { transition-delay: .36s; }
.reveal.delay-4 { transition-delay: .48s; }
.reveal.delay-5 { transition-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══ MODAL ═══════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-3));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 44px;
  max-width: 540px; width: 100%;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.modal h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.modal p { color: var(--text-2); font-size: 15.5px; margin-bottom: 24px; line-height: 1.65; }
.modal .modal-emoji { font-size: 60px; margin-bottom: 14px; display: block; }
.modal .modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ═══ HAMBURGER MENU (mobile nav toggle) ═════════════════════ */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-2);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  z-index: 101;
}
.hamburger:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--easing-spring), opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ MOBILE DRAWER ══════════════════════════════════════════ */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(4, 4, 13, .92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-drawer.show { display: flex; opacity: 1; }
.mobile-drawer-inner {
  margin: 80px auto 0;
  padding: 30px 28px;
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 6px;
  animation: drawerIn .35s var(--easing-out);
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}
.mobile-drawer a {
  display: block;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600; font-size: 17px;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.mobile-drawer a:hover { background: rgba(95,163,255,.1); border-color: var(--accent); }
.mobile-drawer a:active { transform: scale(.97); }
.mobile-drawer a.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  border-color: transparent;
  color: white;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(95,163,255,.4);
}

/* ═══ BACK-TO-TOP BUTTON ═════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(95,163,255,.5);
  border: 1px solid rgba(255,255,255,.2);
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s var(--easing-spring);
  z-index: 90;
}
.back-top.show {
  opacity: 1; pointer-events: auto; transform: none;
}
.back-top:hover { transform: translateY(-3px) scale(1.05); }
.back-top:active { transform: scale(.95); }

/* ═══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  footer .container { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 880px) {
  /* Show hamburger, hide regular nav links */
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { display: none; }      /* hide too — drawer has it */
  .hamburger { display: flex; }
  nav .container { padding-right: 20px; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: clamp(34px, 8vw, 48px); }
  .page-hero .lead { font-size: 16.5px; }
  h2 { font-size: clamp(28px, 6.5vw, 40px); }
  .section-head { margin-bottom: 50px; }
  .section-head p { font-size: 16px; }
  .container, .container-narrow { padding: 0 20px; }

  /* Modals: stack actions full-width */
  .modal { padding: 28px 22px; }
  .modal .modal-actions { flex-direction: column; }
  .modal .modal-actions .btn { width: 100%; }
}

@media (max-width: 540px) {
  /* Make the logo wordmark compact */
  .logo { font-size: 17px; gap: 10px; }
  .logo img { width: 32px; height: 32px; }
  nav { padding: 12px 0; }

  /* Hero typography down */
  h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.05; }
  .lead { font-size: 16px; }

  /* CTA buttons stack full width */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .btn-large { padding: 14px 20px; font-size: 15.5px; }

  /* Tighter sections */
  section { padding: 56px 0; }

  /* Footer single column */
  footer .container { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 50px 0 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Back-to-top a bit smaller on phones */
  .back-top { bottom: 18px; right: 18px; width: 42px; height: 42px; font-size: 18px; }
}

/* Touch-friendly tap targets for all clickable elements */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-links a, details summary, .mobile-drawer a {
    min-height: 44px;
  }
  /* Disable hover lifts on touch */
  .feat-card:hover, .feature:hover, .tier:hover {
    transform: none;
  }
}
