/* ==========================================================================
   Tech in Two Uploader - Clean, Minimal Dark Theme
   Accessible, No external fonts, No JavaScript required, Zero overflow at 375px
   ========================================================================== */

:root {
  --bg-main: #090d16;
  --bg-card: #111726;
  --border-color: #1e293b;
  --border-accent: rgba(0, 240, 255, 0.3);

  --cyan: #00f0ff;
  --violet: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-width: 780px;
  --radius: 8px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 15% 10%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
    var(--bg-main);
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #70f6ff;
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Header & Direct Navigation (No JS required) */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(9, 13, 22, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-accent);
  display: block;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

/* Main Content Container */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
  flex: 1;
}

/* Headings and Typography */
h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h2 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

ul, ol {
  margin-left: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.45rem;
  line-height: 1.6;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

/* UI Cards and Elements */
.badge {
  display: inline-block;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.notice-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--violet);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
  font-size: 0.94rem;
}

.notice-box.cyan {
  border-left-color: var(--cyan);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.step-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.meta-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.94rem;
}

.info-card p {
  margin-bottom: 0.4rem;
}

.info-card p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #060910;
  padding: 2.25rem 1.25rem 2rem;
  margin-top: auto;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
}

/* Mobile Responsiveness & No Horizontal Overflow */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .container {
    padding: 1.75rem 1rem 2.5rem;
  }
}
