:root {
  --bg-base: #0D0D0F;
  --bg-surface: #1A1D24;
  --bg-surface-deep: #14161B;
  --text-primary: #FFFFFF;
  --accent-amber: #FFB300;
  --accent-cyan: #00E5FF;
  --accent-rust: #FF6D00;
  --border-steel: rgba(255, 255, 255, 0.1);
  --shadow-elevation: 0 4px 12px rgba(0, 0, 0, 0.5);
  --focus-ring: 2px solid var(--accent-amber);
  --focus-glow: 0 0 0 3px rgba(255, 179, 0, 0.35);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --container-max: 1200px;
  --gutter: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --transition-fast: 200ms ease-in-out;
  --surface-gradient: linear-gradient(180deg, #1A1D24 0%, #14161B 100%);
  --overlay-gradient: linear-gradient(180deg, rgba(13, 13, 15, 0.8) 0%, rgba(13, 13, 15, 0) 100%);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

ul,
ol {
  list-style: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-block-end: var(--space-4);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-block-end: var(--space-3);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  margin-block-end: var(--space-3);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  margin-block-end: var(--space-2);
}

h5 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-block-end: var(--space-2);
}

h6 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-block-end: var(--space-2);
}

p {
  margin-block-end: var(--space-3);
  line-height: 1.6;
}

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

blockquote {
  margin-block-end: var(--space-3);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--accent-amber);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

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

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

figure:last-child {
  margin-block-end: 0;
}

figcaption {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin-block-start: var(--space-2);
}

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

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

.content-list {
  margin-block-end: var(--space-3);
  padding-inline-start: var(--space-4);
}

.content-list:last-child {
  margin-block-end: 0;
}

.content-list li {
  margin-block-end: var(--space-2);
  position: relative;
  padding-inline-start: var(--space-3);
  line-height: 1.6;
}

.content-list li:last-child {
  margin-block-end: 0;
}

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--accent-amber);
  border-radius: 1px;
}

.content-list--cyan li::before {
  background-color: var(--accent-cyan);
}

.content-list--rust li::before {
  background-color: var(--accent-rust);
}

.content-list--ordered {
  counter-reset: list-counter;
  list-style: none;
}

.content-list--ordered li {
  counter-increment: list-counter;
}

.content-list--ordered li::before {
  content: counter(list-counter);
  background: none;
  width: auto;
  height: auto;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
}

hr {
  border: none;
  border-top: 1px solid var(--border-steel);
  margin-block: var(--space-5);
}

code,
pre {
  font-family: "Rajdhani", monospace;
  background-color: var(--bg-surface-deep);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-2);
  font-size: 0.875rem;
  color: var(--accent-cyan);
}

pre {
  padding: var(--space-3);
  margin-block-end: var(--space-3);
  overflow-x: auto;
  line-height: 1.5;
}

pre:last-child {
  margin-block-end: 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-3);
  font-size: 0.875rem;
  line-height: 1.5;
}

table:last-child {
  margin-block-end: 0;
}

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

th {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  background-color: var(--bg-surface-deep);
  color: var(--accent-amber);
}

td {
  color: rgba(255, 255, 255, 0.85);
}

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

.container--wide {
  max-width: 1400px;
}

.surface {
  background: var(--surface-gradient);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevation);
}

.surface--flat {
  background: var(--bg-surface);
}

.surface--deep {
  background: var(--bg-surface-deep);
}

.surface--interactive {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.surface--interactive:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15), var(--shadow-elevation);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--focus-glow);
}

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

.btn--primary:hover {
  background-color: #FFC233;
  border-color: #FFC233;
  box-shadow: 0 0 16px rgba(255, 179, 0, 0.4);
  color: var(--bg-base);
}

