/* MSPE theme for floppy.mspe.pro (FLOPPY: Future Logic Operations Process Powered by You).
   Tokens match mspe.pro (src/styles/global.css):
   midnight #0b0b0c, white text, lime #89F336 for focus, buttons and accents. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #0b0b0c;
  --surface: #121214;
  --surface-2: #19191c;
  --surface-3: #1f1f23;
  --line: #26262b;
  --line-2: #36363d;
  --text: #ffffff;
  --text-2: #d4d4da;
  --muted: #a8a8b0;
  --accent: #89F336;
  --accent-2: #a7f668;
  --on-accent: #0b0b0c;
  --accent-soft: rgba(137, 243, 54, .12);
  --danger: #ff6b6b;
  --glow: 0 0 0 1px rgba(137, 243, 54, .35), 0 0 28px -4px rgba(137, 243, 54, .45);
  --glow-soft: 0 0 40px -18px rgba(137, 243, 54, .5);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p a, .status a, .small a, .lead a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; color: var(--text); overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 750; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; color: var(--text-2); }
mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 1px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
kbd { font: 600 .72rem/1 var(--font); padding: 4px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.ui-ic { display: inline-block; flex: 0 0 auto; vertical-align: middle; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 420px) { .wrap { padding: 0 18px; } }
.section { padding: 96px 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }
.section.soft { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.center { text-align: center; }
.lead { font-size: 1.12rem; max-width: 62ch; color: var(--text-2); }
.center .lead { margin-left: auto; margin-right: auto; }
.small { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 700 .98rem var(--font); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .18s, box-shadow .18s, transform .18s cubic-bezier(.22, 1, .36, 1), border-color .18s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); box-shadow: var(--glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease; }
.site-header.is-scrolled { background: rgba(11, 11, 12, .94); border-bottom-color: var(--line-2); box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.logo-img { width: 27px; height: 32px; object-fit: contain; }
.logo-sub { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(137, 243, 54, .28); }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 999px; font-weight: 550; font-size: .95rem; color: var(--muted); text-decoration: none; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: flex; gap: 10px; align-items: center; min-width: 0; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--muted); font: 500 .92rem var(--font); cursor: pointer; min-width: 200px; }
.search-trigger:hover { border-color: var(--accent); color: var(--text); }
.search-trigger kbd { margin-left: auto; }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px; cursor: pointer; }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .nav-links.open { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -20px rgba(0,0,0,.8); }
  .nav-links.open a { padding: 12px 14px; font-size: 1rem; }
}
@media (max-width: 480px) { .nav-cta .btn-primary { padding: 10px 16px; font-size: .9rem; } }
@media (max-width: 370px) { .nav-cta .btn-primary { display: none; } }

/* Hero */
.hero { position: relative; padding: 72px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 420px at 85% 0%, rgba(137,243,54,.10), transparent 60%), var(--bg); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 36px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 0; }
.hero-art { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--glow-soft); }
@media (max-width: 860px) { .hero-top { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 48px; } }
.task-search { position: relative; max-width: 760px; margin: 0 auto; }
.task-search label { display: block; font-weight: 650; margin-bottom: 10px; text-align: center; }
.task-field { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 0 8px 0 18px; transition: border-color .15s, box-shadow .15s; }
.task-field:focus-within { border-color: var(--accent); box-shadow: var(--glow); }
.task-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 clamp(1rem, 2.4vw, 1.35rem) var(--font); padding: 18px 0; background: transparent; color: var(--text); }
.task-field input::placeholder { color: #6e6e76; }
.task-field input::-webkit-search-cancel-button { filter: invert(1); }
.task-field .btn { padding: 11px 18px; }
@media (max-width: 480px) { .task-field { padding-left: 14px; gap: 8px; } .task-field .btn { padding: 10px 14px; font-size: .9rem; } }
.hero .filters { justify-content: center; margin: 16px 0 0; }
.status { margin: 36px 0 0; min-height: 1.6em; color: var(--text-2); font-weight: 500; }
.hero .status { text-align: center; }

/* Chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); padding: 7px 14px; border-radius: 999px; font: 550 .9rem var(--font); cursor: pointer; color: var(--text-2); transition: border-color .15s, color .15s, background .15s, transform .15s; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* App grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; margin-top: 18px; }
@media (max-width: 420px) { .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-marquee { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.app-marquee-row { display: flex; overflow: hidden; }
.app-marquee-track { display: flex; width: max-content; will-change: transform; animation: marquee-left 42s linear infinite; }
.app-marquee-row.reverse .app-marquee-track { animation-name: marquee-right; }
.app-marquee-row:hover .app-marquee-track, .app-marquee-row:focus-within .app-marquee-track { animation-play-state: paused; }
.app-marquee-group { display: flex; gap: 10px; padding-right: 10px; flex-shrink: 0; }
.app-marquee .app-tile { width: 128px; flex: 0 0 128px; animation: none; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .app-marquee-track { animation: none; } }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px; border-radius: 16px; border: 1px solid transparent; text-align: center; text-decoration: none; animation: tile-in .28s ease both; transition: background .15s, border-color .15s; min-width: 0; }
.app-tile:hover { background: var(--surface); border-color: var(--line-2); }
.app-tile:hover .app-icon { box-shadow: var(--glow); }
.app-tile:nth-child(2) { animation-delay: .02s } .app-tile:nth-child(3) { animation-delay: .04s } .app-tile:nth-child(4) { animation-delay: .06s }
.app-tile:nth-child(5) { animation-delay: .08s } .app-tile:nth-child(n+6) { animation-delay: .1s }
@keyframes tile-in { from { opacity: 0; transform: scale(.94); } }
.app-icon { width: 56px; height: 56px; border-radius: 15px; display: block; flex: 0 0 auto; transition: box-shadow .2s; }
.app-icon .ic-img { width: 100%; height: 100%; }
.app-icon.sm { width: 36px; height: 36px; border-radius: 10px; }
.app-tile > span:last-child { font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }

/* Feature split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { display: flex; gap: 12px; margin-bottom: 10px; color: var(--text-2); }
.checks li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("img/ui/check.svg") center/12px no-repeat; box-shadow: 0 0 14px -2px rgba(137,243,54,.55); }
.art { margin: 0; }
.art img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--glow-soft); }

/* AI showcase */
.ai-showcase { position: relative; overflow: hidden; background:
  radial-gradient(640px 420px at 24% 50%, rgba(137, 243, 54, .14), transparent 66%),
  radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
  var(--surface);
  background-size: auto, 26px 26px, auto; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(137, 243, 54, .35); background: rgba(137, 243, 54, .10); color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.ai-badge i, .ai-pill-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: ai-pulse 2s ease-in-out infinite; }
.ai-accent { background: linear-gradient(95deg, var(--accent) 0%, #d4ff9e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-points { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.ai-points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(18, 18, 20, .72); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.ai-points li:hover { border-color: var(--line-2); background: var(--surface-2); }
.ai-points li.is-active { border-color: rgba(137, 243, 54, .45); background: linear-gradient(135deg, rgba(137, 243, 54, .09), rgba(25, 25, 28, .92)); box-shadow: 0 0 0 1px rgba(137, 243, 54, .15), 0 14px 32px -18px rgba(137, 243, 54, .45); }
.ai-check { flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("img/ui/check.svg") center/12px no-repeat; box-shadow: 0 0 14px -2px rgba(137, 243, 54, .65); }
.ai-points b { display: block; font-size: .98rem; color: var(--text); margin-bottom: 2px; }
.ai-points span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.ai-points li.is-active span { color: var(--text-2); }
.ai-stage { margin: 0; position: relative; }
.ai-stage::before { content: ""; position: absolute; inset: -18px; border-radius: 32px; background: radial-gradient(circle at 50% 48%, rgba(137, 243, 54, .22), transparent 68%); filter: blur(20px); pointer-events: none; z-index: 0; }
.ai-frame { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; border: 1px solid rgba(137, 243, 54, .32); background: #0a0a0c; box-shadow: 0 0 0 1px rgba(137, 243, 54, .12), 0 28px 64px -24px rgba(0, 0, 0, .95), 0 0 48px -18px rgba(137, 243, 54, .45); }
.ai-frame img { width: 100%; height: auto; display: block; }
.ai-scan { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(137, 243, 54, .12) 50%, transparent 62%); transform: translateX(-120%); animation: ai-sweep 5.5s ease-in-out infinite; pointer-events: none; }
.ai-pill-top { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 12, .76); border: 1px solid rgba(137, 243, 54, .32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .76rem; font-weight: 650; color: var(--text); letter-spacing: .02em; }
.ai-hud { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 13px 15px; border-radius: 14px; background: rgba(11, 11, 12, .82); border: 1px solid rgba(137, 243, 54, .26); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .85); }
.ai-hud-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.ai-hud-tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.ai-hud-metric { font-size: .74rem; font-weight: 600; color: var(--text-2); padding: 2px 8px; border-radius: 999px; background: rgba(137, 243, 54, .14); border: 1px solid rgba(137, 243, 54, .25); }
.ai-hud-msg { margin: 0; font-size: .88rem; color: var(--text); line-height: 1.4; }
.ai-hud-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ai-hud-bars span { height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; position: relative; }
.ai-hud-bars span.is-active { background: var(--accent); box-shadow: 0 0 10px rgba(137, 243, 54, .8); }
@keyframes ai-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes ai-sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (max-width: 520px) { .ai-hud { position: static; margin: 12px; } .ai-pill-top { top: 10px; left: 10px; } }
@media (prefers-reduced-motion: reduce) { .ai-scan, .ai-badge i, .ai-pill-top i { animation: none; } }

/* Mock window */
.mock { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--glow-soft), 0 30px 60px -30px rgba(0,0,0,.9); overflow: hidden; min-width: 0; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar i:first-child { background: var(--accent); }
.mock-body { padding: 22px; display: grid; gap: 14px; }
@media (max-width: 420px) { .mock-body { padding: 14px; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); min-width: 0; }
.kpi small { color: var(--muted); font-size: .72rem; display: block; }
.kpi b { display: block; font-size: 1.15rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi em { font-style: normal; font-size: .75rem; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.bars div { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(137,243,54,.35)); border-radius: 4px 4px 0 0; }
.bars div:nth-child(even) { background: var(--line-2); }
.rows div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }
.rows div span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: .72rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.wait { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2); }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 56px; margin-top: 48px; }
.values div { border-top: 1px solid var(--line-2); padding-top: 18px; position: relative; }
.values div::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(137,243,54,.7); }
.values p { margin: 0; }

