/* AgentePortal Core — sistema visual claro / oscuro */

:root {
  --ap-navy: #071b4a;
  --ap-navy-dark: #050b18;
  --ap-blue: #2477ff;
  --ap-cyan: #20b8ff;
  --ap-purple: #7137ff;
  --ap-violet: #8c2bff;
  --ap-magenta: #b624f5;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #0b1535;
  --muted: #667085;
  --line: #e8eaf2;
  --header-h: 72px;
  --shadow: 0 10px 35px rgba(16, 24, 40, 0.07);
  --grad: linear-gradient(135deg, #2477ff 0%, #7137ff 50%, #b624f5 100%);
  color-scheme: light;
}
html.dark {
  --bg: #050914;
  --surface: #0b1222;
  --surface-2: #10182b;
  --ink: #f8faff;
  --muted: #98a4bd;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(113, 55, 255, 0.16), transparent 32%),
    radial-gradient(circle at 8% 18%, rgba(36, 119, 255, 0.1), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}
html.dark body {
  background:
    radial-gradient(circle at 75% 12%, rgba(113, 55, 255, 0.22), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(36, 119, 255, 0.16), transparent 30%),
    var(--bg);
}
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ap-purple); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ap-purple); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 80; transform: translateY(-140%);
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .wrap { width: min(1200px, calc(100% - 48px)); }
}
@media (min-width: 1200px) {
  .wrap { width: min(1280px, calc(100% - 64px)); }
}
@media (min-width: 1440px) {
  .wrap { width: min(1360px, calc(100% - 80px)); }
}
.wrap.wide { width: min(1320px, calc(100% - 32px)); }
@media (min-width: 1200px) {
  .wrap.wide { width: min(1360px, calc(100% - 64px)); }
}

.lucide, .icon-btn svg, .nav-toggle svg, .nav-drop-btn svg, .btn svg {
  width: 18px; height: 18px; flex: none; display: block;
}
.cap-grid .lucide, .sol-grid .lucide, .hub-row .lucide {
  width: 22px; height: 22px; color: var(--ap-purple);
}
.hero-chips .lucide, .channel-row .lucide, .benefit-row .lucide { width: 18px; height: 18px; color: var(--ap-purple); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
html.dark .site-header.is-scrolled { background: rgba(5, 9, 20, .82); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 100%; min-width: 0;
}
.site-nav { min-width: 0; }
.brand { min-width: 0; flex: none; }
.header-actions { flex: none; }
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 40px; width: auto; display: block; object-fit: contain; }
.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }
@media (max-width: 640px) { .logo { height: 32px; } }

