/*
 * LPlatesDriver foundation web theme
 * ----------------------------------
 * Keep public-site visual changes anchored to these tokens so future releases
 * extend the same design language instead of reinventing the site each time.
 */

:root {
  --ink-950: #040914;
  --ink-900: #07111f;
  --ink-850: #0b1728;
  --ink-800: #102039;
  --blue-500: #2f86ff;
  --blue-400: #69a7ff;
  --cream-100: #f3ead8;
  --cream-200: #e6d7bd;
  --pig-400: #ef9fa3;
  --olive-500: #7d8052;
  --white: #f8fbff;
  --muted: #9cadc1;
  --line: rgba(255,255,255,.12);
  --panel: rgba(10,23,40,.78);
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 30px 90px rgba(0,0,0,.38);
  --shell: min(1180px, calc(100vw - 40px));
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 8%, rgba(47,134,255,.15), transparent 28rem),
    radial-gradient(circle at 12% 36%, rgba(239,159,163,.06), transparent 24rem),
    var(--ink-950);
  font-family: var(--font-sans);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink-950);
  border-radius: 8px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.build-strip {
  min-height: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(47,134,255,.24);
  background: rgba(47,134,255,.08);
  color: #bdd8ff;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .13em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 18px var(--blue-400);
  animation: pulse 2s ease-in-out infinite;
}

.site-header {
  width: var(--shell);
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 13px;
  background: var(--blue-500);
  color: white;
  font-weight: 900;
  letter-spacing: -.06em;
  box-shadow: 0 12px 28px rgba(47,134,255,.28);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font: 10px/1.4 var(--font-mono); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #c8d3df; text-decoration: none; font-size: 13px; }
.site-nav a:hover { color: white; }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .84fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  padding-block: 86px 105px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-400);
  font: 800 11px/1.1 var(--font-mono);
  letter-spacing: .16em;
}
.hero h1, .section-heading h2, .beta-banner h2, .contact-panel h2 {
  margin: 0;
  letter-spacing: -.055em;
  line-height: .95;
}
.hero h1 { max-width: 780px; font-size: clamp(58px, 8vw, 102px); }
.hero h1 span { color: var(--blue-400); }
.hero-lede {
  max-width: 710px;
  margin: 30px 0 0;
  color: #b8c6d5;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 38px; }
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--blue-500);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(47,134,255,.22);
}
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .link-button:focus-visible {
  outline: 3px solid var(--cream-100);
  outline-offset: 3px;
}
.button--small { padding: 10px 15px; font-size: 12px; }
.button--ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.button--cream { background: var(--cream-100); color: var(--ink-950); box-shadow: 0 15px 38px rgba(0,0,0,.2); }
.text-link { color: #d6e0ea; text-decoration: none; font-weight: 700; font-size: 14px; }
.text-link:hover { color: white; }
.signal-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.signal-row span, .card-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .08em;
}

