@charset "UTF-8";

:root {
  --bg-base: #0B1B2B;
  --surface-panel: #1A2A3A;
  --text-primary: #E6EBF0;
  --text-secondary: #A0AAB5;
  --text-muted: #6B7A8A;
  --accent-signal: #00A8FF;
  --accent-signal-hover: #33B8FF;
  --border-technical: #2A3A4A;
  --status-ok: #00E5A0;
  --status-warn: #FFB300;

  --font-heading: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;

  --text-display: 56px;
  --text-h1: 40px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-h4: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;

  --leading-display: 1.1;
  --leading-h1: 1.2;
  --leading-h2: 1.3;
  --leading-h3: 1.4;
  --leading-h4: 1.4;
  --leading-body: 1.6;
  --leading-small: 1.5;
  --leading-caption: 1.4;

  --tracking-body: 0.02em;
  --tracking-heading: 0.05em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --container-max: 1200px;
  --section-padding-desktop: var(--space-9);
  --section-padding-tablet: var(--space-8);
  --section-padding-mobile: var(--space-7);
  --panel-padding: var(--space-5);

  --radius-container: 0px;
  --radius-small: 2px;
  --radius-input: 4px;

  --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  --shadow-elevation: 0 4px 12px rgba(0, 0, 0, 0.25);
  --focus-outline: 2px solid var(--accent-signal);
  --focus-offset: 2px;

  --transition-fast: 150ms ease-in-out;
  --touch-target: 44px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img,
video {
  object-fit: cover;
}

input,
button,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: var(--accent-signal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-signal-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  font-weight: 600;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-block-end: var(--space-4);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-block-end: var(--space-4);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-block-end: var(--space-3);
}

h4 {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  margin-block-end: var(--space-3);
}

h5 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-2);
}

h6 {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  margin-block-end: var(--space-2);
}

p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-4);
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

ul,
ol {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-block-end: 0;
}

li {
  line-height: var(--leading-body);
}

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--accent-signal);
  color: var(--text-secondary);
  font-style: italic;
}

blockquote p:last-child {
  margin-block-end: 0;
}

figure {
  margin-block-end: var(--space-4);
}

figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--text-muted);
  margin-block-start: var(--space-2);
}

hr {
  border: none;
  border-block-start: 1px solid var(--border-technical);
  margin-block: var(--space-6);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-4);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

th,
td {
  padding: var(--space-3);
  text-align: start;
  border-block-end: 1px solid var(--border-technical);
}

th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
  font-weight: 600;
}

caption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--text-muted);
  margin-block-end: var(--space-2);
  text-align: start;
}

small {
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

strong,
b {
  font-weight: 700;
  color: var(--text-primary);
}

em,
i {
  font-style: italic;
}

code,
kbd,
samp,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--surface-panel);
  border: 1px solid var(--border-technical);
  padding: var(--space-4);
  overflow-x: auto;
  margin-block-end: var(--space-4);
  border-radius: var(--radius-small);
}

mark {
  background-color: var(--status-warn);
  color: var(--bg-base);
  padding: 0 var(--space-1);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

address {
  font-style: normal;
  margin-block-end: var(--space-4);
}

fieldset {
  border: 1px solid var(--border-technical);
  padding: var(--space-4);
  margin-block-end: var(--space-4);
}

legend {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
  padding-inline: var(--space-2);
}

label {
  display: block;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--text-secondary);
  margin-block-end: var(--space-2);
}

input,
select,
textarea {
  width: 100%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-technical);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: var(--touch-target);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-signal);
  box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.25);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  margin-inline-end: var(--space-2);
  accent-color: var(--accent-signal);
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
}

input[type="submit"],
input[type="reset"],
input[type="button"] {
  width: auto;
  cursor: pointer;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0AAB5' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-inline-end: var(--space-6);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--section-padding-desktop);
}

.surface {
  background-color: var(--surface-panel);
  background-image: var(--surface-gradient);
  border: 1px solid var(--border-technical);
  border-radius: var(--radius-container);
  padding: var(--panel-padding);
  box-shadow: var(--shadow-elevation);
}

.surface > :last-child {
  margin-block-end: 0;
}

.border-technical-top-left {
  border-inline-start: 3px solid var(--accent-signal);
  border-block-start: 3px solid var(--accent-signal);
}

