/* ------------------------------------------------------------------------- *
 * ZD — base layer
 * Design tokens, reset, typography, brand, links, buttons and form controls.
 * Shared by the visual journey and the ZD Hosting Solutions page.
 * ------------------------------------------------------------------------- */

:root {
  /* Brand (sampled from the supplied logo reference) */
  --zd-black: #000000;
  --zd-ink: #050506;
  --zd-surface: #0A0A0C;
  --zd-orange: #FF7100;
  --zd-blue: #0090FC;
  --zd-cyan: #7DE3FF;

  /* Interface */
  --zd-paper: #F4F5F7;
  --zd-text: #E9EAEC;
  --zd-muted: #9AA0A6;
  --zd-faint: #6C7176;
  --zd-line: rgba(244, 245, 247, 0.13);
  --zd-line-strong: rgba(244, 245, 247, 0.24);
  --zd-danger: #FF8B7A;
  --zd-success: #7BE0C0;

  /* Type */
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Space + motion */
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--zd-black);
  color: var(--zd-text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--zd-orange);
  color: var(--zd-black);
}

:focus-visible {
  outline: 2px solid var(--zd-blue);
  outline-offset: 4px;
  border-radius: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--zd-paper);
  color: var(--zd-black);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

/* ------------------------------------------------------------------- brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--zd-paper);
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
  overflow: visible;
}

.brand__name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--zd-text);
}

.brand__name span {
  color: var(--zd-faint);
}

.brand:hover .brand__mark {
  filter: brightness(1.08);
}

/* -------------------------------------------------------------------- nav */

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zd-muted);
  transition: color 0.3s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--zd-paper);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link__arrow {
  font-family: var(--font-text);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.35s var(--ease-out);
}

.nav-link:hover .nav-link__arrow {
  transform: translate(2px, -2px);
}

/* ----------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 2px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--zd-orange);
  color: #0B0B0C;
}

.btn--primary:hover {
  background: #FF8A2B;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
}

.btn__spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  border-top-color: #0B0B0C;
  border-radius: 50%;
  animation: zd-spin 0.7s linear infinite;
  display: none;
}

.btn[aria-busy="true"] .btn__spinner {
  display: block;
}

.btn[aria-busy="true"] .btn__label {
  opacity: 0.75;
}

/* ------------------------------------------------------------------ fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-muted);
}

.field__label .field__optional {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--zd-faint);
}

.field__input {
  width: 100%;
  padding: 12px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zd-line-strong);
  border-radius: 0;
  color: var(--zd-paper);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.field__input::placeholder {
  color: var(--zd-faint);
}

.field__input:hover {
  border-bottom-color: rgba(244, 245, 247, 0.4);
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--zd-blue);
}

.field__input:focus-visible {
  outline: none;
}

.field__input[aria-invalid="true"] {
  border-bottom-color: var(--zd-danger);
}

.field__error {
  display: none;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--zd-danger);
}

.field__error.is-visible {
  display: block;
}

/* Honeypot: present for bots, hidden from people and assistive technology. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- motion kit */

@keyframes zd-spin {
  to { transform: rotate(360deg); }
}

@keyframes zd-spin-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes zd-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes zd-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -7px); }
}

@keyframes zd-dash {
  to { stroke-dashoffset: -244; }
}

/* Scene-level motion hooks. Elements opt in with these classes so the whole
   decorative animation layer can be paused by prefers-reduced-motion. */
.anim-spin,
.anim-spin-reverse,
.anim-spin-slow {
  transform-box: view-box;
  transform-origin: 500px 500px;
  animation: zd-spin 60s linear infinite;
}

.anim-spin-reverse { animation-name: zd-spin-reverse; }
.anim-spin-slow { animation-duration: 90s; }
.anim-breathe { animation: zd-breathe 7s ease-in-out infinite; }

.anim-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: zd-float 16s ease-in-out infinite;
}

.anim-dash {
  animation: zd-dash 6s linear infinite;
}

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

/* ------------------------------------------------------------ scroll polish */

@media (hover: hover) {
  html {
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 245, 247, 0.18) transparent;
  }
}
