/* ULRO — component styles.
   Written as plain CSS on purpose. The original pages declared these with
   @apply inside a normal <style> block, which the Tailwind Play CDN never
   compiles — so every contact-form control shipped completely unstyled.
   Plain CSS also means these survive if the CDN fails to load. */

:root {
  --surface-deep: #000000;
  --surface: #121317;
  --surface-card: #16171d;
  --surface-container-lowest: #0d0e12;
  --surface-container-low: #1a1b20;
  --surface-container: #1f1f24;
  --surface-container-high: #292a2e;
  --border-subtle: #2d3039;
  --outline-variant: #434656;
  --on-surface: #e3e2e7;
  --on-surface-variant: #c3c5d9;
  --text-muted: #8a8f9e;
  --primary: #b7c4ff;
  --primary-container: #1254ff;
  --primary-hover: #3b74ff;
  --success: #72ce7b;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--surface-deep);
  color: var(--on-surface);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Accessibility ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--primary-container);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* The source had no visible focus indicator anywhere — keyboard users could
   not tell where they were. One consistent ring, on every interactive thing. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Navigation --------------------------------------------------------- */

.dynamic-island {
  background: rgba(18, 19, 23, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
}

.nav-link {
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-link:hover { color: #fff; }
.nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
  background: rgba(183, 196, 255, 0.1);
}

/* --- Surfaces ----------------------------------------------------------- */

.scale-panel {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}

.scale-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.scale-card:hover { border-color: var(--outline-variant); }

.glass-panel {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(25, 25, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Buttons ------------------------------------------------------------ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-container);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 6px;
  box-shadow: 0 12px 30px -12px rgba(18, 84, 255, 0.6);
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary .arrow,
.btn-secondary .arrow,
.link-arrow .arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow,
.btn-secondary:hover .arrow,
.link-arrow:hover .arrow { transform: translateX(4px); }

/* --- Forms -------------------------------------------------------------- */

/* Selectors are element+class (0,1,1) so they outrank the Tailwind forms
   plugin's [type='text'] base styles (0,1,0). Without this the plugin repaints
   every field white, because the Play CDN injects its stylesheet after this
   file and equal specificity is resolved by load order. */
input.input-scale,
textarea.input-scale {
  width: 100%;
  background-color: var(--surface-container-low);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--on-surface);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input.input-scale::placeholder,
textarea.input-scale::placeholder { color: var(--text-muted); }
input.input-scale:focus,
textarea.input-scale:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(183, 196, 255, 0.18);
}
textarea.input-scale { resize: vertical; min-height: 140px; }

input.radio-scale,
.radio-scale {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 9999px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.radio-scale:checked {
  border-color: var(--primary);
  border-width: 5px;
  background: #fff;
}

.form-status {
  font-size: 14px;
  color: var(--success);
  min-height: 20px;
}
.form-status:empty { display: none; }

/* --- Icons -------------------------------------------------------------- */

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

/* --- Motion ------------------------------------------------------------- */

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