.nav-toggle, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
html:not(.dark) .icon-sun { display: none; }
html.dark .icon-moon { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-header { display: none; min-height: 42px; padding: 8px 16px; white-space: nowrap; }

.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg); padding: 12px 18px 28px; gap: 4px; overflow: auto; z-index: 40;
}
.site-nav a, .nav-drop-btn { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav > a, .drop-panel a, .nav-drop-btn, .nav-label { padding: 12px 8px; border-radius: 12px; }
.nav-label { margin: 0; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-drop-btn { display: none; align-items: center; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.drop-panel { display: flex; flex-direction: column; }
.drop-panel a { color: var(--muted); font-weight: 500; }
.site-nav a.nav-drawer-cta { display: inline-flex; margin-top: 12px; justify-content: center; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .btn.btn-header { display: inline-flex; }
  .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: 2px;
    position: static; background: transparent; padding: 0; overflow: visible;
  }
  .site-nav > a { padding: 8px 12px; }
  .site-nav > a:hover { color: var(--ap-purple); }
  .nav-label, .site-nav a.nav-drawer-cta { display: none; }
  .nav-drop { position: relative; }
  .nav-drop-btn { display: inline-flex; padding: 8px 12px; }
  .nav-drop-btn svg { transition: transform .2s ease; }
  .nav-drop:hover .nav-drop-btn svg,
  .nav-drop.is-open .nav-drop-btn svg,
  .nav-drop:focus-within .nav-drop-btn svg { transform: rotate(180deg); }
  .drop-panel {
    position: absolute; top: calc(100% - 2px); left: 0; min-width: 220px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  }
  html.dark .drop-panel { background: var(--surface-2, #10182b); }
  .nav-drop:hover .drop-panel,
  .nav-drop.is-open .drop-panel,
  .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(113, 55, 255, .28); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ap-purple); text-decoration: none; }
.btn.btn-header { display: none; }
@media (min-width: 900px) { .btn.btn-header { display: inline-flex; min-height: 42px; } }

.hero {
  padding: calc(var(--header-h) + 36px) 0 28px;
  min-height: 0;
  display: flex; align-items: center;
}
@supports (height: 100svh) {
  @media (min-width: 1100px) and (min-height: 820px) {
    .hero { min-height: min(640px, calc(100svh - 220px)); }
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.badge, .kicker {
  display: inline-flex; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--ap-purple) 12%, transparent);
  color: var(--ap-purple); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
html.dark .badge, html.dark .kicker { color: #c4b5fd; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  margin: 0; max-width: 720px;
  font-size: clamp(40px, 3.4vw, 58px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
}
.grad {
  display: block; margin-top: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 14px 0 0; max-width: 600px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.sub { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-chips, .channel-row, .cap-grid, .sol-grid, .benefit-row, .trust, .hub-row {
  list-style: none; margin-block: 0; margin-inline: 0; padding: 0;
}
ul.wrap, ol.wrap {
  margin-inline: auto;
}
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 14px; }
.hero-chips li, .benefit-row li, .channel-row li, .hub-row li {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
}

.stage {
  position: relative; min-height: 0; isolation: isolate;
  width: 100%; max-width: 100%;
  overflow: visible;
}
.stage::before {
  content: ""; position: absolute; inset: 8% 4% 4% 18%; z-index: 0; border-radius: 40%;
  background: radial-gradient(circle, rgba(113,55,255,.28), transparent 68%);
  filter: blur(18px); pointer-events: none;
}
.board {
  position: relative; z-index: 1;
  height: clamp(340px, 32vw, 460px);
  width: auto; max-width: 100%;
  margin: 8px 8px 0 12px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(155deg, #141a3d, #2a1a62 52%, #0d1228);
  border: 1px solid rgba(140, 43, 255, .35);
  box-shadow:
    0 28px 70px rgba(36, 119, 255, .22),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 90px rgba(113, 55, 255, .28);
}
html:not(.dark) .board {
  background: linear-gradient(155deg, #efeaff, #ffffff 58%);
  border-color: #e4e0f5;
  box-shadow: 0 28px 60px rgba(88, 70, 180, .16), 0 0 70px rgba(113,55,255,.12);
}
.board-screen {
  position: absolute; left: 16px; top: 28px; z-index: 2; width: min(48%, 230px); padding: 14px;
  border-radius: 18px;
  background: rgba(8, 12, 28, .78); border: 1px solid rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(10px);
}
html:not(.dark) .board-screen {
  background: rgba(255,255,255,.92); color: var(--ink); border-color: #e8e4f6;
}
.board-screen p { margin: 0 0 10px; font-weight: 800; font-size: 12px; letter-spacing: .08em; color: #a78bfa; }
.wave {
  display: flex; align-items: flex-end; gap: 3px; height: 28px; margin: 0 0 10px;
}
.wave i {
  display: block; width: 4px; border-radius: 99px;
  background: linear-gradient(180deg, #20b8ff, #7137ff);
  animation: wave-pulse 1.1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 18px; animation-delay: .1s; }
.wave i:nth-child(3) { height: 26px; animation-delay: .2s; }
.wave i:nth-child(4) { height: 14px; animation-delay: .3s; }
.wave i:nth-child(5) { height: 22px; animation-delay: .15s; }
.wave i:nth-child(6) { height: 12px; animation-delay: .25s; }
.wave i:nth-child(7) { height: 20px; animation-delay: .05s; }
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(.55); opacity: .7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.bar { display: block; height: 7px; margin: 7px 0; border-radius: 99px; background: rgba(255,255,255,.16); }
html:not(.dark) .bar { background: #eceaf8; }
.bar.short { width: 62%; }
.board .call {
  display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 8px 11px;
  border-radius: 999px; background: #0b1222; color: #fff; font-size: 12px; font-weight: 600;
  width: max-content; max-width: 100%; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.pulse { width: 8px; height: 8px; border-radius: 99px; background: #f43f5e; box-shadow: 0 0 0 4px rgba(244,63,94,.25); }
.hang { width: 18px; height: 18px; border-radius: 99px; background: #ef4444; margin-left: 4px; flex: none; }
.board img {
  position: absolute; right: -2%; bottom: 0; width: 68%; height: 104%;
  object-fit: cover; object-position: center 6%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}
.orb {
  position: absolute; z-index: 4; width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #ebe8f6;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
}
html.dark .orb { background: #10182b; border-color: rgba(255,255,255,.1); }
.orb img, .orb .lucide { width: 22px; height: 22px; }
.orb .lucide { color: var(--ap-purple); }
.orb.wa { top: 8px; left: 4px; }
.orb.ig { top: 4px; right: 28px; }
.orb.tel { top: 84px; left: 4px; }
.orb.ai { bottom: 28px; left: 12px; }
.orb.chat { top: 76px; right: 8px; }

.rail { padding: 4px 0 0; }
#capacidades { padding-top: 28px; padding-bottom: 56px; }
.channel-row {
  display: flex; align-items: center; justify-content: center; gap: 10px 22px;
  min-height: 64px; padding: 12px 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  overflow-x: auto; flex-wrap: wrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.channel-row li { white-space: nowrap; flex: none; }
html.dark .channel-row { background: #0b1222; }
.channel-row img, .hub-row img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.hub-row img { width: 28px; height: 28px; }

.section { padding: 36px 0 28px; }
.section.tight { padding-top: 24px; padding-bottom: 48px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2 { margin: 0; font-size: clamp(30px, 2.6vw, 42px); letter-spacing: -.03em; line-height: 1.12; }
h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.cap-grid, .sol-grid { display: grid; gap: 16px; }
.cap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
#capacidades > .wrap,
#operacion > .wrap,
.rail > .wrap { max-width: 100%; }
.cap-grid li, .sol-grid li {
  min-height: 168px; padding: 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
  overflow: visible;
}
.cap-grid p, .sol-grid p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
html.dark .cap-grid li, html.dark .sol-grid li {
  background: linear-gradient(180deg, rgba(113,55,255,.08), transparent 42%), #0b1222;
}
.cap-grid li:hover, .sol-grid li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ap-purple) 45%, var(--line)); }
.cap-grid p, .sol-grid p, .benefit-row p { margin: 0; color: var(--muted); font-weight: 500; }
.cap-grid .lucide, .sol-grid .lucide {
  width: 28px; height: 28px; margin-bottom: 14px; padding: 8px; box-sizing: content-box;
  border-radius: 12px; background: color-mix(in srgb, var(--ap-purple) 12%, transparent);
}

.hub {
  margin-top: 8px; padding: 22px 18px 18px; min-height: 0;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center;
}
html.dark .hub { background: #0b1222; }
.hub-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; text-align: center; }
.hub-row li {
  flex-direction: column; justify-content: center; font-size: 13px; gap: 8px;
  min-height: 92px; padding: 10px 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 70%, var(--surface));
  border: 1px solid var(--line);
}
.wires { width: 100%; height: 52px; display: block; margin: 2px auto; overflow: visible; }
.wires path {
  fill: none; stroke: #7137ff; stroke: url(#wire-down); stroke-width: 2.25; stroke-linecap: round; opacity: .9;
}
.wires.flip path { stroke: #7137ff; stroke: url(#wire-up); }
.wires.flip { transform: scaleY(-1); }
.hub-core {
  width: min(420px, 88%); margin: 2px auto; padding: 18px 28px; border-radius: 20px;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 0 10px rgba(113, 55, 255, .1), 0 18px 40px rgba(113, 55, 255, .22);
}
html.dark .hub-core {
  background:
    linear-gradient(#10182b, #10182b) padding-box,
    var(--grad) border-box;
}
.hub-core img { height: 56px; width: auto; margin-inline: auto; object-fit: contain; display: block; }
.hub-core .logo-dark { display: none; }
html.dark .hub-core .logo-light { display: none; }
html.dark .hub-core .logo-dark { display: block; }

.api-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.api-scene {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
  min-height: 0; padding: 22px 16px; border-radius: 24px; width: 100%; max-width: 100%;
  overflow: hidden;
  background:
    radial-gradient(220px 180px at 50% 50%, rgba(113,55,255,.22), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
html.dark .api-scene { background:
  radial-gradient(240px 190px at 50% 50%, rgba(113,55,255,.32), transparent 70%), #0b1222; }
.api-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.api-side li {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  border: 1px solid var(--line); font-size: 14px; font-weight: 700;
}
html.dark .api-side li { background: #10182b; }
.api-side img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.api-side li { position: relative; }
.api-side:first-child li::after,
.api-side:last-child li::before {
  content: ""; position: absolute; top: 50%; width: 22px; height: 1px;
  background: linear-gradient(90deg, rgba(36,119,255,.15), #8c2bff);
}
.api-side:first-child li::after { left: 100%; }
.api-side:last-child li::before { right: 100%; background: linear-gradient(90deg, #8c2bff, rgba(36,119,255,.15)); }
.api-core { display: flex; align-items: center; justify-content: center; }
.api-beam {
  width: 42px; height: 2px; border-radius: 99px;
  background: linear-gradient(90deg, #2477ff, #b624f5);
}
.cloud {
  position: relative; width: 148px; height: 148px; border-radius: 40px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  letter-spacing: .08em; font-size: 28px;
  background: radial-gradient(circle at 32% 28%, #efe8ff, #7137ff 42%, #1a1464 78%);
  box-shadow: 0 0 0 10px rgba(113,55,255,.12), 0 22px 50px rgba(113,55,255,.32);
}

.sol-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; align-items: start; }
.sol-layout .section-head { margin: 0; }
.sol-layout .btn { margin-top: 18px; }
.sol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sol-grid li { min-height: 150px; }

.benefit-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding: 18px 8px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  border: 1px solid var(--line);
}
.benefit-row li { padding: 8px 10px; align-items: flex-start; }
.benefit-row h3 { font-size: 16px; line-height: 1.25; }
.benefit-row .lucide { width: 22px; height: 22px; color: var(--ap-purple); margin-top: 2px; }

.cta-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 36px; align-items: center;
  background: transparent; border: 0; box-shadow: none; padding: 0;
}
.cta-visual {
  border-radius: 24px; overflow: hidden; min-height: 280px; position: relative; width: 100%;
  box-shadow: 0 24px 50px rgba(113, 55, 255, .16);
}
.cta-visual img { width: 100%; height: 100%; min-height: 280px; max-height: 340px; object-fit: cover; object-position: center 18%; display: block; }
html.dark .photo-light, html:not(.dark) .photo-dark { display: none; }
.cta-panel .form-grid {
  grid-column: 1 / -1; max-width: 1000px; margin: 20px auto 0; padding: 28px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
html.dark .cta-panel .form-grid { background: #0b1222; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.span-2 { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.form-status, .fine { color: var(--muted); font-size: 14px; }
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px;
  list-style: none; padding: 0;
}
.trust li { text-align: center; font-weight: 600; font-size: 14px; color: var(--muted); }

.site-footer { background: #050b18; color: #98a4bd; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-logo { height: 44px; width: auto; object-fit: contain; }
.site-footer a { color: #d5dced; text-decoration: none; }
.site-footer a:hover { color: #c4b5fd; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer p { margin: 12px 0 0; font-size: 15px; }
.legal {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center;
}
.legal p { margin: 0; }
.legal nav { display: flex; gap: 16px; }

.sticky-cta { display: none !important; }
section[id] { scroll-margin-top: 88px; }

@media (max-width: 1100px) {
  h1 { font-size: clamp(34px, 5vw, 42px); }
  h2 { font-size: clamp(28px, 4vw, 34px); }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 16px); }
  .hero-grid, .api-grid, .cta-panel, .cap-grid, .sol-layout, .foot-grid { grid-template-columns: 1fr; }
  .board { height: min(380px, 70vw); margin: 8px 0 0; max-width: 520px; }
  .stage { display: flex; justify-content: center; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .hub { min-height: 0; }
  .hub-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wires {
    width: 3px; height: 36px; margin: 10px auto;
    background: linear-gradient(#2477ff, #b624f5); border-radius: 99px;
  }
  .wires path { display: none; }
  .api-scene { grid-template-columns: 1fr; min-height: 0; }
  .api-side li::before, .api-side li::after { display: none; }
  .api-core { flex-direction: column; padding: 8px 0; }
  .api-beam { width: 2px; height: 28px; background: linear-gradient(#2477ff, #b624f5); }
  .benefit-row { grid-template-columns: 1fr 1fr; }
  .channel-row { justify-content: flex-start; flex-wrap: nowrap; }
}
@media (max-width: 720px) {
  .section { padding: 32px 0 24px; }
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .sol-grid, .benefit-row, .trust, .form-grid, .hub-row { grid-template-columns: 1fr 1fr; }
  .board { height: 320px; max-width: none; }
  .board-screen { width: 70%; }
  .board .call { flex-wrap: nowrap; font-size: 11px; }
  .hang { display: none; }
  body { padding-bottom: 72px; }
}
@media (max-width: 430px) {
  h1 { font-size: 34px; }
  .cap-grid, .sol-grid, .benefit-row, .form-grid, .trust { grid-template-columns: 1fr; }
  .hub-row { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.page-arch .hero { min-height: 0; display: block; padding-bottom: 8px; }
.page-arch h1 { font-size: clamp(36px, 4vw, 52px); }
.arch-layout, .pillars { display: grid; gap: 20px; }
.layers, .pillars { list-style: none; margin: 0; padding: 0; }
.layers li, .pillars li { padding: 16px 0 16px 16px; border-left: 3px solid var(--ap-purple); border-bottom: 1px solid var(--line); }
.layers p, .pillars p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .arch-layout { grid-template-columns: .8fr 1.2fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
}
@media print {
  .site-header, .sticky-cta { display: none !important; }
  body { background: #fff; color: #000; }
}
