:root {
  color-scheme: dark;
  --bg: #06070b;
  --panel: rgba(12, 15, 22, 0.82);
  --panel-strong: rgba(15, 19, 28, 0.94);
  --text: #f4f7fb;
  --muted: #8b94a7;
  --muted-2: #5f687b;
  --line: rgba(177, 198, 255, 0.14);
  --line-strong: rgba(177, 198, 255, 0.28);
  --cyan: #67f4ff;
  --violet: #9c7dff;
  --green: #8dffc1;
  --danger: #ff8e9d;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.52);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(79, 63, 173, 0.15), transparent 32rem),
    radial-gradient(circle at 85% 72%, rgba(0, 194, 214, 0.1), transparent 30rem),
    linear-gradient(145deg, #05060a 0%, #080a11 48%, #040508 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(115deg, transparent 20%, rgba(115, 94, 255, 0.035) 45%, transparent 72%),
    radial-gradient(circle at var(--pointer-x, 55%) var(--pointer-y, 44%), rgba(103, 244, 255, 0.07), transparent 22rem);
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

#signal-field {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(130, 150, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 150, 196, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 86%);
}

.site-header,
.site-footer,
.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}

.wordmark {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0.24em;
  text-decoration: none;
}

.dot {
  color: var(--cyan);
}

.wordmark-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  width: 18px;
  height: 22px;
  align-items: end;
}

.wordmark-mark span {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(103, 244, 255, 0.4);
}

.wordmark-mark span:nth-child(1) { height: 12px; }
.wordmark-mark span:nth-child(2) { height: 21px; }
.wordmark-mark span:nth-child(3) { height: 16px; }

.status-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #a4adbf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(141, 255, 193, 0.7);
  animation: pulse 2.3s ease-in-out infinite;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.78fr);
  gap: clamp(54px, 8vw, 126px);
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: 36px 0 70px;
}

.intro {
  position: relative;
  padding-left: clamp(0px, 2vw, 22px);
}

.eyebrow,
.panel-kicker,
.panel-code,
.signal-readout,
.site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
}

.eyebrow span {
  color: var(--cyan);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  font-weight: 580;
  line-height: 0.91;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

h1::after {
  display: inline-block;
  width: 0.1em;
  height: 0.1em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(103, 244, 255, 0.72);
  content: "";
}

.lede {
  max-width: 440px;
  margin: 30px 0 0;
  color: #a7afbd;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.signal-readout {
  width: min(360px, 100%);
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.readout-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.readout-line strong {
  color: #929db2;
  font-weight: 500;
}

.contact-panel {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 35%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(125%);
}

.contact-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 244, 255, 0.09), transparent 16rem),
    radial-gradient(circle at 0% 100%, rgba(156, 125, 255, 0.085), transparent 18rem);
}

.contact-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.025) 45%, transparent 65%);
  content: "";
  transform: translateX(-100%);
  animation: panel-scan 9s ease-in-out infinite;
}

.panel-edge {
  position: absolute;
  width: 54px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 13px rgba(103, 244, 255, 0.5);
}

.panel-edge::after {
  position: absolute;
  width: 1px;
  height: 18px;
  background: inherit;
  content: "";
}

.panel-edge-top {
  top: -1px;
  right: 22px;
}

.panel-edge-top::after {
  top: 0;
  right: 0;
}

.panel-edge-bottom {
  bottom: -1px;
  left: 22px;
  background: var(--violet);
  box-shadow: 0 0 13px rgba(156, 125, 255, 0.48);
}

.panel-edge-bottom::after {
  bottom: 0;
  left: 0;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

.panel-kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 580;
  letter-spacing: -0.035em;
}

.panel-code {
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  position: relative;
  display: block;
  margin-bottom: 18px;
}

.field > span:first-child {
  display: block;
  margin: 0 0 9px 2px;
  color: #9aa4b7;
  font-size: 0.73rem;
  font-weight: 560;
  letter-spacing: 0.04em;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(177, 198, 255, 0.14);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(4, 6, 10, 0.56);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  height: 50px;
  padding: 0 15px;
}

textarea {
  min-height: 148px;
  padding: 14px 15px 30px;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: #555f72;
}

input:hover,
textarea:hover {
  border-color: rgba(177, 198, 255, 0.23);
}

input:focus,
textarea:focus {
  border-color: rgba(103, 244, 255, 0.56);
  background: rgba(5, 8, 13, 0.8);
  box-shadow: 0 0 0 3px rgba(103, 244, 255, 0.08), 0 0 24px rgba(103, 244, 255, 0.05);
}

.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 142, 157, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 142, 157, 0.07);
}

.counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6rem;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.turnstile-slot {
  min-height: 66px;
  margin: 0 0 16px;
}

.form-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}

.privacy-note {
  max-width: 250px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.69rem;
  line-height: 1.45;
}

button[type="submit"] {
  position: relative;
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 51px;
  padding: 0 17px 0 21px;
  overflow: hidden;
  border: 1px solid rgba(103, 244, 255, 0.54);
  border-radius: 10px;
  color: #eafdff;
  background: linear-gradient(120deg, rgba(58, 165, 184, 0.24), rgba(90, 71, 169, 0.24));
  box-shadow: inset 0 0 30px rgba(103, 244, 255, 0.04), 0 0 30px rgba(103, 244, 255, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button[type="submit"]::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(100deg, rgba(103, 244, 255, 0.22), rgba(156, 125, 255, 0.17));
  opacity: 0;
  transition: opacity 160ms ease;
}

button[type="submit"]:hover {
  border-color: rgba(103, 244, 255, 0.82);
  box-shadow: 0 0 30px rgba(103, 244, 255, 0.12);
  transform: translateY(-2px);
}

button[type="submit"]:hover::before {
  opacity: 1;
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.button-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.button-icon {
  color: var(--cyan);
  font-size: 1rem;
}

.form-status {
  min-height: 22px;
  margin-top: 16px;
  color: #a7b1c3;
  font-size: 0.77rem;
  line-height: 1.45;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--danger);
}

.site-footer {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 86px;
  color: #535c6e;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
}

.footer-line {
  width: 42px;
  height: 1px;
  background: #313847;
}

@keyframes pulse {
  0%, 100% { opacity: 0.52; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes panel-scan {
  0%, 72% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(130%); }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: auto;
    padding-top: 56px;
  }

  .intro {
    padding-left: 0;
  }

  h1 {
    max-width: 760px;
  }

  .signal-readout {
    margin-top: 40px;
  }

  .contact-panel {
    width: min(620px, 100%);
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 82px;
  }

  .status-pill {
    font-size: 0;
  }

  .status-light {
    width: 8px;
    height: 8px;
  }

  .shell {
    gap: 46px;
    padding: 42px 0 50px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .lede {
    margin-top: 23px;
  }

  .signal-readout {
    margin-top: 34px;
  }

  .contact-panel {
    padding: 25px 18px;
    border-radius: 17px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-note {
    max-width: none;
  }

  button[type="submit"] {
    width: 100%;
  }

  .site-footer {
    min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #signal-field {
    display: none;
  }
}
