:root {
  --up-primary: #0d6efd;
  --up-dark: #07111f;
  --up-dark-2: #0b1728;
  --up-text: #172033;
  --up-muted: #64748b;
  --up-light: #f5f8fc;
  --up-border: #e5eaf1;
  --up-success: #198754;
}
html { scroll-behavior: smooth; }
body {
  color: var(--up-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { text-decoration: none; }
.navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--up-border);
}
.brand-mark, .brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: transparent; color: #fff; font-weight: 800;
}
.brand-logo { object-fit: contain; background: transparent; }
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.brand-tag {
  display: block;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--up-muted);
  font-weight: 600;
}
@media (max-width: 575px) {
  .brand-tag { display: none; }
}
figure.project-frame { margin: 0 0 1.1rem; }
.project-frame {
  background: linear-gradient(180deg, #0b1728 0%, #07111f 100%);
  border-radius: 18px;
  padding: 12px 12px 14px;
  box-shadow: 0 24px 56px rgba(16,35,62,.18);
  margin-bottom: 1.1rem;
}
.project-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 10px;
}
.project-frame-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.project-frame-bar i:nth-child(1) { background: #ff5f57; }
.project-frame-bar i:nth-child(2) { background: #febc2e; }
.project-frame-bar i:nth-child(3) { background: #28c840; }
.project-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  border-radius: 10px;
  border: 0;
  margin-bottom: 0;
  background: #eef3f9;
  display: block;
}
.case-kicker { font-size: .78rem; letter-spacing: .08em; font-weight: 700; color: var(--up-primary); }
.contact-list a { color: var(--up-dark); font-weight: 600; }
.social-pill {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .85rem;
}
#faq {
  position: relative;
  z-index: 1;
}
#faqAccordion .accordion-item {
  border: 1px solid var(--up-border);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
}
#faqAccordion .accordion-button { font-weight: 700; box-shadow: none; }
#faqAccordion .accordion-button:not(.collapsed) {
  background: #eef4ff;
  color: var(--up-dark);
}
.footer-logo { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.brand-name { color: var(--up-dark); font-weight: 800; letter-spacing: -.02em; }
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(13,110,253,.24), transparent 34%),
    linear-gradient(135deg, var(--up-dark), #10233e 70%, #0d2749);
  color: #fff;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.hero .lead { color: rgba(255,255,255,.78); max-width: 760px; font-size: 1.18rem; }
.hero-panel {
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 25px 70px rgba(0,0,0,.22);
}
.terminal {
  background: #020812;
  border-radius: 16px;
  padding: 20px;
  color: #b9c8db;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
}
.section { padding: 88px 0; }
.section-soft { background: var(--up-light); }
.section-dark { background: var(--up-dark); color: #fff; }
.section-title { max-width: 760px; }
.section-title h2 { font-weight: 800; letter-spacing: -.035em; font-size: clamp(2rem, 4vw, 3rem); }
.section-title p { color: var(--up-muted); }
.section-dark .section-title p { color: rgba(255,255,255,.68); }
.card-modern {
  height: auto;
  border: 1px solid var(--up-border);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
[class*="col-"] > .card-modern:only-child {
  height: 100%;
}
.card-modern.p-0 { padding: 0; }
.card-modern:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(16,35,62,.10); }
a.card-modern { display: block; color: inherit; }
a.card-modern:hover, a.card-modern:focus-visible { color: inherit; }
.icon-box {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(13,110,253,.1);
  color: var(--up-primary);
  font-weight: 800;
}
.metric { font-size: 2rem; font-weight: 800; }
.metric-label { color: var(--up-muted); font-size: .9rem; }
.badge-tech {
  border: 1px solid var(--up-border);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: #334155;
  font-size: .88rem;
}
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--up-dark); color: #fff; font-weight: 700;
}
.cta {
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1728, #12345c);
  color: #fff;
  padding: 52px;
}
.cta p { color: rgba(255,255,255,.72); }
footer { background: #040b14; color: rgba(255,255,255,.7); }
footer a { color: rgba(255,255,255,.72); }
footer a:hover { color: #fff; }
.form-control, .form-select {
  padding: .78rem 1rem;
  border-color: #dce3ec;
  border-radius: 10px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--up-primary);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.1);
}
.page-hero {
  padding: 90px 0 70px;
  background: var(--up-light);
  border-bottom: 1px solid var(--up-border);
}
.breadcrumb a { color: var(--up-primary); }
.article { max-width: 820px; }
.article h2 { margin-top: 2.5rem; font-weight: 800; }
.article h3 { margin-top: 2rem; font-weight: 750; }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin: .4rem 0; }
.article figure { margin: 1.5rem 0; }
.article figcaption { color: var(--up-muted); font-size: .88rem; margin-top: .5rem; }
.article .related a {
  display: block;
  padding: .7rem 0;
  border-bottom: 1px solid var(--up-border);
  font-weight: 600;
}
.article pre {
  background: #07111f; color: #d9e4f1;
  padding: 20px; border-radius: 14px; overflow: auto;
  font-size: .82rem;
  line-height: 1.55;
}
.alert { border-radius: 12px; }
.article-body img,
.article-img,
.article-hero {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25rem auto;
}
.article-hero { margin-top: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; }
.article-body table { width: 100%; min-width: 520px; }
.article-body iframe { max-width: 100%; }
.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eef6;
}
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 10px;
}
.blog-toolbar .form-control { max-width: 440px; width: 100%; }
.blog-years { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-year {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--up-border);
  background: #fff;
  border-radius: 999px;
  padding: .4rem .95rem;
  min-height: 40px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--up-text);
  cursor: pointer;
}
.blog-year.is-active {
  background: var(--up-dark);
  color: #fff;
  border-color: var(--up-dark);
}
.blog-count { color: var(--up-muted); font-size: .92rem; margin-bottom: 1.15rem; }
.blog-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--up-border);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.blog-tile:hover, a.blog-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(16,35,62,.10);
  color: inherit;
}
.blog-tile-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b1728 0%, #12345c 55%, #1d4ed8 120%);
  overflow: hidden;
}
.blog-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-tile-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.02rem;
  padding: 1rem 1.2rem;
  text-align: center;
}
.blog-tile-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.1rem 1.2rem 1.2rem;
  flex: 1;
}
.blog-tile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  color: var(--up-muted);
  font-size: .8rem;
  font-weight: 600;
}
.blog-tile-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
.blog-tile h3 {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-tile p {
  margin: 0;
  color: var(--up-muted);
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-tile-cta {
  margin-top: .45rem;
  color: var(--up-primary);
  font-weight: 700;
  font-size: .92rem;
}
.pwa-install {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1080;
  display: none;
  border: 0;
  border-radius: 999px;
  background: #07111f;
  color: #fff;
  padding: .7rem 1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.pwa-install.is-visible { display: inline-flex; }
body { padding-bottom: env(safe-area-inset-bottom); }
.navbar { padding-top: max(.5rem, env(safe-area-inset-top)); }
@media (max-width: 575px) {
  .cta { padding: 28px; }
  .hero { padding: 72px 0 56px; }
  .page-hero { padding: 72px 0 40px; }
  .card-modern:not(.p-0) { padding: 22px; }
  .btn, .nav-link { min-height: 44px; display: inline-flex; align-items: center; }
}
.arch-board {
  background: linear-gradient(180deg, #07111f 0%, #0b1728 100%);
  color: #d9e4f1;
  border-radius: 20px;
  padding: 22px 18px 16px;
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
}
.arch-caption {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  font-weight: 700;
}
.arch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.arch-node {
  min-width: 132px;
  max-width: 230px;
  flex: 1 1 140px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  font-size: .86rem;
  font-weight: 600;
}
.arch-node strong { display: block; font-size: .92rem; color: #fff; }
.arch-node span { display: block; font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.58); margin-top: 4px; }
.arch-node--accent {
  background: rgba(13,110,253,.22);
  border-color: rgba(13,110,253,.45);
}
.arch-node--core {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}
.arch-node--core span { color: rgba(255,255,255,.82); }
.arch-flow {
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 6px 0;
}
.arch-board figcaption {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin-top: 14px;
  text-align: center;
}
.detail-sticky { position: sticky; top: 96px; }
.keyword-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.prose-page h2 { font-weight: 800; letter-spacing: -.03em; margin-top: 2.2rem; }
.prose-page h3 { font-weight: 750; margin-top: 1.5rem; }
.prose-page > p, .prose-page > ul, .prose-page > ol { color: #334155; }
.compare-wrap { overflow-x: auto; }
.compare-wrap table { width: 100%; min-width: 560px; }
.compare-wrap th, .compare-wrap td { padding: .7rem .8rem; border-bottom: 1px solid var(--up-border); vertical-align: top; }
.compare-wrap th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--up-muted); }
.hub-toc a { font-weight: 600; }
@media (max-width: 991px) {
  .hero { padding-top: 80px; }
  .section { padding: 65px 0; }
  .detail-sticky { position: static; }
}
