/* ==========================================================================
 * AUTOMATIONPRO — SHARED DESIGN SYSTEM FOR PUBLIC SUBPAGES & ARTICLES
 * Derived directly from official brand identity (Electric Azure + Deep Navy)
 * ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "tiktok";
  src: url("/fonts/TikTokSans.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "departure-mono";
  src: url("/fonts/DepartureMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f7fb;
  --bg-card: #ffffff;
  --bg-elevated: #eaf1f8;
  --bg-subtle: #eff4fa;
  --header-bg: rgba(244, 247, 251, 0.88);
  --text: #0b1528;
  --text-muted: #3f4f66;
  --text-dim: #4c5d75;
  --border: rgba(11, 21, 40, 0.22);
  --border-light: rgba(11, 21, 40, 0.11);
  --accent: #005bb5;
  --accent-strong: #004488;
  --accent-bright: #38bdf8;
  --accent-indigo: #3b5bdb;
  --accent-soft: rgba(0, 91, 181, 0.10);
  --accent-ink: #074785;
  --btn-bg: #0b1528;
  --btn-text: #ffffff;
  --btn-hover-bg: #005bb5;
  --btn-hover-text: #ffffff;
  --btn-accent-bg: #005bb5;
  --btn-accent-text: #ffffff;
  --btn-accent-hover-bg: #004488;
  --btn-accent-hover-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 21, 40, 0.04), 0 4px 12px -4px rgba(11, 21, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 21, 40, 0.06), 0 18px 36px -14px rgba(11, 21, 40, 0.14);
  --shadow-cta: 0 16px 40px -16px rgba(7, 13, 25, 0.45);
  --hero-surface: radial-gradient(920px 420px at 88% -12%, rgba(0, 132, 255, 0.10), transparent 65%), linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  --cta-bg: radial-gradient(640px 320px at 18% 0%, rgba(0, 157, 255, 0.26), transparent 65%), linear-gradient(135deg, #071226 0%, #0d1d3b 58%, #102a56 100%);
  --radius-card: 14px;
  --radius-panel: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --font-sans: "Inter", "Plus Jakarta Sans", "tiktok", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

[data-theme="dark"], html.dark {
  --bg: #070d19;
  --bg-card: #0d1729;
  --bg-elevated: #14223b;
  --bg-subtle: #111c33;
  --header-bg: rgba(7, 13, 25, 0.88);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --border: rgba(148, 180, 255, 0.26);
  --border-light: rgba(148, 180, 255, 0.14);
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --accent-bright: #7dd3fc;
  --accent-indigo: #6366f1;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-ink: #7dd3fc;
  --btn-bg: #38bdf8;
  --btn-text: #071226;
  --btn-hover-bg: #7dd3fc;
  --btn-hover-text: #071226;
  --btn-accent-bg: #38bdf8;
  --btn-accent-text: #071226;
  --btn-accent-hover-bg: #7dd3fc;
  --btn-accent-hover-text: #071226;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-cta: 0 20px 44px -18px rgba(0, 0, 0, 0.72);
  --hero-surface: radial-gradient(920px 420px at 88% -12%, rgba(0, 157, 255, 0.16), transparent 65%), linear-gradient(180deg, #0b1426 0%, #070d19 100%);
  --cta-bg: radial-gradient(640px 320px at 85% 15%, rgba(56, 189, 248, 0.22), transparent 65%), linear-gradient(135deg, #0b1830 0%, #102447 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #070d19;
    --bg-card: #0d1729;
    --bg-elevated: #14223b;
    --bg-subtle: #111c33;
    --header-bg: rgba(7, 13, 25, 0.88);
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --border: rgba(148, 180, 255, 0.26);
    --border-light: rgba(148, 180, 255, 0.14);
    --accent: #38bdf8;
    --accent-strong: #7dd3fc;
    --accent-bright: #7dd3fc;
    --accent-indigo: #6366f1;
    --accent-soft: rgba(56, 189, 248, 0.14);
    --accent-ink: #7dd3fc;
    --btn-bg: #38bdf8;
    --btn-text: #071226;
    --btn-hover-bg: #7dd3fc;
    --btn-hover-text: #071226;
    --btn-accent-bg: #38bdf8;
    --btn-accent-text: #071226;
    --btn-accent-hover-bg: #7dd3fc;
    --btn-accent-hover-text: #071226;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --shadow-cta: 0 20px 44px -18px rgba(0, 0, 0, 0.72);
    --hero-surface: radial-gradient(920px 420px at 88% -12%, rgba(0, 157, 255, 0.16), transparent 65%), linear-gradient(180deg, #0b1426 0%, #070d19 100%);
    --cta-bg: radial-gradient(640px 320px at 85% 15%, rgba(56, 189, 248, 0.22), transparent 65%), linear-gradient(135deg, #0b1830 0%, #102447 100%);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(0, 119, 230, 0.35) transparent;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.22s ease, color 0.22s ease;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 132, 255, 0.22);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.015em;
}

/* ===========================
 * HEADER & NAVIGATION
 * =========================== */
