:root {
  --bg: #060606;
  --paper: #0f0f10;
  --line: #2d2d2f;
  --text: #f5f5f5;
  --muted: #a5a5ab;
  --highlight: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --radius-xs: 10px;
  --steel: #d9d9de;
  --chrome: linear-gradient(140deg, #ffffff, #bdbdc4 48%, #ffffff);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, #191919 0%, var(--bg) 46%, #000 100%),
    repeating-linear-gradient(
      -26deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 18px,
      rgba(0, 0, 0, 0) 18px,
      rgba(0, 0, 0, 0) 34px
    );
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand,
.btn {
  font-family: "Syne", sans-serif;
  letter-spacing: 0.01em;
}

a {
  color: var(--highlight);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.noise,
.scan,
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.noise {
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(#ffffff 0.4px, transparent 0.4px);
  background-size: 5px 5px;
}

.scan {
  inset: -25% 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: scanMove 7s linear infinite;
}

.cursor-glow {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0.6rem;
  z-index: 40;
  width: min(1240px, 95vw);
  margin: 0.72rem auto 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(140deg, rgba(9, 9, 9, 0.86), rgba(7, 7, 7, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.34);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  padding: 0.26rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.03);
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .btn {
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.section-pad {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(3.4rem, 7vw, 7rem) 0;
}

.hero {
  padding-top: clamp(4rem, 12vw, 8rem);
  position: relative;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #b8b8bf;
  margin: 0;
}

.hero-title {
  margin: 1rem 0 1rem;
  font-size: clamp(2.2rem, 8vw, 5.8rem);
  line-height: 0.9;
  max-width: 12ch;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.hero-title .outline {
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.92);
  display: block;
}

.hero-copy {
  margin: 0;
  color: #d3d3d7;
  max-width: 58ch;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #0b0b0b;
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.16);
}

.btn.ghost {
  background: transparent;
  color: #f2f2f4;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.apply-btn {
  border-color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.ops-strip {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ops-strip span {
  padding: 0.4rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7d7dd;
}

.ticker {
  margin-top: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 40px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    transparent 100%
  );
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  padding: 0.82rem 1.4rem;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: #d9d9df;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "•";
  margin-left: 1.4rem;
  color: rgba(255, 255, 255, 0.42);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding-inline: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-soft);
}

.section-head h2 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.55rem, 4.6vw, 3rem);
  line-height: 1.05;
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  margin-top: 1.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  background:
    linear-gradient(175deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.4)),
    rgba(0, 0, 0, 0.24);
  transform: translateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card p {
  margin: 0;
  color: #d0d0d2;
}

.split {
  display: grid;
  gap: 1.3rem;
  align-items: center;
  grid-template-columns: 1.25fr 1fr;
}

.client-link {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.15));
}

.client-link .arrow {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.client-link:hover .arrow {
  transform: translate(4px, -4px);
}

.timeline {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.step {
  font-family: "Syne", sans-serif;
  font-size: 0.85rem;
  color: #e7e7ec;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  height: fit-content;
}

.timeline h3 {
  margin: 0 0 0.2rem;
}

.timeline p {
  margin: 0;
  color: #d2d2d6;
}

.contact-copy {
  margin: 1rem 0 0;
  max-width: 64ch;
  color: #d8d8db;
}

.apply-cta {
  margin-top: 1.2rem;
}

.apply-form {
  margin-top: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dadade;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #f2f2f4;
  padding: 0.75rem 0.85rem;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.form-grid input[type="file"] {
  padding-block: 0.58rem;
  cursor: pointer;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #9e9ea4;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.full-width {
  grid-column: 1 / -1;
}

.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.68rem;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 0.88rem !important;
  color: #d4d4da !important;
}

.consent-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  padding: 0;
  accent-color: #f4f4f7;
  flex: 0 0 auto;
}

.consent-check span {
  color: #d2d2d8;
  line-height: 1.5;
}

.apply-cta[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin: 0.9rem 0 0;
  min-height: 1.3rem;
  color: #c9c9cf;
  font-size: 0.92rem;
}

.form-status.success {
  color: #d8ffe1;
}

.form-status.error {
  color: #ffd4d4;
}

.form-note {
  margin: 0.8rem 0 0;
  color: #bfc0c6;
  font-size: 0.9rem;
}

.legal-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.legal-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 0 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer .subtle-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.site-footer .subtle-link:hover,
.site-footer .subtle-link:focus-visible {
  opacity: 0.9;
}

.page-shell {
  width: min(920px, 92vw);
  margin: 0 auto;
  padding: clamp(2.7rem, 8vw, 6rem) 0;
}

.page-title {
  font-size: clamp(2rem, 6.4vw, 4.2rem);
  line-height: 1;
  margin: 0.7rem 0 1rem;
}

.page-intro {
  max-width: 62ch;
  color: #d2d2d7;
}

.legal-card {
  margin-top: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.legal-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.legal-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.legal-card p,
.legal-card li {
  color: #d1d1d6;
  line-height: 1.7;
}

.legal-card ul,
.legal-card ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 0.35rem;
}

.legal-card code {
  color: #efeff4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 0.05rem 0.35rem;
  font-size: 0.9em;
}

.policy-summary-intro {
  margin: 0;
  color: #c8c8ce;
}

.summary-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.summary-item {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.82rem 0.88rem;
  background: rgba(0, 0, 0, 0.28);
}

.summary-item h3 {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-item p {
  margin: 0.4rem 0 0;
  color: #cdced5;
  font-size: 0.93rem;
}

.policy-meta .meta-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
}

.policy-meta .meta-list li {
  margin: 0;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.policy-meta .meta-list li:first-child {
  border-top: none;
  padding-top: 0.2rem;
}

.policy-section p {
  margin: 0;
}

.policy-section p + p {
  margin-top: 0.7rem;
}

.policy-section[id] {
  scroll-margin-top: 6.5rem;
}

.policy-steps {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.policy-steps li + li {
  margin-top: 0.45rem;
}

.legal-note {
  margin: 0.1rem 0 0;
  color: #ccccd1;
}

.domain-dropdowns {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.domain-dropdown {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.domain-dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-family: "Syne", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.domain-dropdown summary::-webkit-details-marker {
  display: none;
}

.domain-dropdown summary::after {
  content: "+";
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.domain-dropdown[open] summary::after {
  content: "\2212";
  color: var(--text);
}

.domain-dropdown[open] {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.domain-dropdown ul {
  margin: 0;
  padding: 0 1rem 1rem 2rem;
}

.domain-dropdown p {
  margin: 0;
  padding: 0 1rem 0.45rem;
  color: #ccccd1;
}

.domain-dropdown li {
  margin-top: 0.25rem;
}

.domain-dropdown a {
  color: #ececf1;
}

.doc-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.78rem 0.88rem;
  background: rgba(255, 255, 255, 0.03);
}

.doc-item strong {
  font-weight: 600;
  color: #f2f2f5;
}

.doc-item span {
  color: #bfc0c7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.doc-item:hover,
.doc-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.api-group {
  display: grid;
  gap: 0.75rem;
}

.api-base {
  margin: 0;
  color: #d7d7dc;
}

.api-endpoint {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  background: rgba(0, 0, 0, 0.3);
}

.api-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.api-head code {
  color: #f0f0f4;
  font-size: 0.92rem;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: "Syne", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
}

.method-badge.get {
  background: rgba(255, 255, 255, 0.12);
}

.method-badge.post {
  background: rgba(255, 255, 255, 0.2);
  color: #090909;
}

.method-badge.put {
  background: rgba(255, 255, 255, 0.15);
}

.method-badge.delete {
  background: rgba(255, 255, 255, 0.08);
}

.api-meta {
  margin: 0.35rem 0 0;
  color: #cfd0d6;
}

.api-meta code,
.api-base code {
  color: #ececf2;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scanMove {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(50%);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    top: 0.35rem;
    width: min(95vw, 720px);
    padding: 0.65rem 0.72rem;
  }

  .top-nav {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-header .btn {
    margin-left: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .cursor-glow {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 15vw, 3.3rem);
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 1.05rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
