/* ---------- Tokens ---------- */
:root {
  --bg: #0B1220;
  --bg-muted: #131C2E;
  --surface: #1A2640;
  --border: rgba(107, 122, 147, 0.18);
  --border-strong: rgba(107, 122, 147, 0.32);
  --text: #F7F9FC;
  --text-muted: #6B7A93;
  --text-dim: #3D4A5C;
  --accent: #FF7849;
  --accent-hover: #e06a3f;
  --accent-soft: rgba(255, 120, 73, 0.12);
  --pulse: #36E4B6;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1400px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --section-padding: 110px;
  --card-padding: 40px;
  --font-mono: 'Noto Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-heading);
}
img, svg, video { max-width: 100%; display: block; }
.logo svg { display: inline; flex-shrink: 0; }
.nav-inner .logo svg,
.footer-brand .logo svg { width: 41px; height: 41px; }
a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 36px 40px 8px;
  max-width: 2400px;
  margin: 0 auto;
  pointer-events: none;
  transition: transform 0.4s ease;
}
nav.nav--hidden {
  transform: translateY(calc(-100% - 10px));
}
.nav-pill {
  position: relative;
  width: 100%;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(107, 122, 147, 0.15);
  border-radius: 10px;
  pointer-events: auto;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 30px;
  min-height: 41px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  line-height: 28px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  gap: 10px;
}
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: normal;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 0.7; background: transparent; }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  line-height: 20.8px;
  padding: 8px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  margin-left: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links .nav-cta:hover { opacity: 0.88; background: var(--accent); transform: none; box-shadow: none; }

/* ---------- Ticker ---------- */
.ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transition: transform 0.4s ease;
  z-index: 100;
  padding: 16px 40px 24px;
  max-width: 2400px;
  margin: 0 auto;
  pointer-events: none;
}
.ticker-pill {
  position: relative;
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(107, 122, 147, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  pointer-events: auto;
  overflow: hidden;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.ticker-tag {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-right: 1px solid rgba(107, 122, 147, 0.12);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 3;
}
.ticker-tag .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: live-pulse 1.4s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.ticker-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.ticker-viewport::before,
.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 2;
}
.ticker-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}
.ticker-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 90s linear infinite;
  will-change: transform;
}
.ticker-pill:hover .ticker-track { animation-play-state: paused; }
.ticker.hidden { transform: translateY(calc(100% + 10px)); }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  color: var(--text);
  font-family: 'Lato', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-right: 1px solid rgba(107, 122, 147, 0.1);
}
.ticker-item .arrow {
  font-size: 11px;
  line-height: 1;
  display: inline-block;
}
.ticker-item .dist {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.ticker-item .name {
  color: var(--text);
  font-weight: 700;
}
.ticker-item.near .arrow,
.ticker-item.near .dist  { color: var(--pulse); }
.ticker-item.mid  .arrow,
.ticker-item.mid  .dist  { color: var(--text-muted); }
.ticker-item.far  .arrow,
.ticker-item.far  .dist  { color: #ef4444; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .ticker { padding: 12px 12px 16px; }
  .ticker-tag { padding: 0 12px; font-size: 10px; letter-spacing: 0.1em; }
  .ticker-item { font-size: 12px; padding: 0 16px; gap: 8px; }
  .ticker-item .dist { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Entrance animation utilities (service pages) ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp 0.6s ease both; }
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.18s; }
.anim-d3 { animation-delay: 0.28s; }
.anim-d4 { animation-delay: 0.38s; }
@media (prefers-reduced-motion: reduce) {
  .anim { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary.accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 24px rgba(255, 120, 73, 0.3); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-muted);
  padding: 160px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 60%, rgba(255, 120, 73, 0.1), transparent 55%);
  pointer-events: none;
}
.page-hero-content { position: relative; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 0;
  color: var(--text);
}
.page-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 20px;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .page-hero { padding: 130px 0 56px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: 140px 0 100px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.6) 0%, rgba(11, 18, 32, 0.4) 40%, rgba(11, 18, 32, 0.88) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 120, 73, 0.18), transparent 60%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 28px;
}
h1 .light { color: rgba(255, 255, 255, 0.7); font-family: 'Lato', 'Inter', sans-serif; font-weight: 400; display: block; }

