/* ============================================================
   TRACE OS — Shared Stylesheet
   ============================================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background-color: #0C0C0F;
  color: #e5e1e6;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Safari iOS input zoom fix */
input, textarea, select { font-size: max(16px, 1em); }

/* ── Typography ─────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #F97316;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ── Background effects ─────────────────────────────────── */
.glass {
  background: rgba(12, 12, 15, 0.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.grid-bg {
  background-image: radial-gradient(circle at 2px 2px, rgba(249,115,22,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}
.glow-top {
  position: relative;
}
.glow-top::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-pulse 8s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* ── Custom easing ──────────────────────────────────────── */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px) scale(0.99); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }
.d4 { transition-delay: 0.24s; }
.d5 { transition-delay: 0.30s; }

/* ── Navigation ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 32px rgba(0,0,0,0.3);
  transition: border-color 0.3s;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1);
}
.logo-wordmark {
  font-size: 18px; font-weight: 900; letter-spacing: -0.04em;
  color: #e5e1e6; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: #a0a0a8;
  text-decoration: none; position: relative; transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: #F97316;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-link:hover { color: #e5e1e6; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: #F97316; }
.nav-link.active::after { transform: scaleX(1); }

/* hamburger */
.hb { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border-radius: 8px; background: none; border: none; }
.hb-bar { display: block; height: 2px; width: 20px; background: #e5e1e6; border-radius: 2px; transition: transform 0.25s var(--ease-out), opacity 0.2s ease; }
#mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.28s var(--ease-out);
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #0C0C0F;
}
#mobile-menu > div { overflow: hidden; }
#mobile-menu.open { grid-template-rows: 1fr; }
.mobile-link {
  display: block; padding: 12px 24px; font-size: 14px; font-weight: 500;
  color: #a0a0a8; text-decoration: none; border-radius: 10px; margin: 2px 16px;
  transition: color 0.15s ease-out, background-color 0.15s ease-out;
}
.mobile-link:hover, .mobile-link.active { color: #F97316; background: rgba(249,115,22,0.08); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #F97316; color: #552100; font-weight: 700; font-size: 14px;
  padding: 12px 28px; border-radius: 10px; border: none; cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out, scale 160ms var(--ease-out), translate 160ms var(--ease-out);
  box-shadow: 0 4px 20px rgba(249,115,22,0.25);
  white-space: nowrap;
}
.btn-primary:active { scale: 0.97; translate: 0 1px; }
.btn-primary-lg { padding: 16px 40px; font-size: 16px; border-radius: 12px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #e5e1e6; font-weight: 700; font-size: 14px;
  padding: 12px 28px; border-radius: 10px; border: 1px solid rgba(88,66,55,0.25);
  cursor: pointer; text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, scale 160ms var(--ease-out), translate 160ms var(--ease-out);
}
.btn-ghost:active { scale: 0.97; translate: 0 1px; }
.btn-ghost-lg { padding: 16px 40px; font-size: 16px; border-radius: 12px; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-live { background: rgba(74,222,128,0.1); color: #4ade80; }
.badge-soon { background: rgba(249,115,22,0.1); color: #F97316; }
.badge-planned { background: rgba(255,255,255,0.06); color: #8a8a95; }
.badge-new { background: rgba(147,204,255,0.12); color: #93ccff; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge-dot-anim { animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: #131316; border: 1px solid rgba(88,66,55,0.12);
  border-radius: 16px; padding: 36px;
  transition: border-color 0.2s ease-out, translate 0.2s var(--ease-out);
}

.card-featured {
  background: #1f1f22; border: 2px solid #F97316;
  border-radius: 24px; padding: 48px;
  box-shadow: 0 0 60px rgba(249,115,22,0.1);
}

.card-subtle {
  background: #1b1b1e; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 32px;
  transition: border-color 0.2s ease-out;
}

/* ── Inputs ─────────────────────────────────────────────── */
.input-wrap { display: flex; flex-direction: column; gap: 8px; }
.input-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: #8a8a95;
}
.input-field {
  width: 100%; background: #0e0e11 !important; border: 1px solid rgba(88,66,55,0.28) !important;
  border-radius: 12px !important; padding: 14px 16px !important; color: #e5e1e6 !important;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit !important; box-shadow: none !important;
}
.input-field:focus { border-color: #F97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.1) !important; }
.input-field::placeholder { color: rgba(224,192,177,0.3); }
.input-field.error { border-color: #f87171; }
/* Prevent browser autofill from flashing white/yellow */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 60px #0e0e11 inset !important;
  -webkit-text-fill-color: #e5e1e6 !important;
  caret-color: #e5e1e6;
}

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  padding: 156px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 720px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 20px; }
.page-hero p { font-size: 18px; color: #a0a0a8; line-height: 1.7; margin: 0 0 36px; }

/* ── Section layout ─────────────────────────────────────── */
.section { padding: 96px 24px; }
.section-alt { background: #0e0e11; }
.container { max-width: 1440px; margin: 0 auto; }
.section-head { max-width: 600px; margin-bottom: 56px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
.section-head p { font-size: 17px; color: #a0a0a8; line-height: 1.7; margin: 0; }

/* ── Stat items ─────────────────────────────────────────── */
.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 40px; font-weight: 700; color: #F97316; line-height: 1;
}
.stat-label { font-size: 14px; color: #8a8a95; margin-top: 8px; }

/* ── Dashboard mockup ───────────────────────────────────── */
.dash-wrap {
  background: #0e0e11; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
}
.dash-top {
  background: #131316; border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; color: #8a8a95;
}
.live-badge { display: flex; align-items: center; gap: 5px; color: #F97316; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #F97316; animation: livepulse 2s infinite; }
@keyframes livepulse { 0%,100%{opacity:1;} 50%{opacity:0.25;} }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255,255,255,0.05); }
.dash-kpi { padding: 12px 14px; border-right: 1px solid rgba(255,255,255,0.04); }
.dash-kpi:last-child { border-right: none; }
.kpi-lbl { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #5a5a65; margin-bottom: 5px; }
.kpi-v { font-size: 15px; font-weight: 700; color: #e5e1e6; }
.kpi-v.accent { color: #F97316; }
.kpi-d { font-size: 9px; margin-top: 3px; }
.kpi-d.up { color: #4ade80; }
.kpi-d.dn { color: #f87171; }
.dash-body { padding: 14px; }
.chart-ttl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: #5a5a65; margin-bottom: 10px; }
.dash-table-rows { margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 8px; }
.d-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 5px 0; font-size: 10px; border-bottom: 1px solid rgba(255,255,255,0.03); align-items: center; }
.d-row-n { color: #e5e1e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row-v { color: #F97316; }
.d-row-t { font-size: 8px; padding: 2px 5px; border-radius: 3px; }
.tag-a { background: rgba(74,222,128,0.1); color: #4ade80; }
.tag-b { background: rgba(251,191,36,0.1); color: #fbbf24; }
.tag-c { background: rgba(248,113,113,0.1); color: #f87171; }

/* ── Feature vis panels ─────────────────────────────────── */
.feat-vis {
  background: #0e0e11; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 24px;
}

/* ── Tabs ───────────────────────────────────────────────── */
.tab-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  color: #8a8a95; background: transparent;
  transition: color 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.tab-btn.active { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.25); color: #F97316; }
.tab-btn:hover:not(.active) { color: #e5e1e6; background: rgba(255,255,255,0.05); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tab-enter 0.28s var(--ease-out); }
@keyframes tab-enter { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ── Accordion ──────────────────────────────────────────── */
.acc-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.acc-btn {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 22px 0; text-align: left;
  background: none; border: none; color: #e5e1e6;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: color 0.2s ease-out; font-family: inherit;
}
.acc-btn:hover { color: #F97316; }
.acc-icon { flex-shrink: 0; transition: transform 0.25s var(--ease-out); color: #F97316; }
.acc-btn.open .acc-icon { transform: rotate(45deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease-out);
}
.acc-btn.open + .acc-body { grid-template-rows: 1fr; }
.acc-body-inner { overflow: hidden; padding-bottom: 20px; color: #8a8a95; line-height: 1.75; font-size: 15px; }

/* ── Job cards ──────────────────────────────────────────── */
.job-card {
  background: #131316; border: 1px solid rgba(88,66,55,0.12);
  border-radius: 16px; overflow: hidden; transition: border-color 0.2s ease-out;
}
.job-header { padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.job-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s var(--ease-out); }
.job-card.open .job-detail { grid-template-rows: 1fr; }
.job-detail-inner { overflow: hidden; padding: 0 32px 32px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; }
.job-arrow { transition: transform 0.25s var(--ease-out); color: #F97316; flex-shrink: 0; }
.job-card.open .job-arrow { transform: rotate(45deg); }

/* ── Compare table ──────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  padding: 14px 20px; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: #5a5a65;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compare-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .feat-name { color: #e5e1e6; }
.compare-table .pro-col { background: rgba(249,115,22,0.04); }
.compare-table .check { color: #4ade80; font-size: 16px; }
.compare-table .dash-sym { color: #3a3a40; }

/* ── Integration cards ──────────────────────────────────── */
.integration-card {
  background: #131316; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  transition: border-color 0.2s ease-out, translate 0.2s var(--ease-out);
}

/* ── Step numbers ───────────────────────────────────────── */
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 64px; font-weight: 700; color: rgba(249,115,22,0.08);
  line-height: 1; margin-bottom: 16px;
}

/* ── Pricing cards ──────────────────────────────────────── */
.price-card {
  background: #131316; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px; padding: 48px; display: flex; flex-direction: column;
  transition: border-color 0.2s ease-out, translate 0.2s var(--ease-out), scale 0.2s var(--ease-out);
}
.price-card.featured {
  background: #1f1f22; border: 2px solid #F97316;
  box-shadow: 0 0 60px rgba(249,115,22,0.12);
}
.price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px; font-weight: 700; line-height: 1;
}

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; color: #F97316;
  margin-bottom: 20px;
}
.footer-link {
  display: block; font-size: 14px; color: #8a8a95; text-decoration: none;
  margin-bottom: 12px; transition: color 0.2s;
}
.footer-link:hover { color: #e5e1e6; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.05); gap: 16px;
}
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #3a3a45; text-transform: uppercase; letter-spacing: 0.1em; }
.social-link { color: #3a3a45; transition: color 0.2s; text-decoration: none; }
.social-link:hover { color: #F97316; }

/* ── Code blocks ────────────────────────────────────────── */
.code-block {
  background: #0a0a0d; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7;
  overflow-x: auto;
}
.code-block .kw { color: #93ccff; }
.code-block .str { color: #4ade80; }
.code-block .cmt { color: #3a3a50; }
.code-block .num { color: #fbbf24; }
.code-block .fn { color: #F97316; }

/* ── Doc category cards ─────────────────────────────────── */
.doc-card {
  background: #131316; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 32px; text-decoration: none;
  display: block; transition: border-color 0.2s ease-out, translate 0.2s var(--ease-out);
}
.doc-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(249,115,22,0.1); display: flex; align-items: center; justify-content: center;
  color: #F97316; margin-bottom: 20px;
}

/* ── Value cards ─────────────────────────────────────────── */
.value-card {
  background: #1b1b1e; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px; padding: 40px;
}

/* ── Team cards ─────────────────────────────────────────── */
.team-card {
  background: #131316; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px; padding: 32px; text-align: center; transition: border-color 0.2s ease-out;
}
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(249,115,22,0.1);
  border: 2px solid rgba(249,115,22,0.2); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  color: #F97316;
}

/* ── Hero counter badge ─────────────────────────────────── */
.hero-float {
  position: absolute; background: rgba(12,12,15,0.9); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 16px 20px;
  backdrop-filter: blur(16px); box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: float 5s ease-in-out infinite;
}
.hero-float:nth-of-type(2) { animation-duration: 6.5s; animation-delay: -2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Page load bar ──────────────────────────────────────── */
#load-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, #F97316, #fb923c);
  width: 0%; transition: width 0.5s var(--ease-out), opacity 0.4s ease;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
}

/* ── Cursor glow ────────────────────────────────────────── */
#cursor-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.04) 0%, transparent 70%);
  top: 0; left: 0;
  will-change: transform;
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet — collapse two-column layouts.
   NOTE: Tailwind responsive classes (max-lg:grid-cols-1) cannot override
   inline style="" attributes. These !important rules fix that. */
@media (max-width: 1023px) {
  .max-lg\:grid-cols-1 { grid-template-columns: 1fr !important; }
  .max-lg\:gap-12 { gap: 48px !important; }
  /* Remove decorative tilt on dashboard when it's stacked full-width */
  .dash-wrap { transform: none !important; box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important; }
  /* Reduce large inline section margins when stacked */
  [style*="margin-top:120px"] { margin-top: 64px !important; }
  [style*="margin-top:80px"] { margin-top: 48px !important; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }

  /* Fix Tailwind responsive grids overridden by inline styles */
  .max-md\:grid-cols-1 { grid-template-columns: 1fr !important; }

  /* Hero (index.html uses inline padding — override it) */
  section.grid-bg { padding-top: 110px !important; padding-bottom: 56px !important; }
  .hero-float { display: none; } /* absolute-positioned, overflows on mobile */

  /* Spacing */
  .section { padding: 64px 20px; }
  .page-hero { padding: 110px 20px 56px; }
  .section-head { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Cards — reduce padding */
  .card { padding: 24px; }
  .card-featured { padding: 28px; }
  .card-subtle { padding: 22px; }
  .price-card { padding: 28px; }
  .doc-card { padding: 22px; }
  .team-card { padding: 24px; }

  /* Compare table — horizontal scroll on mobile */
  .compare-table { display: block; overflow-x: auto; font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 14px; white-space: nowrap; }

  /* Job cards */
  .job-header { padding: 20px 24px; }
  .job-detail-inner { padding: 0 24px 24px; padding-top: 20px; }

  /* Contact form card */
  .form-card { padding: 28px !important; border-radius: 16px !important; }

  /* Hide cursor glow — JS skips it but the 400×400 element can cause overflow */
  #cursor-glow { display: none; }
}

/* Small mobile */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-val { font-size: 32px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero p { font-size: 16px; }

  /* Reduce large button sizes so they don't overflow */
  .btn-primary-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
  .btn-ghost-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

  /* Tighter card padding */
  .card { padding: 20px; }
  .card-subtle { padding: 18px; }
  .price-card { padding: 22px; }
  .price-val { font-size: 38px; }
  .price-card.featured { padding: 24px; }
  .form-card { padding: 20px !important; border-radius: 14px !important; }
}

/* ── Hover-only interactions (not triggered on touch) ───── */
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(249,115,22,0.2); translate: 0 -2px; }
  .job-card:hover { border-color: rgba(249,115,22,0.25); }
  .integration-card.active:hover { border-color: rgba(249,115,22,0.35); translate: 0 -2px; }
  .price-card:hover { border-color: rgba(249,115,22,0.2); translate: 0 -4px; }
  .price-card.featured:hover { translate: 0 -4px; scale: 1.01; }
  .doc-card:hover { border-color: rgba(249,115,22,0.3); translate: 0 -3px; }
  .team-card:hover { border-color: rgba(249,115,22,0.2); }
  .btn-primary:hover { background-color: #fb923c; }
  .btn-ghost:hover { background-color: rgba(255,255,255,0.05); border-color: rgba(249,115,22,0.2); }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.2s ease; transform: none; }
  .reveal.visible { transform: none; }
  #mobile-menu, .acc-body, .job-detail { transition: none; }
  .hb-bar, .acc-icon, .job-arrow { transition: none; }
  .btn-primary, .btn-ghost { transition: background-color 160ms ease-out, border-color 160ms ease-out; }
  .hero-float { animation: none; }
  .glow-top::before { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
