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

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

:root {
  --bg: #08090c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.06);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.30);
  --accent: rgba(255, 170, 50, 0.9);
  --accent-glow: rgba(255, 170, 50, 0.15);
  --warm: rgba(255, 170, 50, 0.9);
  --green: rgba(63, 185, 80, 0.9);
  --green-bg: rgba(63, 185, 80, 0.08);
  --yellow: rgba(210, 153, 34, 0.9);
  --yellow-bg: rgba(210, 153, 34, 0.08);
  --red: rgba(248, 81, 73, 0.9);
  --red-bg: rgba(248, 81, 73, 0.08);
  --blue: rgba(88, 166, 255, 0.9);
  --blue-bg: rgba(88, 166, 255, 0.08);
  --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.04) 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); text-decoration: none; }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 500; }
.btn-primary:hover { background: rgba(255, 170, 50, 1); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 4px 10px; font-size: 12px; }
.btn-danger { color: var(--red); border-color: rgba(248, 81, 73, 0.3); }
.btn-danger:hover { background: var(--red-bg); }

/* Cards */
.card {
  background: var(--glass-gradient);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(255,255,255,0.1); }

/* Tags / Badges */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-yellow { background: var(--yellow-bg); color: var(--yellow); }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-blue { background: var(--blue-bg); color: var(--blue); }

/* Labels */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Code */
code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}
pre {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
}
pre code { background: none; padding: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--surface-border);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
  font-size: 14px;
}
tr:hover { background: var(--surface); }

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Ambient background */
.ambient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 40%;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255, 170, 50, 0.04) 0%, transparent 70%);
  animation: drift 10s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Glass edge decorations */
.glass-edges {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glass-edge {
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}
.glass-edge:nth-child(1) {
  width: 1px; height: 35vh; top: 0; left: 15%;
  transform: rotate(10deg); opacity: 0.5;
}
.glass-edge:nth-child(2) {
  width: 1px; height: 45vh; top: 8%; right: 20%;
  transform: rotate(-7deg); opacity: 0.35;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.025) 40%, transparent 100%);
}
.glass-edge:nth-child(3) {
  width: 60px; height: 1px; top: 45%; left: 10%;
  transform: rotate(-4deg); opacity: 0.2;
  background: linear-gradient(90deg, transparent, rgba(168,200,255,0.05), transparent);
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 16px; }
}
