/* ==========================================================================
   physaiera.com — design tokens
   Palette: graphite void / warm alloy / servo orange / cold steel / signal teal
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (data/utility)
   ========================================================================== */

:root{
  --void: #12151A;
  --panel: #181D24;
  --panel-line: #262C35;
  --alloy: #ECE8E1;
  --alloy-dim: #B9B5AC;
  --steel: #7C8590;
  --orange: #FF5A1F;
  --orange-dim: #C7481B;
  --teal: #2BD9C9;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--void);
  color: var(--alloy);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

/* faint machined grid overlay across whole page */
.grid-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(236,232,225,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,232,225,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
}

/* ---------- topbar ---------- */
.topbar{
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--panel-line);
}
.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.mark{
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--alloy);
}
.mark-dot{ color: var(--orange); }
.topbar-tag{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

main{ position: relative; z-index: 1; }

/* ---------- section label (spec-sheet field header) ---------- */
.section-label{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin: 0 0 28px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-line);
}

section{
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

/* ---------- hero ---------- */
.hero{
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.hero-rig{
  display:flex;
  align-items:center;
  justify-content:center;
}
#arm{ max-width: 100%; height: auto; }
.baseline{ stroke: var(--panel-line); stroke-width: 2; }
.link{ fill: var(--steel); }
.link-fore{ fill: var(--alloy-dim); }
.joint{ fill: var(--panel); stroke: var(--orange); stroke-width: 2.5; }
.effector-ring{ fill: none; stroke: var(--teal); stroke-width: 2.5; }
.effector-core{ fill: var(--teal); }

#arm .link, #arm .joint, #arm .baseline, #arm .effector-ring, #arm .effector-core{
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
  animation: rig-draw 900ms ease-out forwards;
}
.baseline{ animation-delay: 0ms !important; }
#joint-base .link, #joint-base > .joint{ animation-delay: 160ms !important; }
#joint-elbow .link, #joint-elbow > .joint{ animation-delay: 340ms !important; }
#joint-wrist .link, #joint-wrist > .joint{ animation-delay: 520ms !important; }
#end-effector *{ animation-delay: 700ms !important; }

@keyframes rig-draw{
  to{ stroke-dashoffset: 0; opacity: 1; }
}

#joint-elbow, #joint-wrist, #end-effector{
  animation: idle-sway 6s ease-in-out infinite;
  animation-delay: 1.2s;
}
#joint-wrist{ animation-duration: 5s; }
@keyframes idle-sway{
  0%, 100%{ transform: rotate(0deg); }
  50%{ transform: rotate(3deg); }
}

.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin: 0 0 14px 0;
}
h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
}
h1 .tld{ color: var(--orange); }

.hero-sub{
  font-size: 1.08rem;
  color: var(--alloy-dim);
  max-width: 56ch;
  margin: 0 0 30px 0;
}

.boot-log{
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--teal);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 32px;
  max-width: 46ch;
}
.boot-line{
  white-space: nowrap;
  overflow: hidden;
  color: var(--alloy-dim);
  opacity: 0;
  animation: boot-appear 200ms ease-out forwards;
}
.boot-line::before{ content: attr(data-text); }
.boot-line:nth-child(1){ animation-delay: 0.3s; }
.boot-line:nth-child(2){ animation-delay: 0.6s; color: var(--teal); }
.boot-line:nth-child(3){ animation-delay: 0.9s; color: var(--teal); }
.boot-line:nth-child(4){ animation-delay: 1.2s; color: var(--teal); }
.boot-line:nth-child(5){ animation-delay: 1.5s; color: var(--teal); }
.boot-final{ animation-delay: 1.9s !important; color: var(--orange) !important; font-weight: 600; margin-top: 6px; }
@keyframes boot-appear{ to{ opacity: 1; } }

.hero-cta{ display:flex; gap: 14px; flex-wrap: wrap; }
.btn{
  display:inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--orange); color: var(--void); font-weight: 600; }