.btn--secondary {
  background-color: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn--secondary:hover {
  background-color: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
}

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

.btn--ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

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

.btn--rust:hover {
  background-color: #FF8A33;
  border-color: #FF8A33;
  box-shadow: 0 0 16px rgba(255, 109, 0, 0.4);
  color: var(--bg-base);
}

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

.btn--lg {
  font-size: 1.125rem;
  padding: var(--space-4) var(--space-5);
  min-height: 52px;
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--full {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge--amber {
  background-color: rgba(255, 179, 0, 0.15);
  color: var(--accent-amber);
  border-color: rgba(255, 179, 0, 0.4);
}

.badge--cyan {
  background-color: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.4);
}

.badge--rust {
  background-color: rgba(255, 109, 0, 0.15);
  color: var(--accent-rust);
  border-color: rgba(255, 109, 0, 0.4);
}

.badge--neutral {
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: var(--border-steel);
}

.card {
  background: var(--surface-gradient);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevation);
  padding: var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15), var(--shadow-elevation);
}

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

.card__header {
  margin-block-end: var(--space-3);
}

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

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

.card__footer {
  margin-block-start: var(--space-3);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid var(--border-steel);
}

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

.panel {
  background: var(--surface-gradient);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevation);
  padding: var(--space-4);
}

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

.panel--flat {
  background: var(--bg-surface);
}

.panel--deep {
  background: var(--bg-surface-deep);
}

.panel--interactive {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.panel--interactive:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15), var(--shadow-elevation);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.stack--lg {
  gap: var(--space-4);
}

.stack--xl {
  gap: var(--space-5);
}

.stack > * {
  min-width: 0;
}

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

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

.stack--stretch {
  align-items: stretch;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

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

.cluster--lg {
  gap: var(--space-4);
}

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

.cluster--stretch > * {
  flex: 1 1 auto;
}

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

.cluster--center {
  justify-content: center;
}

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

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

.cluster--around {
  justify-content: space-around;
}

.cluster--evenly {
  justify-content: space-evenly;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-start;
}

.split > * {
  min-width: 0;
  flex: 1 1 300px;
}

.split--sm {
  gap: var(--space-3);
}

.split--lg {
  gap: var(--space-5);
}

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

.split--stretch {
  align-items: stretch;
}

.split--reverse {
  flex-direction: row-reverse;
}

.grid-auto {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-auto--sm {
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.grid-auto--lg {
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.grid-auto > * {
  min-width: 0;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  z-index: 9999;
  background-color: var(--accent-amber);
  color: var(--bg-base);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-3);
  outline: var(--focus-ring);
  outline-offset: 2px;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--focus-glow);
}

::selection {
  background-color: var(--accent-amber);
  color: var(--bg-base);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border: 2px solid var(--bg-base);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-amber);
}

input,
textarea,
select {
  background-color: var(--bg-surface-deep);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

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

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

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

select {
  appearance: none;
  -webkit-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='%23FFFFFF' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-inline-end: var(--space-5);
  cursor: pointer;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  margin-block-end: var(--space-2);
}

fieldset {
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-block-end: var(--space-3);
}

fieldset:last-child {
  margin-block-end: 0;
}

legend {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-amber);
  padding-inline: var(--space-2);
}

.form-group {
  margin-block-end: var(--space-3);
}

.form-group:last-child {
  margin-block-end: 0;
}

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

.form-hint {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin-block-start: var(--space-1);
}

.form-error {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--accent-rust);
  margin-block-start: var(--space-1);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.icon--amber {
  color: var(--accent-amber);
}

.icon--cyan {
  color: var(--accent-cyan);
}

.icon--rust {
  color: var(--accent-rust);
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
  }

  .card,
  .panel {
    padding: var(--space-3);
  }

  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
  }

  .btn--lg {
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
  }

  .split {
    flex-direction: column;
  }

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

  .split > * {
    flex: 1 1 auto;
    width: 100%;
  }

  .cluster--between,
  .cluster--around,
  .cluster--evenly {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .btn {
    width: 100%;
  }

  .btn--full-mobile {
    width: 100%;
  }

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

  .grid-auto--sm,
  .grid-auto--lg {
    grid-template-columns: 1fr;
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}
