@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg-dark: #020408;
  --panel-dark: rgba(10, 14, 20, 0.8);
  --accent-cyan: #00ccff;
  --accent-blue: #0066ff;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Button palette */
  --btn-cyan:       #00a3cc;
  --btn-cyan-hover: #00ccff;
  --btn-emerald:       rgb(5,150,105);
  --btn-emerald-hover: rgb(16,185,129);
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  font-size: 17px;
  line-height: 1.6;
}

.font-tech {
  font-family: 'JetBrains Mono', 'Orbitron', monospace;
  letter-spacing: 0.05em;
}

.glass {
  background: var(--panel-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.text-glow {
  text-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
}

.bg-circuit {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 2px 2px, rgba(0, 242, 255, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */

.label-base {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(156 163 175);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.25rem;
}

.hint-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgb(107 114 128);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metadata-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgb(75 85 99);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ─── HEADINGS ────────────────────────────────────────────── */

.h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(0, 242, 255, 0.4);
  text-transform: uppercase;
}

.h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .h1 { font-size: 2.25rem; line-height: 2.5rem; }
  .h2 { font-size: 1.5rem;  line-height: 2rem;   }
  .h3 { font-size: 1.25rem; line-height: 1.75rem; }
}

/* ─── BUTTON SYSTEM ───────────────────────────────────────── */

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-warning,
.btn-success,
.btn-small,
.btn-link,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  text-decoration: none;
  min-height: 3rem;
}

/* Primary — cyan filled */
.btn-primary {
  padding: 1rem 1.5rem;
  background-color: var(--btn-cyan);
  color: #000;
  font-weight: 900;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 163, 204, 0.25);
}
.btn-primary:hover {
  background-color: var(--btn-cyan-hover);
  box-shadow: 0 0 20px rgba(0, 204, 255, 0.35);
}

/* Secondary — ghost */
.btn-secondary {
  padding: 1rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 1rem;
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Danger — red ghost */
.btn-danger {
  padding: 1rem 1.5rem;
  background-color: rgba(220, 38, 38, 0.1);
  color: rgb(239 68 68);
  border-radius: 1rem;
}
.btn-danger:hover {
  background-color: rgba(220, 38, 38, 0.2);
}

/* Warning — amber ghost */
.btn-warning {
  padding: 1rem 1.5rem;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: rgb(252 211 77);
  border-radius: 1rem;
}
.btn-warning:hover {
  background-color: rgba(245, 158, 11, 0.2);
}

/* Success — emerald filled */
.btn-success {
  padding: 1rem 1.5rem;
  background-color: var(--btn-emerald);
  color: #000;
  font-weight: 900;
  border-radius: 1rem;
}
.btn-success:hover {
  background-color: var(--btn-emerald-hover);
}

/* Small variant */
.btn-small {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* Link / text variants */
.btn-link {
  padding: 0;
  background: none;
  color: rgb(107 114 128);
  letter-spacing: 0.2em;
}
.btn-link:hover { color: var(--accent-cyan); }

.btn-text {
  padding: 0;
  background: none;
  color: rgb(156 163 175);
  letter-spacing: 0.2em;
}
.btn-text:hover { color: #fff; }

/* ─── ICON SIZES ──────────────────────────────────────────── */

.icon-sm { font-size: 0.875rem; }
.icon-md { font-size: 1.125rem; }
.icon-lg { font-size: 1.25rem;  }
.icon-xl { font-size: 1.5rem;   }

/* ─── LAYOUT HELPERS ──────────────────────────────────────── */

.page-shell {
  padding-top: 6rem;
  padding-bottom: 8rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .page-shell { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .page-shell { padding-top: 8rem; padding-bottom: 3rem; }
}

.page-stack {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.page-stack > * + * { margin-top: 2.5rem; }

.page-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .page-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.page-intro { display: flex; flex-direction: column; gap: 0.25rem; }

.page-subtitle {
  color: rgb(107 114 128);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-top: 0.25rem;
}

/* ─── CARD / PANEL COMPONENTS ────────────────────────────── */

.section-card {
  background: var(--panel-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 2.5rem;
}

@media (min-width: 768px) {
  .section-card { padding: 2.5rem; }
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title { font-size: 1.5rem; line-height: 2rem; }
}

.section-kicker {
  font-size: 0.75rem;
  color: rgb(107 114 128);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-copy {
  font-size: 0.875rem;
  color: rgb(156 163 175);
  line-height: 1.625;
}

@media (min-width: 768px) {
  .section-copy { font-size: 1rem; }
}

.panel-note {
  font-size: 0.75rem;
  color: rgb(156 163 175);
  line-height: 1.625;
}

.panel-eyebrow {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 204, 255, 0.3);
  background-color: rgba(0, 204, 255, 0.05);
  color: #33e6ff;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.3em;
}

/* ─── STATUS PANELS ───────────────────────────────────────── */

.status-panel {
  background: var(--panel-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 204, 255, 0.2);
  background-color: rgba(8, 51, 68, 0.2);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-caption {
  font-size: 0.75rem;
  color: rgb(107 114 128);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.status-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── FIELD LABELS ────────────────────────────────────────── */

.field-label {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: rgb(107 114 128);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.25rem;
}

.field-label-accent {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: rgb(156 163 175);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.25rem;
}

.icon-button {
  padding: 0.75rem;
  color: rgb(107 114 128);
  transition: color 150ms ease;
  background: none;
  border: none;
  cursor: pointer;
}
.icon-button:hover { color: #fff; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 204, 255, 0.65);
  outline-offset: 2px;
}

input,
textarea,
select {
  min-height: 3rem;
  font-size: 1rem;
}

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

/* ─── MOBILE ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  .glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger,
  .btn-warning,
  .btn-success {
    padding: 0.875rem 1.25rem;
  }
}

/* ─── SCROLLBAR ───────────────────────────────────────────── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 255, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
