:root {
  --bg-primary: #030712;
  --bg-glass: rgba(15,23,42,0.72);
  --bg-glass-strong: rgba(15,23,42,0.6);
  --text-primary: #ffffff;
  --text-secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --border-glass: rgba(6,182,212,0.18);
  --border-metal: #1e293b;
  --bg-highlight: rgba(6,182,212,0.20);

  --font-heading: 'Orbitron','Montserrat',Arial,sans-serif;
  --font-body: 'Montserrat',Arial,sans-serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,monospace;

  --step-1: clamp(2rem, 4vw, 3rem);
  --step-2: clamp(1.75rem, 3vw, 2.25rem);
  --step-3: 1.5rem;
  --step-4: 1.125rem;
  --step-5: 1rem;
  --step-6: 0.875rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 4vw, 3rem);

  --radius-sm: 6px;

  --blur: 16px;
  --glow-cyan: 0 0 0 1px var(--border-glass), 0 0 12px rgba(6,182,212,0.25);
  --glow-violet: 0 0 0 1px rgba(139,92,246,0.25), 0 0 12px rgba(139,92,246,0.25);
}

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

* {
  margin: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--step-5);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  cursor: pointer;
}

ul {
  list-style: none !important;
  padding: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--accent-violet);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

h1 { font-size: var(--step-1); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-4); }
h5 { font-size: var(--step-5); }
h6 { font-size: var(--step-6); }

p {
  font-size: var(--step-5);
  color: var(--text-primary);
}

h1:not(:last-child),
h2:not(:last-child),
h3:not(:last-child),
h4:not(:last-child),
h5:not(:last-child),
h6:not(:last-child) {
  margin-bottom: var(--space-3);
}

p:not(:last-child),
ul:not(:last-child),
ol:not(:last-child),
blockquote:not(:last-child) {
  margin-bottom: var(--space-3);
}

section:not(:last-child) {
  margin-bottom: var(--space-5);
}

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

.surface {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
}

.card {
  padding: var(--space-3);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-sm);
}

.card > *:last-child {
  margin-bottom: 0;
}

.glow-cyan:hover,
.glow-cyan:focus-visible {
  box-shadow: var(--glow-cyan);
}

.glow-violet:hover,
.glow-violet:focus-visible {
  box-shadow: var(--glow-violet);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-size: var(--step-6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan);
  color: #fff;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.btn-secondary {
  background: var(--accent-violet);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  box-shadow: var(--glow-violet);
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-glass);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: var(--glow-cyan);
}

.grid-auto {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.flex-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-width: 0;
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mono {
  font-family: var(--font-mono);
}

hr {
  border: none;
  height: 1px;
  background: var(--border-metal);
  margin-block: var(--space-4);
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

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