.hq-header {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 120;
  gap: 1rem;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.hq-header-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hq-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  font-variation-settings: "wght" 750, "wdth" 112;
}

.hq-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(11, 21, 40, 0.10);
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 119, 230, 0.14);
  flex-shrink: 0;
}

.hq-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hq-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.hq-nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.72rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.hq-nav-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.hq-nav-link.active {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: rgba(0, 119, 230, 0.22);
  font-weight: 650;
}

.hq-theme-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-control);
  padding: 0.44rem 0.7rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.hq-theme-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.hq-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.35rem;
}

.hq-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.hq-mobile-menu {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-md);
}

.hq-mobile-menu.is-open {
  display: block;
}

.hq-mobile-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.hq-mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.hq-mobile-links a.active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.hq-mobile-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* ===========================
 * BUTTONS & BADGES
 * =========================== */
.hq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.15rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.hq-btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.hq-btn-accent {
  background: var(--btn-accent-bg);
  color: var(--btn-accent-text);
}

.hq-btn-accent:hover {
  background: var(--btn-accent-hover-bg);
  color: var(--btn-accent-hover-text);
}

.hq-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hq-btn-outline:hover {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: none;
}

.hq-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.hq-tag-accent {
  background: var(--accent-soft);
  border-color: rgba(0, 119, 230, 0.26);
  color: var(--accent-ink);
}

/* ===========================
 * LAYOUT, HERO & SECTIONS
 * =========================== */
.hq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.75rem 1.75rem;
}

.hq-hero {
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 1.75rem 3rem;
  background: var(--hero-surface);
}

.hq-hero .hq-container {
  padding: 0;
}

.hq-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.hq-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.hq-breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hq-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}

.hq-hero-title {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
  color: var(--text);
  max-width: 24ch;
  text-wrap: balance;
  font-variation-settings: "wght" 800, "wdth" 108;
}

.hq-hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 68ch;
  line-height: 1.65;
}

/* Grids & Cards */
.hq-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.hq-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.hq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.hq-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 119, 230, 0.32);
}

.hq-card-title {
  font-size: 1.22rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.hq-card-title a {
  color: inherit;
  text-decoration: none;
}

.hq-card-title a:hover {
  color: var(--accent);
}

.hq-section-box {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.hq-section-band {
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 0 2.25rem;
  margin-bottom: 2.25rem;
}

.hq-section-header {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.85rem;
  margin-bottom: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hq-section-header .hq-section-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  margin: 0;
}

.hq-cta-banner {
  background: var(--cta-bg);
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  padding: 3.25rem 2rem;
  text-align: center;
  margin: 3rem 0 1rem;
  box-shadow: var(--shadow-cta);
}

.hq-cta-banner h2, .hq-cta-banner h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.hq-cta-banner p {
  font-size: 1.02rem;
  max-width: 58ch;
  margin: 0 auto 1.75rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.hq-cta-banner .hq-btn {
  background: #38bdf8;
  color: #071226;
  font-size: 0.9rem;
  padding: 0.8rem 1.75rem;
  font-weight: 700;
}

.hq-cta-banner .hq-btn:hover {
  background: #7dd3fc;
  color: #071226;
}

/* Spec Tiles & Subcards inside Section Boxes */
.ap-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.ap-spec-tile {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-control);
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}

.ap-spec-check {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.ap-subcard {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-panel);
  padding: 1.35rem;
}

.ap-step-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-panel);
}

.ap-step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

/* Forms */
.ap-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.ap-field-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.78rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ap-field-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ===========================
 * PRODUCT & SERVICE VISUAL SHOWCASES
 * =========================== */
