:root {
  color-scheme: light;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --ink: #121a31;
  --muted: #66708a;
  --line: #dfe3ee;
  --violet: #6840ff;
  --blue: #2e65ed;
  --soft-violet: #eeebff;
  --success: #1b9b6b;
  --content: 1180px;
  font-family: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 15%, rgba(104, 64, 255, .07), transparent 31rem),
    var(--paper);
}
a { color: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 14px; transform: translateY(-150%); background: var(--ink); color: white; border-radius: 5px; }
.skip-link:focus { transform: none; }

.site-header, main, .site-footer { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; overflow: visible; }
.brand-mark path:first-child { fill: var(--violet); }
.brand-mark path:last-child { fill: white; }
.brand strong { display: block; color: var(--violet); font-size: 19px; line-height: 1; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.server-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 650; }
.server-state i { width: 8px; height: 8px; background: var(--success); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 3px rgba(27, 155, 107, .14); }

main { flex: 1; }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(410px, .97fr); align-items: center; gap: clamp(30px, 5vw, 82px); padding: 72px 0 58px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 27px; display: flex; align-items: center; gap: 12px; color: var(--blue); font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cfd6ed; border-radius: 50%; background: rgba(255, 255, 255, .7); }
h1 { max-width: 710px; margin: 0; font-size: clamp(46px, 5.3vw, 75px); line-height: .98; letter-spacing: -.058em; font-weight: 650; text-wrap: balance; }
.intro { max-width: 630px; margin: 30px 0 0; color: #535f7a; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.62; }
.hero-actions { margin-top: 37px; display: flex; align-items: center; gap: 24px; }
.primary-link { min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; gap: 24px; color: white; background: var(--violet); border: 1px solid var(--violet); border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 750; box-shadow: 0 10px 25px rgba(70, 50, 200, .16); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary-link:hover { transform: translateY(-2px); background: #5931ed; box-shadow: 0 14px 30px rgba(70, 50, 200, .22); }
.primary-link:focus-visible { outline: 3px solid rgba(46, 101, 237, .35); outline-offset: 4px; }
.quiet-note { color: var(--muted); font: 700 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }

.knowledge-map { position: relative; min-height: 530px; border-left: 1px solid var(--line); overflow: hidden; }
.knowledge-map::before { content: ""; position: absolute; top: 88px; bottom: 60px; left: 0; width: 1px; background: linear-gradient(transparent, var(--violet), transparent); opacity: .65; }
.map-label { position: absolute; top: 5px; right: 0; left: 33px; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 650 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.map-label b { color: var(--violet); font-weight: 750; }
.knowledge-map svg { width: 113%; max-width: 650px; margin: 10px 0 0 -6%; color: #a6b2d1; overflow: visible; transform: translate3d(var(--map-x, 0), var(--map-y, 0), 0); transition: transform .35s ease-out; }
.links { opacity: .42; }
.nodes circle { fill: var(--surface); stroke: url(#signal); stroke-width: 3; }
.nodes .core { fill: var(--violet); stroke: white; stroke-width: 5; }
.pulse { opacity: 0; stroke-width: 2; transform-origin: 304px 274px; animation: pulse 4s ease-out infinite; }
.pulse-two { animation-delay: 2s; }
.glow { opacity: .45; }
.map-caption { position: absolute; right: 5px; bottom: 8px; left: 33px; margin: 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 650 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.map-caption span { width: 28px; height: 1px; background: var(--line); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles article { min-height: 140px; padding: 25px 32px 25px 0; }
.principles article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.principles span { color: var(--violet); font: 750 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.principles p { max-width: 300px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; color: #838ca2; font: 650 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }

@keyframes pulse { 0% { opacity: .75; transform: scale(.55); } 75%, 100% { opacity: 0; transform: scale(3.6); } }

@media (max-width: 880px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 58px; }
  .knowledge-map { min-height: 440px; border-top: 1px solid var(--line); border-left: 0; }
  .knowledge-map::before { top: 0; right: 15%; bottom: auto; left: 15%; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), transparent); }
  .knowledge-map svg { width: min(100%, 590px); margin: 12px auto 0; display: block; }
}

@media (max-width: 620px) {
  .site-header, main, .site-footer { width: min(calc(100% - 32px), var(--content)); }
  .site-header { min-height: 75px; }
  .server-state { font-size: 0; }
  .server-state::after { content: "Piloto"; font-size: 11px; }
  .hero { gap: 34px; padding: 48px 0 36px; }
  h1 { font-size: clamp(42px, 14vw, 60px); }
  .intro { margin-top: 24px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .primary-link { width: 100%; justify-content: space-between; }
  .knowledge-map { min-height: 365px; }
  .map-label { left: 0; }
  .knowledge-map svg { width: 112%; margin-left: -6%; }
  .map-caption { right: 0; left: 0; }
  .map-caption span { width: 12px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 0; padding: 24px 0; }
  .principles article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-link, .knowledge-map svg { transition: none; }
  .pulse { animation: none; opacity: .22; }
}