.border-technical-bottom-right {
  border-inline-end: 3px solid var(--accent-signal);
  border-block-end: 3px solid var(--accent-signal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-target);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-small);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  color: var(--accent-signal);
  background-color: transparent;
  border: 1px solid var(--accent-signal);
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.btn:hover {
  background-color: var(--accent-signal);
  color: var(--bg-base);
  border-color: var(--accent-signal);
}

.btn:active {
  background-color: var(--accent-signal-hover);
  border-color: var(--accent-signal-hover);
  color: var(--bg-base);
}

.btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.btn--primary {
  background-color: var(--accent-signal);
  color: var(--bg-base);
  border-color: var(--accent-signal);
}

.btn--primary:hover {
  background-color: var(--accent-signal-hover);
  border-color: var(--accent-signal-hover);
  color: var(--bg-base);
}

.btn--primary:active {
  background-color: var(--accent-signal);
  border-color: var(--accent-signal);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-technical);
}

.btn--ghost:hover {
  background-color: var(--surface-panel);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn--ghost:active {
  background-color: var(--border-technical);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn--sm {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-caption);
}

.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-body);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--ok::before {
  background-color: var(--status-ok);
  box-shadow: 0 0 6px rgba(0, 229, 160, 0.5);
}

.status-dot--warn::before {
  background-color: var(--status-warn);
  box-shadow: 0 0 6px rgba(255, 179, 0, 0.5);
}

.coordinate-label {
  font-family: var(--font-heading);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  color: var(--text-muted);
  display: inline-block;
  margin-block-end: var(--space-2);
}

.coordinate-label::before {
  content: "// ";
  color: var(--accent-signal);
}

.heading-accent {
  position: relative;
  padding-block-end: var(--space-3);
  margin-block-end: var(--space-5);
}

.heading-accent::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 48px;
  height: 2px;
  background-color: var(--accent-signal);
}

.flex {
  display: flex;
  gap: var(--space-4);
  min-width: 0;
}

.flex > * {
  min-width: 0;
  flex-shrink: 1;
}

.flex--wrap {
  flex-wrap: wrap;
}

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

.flex--center {
  align-items: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--end {
  justify-content: flex-end;
}

.flex--start {
  justify-content: flex-start;
}

.flex--gap-sm {
  gap: var(--space-2);
}

.flex--gap-md {
  gap: var(--space-4);
}

.flex--gap-lg {
  gap: var(--space-6);
}

.flex--gap-xl {
  gap: var(--space-7);
}

.flex--no-gap {
  gap: 0;
}

.flex--no-shrink > * {
  flex-shrink: 0;
}

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

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--space-4);
  z-index: 10000;
  background-color: var(--accent-signal);
  color: var(--bg-base);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  font-size: var(--text-small);
  border-radius: var(--radius-small);
  transition: inset-block-start var(--transition-fast);
}

.skip-link:focus {
  inset-block-start: var(--space-4);
  color: var(--bg-base);
}

@media (max-width: 1024px) {
  :root {
    --text-display: 44px;
    --text-h1: 34px;
    --text-h2: 28px;
    --text-h3: 22px;
    --text-h4: 19px;
  }

  .section {
    padding-block: var(--section-padding-tablet);
  }
}

@media (max-width: 768px) {
  :root {
    --text-display: 34px;
    --text-h1: 28px;
    --text-h2: 24px;
    --text-h3: 20px;
    --text-h4: 18px;
    --panel-padding: var(--space-4);
  }

  .section {
    padding-block: var(--section-padding-mobile);
  }

  .container {
    padding-inline: var(--space-4);
  }

  .flex {
    flex-direction: column;
  }

  .flex--row-mobile {
    flex-direction: row;
  }

  .flex--center-mobile {
    align-items: center;
  }

  .flex--between-mobile {
    justify-content: space-between;
  }

  .flex--end-mobile {
    justify-content: flex-end;
  }

  .flex--start-mobile {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --text-display: 28px;
    --text-h1: 24px;
    --text-h2: 21px;
    --text-h3: 18px;
    --text-h4: 17px;
    --panel-padding: var(--space-3);
  }

  .container {
    padding-inline: var(--space-3);
  }
}

@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;
  }
}