.ap-visual-stage {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: radial-gradient(760px 360px at 85% 0%, rgba(0, 132, 255, 0.16), transparent 65%), linear-gradient(155deg, #071226 0%, #0d1d3b 100%);
  color: #f8fafc;
  padding: 2rem;
  margin-bottom: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ap-visual-stage-copy h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.ap-visual-stage-copy p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 1.15rem;
}

.ap-visual-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ap-visual-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.ap-visual-note {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #cbd5e1;
}

/* WhatsApp Device Frame Showcase */
.ap-wa-showcase {
  background: radial-gradient(640px 420px at 82% 20%, rgba(37, 211, 102, 0.16), transparent 60%), radial-gradient(640px 420px at 12% 85%, rgba(0, 132, 255, 0.22), transparent 62%), linear-gradient(155deg, #061121 0%, #0b1b36 100%);
}

.ap-wa-phone {
  background: #0b141a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.ap-wa-topbar {
  background: #075e54;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.ap-wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ap-wa-contact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ap-wa-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ap-wa-status {
  font-size: 0.72rem;
  color: #d1fae5;
}

.ap-wa-chat {
  background: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ap-wa-msg {
  max-width: 86%;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
}

.ap-wa-in {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 2px;
}

.ap-wa-out {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 2px;
}

.ap-wa-time {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #e2f7f2;
  margin-top: 0.28rem;
}

.ap-wa-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-top: 0.5rem;
}

.ap-wa-reply-chip {
  background: rgba(32, 44, 51, 0.94);
  border: 1px solid rgba(37, 211, 102, 0.42);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7dd3fc;
  text-align: center;
}

/* Generic Engineering Console Mockup for Voice / Chat / Workflow / Architecture */
.ap-console-panel {
  background: #091224;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.7);
}

.ap-console-bar {
  background: #0f1c36;
  border-bottom: 1px solid rgba(148, 180, 255, 0.14);
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ap-console-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.ap-console-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 180, 255, 0.3);
}

.ap-console-dots span:first-child { background: #38bdf8; }

.ap-console-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-flow-node {
  background: #101e38;
  border: 1px solid rgba(148, 180, 255, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ap-flow-node strong {
  display: block;
  font-size: 0.9rem;
  color: #f8fafc;
}

.ap-flow-node span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #cbd5e1;
}

.ap-flow-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ===========================
 * ABOUT — FOUNDER PORTRAIT SLOTS
 * =========================== */
.ap-founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ap-founder-slot {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ap-founder-media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: radial-gradient(circle at 50% 28%, rgba(0, 132, 255, 0.18), transparent 68%), linear-gradient(165deg, #0b1830 0%, #112548 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ap-founder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Transparent PNG/WebP cutouts work cleanly because radial studio lighting backs any alpha transparency */
.ap-founder-meta {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.ap-founder-slot-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.ap-founder-slot-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.ap-founder-slot-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===========================
 * ABOUT — DYNAMIC CMS LEADERS & RICH PROSE
 * =========================== */
.ap-leaders-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ap-leader-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  align-items: stretch;
}

.ap-leader-card .ap-founder-media {
  height: 100%;
  min-height: 320px;
}

.ap-founder-media--photo {
  background: var(--bg-subtle);
}

.ap-leader-body {
  padding: 1.65rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-leader-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ap-leader-name {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ap-leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.ap-leader-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.ap-leader-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.ap-about-rich {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.ap-about-rich h2,
.ap-about-rich h3,
.ap-about-rich h4 {
  color: var(--text);
  font-weight: 700;
  margin: 1rem 0 0.4rem;
  line-height: 1.3;
}

.ap-about-rich h3,
.ap-about-rich h4 {
  font-size: 1.05rem;
}

.ap-about-rich p {
  margin-bottom: 0.75rem;
}

.ap-about-rich p:last-child {
  margin-bottom: 0;
}

.ap-about-rich ul,
.ap-about-rich ol {
  margin: 0.5rem 0 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-about-rich strong {
  color: var(--text);
  font-weight: 700;
}

.ap-about-rich a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-about-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  margin: 1.25rem 0;
}

.ap-about-visual img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.ap-about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.ap-about-gallery-item {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.ap-about-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.ap-about-gallery-cap {
  padding: 0.75rem 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Service/Product Showcase UI Panels (Browser, Mobile, Pipeline) */
.ap-browser-address {
  background: #081022;
  border: 1px solid rgba(148, 180, 255, 0.22);
  border-radius: 6px;
  padding: 0.22rem 0.65rem;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.ap-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.ap-metric-tile {
  background: #101e38;
  border: 1px solid rgba(148, 180, 255, 0.18);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.ap-metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7dd3fc;
  display: block;
  margin-bottom: 0.15rem;
}

.ap-metric-val {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
}

.ap-mobile-list {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
}

.ap-mobile-row {
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(148, 180, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ap-mobile-row:last-child {
  border-bottom: none;
}

.ap-mobile-row strong {
  display: block;
  font-size: 0.88rem;
  color: #f8fafc;
}

.ap-mobile-row span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
}

@media (max-width: 780px) {
  .ap-leader-card {
    grid-template-columns: 1fr;
  }
  .ap-leader-card .ap-founder-media {
    max-height: 420px;
  }
  .ap-metric-row {
    grid-template-columns: 1fr;
  }
}

/* ===========================
 * WORK / ARCHITECTURE VISUAL PREVIEW
 * =========================== */
.ap-arch-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #081224;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.15rem;
  position: relative;
}

.ap-arch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
 * ARTICLES HUB & PROSE READABILITY
 * =========================== */
.ap-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.ap-article-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.ap-article-card-media {
  position: relative;
  margin: -1.5rem -1.5rem 1.25rem;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  background: #0a101d;
  aspect-ratio: 1200 / 630;
}

.ap-article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ap-article-card:hover .ap-article-card-media img {
  transform: scale(1.025);
}

.ap-article-hero-figure {
  margin: 0 0 2.25rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #0a101d;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1200 / 630;
}

.ap-article-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 119, 230, 0.34);
}

.ap-article-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}

.ap-article-title {
  font-size: 1.24rem;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ap-article-summary {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ap-article-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ap-article-body {
  max-width: 76ch;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.ap-article-body h2 {
  font-size: clamp(1.38rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.ap-article-body h2:first-child {
  margin-top: 0;
}

.ap-article-body h3 {
  font-size: 1.18rem;
  font-weight: 750;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}

.ap-article-body h4 {
  font-size: 1.04rem;
  font-weight: 700;
  margin: 1.35rem 0 0.45rem;
  color: var(--text);
}

.ap-article-body p {
  font-size: 1.04rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

.ap-article-body ul,
.ap-article-body ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.01rem;
  line-height: 1.72;
}

.ap-article-body li {
  margin-bottom: 0.55rem;
}

.ap-article-body strong {
  color: var(--text);
}

.ap-article-body a {
  color: var(--accent-ink);
  font-weight: 600;
}

.ap-article-body pre {
  margin: 1.65rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
}

.ap-article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elevated);
  padding: 0.16em 0.42em;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  color: var(--text);
}

.ap-article-body pre code {
  background: transparent;
  padding: 0;
  border: none;
}

.ap-article-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.ap-article-body th,
.ap-article-body td {
  border: 1px solid var(--border-light);
  padding: 0.72rem 0.95rem;
  text-align: left;
  font-size: 0.92rem;
}

.ap-article-body th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
}

.ap-article-body blockquote {
  border: 1px solid var(--border-light);
  padding: 1rem 1.35rem;
  margin: 1.5rem 0;
  background: var(--bg-subtle);
  border-radius: 10px;
  color: var(--text);
}

.ap-toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.85rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .ap-hub-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

/* ===========================
 * FOOTER
 * =========================== */
.hq-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
  padding: 3.5rem 1.75rem 4.75rem;
  margin-top: 4rem;
}

.hq-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2.25rem;
  margin-bottom: 2.75rem;
}

.hq-footer-col h4, .hq-footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.95rem;
}

.hq-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hq-footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hq-footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hq-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  padding-right: 11rem; /* keep clear of fixed bottom-right chatbot launcher */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Docked Contact WhatsApp Pill */
.ap-wa-orb-container {
  position: fixed;
  bottom: 5.25rem;
  right: 1.75rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row-reverse;
}

.ap-wa-orb-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0b1528;
  border: 2px solid #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-wa-orb-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.ap-wa-icon {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

/* ===========================
 * RESPONSIVE BREAKPOINTS
 * =========================== */
@media (max-width: 1023px) {
  .hq-nav {
    display: none !important;
  }
  .hq-mobile-toggle {
    display: inline-flex;
  }
  .ap-visual-stage {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hq-header {
    padding: 0.7rem 1rem;
  }
  .hq-container {
    padding: 1.65rem 1rem;
  }
  .hq-hero {
    padding: 2.25rem 1rem 2rem;
  }
  .hq-section-box,
  .ap-article-card,
  .ap-toc-box {
    padding: 1.35rem 1.05rem;
  }
  .hq-grid-3, .hq-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .hq-footer {
    padding: 2.5rem 1rem 5.75rem;
  }
  .hq-footer-bottom {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
