/* agentsinmotion.ca — Teleport
   Dark-first technical aesthetic. One accent. No framework, no JS dependency. */

:root {
  --bg:        #0b1220;   /* near-black slate */
  --bg-alt:    #0e1626;   /* alternating band */
  --surface:   #131d30;   /* cards */
  --surface-2: #1a2840;
  --border:    #243349;
  --text:      #e7edf6;   /* high-contrast body */
  --muted:     #9fb0c7;   /* >= AA on --bg */
  --accent:    #2dd4bf;   /* teal */
  --accent-2:  #38bdf8;   /* blue, for subtle gradients */
  --accent-ink:#04211d;   /* text on accent fill */
  --maxw: 1080px;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p  { margin: 0 0 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2);
       border: 1px solid var(--border); border-radius: 6px; padding: .12em .4em; color: #cdeee8; }
em { font-style: normal; color: var(--accent); }
strong { color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Accessibility: skip link + focus */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); flex: none; }
.brand-name { letter-spacing: -0.02em; }
.brand-accent { color: var(--accent); }
.brand-tld { color: var(--muted); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--text) !important; border: 1px solid var(--border);
  padding: .42em .9em; border-radius: 8px; background: var(--surface);
}
.nav-cta:hover { border-color: var(--accent); }
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: .8em 1.4em; border-radius: 10px; border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #5be3d3; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 84px);
  background:
    radial-gradient(900px 380px at 78% -10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
    radial-gradient(700px 320px at 8% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero-inner { max-width: 880px; }
.hero-banner { display: block; width: 100%; height: auto; margin: 0 0 28px; }
.hero-copy { max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent);
           letter-spacing: .02em; margin-bottom: 14px; }
.product-mark { display: inline-flex; color: var(--accent); }
.byline { color: var(--muted); font-weight: 500; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: #cdd8e8; max-width: 720px; margin-top: .4em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero-foot { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* Bands */
.band { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--bg-alt); }
.section-lede { color: var(--muted); font-size: 1.12rem; max-width: 680px; margin: -.2em 0 2em; }
.big { font-size: clamp(1.15rem, 2.3vw, 1.4rem); color: #d6e0ee; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 40px;
         display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 22px 20px; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 9px; background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); font-weight: 700; font-family: var(--mono); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Diagram */
.diagram { margin: 8px 0 0; }
.diagram-svg { width: 100%; height: auto; max-width: 760px; display: block; margin: 0 auto;
               background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.d-node rect { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.d-node.d-accent rect { fill: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); stroke: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.d-node.d-ad rect { fill: color-mix(in srgb, var(--accent-2) 12%, var(--surface-2)); stroke: color-mix(in srgb, var(--accent-2) 45%, var(--border)); }
.d-title { fill: var(--text); font: 600 16px var(--sans); }
.d-title-sm { fill: var(--text); font: 600 14px var(--mono); }
.d-sub { fill: var(--muted); font: 500 12.5px var(--sans); }
.d-edge path { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--border)); stroke-width: 2; }
.d-edge .d-edge-dash { stroke: color-mix(in srgb, var(--accent-2) 55%, var(--border)); stroke-dasharray: 4 4; }
.diagram figcaption { color: var(--muted); font-size: .92rem; text-align: center; margin-top: 12px; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0;
         display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        padding: 24px 22px; transition: border-color .15s ease, transform .1s ease; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Hypervisor row */
.hv-row { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 10px 0 18px; }
.hv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 22px 30px; min-width: 220px; }
.hv-name { display: block; font-weight: 700; font-size: 1.15rem; }
.hv-sub { display: block; color: var(--muted); font-family: var(--mono); font-size: .88rem; margin-top: 4px; }
.hv-or { color: var(--accent); font-size: 1.6rem; font-weight: 700; }

/* Checks */
.checks { list-style: none; padding: 0; margin: 0;
          display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid var(--accent);
  background-image: linear-gradient(transparent, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: .62em; width: 4px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.two-col h3 { margin-top: 1.2em; }
.two-col h3:first-child { margin-top: 0; }
.two-col p { color: var(--muted); }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; gap: 6px; } }

.arch { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; }
.arch summary { cursor: pointer; font-weight: 600; padding: 16px 0; color: var(--text); }
.arch summary::marker { color: var(--accent); }
.arch p { color: var(--muted); padding-bottom: 8px; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 30px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; }
.footer-brand .brand-name { font-weight: 700; }
.footer-brand p { margin: 6px 0 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.copyright { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }

/* 404 helper */
.errpage { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.errpage .code { font-family: var(--mono); color: var(--accent); font-size: 4rem; font-weight: 700; }