.btn-primary:hover{ background: #ff6b34; }
.btn-ghost{ border-color: var(--panel-line); color: var(--alloy); }
.btn-ghost:hover{ border-color: var(--steel); }
.btn-lg{ font-size: 1rem; padding: 16px 26px; }

/* ---------- spec sheet ---------- */
.spec-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.spec-field{
  background: var(--panel);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-key{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.field-val{
  font-size: 0.98rem;
  color: var(--alloy);
}

/* ---------- payload ---------- */
.payload-intro{
  color: var(--alloy-dim);
  max-width: 62ch;
  margin: -12px 0 36px 0;
}
.payload-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.payload-card{
  background: var(--panel);
  padding: 26px 24px;
}
.payload-tag{
  display:block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  margin-bottom: 14px;
}
.payload-card h3{
  font-family: var(--display);
  font-size: 1.18rem;
  margin: 0 0 10px 0;
}
.payload-card p{
  color: var(--alloy-dim);
  font-size: 0.94rem;
  margin: 0;
}

/* ---------- signal ---------- */
.signal-list{ display:flex; flex-direction: column; gap: 22px; }
.signal-row{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--panel-line);
}
.signal-row:last-of-type{ border-bottom: none; }
.signal-index{
  font-family: var(--mono);
  color: var(--orange);
  font-size: 0.88rem;
  padding-top: 2px;
}
.signal-row p{ margin: 0; color: var(--alloy-dim); }
.signal-footnote{
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--steel);
}

/* ---------- comparables ---------- */
.comp-intro{ color: var(--alloy-dim); max-width: 68ch; margin: -12px 0 30px 0; }
.comp-table{ border: 1px solid var(--panel-line); border-radius: 6px; overflow: hidden; }
.comp-row{
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.1fr 2fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 0.9rem;
}
.comp-row:last-child{ border-bottom: none; }
.comp-head{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  background: var(--panel);
}
.comp-row:not(.comp-head){ color: var(--alloy-dim); }
.comp-row:not(.comp-head) span:first-child{ color: var(--alloy); font-family: var(--mono); }
.comp-row-highlight{ background: rgba(255, 90, 31, 0.07); }
.comp-row-highlight span:first-child{ color: var(--orange) !important; font-weight: 600; }

/* ---------- acquisition ---------- */
.acquisition-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.process-list{ list-style: none; margin: 20px 0 0 0; padding: 0; display:flex; flex-direction: column; gap: 16px; }
.process-list li{ color: var(--alloy-dim); font-size: 0.95rem; }
.step-key{
  display:block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.acquisition-copy > p{ color: var(--alloy); font-size: 1.02rem; }
.acquisition-panel{
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 28px;
  text-align: left;
}
.inquiry-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-label{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin: 0;
}
.secure-status{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.secure-status::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(54, 214, 200, 0.8);
}
.inquiry-form{
  display: grid;
  gap: 14px;
}
.form-field{
  display: grid;
  gap: 7px;
}
.form-field > span{
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--alloy-dim);
}
.form-field em{
  color: var(--steel);
  font-style: normal;
  letter-spacing: 0;
  text-transform: lowercase;
}
.form-field input,
.form-field textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  background: rgba(4, 10, 16, 0.72);
  color: var(--alloy);
  font: inherit;
  padding: 12px 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.form-field textarea{
  min-height: 122px;
  resize: vertical;
}
.form-field input:hover,
.form-field textarea:hover{
  border-color: var(--steel);
}
.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--teal);
  background: rgba(4, 10, 16, 0.95);
  box-shadow: 0 0 0 3px rgba(54, 214, 200, 0.1);
}
.bot-field{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.inquiry-submit{
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
  border: 0;
}
.panel-note{
  font-size: 0.82rem;
  color: var(--steel);
  margin: 0;
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--panel-line);
  padding: 28px 24px 40px;
}
.site-footer p{
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- confirmation ---------- */
.confirmation-shell{
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.confirmation-panel{
  position: relative;
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(32px, 7vw, 72px);
}
.confirmation-panel h1{
  position: relative;
  margin: 12px 0 18px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.confirmation-panel > p:not(.eyebrow){
  position: relative;
  max-width: 46ch;
  margin: 0 0 30px;
  color: var(--alloy-dim);
}
.confirmation-panel .btn{ position: relative; }
.confirmation-code{
  position: absolute;
  top: -42px;
  right: 14px;
  font-family: var(--display);
  font-size: 13rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(54, 214, 200, 0.045);
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; text-align: left; padding-top: 40px; }
  .hero-rig{ order: -1; max-width: 220px; margin: 0 auto 8px; }
  .spec-grid{ grid-template-columns: 1fr; }
  .acquisition-grid{ grid-template-columns: 1fr; }
  .comp-row{ grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .comp-row span{ display:flex; justify-content: space-between; gap: 12px; }
  .comp-row span::before{
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 0.66rem;
    color: var(--steel);
  }
  .comp-head{ display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  #arm *, .boot-line, #joint-elbow, #joint-wrist, #end-effector{
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}