.hero-sub {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 16px;
  line-height: 1.55;
}
.hero-microsub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Section base ---------- */
section { padding: var(--section-padding, 110px) 0; position: relative; }
.section-muted { background: var(--bg-muted); }

.section-eyebrow {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 .light { color: var(--text-muted); font-family: 'Lato', 'Inter', sans-serif; font-weight: 400; }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-top: 18px;
}

/* ---------- Two-card built-for ---------- */
.built-for {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.built-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding, 40px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.built-card:hover {
  border-color: rgba(255, 120, 73, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.diff-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.built-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.built-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.built-card p {
  flex-grow: 1;
  color: var(--text-muted);
  font-size: 1.0rem;
  margin-bottom: 24px;
}
.arrow-link {
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.arrow-link:hover { gap: 10px; }
.built-card .arrow-link { color: var(--accent); font-size: 0.95rem; }

/* ---------- Service item lists (within cards) ---------- */
.service-items {
  list-style: none;
  padding: 0;
  margin: 14px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-items li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}
.service-items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 1px;
}

/* ---------- Differentiators ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.diff-card:hover { transform: translateY(-3px); border-color: rgba(255, 120, 73, 0.3); }
.diff-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid rgba(255, 120, 73, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 28px;
}
.diff-icon svg { width: 26px; height: 26px; }
.diff-card h3 {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.diff-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
  margin-bottom: 24px;
}
.diff-card .arrow-link { color: var(--accent); font-size: 0.92rem; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.testimonial-logo {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.testimonial-quote {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 28px;
}
.testimonial-author {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.testimonial-author strong { color: var(--accent); }

/* ---------- Scroll-to-top ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 120, 73, 0.12);
  border: 1px solid rgba(255, 120, 73, 0.35);
  color: #FF7849;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(6px);
  z-index: 900;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover {
  color: #F7F9FC;
  border-color: rgba(255, 120, 73, 0.7);
  background: rgba(255, 120, 73, 0.22);
}
.scroll-top-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
@media (max-width: 540px) {
  footer { padding: 56px 0 32px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.footer-brand .logo { color: var(--text); margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-mono);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-meta {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-meta a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--accent); }

/* ---------- Hamburger button ---------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid rgba(107, 122, 147, 0.15);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.mobile-menu.open {
  max-height: 80vh;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-menu-inner {
  padding: 20px 24px 28px;
}
.mob-accordion {
  border-bottom: 1px solid rgba(107, 122, 147, 0.12);
}
.mob-accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 4px;
  font-family: 'Lato', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.mob-caret {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.mob-accordion.open > .mob-accordion-trigger > .mob-caret {
  transform: rotate(180deg);
}
.mob-accordion-content,
.mob-sub-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}
.mob-accordion-content { transition: max-height 0.25s ease, opacity 0.2s ease; }
.mob-accordion.open > .mob-accordion-content {
  max-height: 800px;
  opacity: 1;
  padding-bottom: 8px;
}
.mob-accordion-content > a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mob-accordion-content > a:hover { background: rgba(247, 249, 252, 0.05); color: var(--text); }
.mob-sub-accordion {
  border-top: 1px solid rgba(107, 122, 147, 0.08);
  margin: 0 4px;
}
.mob-sub-accordion:first-child { border-top: none; margin-top: 4px; }
.mob-sub-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}
.mob-sub-caret {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.mob-sub-accordion.open > .mob-sub-trigger > .mob-sub-caret {
  transform: rotate(180deg);
}
.mob-sub-content { transition: max-height 0.2s ease, opacity 0.18s ease; }
.mob-sub-accordion.open > .mob-sub-content {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 6px;
}
.mob-sub-content a {
  display: block;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mob-sub-content a:hover { background: rgba(247, 249, 252, 0.05); color: var(--text); }
.mobile-menu-flat a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 122, 147, 0.12);
  transition: color 0.15s;
}
.mobile-menu-flat a:hover { color: var(--accent); }
.mobile-menu-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  margin-top: 16px;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .built-for, .diff-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-center,
  .nav-right { display: none; }
  section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  nav { padding: 12px; }
  .nav-inner { padding: 8px 16px; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .mobile-menu { display: block; }
  .nav-links { gap: 12px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .built-for, .diff-grid { grid-template-columns: 1fr; }
  .built-card, .diff-card { padding: 28px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 100px 0 60px; }
  .page-hero { padding: 100px 0 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════
   BLOG  (hub + single post)
   Added for the /blog/ section. Uses existing tokens
   only — no new colours or fonts.
   ════════════════════════════════════════════════ */

/* ── Blog hub: post grid ── */
/* No padding override — inherits the standard `section` spacing (110px / 80px)
   so the blog hub matches every other page. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 120, 73, 0.3);
  box-shadow: var(--shadow);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.blog-card-cat { color: var(--accent); }
.blog-card-meta > * + *::before { content: "·"; margin-right: 10px; color: var(--text-dim); }
.blog-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 12px;
}
.blog-card p {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-muted);
  margin: 0 0 22px;
  flex-grow: 1;
}
.blog-card .arrow-link { color: var(--accent); font-size: 0.9rem; margin-top: auto; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════
   SINGLE POST
   ════════════════════════════════════════════════ */
/* Bottom uses the standard --section-padding (110px, 80px on small screens) so
   the space under the closing CTA matches every other section across the site. */
.post-wrap { padding: 56px 0 var(--section-padding, 110px); }
@media (max-width: 960px) { .post-wrap { padding-bottom: 80px; } }
.post-layout { max-width: 760px; margin: 0 auto; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 20px;
}
/* Separators are generated on each item (after the first) rather than being
   standalone <span> elements — so they stay in flow and can't collapse to the
   left, regardless of environment. */
.post-meta > * + *::before { content: "·"; margin-right: 10px; color: var(--text-dim); }
.post-cat { color: var(--accent); text-decoration: none; }
a.post-cat:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── Post type badge (News vs Guide) ── */
.post-type {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.post-type--news { color: var(--pulse); background: rgba(54, 228, 182, 0.14); }
.post-type--guide { color: var(--accent); background: rgba(255, 120, 73, 0.14); }

/* Clickable section/type in the post eyebrow ("// Blog / Guide" or "// Blog / News") */
.section-eyebrow a { text-decoration: none; transition: color 0.15s; }
.section-eyebrow a:hover { text-decoration: underline; text-underline-offset: 2px; }
.eyebrow-type--news { color: var(--pulse); }

/* ── Long-form prose ── */
.post-body { margin-top: 40px; }
.post-body > * + * { margin-top: 1.35em; }
.post-body p,
.post-body li {
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(247, 249, 252, 0.80);
}
.post-body .lead { font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.post-body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-top: 2em;
}
.post-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 1.7em;
}
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
.post-body a:hover { color: var(--accent-hover); }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin-top: 0.5em; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin-left: 0;
  color: var(--text);
  font-size: 1.15rem;
  font-style: italic;
}
.post-body figure { margin: 0; }
.post-body img { border-radius: var(--radius); border: 1px solid var(--border); }
.post-body figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.post-body code {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.88em;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ── "What this means for you" takeaway box ── */
.post-takeaway {
  margin-top: 48px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 120, 73, 0.28);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.post-takeaway-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.post-takeaway h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}
.post-takeaway p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(247, 249, 252, 0.82);
  margin: 0;
}
.post-takeaway p + p { margin-top: 12px; }

/* ── Source line ── */
.post-source {
  margin-top: 36px;
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-word;
}
.post-source-label { display: block; margin-bottom: 9px; }
.post-source a { display: block; color: var(--text-muted); padding-left: 1.15em; text-indent: -1.15em; }
.post-source a + a { margin-top: 6px; }
.post-source a::before { content: "/ "; color: var(--accent); }
.post-source a:hover { color: var(--accent); }

/* ── Post footer CTA ── */
.post-cta {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.post-cta p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.02rem; }

/* ── Related — full-width section (matches other site sections) ── */
/* Background comes from .section-muted; padding intentionally inherits the
   standard `section` spacing (110px / 80px responsive) so the top and bottom
   match every other section on the site. */
.post-related h2 { font-size: 1.4rem; margin-bottom: 24px; }
/* Cards sit on the muted section — use the dark default bg for contrast */
.post-related .blog-card { background: var(--bg); }

/* ── Blog hub: filter + search (client-side, JS-enhanced) ── */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.blog-filter[hidden] { display: none; }
.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 300px;
  margin-left: auto;
}
.blog-search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.blog-search-input {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px 10px 38px;
  transition: border-color 0.15s;
}
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-input:focus { outline: none; border-color: var(--accent); }
.blog-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.blog-chip-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.blog-chip {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.blog-chip:hover { color: var(--text); border-color: var(--text-muted); }
.blog-chip.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
/* The News type chip turns green (like the News badge/eyebrow) when active */
.blog-chip.active[data-facet="type"][data-val="news"] {
  background: var(--pulse);
  border-color: var(--pulse);
}
.blog-card--hidden { display: none !important; }
.blog-noresults {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 24px 0 8px;
}
.blog-clear {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-clear:hover { color: var(--accent-hover); }
.blog-more {
  text-align: center;
  margin-top: 56px;
}
.blog-more-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}
@media (max-width: 600px) {
  .blog-search { flex-basis: 100%; margin-left: 0; }
}

/* ════════════════════════════════════════════════
   LEGAL / POLICY PAGES (privacy, terms, cookie)
   Shared doc layout, formerly duplicated inline in each
   page. Scoped under <main class="legal-doc"> so it never
   collides with brand.html's own (differently-valued) .brand-* rules.
   ════════════════════════════════════════════════ */
.legal-doc .brand-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 72px;
  align-items: start;
  padding: 72px 0 120px;
}
.legal-doc .brand-toc { position: sticky; top: 108px; }
.legal-doc .brand-toc-heading {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7A93;
  margin-bottom: 16px;
}
.legal-doc .brand-toc ol { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legal-doc .brand-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #6B7A93;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.35;
}
.legal-doc .brand-toc a:hover { color: #FF7849; background: rgba(255,120,73,0.08); }
.legal-doc .brand-toc .toc-num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.68rem;
  color: #FF7849;
  flex-shrink: 0;
}
.legal-doc .brand-sections { min-width: 0; }
.legal-doc .brand-section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(107,122,147,0.18);
}
.legal-doc .brand-section:first-child { padding-top: 0; }
.legal-doc .brand-section:last-child { border-bottom: none; padding-bottom: 0; }
.legal-doc .brand-num {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #FF7849;
  margin-bottom: 10px;
}
.legal-doc .brand-section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #F7F9FC;
}
.legal-doc .brand-section > p, .legal-doc .brand-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: #6B7A93;
  margin-bottom: 14px;
}
.legal-doc .brand-section p:last-child { margin-bottom: 0; }
.legal-doc .brand-sub-label {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF7849;
  margin: 36px 0 12px;
}
.legal-doc .legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
}
.legal-doc .legal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #6B7A93;
}
.legal-doc .legal-list li::before {
  content: '·';
  color: #FF7849;
  font-weight: 700;
  position: absolute;
  left: 2px;
  top: 1px;
}
.legal-doc .legal-highlight {
  padding: 18px 22px;
  background: rgba(255,120,73,0.07);
  border: 1px solid rgba(255,120,73,0.2);
  border-radius: 10px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #F7F9FC;
}
.legal-doc .legal-highlight strong { color: #FF7849; }
.legal-doc .legal-meta-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.legal-doc .legal-meta-bar span {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.72rem;
  color: #6B7A93;
  letter-spacing: 0.08em;
}
.legal-doc .legal-meta-bar span strong { color: #FF7849; }
.legal-doc .brand-page-footer {
  text-align: center;
  padding: 48px 0 0;
  border-top: 1px solid rgba(107,122,147,0.18);
}
.legal-doc .brand-page-footer p {
  font-family: 'Noto Sans Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #6B7A93;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.legal-doc .brand-page-footer a { color: #FF7849; text-decoration: none; }
.legal-doc .brand-page-footer a:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .legal-doc .brand-layout { grid-template-columns: 1fr; gap: 0; padding: 48px 0 80px; }
  .legal-doc .brand-toc { display: none; }
}
@media (max-width: 540px) {
  .legal-doc .brand-layout { padding: 32px 0 56px; }
  .legal-doc .brand-section { padding: 40px 0; }
}
