:root {
  --bg: #f6f7f7;
  --surface: #ffffff;
  --surface-soft: #f0f2f3;
  --text: #101316;
  --muted: #687076;
  --line: rgba(14, 18, 22, 0.1);
  --shadow: 0 24px 70px rgba(14, 18, 22, 0.12);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, 0.13);
  --yellow: var(--blue);
  --yellow-soft: var(--blue-soft);
  --green: #18a65a;
  --red: #d7263d;
  --dark: #0f1418;
  --terminal: #70ff89;
  --container: 1180px;
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,113,227,.14), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(130,170,255,.12), transparent 30%),
    linear-gradient(180deg, #fff, #f5f6f6 42%, #eef0f2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(16,19,22,.12);
  box-shadow: 0 10px 26px rgba(16,19,22,.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7px;
}
.logo-circle.small { width: 40px; height: 40px; padding: 6px; }
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-weight: 900; letter-spacing: -.03em; }
.brand-copy small { margin-top: 4px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-size: 11px; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #33383d;
  font-size: 14px;
  font-weight: 700;
  transition: .22s ease;
}
.site-nav a:hover { background: rgba(16,19,22,.06); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
}
.hero-content { max-width: 720px; }
.safe-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,19,22,.08);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(16,19,22,.08);
  padding: 9px 14px;
  color: #223028;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 22px;
}
.safe-pill span, .floating-status span {
  width: 9px; height: 9px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 6px rgba(0,113,227,.12);
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7vw, 82px); line-height: .95; letter-spacing: -.065em; margin-bottom: 24px; max-width: 11ch; }
h2 { font-size: clamp(30px, 4.5vw, 58px); line-height: 1; letter-spacing: -.055em; margin-bottom: 18px; }
h3 { font-size: 22px; letter-spacing: -.035em; margin-bottom: 10px; }
p { line-height: 1.65; color: #42484e; }
.lead { font-size: clamp(18px, 2vw, 22px); color: #30353a; max-width: 620px; }
.eyebrow { display: inline-flex; margin-bottom: 12px; color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 900; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 19px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(0,113,227,.24); }
.btn-dark { background: var(--blue); color: #fff; box-shadow: 0 14px 30px rgba(0,113,227,.24); }
.btn-secondary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 14px 30px rgba(0,113,227,.20); }
.btn-terminal { background: var(--terminal); color: #061006; border: 0; }
.trust-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 680px; }
.trust-row li { background: rgba(255,255,255,.72); border: 1px solid rgba(16,19,22,.08); border-radius: 22px; padding: 18px; box-shadow: 0 14px 44px rgba(16,19,22,.08); }
.trust-row strong { display: block; font-size: 26px; letter-spacing: -.04em; }
.trust-row span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 4px; }

.section { padding: 96px 0; }
.section.soft { background: rgba(255,255,255,.72); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-grid, .product-grid, .transparency-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 470px); gap: 28px; align-items: center; }
.section-copy { max-width: 720px; }
.glass-card, .job-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(16,19,22,.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.assurance-card { text-align: center; }
.cert-status { font-size: clamp(44px, 8vw, 84px); font-weight: 900; letter-spacing: -.07em; color: var(--blue); line-height: 1; margin: 12px 0; }
.assurance-card small { color: var(--muted); font-weight: 700; }
.product-image { min-height: 520px; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-list { display: grid; gap: 12px; margin-top: 24px; }
.feature-list article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.feature-list strong { display: block; margin-bottom: 4px; }
.feature-list span { color: var(--muted); line-height: 1.5; }
.crisis-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 520px); gap: 28px; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow); padding: 28px; }
.crisis-panel > div:first-child { padding: clamp(6px, 3vw, 34px); align-self: center; }
.crisis-image { min-height: 460px; border-radius: 26px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.floating-status { position: absolute; left: 18px; bottom: 18px; right: 18px; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.82); border: 1px solid rgba(16,19,22,.08); border-radius: 999px; padding: 12px 14px; font-weight: 900; color: #223028; backdrop-filter: blur(16px); }

.raven-panel { display: grid; grid-template-columns: minmax(300px, 450px) minmax(0, 1fr); gap: 34px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow); padding: 28px; }
.raven-portrait { min-height: 560px; border-radius: 28px; background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: inset 0 -120px 120px rgba(0,0,0,.25); }
.raven-copy { padding: clamp(8px, 3vw, 36px); }
.raven-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.raven-metrics div { background: rgba(0,113,227,.07); border: 1px solid rgba(0,113,227,.16); border-radius: 20px; padding: 18px; }
.raven-metrics strong { display: block; color: var(--blue); font-size: 30px; line-height: 1; letter-spacing: -.04em; margin-bottom: 6px; }
.raven-metrics span { display: block; color: var(--muted); font-weight: 800; font-size: 13px; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.jobs-grid { display: grid; grid-template-columns: 1.25fr .875fr .875fr; gap: 16px; }
.job-badge { display: inline-flex; border-radius: 999px; padding: 8px 12px; background: var(--blue-soft); color: #0054a6; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.job-badge.muted { background: #eef0f1; color: #788087; }
.job-card ul { margin: 16px 0 22px; padding-left: 19px; color: #42484e; line-height: 1.7; }
.disabled-job { opacity: .62; box-shadow: none; }
.disabled-job h3, .disabled-job p { color: #747b82; }
.asterisk { background: rgba(0,113,227,.07); border: 1px solid rgba(0,113,227,.18); padding: 18px; border-radius: 18px; font-size: 15px; }
.terminal-entry { background: #111417; color: #fff; }
.terminal-entry p { color: #cdd2d6; }
.terminal-entry .eyebrow { color: var(--terminal); }
.site-footer { background: #111417; color: #fff; padding: 38px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { color: #aeb6bd; max-width: 620px; margin: 0; font-size: 14px; }
.footer-brand .brand-copy small { color: #aeb6bd; }

.hack-noise, .hack-scan { display: none; position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.hack-active .hack-noise { display: block; background-image: radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 7px 7px; opacity: .08; mix-blend-mode: difference; }
.hack-active .hack-scan { display: block; background: repeating-linear-gradient(to bottom, transparent, transparent 3px, rgba(112,255,137,.28) 4px); opacity: .18; }
.hack-active .site-header { background: rgba(0,0,0,.82); border-color: rgba(112,255,137,.26); }
.hack-active .site-nav a, .hack-active .brand-copy strong { color: #d8ffe0; }
.hack-active .brand-copy small { color: var(--terminal); }
.hack-overlay {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
}
.hack-overlay.visible { display: flex; }
.hack-window { width: min(760px, 100%); max-height: calc(100svh - 24px); background: #030704; border: 1px solid rgba(112,255,137,.32); box-shadow: 0 0 60px rgba(112,255,137,.12), 0 28px 90px rgba(0,0,0,.55); border-radius: 22px; overflow: hidden; color: #d9ffe1; transform: skewX(-.5deg); animation: hackJitter 2.8s infinite steps(1); }
@keyframes hackJitter { 0%, 88%, 100% { transform: translate(0,0) skewX(-.5deg); } 89% { transform: translate(-2px,1px) skewX(.5deg); } 91% { transform: translate(2px,-1px) skewX(-1deg); } }
.hack-topbar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: rgba(112,255,137,.08); border-bottom: 1px solid rgba(112,255,137,.22); font-family: "JetBrains Mono", monospace; }
.hack-topbar span { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.hack-topbar span:nth-child(2) { background: var(--blue); }
.hack-topbar span:nth-child(3) { background: var(--terminal); }
.hack-topbar strong { margin-left: 8px; color: var(--terminal); }
.hack-body { padding: clamp(18px, 4vw, 34px); }
.hack-kicker, .hack-terminal-lines, .hack-small { font-family: "JetBrains Mono", monospace; }
.hack-kicker { color: var(--terminal); }
.hack-body h2 { color: #fff; text-shadow: 0 0 20px rgba(112,255,137,.22); }
.hack-body p { color: #c8ffd1; }
.hack-terminal-lines { margin: 16px 0; padding: 14px; border-radius: 16px; background: rgba(112,255,137,.06); border: 1px solid rgba(112,255,137,.16); }
.hack-terminal-lines p { margin: 0 0 6px; color: var(--terminal); }
.hack-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-hack { background: var(--blue); color: #fff; box-shadow: 0 0 34px rgba(0,113,227,.28); }
.btn-ghost { background: transparent; color: #d9ffe1; border-color: rgba(112,255,137,.35); }
.hidden { display: none !important; }
.hack-small { color: #8dbd95 !important; font-size: 13px; margin-top: 14px; }

/* Terminal page */
.terminal-page { min-height: 100svh; background: #030504; color: #ddffe3; font-family: Inter, sans-serif; }
.terminal-noise, .terminal-scan { position: fixed; inset: 0; pointer-events: none; }
.terminal-noise { background-image: radial-gradient(circle, rgba(112,255,137,.7) 1px, transparent 1px); background-size: 8px 8px; opacity: .045; }
.terminal-scan { background: repeating-linear-gradient(to bottom, transparent, transparent 4px, rgba(112,255,137,.13) 5px); opacity: .2; }
.terminal-shell { min-height: 100svh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at top, rgba(112,255,137,.13), transparent 36%), linear-gradient(180deg, #050806, #010201); }
.terminal-card { width: min(1120px, 100%); min-height: min(760px, calc(100svh - 44px)); border: 1px solid rgba(112,255,137,.24); background: rgba(3,8,4,.86); border-radius: 24px; box-shadow: 0 0 80px rgba(112,255,137,.08); overflow: hidden; position: relative; }
.terminal-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid rgba(112,255,137,.2); background: rgba(112,255,137,.07); font-family: "JetBrains Mono", monospace; color: var(--terminal); }
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; background: #ff4558; }
.terminal-dots span:nth-child(2) { background: var(--blue); }
.terminal-dots span:nth-child(3) { background: var(--terminal); }
.terminal-back { margin-left: auto; color: #d9ffe1; font-size: 13px; }
.terminal-login, .terminal-dashboard { padding: clamp(20px, 4vw, 42px); }
.terminal-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.terminal-logo .logo-circle { background: rgba(255,255,255,.06); border-color: rgba(112,255,137,.25); }
.terminal-kicker { margin: 0 0 4px; color: var(--terminal); font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.terminal-login h1 { font-size: clamp(32px, 5vw, 64px); max-width: none; color: #fff; margin: 0; }
.terminal-login p { color: #c8ffd1; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin: 24px 0 12px; }
.login-grid label { display: grid; gap: 8px; color: #d9ffe1; font-family: "JetBrains Mono", monospace; font-size: 13px; }
.login-grid input { min-height: 50px; border-radius: 14px; border: 1px solid rgba(112,255,137,.24); background: rgba(0,0,0,.35); color: var(--terminal); padding: 12px 14px; outline: none; }
.terminal-hint { font-size: 13px; color: #8dbd95 !important; }
.terminal-dashboard { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.terminal-menu { display: grid; align-content: start; gap: 10px; }
.terminal-tab { border: 1px solid rgba(112,255,137,.22); background: rgba(112,255,137,.06); color: #d9ffe1; border-radius: 14px; padding: 13px 14px; text-align: left; cursor: pointer; font-family: "JetBrains Mono", monospace; }
.terminal-tab.active { background: rgba(112,255,137,.17); color: var(--terminal); }
.terminal-panels { border: 1px solid rgba(112,255,137,.18); background: rgba(0,0,0,.24); border-radius: 20px; padding: clamp(18px, 3vw, 30px); }
.terminal-panel { display: none; }
.terminal-panel.active { display: block; }
.terminal-panel h2 { color: #fff; font-size: clamp(26px, 4vw, 46px); }
.mail-label { display: inline-flex; margin-bottom: 12px; background: rgba(215,38,61,.16); color: #ff8a98; border: 1px solid rgba(215,38,61,.28); padding: 7px 10px; border-radius: 999px; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.mail-head p, .mail-body p { color: #d9ffe1; }
.mail-body { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(112,255,137,.18); }
.mail-signature { color: var(--terminal) !important; }
.sys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.sys-box { border: 1px solid rgba(112,255,137,.18); background: rgba(112,255,137,.06); border-radius: 16px; padding: 16px; }
.sys-box span, .sys-box small { display: block; color: #98ca9f; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.sys-box strong { display: block; color: var(--terminal); font-size: 22px; margin: 8px 0; }
.sys-box.danger { border-color: rgba(215,38,61,.32); background: rgba(215,38,61,.08); }
.sys-box.danger strong { color: #ff6b7c; }
.sys-box.warn { border-color: rgba(0,113,227,.32); background: rgba(0,113,227,.08); }
.sys-box.warn strong { color: #5aa7ff; }
.terminal-output { border-radius: 16px; background: rgba(0,0,0,.38); border: 1px solid rgba(112,255,137,.17); padding: 18px; font-family: "JetBrains Mono", monospace; }
.terminal-output p { color: var(--terminal); margin: 0 0 9px; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; top: calc(100% + 10px); left: 16px; right: 16px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: 8px; display: none; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; }
  .hack-active .site-nav { background: rgba(0,0,0,.92); }
  .intro-grid, .product-grid, .crisis-panel, .raven-panel, .transparency-grid, .jobs-grid, .terminal-dashboard { grid-template-columns: 1fr; }
  .product-image, .crisis-image, .raven-portrait { min-height: 380px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .login-grid { grid-template-columns: 1fr; }
  .sys-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 22px, var(--container)); }
  .header-inner { min-height: 66px; }
  .logo-circle { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .hero { min-height: auto; padding: 58px 0 46px; background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 55%, rgba(255,255,255,.66) 100%), url('assets/img/hero-home.jpg') !important; }
  h1 { font-size: clamp(42px, 15vw, 58px); }
  .trust-row, .sys-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .glass-card, .job-card, .crisis-panel, .raven-panel { padding: 20px; border-radius: 24px; }
  .product-image, .crisis-image, .raven-portrait { min-height: 340px; border-radius: 22px; }
  .btn { width: 100%; }
  .hero-actions, .hack-actions { width: 100%; }
  .terminal-shell { padding: 10px; align-items: start; }
  .terminal-card { min-height: calc(100svh - 20px); border-radius: 18px; }
  .terminal-bar { font-size: 11px; gap: 8px; }
  .terminal-back { font-size: 11px; }
}


/* v8: hack overlay mobile optimization */
.hack-body h2 { font-size: clamp(26px, 5vw, 42px); margin-bottom: 10px; }
.hack-body > p:not(.hack-kicker):not(.hack-small) { line-height: 1.48; margin-bottom: 0; }

@media (max-width: 560px) {
  .hack-overlay { padding: 10px; align-items: center; }
  .hack-window { width: 100%; max-height: calc(100svh - 20px); border-radius: 18px; transform: none; animation: none; }
  .hack-topbar { padding: 9px 10px; gap: 6px; font-size: 10px; }
  .hack-topbar span { width: 8px; height: 8px; }
  .hack-topbar strong { margin-left: 4px; max-width: calc(100vw - 92px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hack-body { padding: 14px; }
  .hack-kicker { font-size: 11px; margin-bottom: 6px; }
  .hack-body h2 { font-size: clamp(24px, 8vw, 31px); margin-bottom: 8px; line-height: 1; }
  .hack-body > p:not(.hack-kicker):not(.hack-small) { font-size: 13px; line-height: 1.34; }
  .hack-terminal-lines { margin: 10px 0; padding: 10px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
  .hack-terminal-lines p { margin: 0; font-size: 11px; white-space: nowrap; }
  .hack-actions { gap: 8px; }
  .hack-actions .btn { min-height: 42px; padding: 10px 12px; font-size: 13px; border-radius: 12px; }
  .hack-small { font-size: 11px; line-height: 1.25; margin-top: 8px; }
}

@media (max-height: 650px) and (max-width: 560px) {
  .hack-body h2 { font-size: 22px; }
  .hack-body > p:not(.hack-kicker):not(.hack-small) { font-size: 12px; line-height: 1.25; }
  .hack-terminal-lines { padding: 8px; margin: 8px 0; }
  .hack-terminal-lines p { font-size: 10px; }
  .hack-actions .btn { min-height: 38px; font-size: 12px; }
  .hack-small { display: none; }
}


/* v9: Pineapple corporate blue button override */
body:not(.terminal-page) .btn-primary,
body:not(.terminal-page) .btn-secondary,
body:not(.terminal-page) .btn-hack {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
  box-shadow: 0 14px 30px rgba(0,113,227,.24) !important;
}
body:not(.terminal-page) .btn-ghost {
  background: transparent !important;
  color: #d9ffe1 !important;
  border-color: rgba(112,255,137,.35) !important;
  box-shadow: none !important;
}


/* v10 refinements */
:root {
  --pineapple-blue: #0071e3;
  --pineapple-blue-dark: #005bb8;
  --safe-green-bg: #eafff3;
  --safe-green-border: rgba(24, 166, 90, .26);
  --safe-green-text: #08723b;
}

.logo-circle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.logo-circle img {
  width: 88% !important;
  height: 88% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: translateY(-3px);
}
.logo-circle.small img { transform: translateY(-2px); }

body:not(.terminal-page) .btn-primary,
body:not(.terminal-page) .btn-secondary,
body:not(.terminal-page) .btn-hack {
  background: var(--pineapple-blue) !important;
  color: #fff !important;
  border-color: var(--pineapple-blue) !important;
  box-shadow: 0 14px 30px rgba(0,113,227,.24) !important;
}
body:not(.terminal-page) .btn-primary:hover,
body:not(.terminal-page) .btn-secondary:hover,
body:not(.terminal-page) .btn-hack:hover {
  background: var(--pineapple-blue-dark) !important;
  border-color: var(--pineapple-blue-dark) !important;
}

.assurance-card {
  background: linear-gradient(180deg, var(--safe-green-bg), #f6fff9) !important;
  border-color: var(--safe-green-border) !important;
}
.assurance-card h3 { color: var(--safe-green-text); }
.assurance-card p,
.assurance-card small { color: #2e6f4d !important; }
.cert-status { color: var(--safe-green-text) !important; }

.active-job .job-badge {
  background: rgba(215, 38, 61, .12) !important;
  color: #b51226 !important;
  border: 1px solid rgba(215, 38, 61, .22);
}

.btn-terminal-entry {
  background: var(--terminal) !important;
  border-color: var(--terminal) !important;
  color: #061006 !important;
  box-shadow: 0 14px 30px rgba(112,255,137,.22) !important;
}
.btn-terminal-entry:hover {
  background: #58e970 !important;
  border-color: #58e970 !important;
  color: #061006 !important;
}

@media (max-width: 560px) {
  .hack-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: #030704 !important;
  }
  .hack-window {
    width: 100vw !important;
    height: 100svh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    animation: none !important;
  }
  .hack-topbar {
    flex: 0 0 auto;
    padding: 11px 12px !important;
  }
  .hack-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .hack-kicker { font-size: 11px !important; margin-bottom: 8px !important; }
  .hack-body h2 {
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: .94 !important;
    margin-bottom: 12px !important;
    max-width: 10ch;
  }
  .hack-body > p:not(.hack-kicker):not(.hack-small) {
    font-size: clamp(13px, 3.8vw, 15px) !important;
    line-height: 1.34 !important;
    margin-bottom: 0 !important;
  }
  .hack-terminal-lines {
    margin: 14px 0 !important;
    padding: 12px !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .hack-terminal-lines p {
    font-size: clamp(12px, 3.7vw, 14px) !important;
    white-space: normal !important;
  }
  .hack-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 9px !important;
  }
  .hack-actions .btn {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 14px !important;
  }
  .hack-small {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-top: 9px !important;
  }
}

@media (max-height: 650px) and (max-width: 560px) {
  .hack-body { justify-content: flex-start !important; overflow: hidden; padding-top: 12px !important; }
  .hack-body h2 { font-size: 26px !important; margin-bottom: 8px !important; }
  .hack-body > p:not(.hack-kicker):not(.hack-small) { font-size: 12px !important; line-height: 1.26 !important; }
  .hack-terminal-lines { margin: 8px 0 !important; padding: 9px !important; }
  .hack-terminal-lines p { font-size: 11px !important; }
  .hack-actions .btn { min-height: 40px !important; font-size: 12px !important; }
  .hack-small { display: none !important; }
}