.hero-art { position: relative; max-width: 430px; justify-self: end; }
.poster-card {
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.poster-card--tpigs { min-height: 430px; background: linear-gradient(155deg, #111e30, #07111f 64%, #111927); }
.poster-stage { position: relative; min-height: 430px; overflow: hidden; }
.poster-rings {
  position: absolute; width: 290px; aspect-ratio: 1; left: 50%; top: 42%; transform: translate(-50%, -50%);
  border: 1px solid rgba(105,167,255,.18); border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(105,167,255,.05), 0 0 0 76px rgba(105,167,255,.025);
}
.poster-pig-holder { position: absolute; left: 50%; top: 37%; transform: translate(-50%, -50%); }
.poster-copy { position: absolute; left: 28px; right: 28px; bottom: 34px; }
.poster-copy strong { display: block; font-size: clamp(34px, 5vw, 52px); line-height: .9; letter-spacing: -.06em; }
.poster-copy span { display: block; margin-top: 14px; color: var(--blue-400); font: 800 9px/1 var(--font-mono); letter-spacing: .15em; }
.poster-stamp {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(4,9,20,.86);
  border-radius: 12px;
  font: 900 17px/1 var(--font-mono);
  transform: rotate(-3deg);
}
.poster-stamp small { font-size: 7px; color: var(--muted); }
.scribble {
  position: absolute;
  left: -25px;
  bottom: -48px;
  color: var(--cream-200);
  font: 700 15px/1.1 var(--font-mono);
  transform: rotate(-6deg);
}

.pig-track {
  position: relative;
  height: 114px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(239,159,163,.05), rgba(47,134,255,.05));
}
.track-line {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  border-top: 1px dashed rgba(255,255,255,.11);
}
.runner { position: absolute; left: -90px; bottom: 26px; animation: runAcross 18s linear infinite; }
.runner--two { animation-duration: 24s; animation-delay: -9s; bottom: 20px; opacity: .78; }
.runner--three { animation-duration: 31s; animation-delay: -18s; bottom: 32px; opacity: .5; }

.tpig { display: block; position: relative; width: 72px; height: 46px; animation: pigBob .42s ease-in-out infinite alternate; }
.tpig--small { transform: scale(.78); }
.tpig--reverse { transform: scaleX(-1); }
.tpig--poster { transform: scale(2.2); animation: none; filter: drop-shadow(0 18px 25px rgba(0,0,0,.28)); }
.tpig-body, .tpig-head, .tpig-snout, .tpig-ear, .tpig-cap, .tpig-eye, .tpig-leg { position: absolute; display: block; }
.tpig-body { left: 6px; bottom: 7px; width: 44px; height: 28px; background: var(--pig-400); border-radius: 55% 48% 45% 50%; }
.tpig-head { right: 6px; bottom: 12px; width: 30px; height: 28px; background: #f3afb1; border-radius: 48% 55% 50% 50%; }
.tpig-snout { right: -1px; bottom: 14px; width: 17px; height: 13px; background: #d8878d; border-radius: 50%; box-shadow: inset -5px 0 rgba(0,0,0,.06); }
.tpig-ear { right: 19px; top: 4px; width: 12px; height: 15px; background: #dc8f95; clip-path: polygon(10% 100%, 50% 0, 100% 100%); transform: rotate(18deg); }
.tpig-cap { right: 7px; top: 6px; width: 29px; height: 8px; background: #111927; border-radius: 50% 50% 12% 12%; transform: rotate(5deg); }
.tpig-cap::after { content: ""; position: absolute; right: -7px; bottom: -1px; width: 12px; height: 3px; background: #111927; border-radius: 999px; }
.tpig-eye { right: 12px; bottom: 29px; width: 4px; height: 4px; background: #111927; border-radius: 50%; }
.tpig-leg { bottom: 0; width: 4px; height: 11px; background: #d8878d; border-radius: 999px; transform-origin: top; animation: trot .22s linear infinite alternate; }
.tpig-leg--a { left: 18px; }
.tpig-leg--b { left: 42px; animation-direction: alternate-reverse; }

.section { padding-block: 120px; }
.section-heading { max-width: 770px; }
.section-heading h2, .beta-banner h2 { font-size: clamp(42px, 6vw, 72px); }
.section-heading > p:last-child { max-width: 680px; color: var(--muted); font-size: 18px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feature-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(17,35,60,.76), rgba(7,17,31,.74));
}
.feature-card::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -60px;
  width: 170px;
  aspect-ratio: 1;
  border: 1px solid rgba(105,167,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(105,167,255,.03), 0 0 0 58px rgba(105,167,255,.02);
}
.feature-card--tpigs { background: linear-gradient(145deg, rgba(91,71,48,.33), rgba(19,23,25,.94)); }
.card-index { color: var(--blue-400); font: 800 11px/1 var(--font-mono); }
.feature-card h3 { margin: 94px 0 12px; font-size: 27px; letter-spacing: -.03em; }
.feature-card p { margin: 0 0 26px; color: var(--muted); }
.card-status { position: absolute; left: 30px; bottom: 28px; }

.section--network {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(8,19,34,.66);
}
.network-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.network-map {
  min-height: 470px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center, rgba(47,134,255,.13), transparent 42%),
    rgba(4,9,20,.42);
}
.network-node {
  position: absolute;
  z-index: 2;
  min-width: 130px;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: #0d1b2d;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  font-weight: 800;
}
.network-node span { display: block; margin-top: 4px; color: var(--muted); font: 9px/1.2 var(--font-mono); }
.network-node--core { left: 50%; top: 50%; transform: translate(-50%, -50%); border-color: rgba(105,167,255,.55); box-shadow: 0 0 55px rgba(47,134,255,.14); }
.network-node--product { left: 7%; top: 13%; }
.network-node--tpigs { right: 7%; top: 15%; border-color: rgba(239,159,163,.35); }
.network-node--community { left: 9%; bottom: 13%; }
.network-node--platform { right: 8%; bottom: 12%; }
.network-line { position: absolute; z-index: 1; left: 50%; top: 50%; width: 34%; border-top: 1px dashed rgba(105,167,255,.3); transform-origin: left center; }
.network-line--a { transform: rotate(-142deg); }
.network-line--b { transform: rotate(-38deg); }
.network-line--c { transform: rotate(142deg); }
.network-line--d { transform: rotate(38deg); }
.network-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--line); }
.network-principles div { padding: 22px; background: var(--ink-900); }
.network-principles strong, .network-principles span { display: block; }
.network-principles strong { font-size: 13px; }
.network-principles span { margin-top: 6px; color: var(--muted); font-size: 12px; }

.ethos-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.ethos-copy { max-width: 760px; }
.big-copy { margin-top: 0; color: var(--cream-100); font-size: clamp(28px, 4vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
.ethos-copy > p:last-child { color: var(--muted); font-size: 17px; }

.beta-banner {
  margin-block: 10px 120px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-radius: var(--radius-lg);
  background: var(--blue-500);
  box-shadow: 0 30px 80px rgba(47,134,255,.18);
}
.beta-banner .eyebrow { color: #d9e9ff; }
.beta-banner h2 { max-width: 650px; }
.beta-banner p:not(.eyebrow) { max-width: 670px; margin-bottom: 0; color: #e2eeff; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  padding-block: 30px 55px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-footer strong { display: block; color: white; }
.site-footer span { display: block; margin-top: 4px; }
.footer-links { display: flex; gap: 18px; align-items: start; }
.link-button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.fine-print { grid-column: 1 / -1; max-width: 850px; margin: 0; font-size: 11px; }

.floating-feedback {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(10,23,40,.9);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.contact-panel {
  width: min(560px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: #0a1728;
  color: white;
  box-shadow: var(--shadow);
}
.contact-panel::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.panel-card { position: relative; padding: 34px; }
.panel-close {
  position: absolute; right: 18px; top: 14px;
  border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer;
}
.contact-panel h2 { font-size: 44px; }
#panel-intro { color: var(--muted); }
.contact-panel label { display: block; margin-top: 18px; font-size: 12px; font-weight: 800; }
.contact-panel label span { color: var(--muted); font-weight: 500; }
.contact-panel input, .contact-panel textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #07111f;
  color: white;
}
.contact-panel textarea { resize: vertical; min-height: 130px; }
.form-note { color: var(--muted); font-size: 11px; }
.noscript-note { padding: 12px; background: #fff2c8; color: #28200c; text-align: center; font-size: 13px; }

@keyframes pulse { 50% { opacity: .4; transform: scale(.75); } }
@keyframes runAcross { to { transform: translateX(calc(100vw + 180px)); } }
@keyframes pigBob { to { translate: 0 -4px; } }
@keyframes trot { to { transform: rotate(22deg) translateY(2px); } }

@media (max-width: 920px) {
  .site-nav a { display: none; }
  .hero, .network-layout, .ethos-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .hero-art { justify-self: start; max-width: 360px; margin-top: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .feature-card h3 { margin-top: 58px; }
  .network-principles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .build-strip { font-size: 9px; gap: 6px; }
  .site-header { min-height: 76px; }
  .brand small { display: none; }
  .hero { min-height: auto; padding-block: 50px 75px; }
  .hero h1 { font-size: clamp(50px, 16vw, 74px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section { padding-block: 82px; }
  .network-map { min-height: 410px; }
  .network-node { min-width: 108px; padding: 11px; font-size: 12px; }
  .network-principles { grid-template-columns: 1fr; }
  .beta-banner { margin-bottom: 85px; padding: 30px; align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .fine-print { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .runner { display: none; }
}

/* Original TPigs artwork — extend the existing navy/blue theme. */
.hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap:32px; }
.hero h1 { font-size:clamp(52px,6.4vw,84px); }
.tpigs-art { margin:0; width:100%; max-width:none; min-width:0; border-radius:22px; overflow:hidden; background:#07111f; border:1px solid var(--line); animation:trio-drift 7s ease-in-out infinite; }
.tpigs-art img { width:100%; height:auto; }
.tpigs-art figcaption { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:18px 22px; font:12px/1.5 var(--font-mono); }
.tpigs-art figcaption span { color:var(--muted); }
@keyframes trio-drift { 50% { transform:translateY(-7px); } }
@media(max-width:920px) { .hero {grid-template-columns:1fr;} .tpigs-art{max-width:680px;justify-self:center;} }
@media(prefers-reduced-motion:reduce) { .tpigs-art{animation:none;} }