/* Company facts (real MSPE details) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; margin-top: 36px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); text-decoration: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
a.fact:hover { border-color: var(--accent); box-shadow: var(--glow-soft); }
.fact small { display: block; color: var(--muted); font-size: .8rem; }
.fact b { display: block; overflow-wrap: anywhere; }
.fact .ui-ic { margin-top: 2px; }

/* Industry tiles */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.card-art { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 18px; background: var(--bg); }
.card h3, .card p, .card a.more { margin-left: 10px; margin-right: 10px; }
.card p { margin-top: 0; margin-bottom: 0; }
.card a.more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 650; text-underline-offset: 3px; }

/* CTA band */
.cta-band { position: relative; background: radial-gradient(700px 260px at 50% 0%, rgba(137,243,54,.16), transparent 70%), var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 64px 40px; text-align: center; overflow: hidden; }
@media (max-width: 600px) { .cta-band { padding: 44px 20px; } }
.cta-band p { color: var(--text-2); }

/* Page hero */
.page-hero { padding: 72px 0 24px; }
@media (max-width: 600px) { .page-hero { padding-top: 48px; } }
.apps-search { max-width: 760px; margin: 28px auto 0; }
.apps-search .task-field { text-align: left; }
.apps-search .task-field input { padding: 16px 0; font-size: 1.1rem; text-align: left; }
.clear-btn { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: 600 .85rem var(--font); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.clear-btn:hover { border-color: var(--accent); color: var(--text); }
.apps-search .filters { margin-top: 16px; justify-content: center; }
.apps-search .status { margin-top: 24px; text-align: center; }
.cat-block { margin-top: 48px; scroll-margin-top: 90px; }
.cat-block h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.cat-block h3 i, .row-cat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--accent); box-shadow: 0 0 10px rgba(137,243,54,.8); }
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.app-list.ranked { margin-top: 8px; }
.app-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 100px; transition: border-color .15s; min-width: 0; }
.app-row:hover { border-color: var(--line-2); }
.app-row .app-icon { width: 44px; height: 44px; border-radius: 12px; }
.app-row b { display: block; }
.app-row p { margin: 2px 0 0; font-size: .9rem; }
.row-cat { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.app-row.found { border-color: var(--accent); box-shadow: var(--glow); animation: found 1.2s ease; }
@keyframes found { 0%, 40% { background: rgba(137,243,54,.12); } }
.empty { padding: 40px 0; max-width: 560px; }
.empty .filters { margin: 12px 0 20px; }

/* Command palette */
.palette { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.palette-box { position: relative; width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--glow-soft), 0 40px 80px -20px rgba(0,0,0,.9); overflow: hidden; transform: translateY(-8px); opacity: 0; transition: transform .16s ease, opacity .16s ease; }
.palette.on .palette-box { transform: none; opacity: 1; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; border: 0; outline: 0; font: 500 1.05rem var(--font); padding: 18px 0; min-width: 0; background: transparent; color: var(--text); }
.palette-input kbd { cursor: pointer; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(420px, 55vh); overflow-y: auto; }
.palette-group { padding: 8px 10px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.palette-item[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.palette-item > .ui-ic { margin: 0 9px; }
.palette-item.all { color: var(--accent); font-weight: 600; }
.pi-text { flex: 1; min-width: 0; }
.pi-text b { display: block; font-weight: 650; }
.pi-text small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-cat { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.palette-empty { padding: 16px 10px; color: var(--text-2); }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.palette-foot kbd { margin-right: 4px; }
@media (max-width: 560px) { .pi-cat, .palette-foot { display: none; } }

/* Forms */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; box-shadow: var(--glow-soft); min-width: 0; }
@media (max-width: 480px) { .form { padding: 22px 18px; } }
.form .two, .form-bare .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 600px) { .form .two, .form-bare .two { grid-template-columns: 1fr; } }
.field { min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; background: var(--bg); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #6e6e76; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(137,243,54,.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-ok { padding: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--text); border: 1px solid rgba(137,243,54,.35); font-weight: 550; }
.form-ok a { color: var(--accent); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 18px 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .95rem; }
.contact-list span { color: var(--muted); }
.contact-list a { color: var(--accent); overflow-wrap: anywhere; }
.contact-list b { font-weight: 550; }
@media (max-width: 520px) { .contact-list li { grid-template-columns: 18px minmax(0, 1fr); } .contact-list li > :last-child { grid-column: 2; } }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 96px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; width: min(420px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
.foot-brand p { margin: 14px 0 16px; max-width: 360px; font-size: .92rem; color: var(--muted); }
.foot-contact { display: grid; gap: 10px; }
.foot-contact li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; color: var(--text-2); min-width: 0; }
.foot-contact a { overflow-wrap: anywhere; }
.foot-grid h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid li a { color: var(--text-2); text-decoration: none; }
.foot-grid li a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Booking calendar */
.booking-page { padding-top: 64px; }
@media (max-width: 600px) { .booking-page { padding-top: 40px; } }
.booking { display: grid; grid-template-columns: 320px minmax(0, 1fr); margin-top: 36px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); overflow: hidden; box-shadow: var(--glow-soft); }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }
.bk-side { background: var(--surface-2); padding: 28px; border-right: 1px solid var(--line); min-width: 0; }
@media (max-width: 900px) { .bk-side { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .bk-side { padding: 22px 18px; } }
.bk-h { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 14px; }
.bk-types { display: grid; gap: 8px; }
.bk-type { text-align: left; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bk-type:hover { border-color: var(--accent); }
.bk-type[aria-checked="true"] { border-color: var(--accent); box-shadow: var(--glow); }
.bk-type-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bk-mins { font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.bk-facts { margin: 24px 0 0; display: grid; gap: 12px; }
.bk-facts div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; font-size: .92rem; }
.bk-facts dt { color: var(--muted); }
.bk-facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.bk-facts a { color: var(--accent); }

.bk-main { padding: 28px 32px 36px; min-width: 0; }
@media (max-width: 560px) { .bk-main { padding: 22px 16px 28px; } }
.bk-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; counter-reset: step; flex-wrap: wrap; }
.bk-steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 550; }
.bk-steps li + li::before { order: -2; content: ""; width: 24px; height: 1px; background: var(--line-2); margin-right: 4px; }
.bk-steps li::after { order: -1; content: counter(step); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 1px solid var(--line-2); background: var(--surface-2); }
.bk-steps li[aria-current] { color: var(--text); }
.bk-steps li[aria-current]::after { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 14px rgba(137,243,54,.5); }
.bk-steps li.done { color: var(--text-2); }
.bk-steps li.done::after { content: ""; background: var(--surface-2) url("img/ui/check-lime.svg") center/13px no-repeat; border-color: var(--accent); }

.bk-tz { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.bk-tz label { font-size: .9rem; font-weight: 600; }
.bk-tz select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: .9rem; max-width: 100%; background: var(--bg); color: var(--text); }
.bk-pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .bk-pick { grid-template-columns: 1fr; } }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 1.1rem; }
.cal-nav { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--accent); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; gap: 4px; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 0 6px; overflow: hidden; }
.cal-row > span { display: block; min-width: 0; }
.cal-day { width: 100%; aspect-ratio: 1; max-height: 52px; border: 0; border-radius: 12px; background: none; font: 500 .95rem var(--font); color: #55555c; position: relative; padding: 0; }
.cal-day.open { color: var(--text); font-weight: 700; background: var(--surface-2); cursor: pointer; }
.cal-day.open::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-day.open:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.cal-day[aria-pressed="true"]::after { background: var(--on-accent); }
.cal-legend { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.cal-legend .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.cal-none { margin: 8px 0 0; }

.slots h3 { font-size: 1.05rem; margin: 6px 0 14px; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.slot-list > p { grid-column: 1 / -1; margin: 0; }
.slot { padding: 11px 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--text); font: 650 .95rem var(--font); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.slot:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.slot-msg { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: #ffb3b3; font-weight: 600; margin: 0; }

.form-bare { display: grid; gap: 16px; }
.bk-chosen { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); flex-wrap: wrap; }
.bk-chosen b { display: block; }
.field .err { display: block; min-height: 1.2em; margin-top: 4px; color: var(--danger); font-size: .82rem; }

.bk-done { padding: 12px 0; outline: none; }
.bk-done-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--glow); animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.bk-done .bk-facts { margin: 4px 0 28px; max-width: 560px; }
.bk-done .bk-facts div { grid-template-columns: 110px minmax(0, 1fr); }
.bk-done p a { color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Gentle entrance & editorial text-entry motion, skipped for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

  /* Masked baseline text entry */
  .t-clip { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em .02em .14em; margin: -.08em -.02em -.14em; }
  .t-in { display: inline-block; transform: translate3d(0, 108%, 0); opacity: 0; transition: transform .58s var(--ease-out) var(--t-delay, 0ms), opacity .36s ease var(--t-delay, 0ms); }
  .t-reveal:not(.is-in) .t-in { will-change: transform, opacity; }
  .t-reveal.is-in .t-in { transform: translate3d(0, 0, 0); opacity: 1; }

  /* Scroll & load element reveals */
  [data-reveal] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .48s var(--ease-out) var(--r-delay, 0ms), transform .58s var(--ease-out) var(--r-delay, 0ms); }
  [data-reveal="scale"] { transform: translate3d(0, 18px, 0) scale(.985); }
  [data-reveal="fade"] { transform: translate3d(0, 8px, 0); }
  [data-reveal]:not(.is-in) { will-change: opacity, transform; }
  [data-reveal].is-in { opacity: 1; transform: none; }

  /* Architectural lime hairline draw on value pillars */
  .values > div[data-reveal]::before { transform-origin: left center; transform: scaleX(0); transition: transform .55s var(--ease-out) calc(var(--r-delay, 0ms) + 120ms); }
  .values > div[data-reveal].is-in::before { transform: scaleX(1); }

  /* Dynamic UI transitions (AI HUD swap, filtered app rows, booking steps & slots) */
  .ai-hud.is-swapping .ai-hud-head,
  .ai-hud.is-swapping .ai-hud-msg { animation: mspe-hud-in .32s var(--ease-out) both; }
  .bk-panel.is-entering { animation: mspe-panel-in .32s var(--ease-out) both; }
  .slot.is-entering { animation: mspe-item-in .26s var(--ease-out) calc(var(--i, 0) * 18ms) both; }
  .app-row.is-entering { animation: mspe-item-in .3s var(--ease-out) calc(var(--i, 0) * 22ms) both; }
  .slot:active { transform: scale(.97); }

  @keyframes mspe-hud-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
  @keyframes mspe-panel-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
  @keyframes mspe-item-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
