/* ─── Clankerbrains.io ──────────────────────────────────────────── */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --accent-primary: #00d4ff;
  --accent-secondary: #7b2ff7;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #7b2ff7);
  --text-primary: #e8e8ed;
  --text-secondary: #8888a0;
  --text-tertiary: #555570;
  --border: #2a2a3e;
  --success: #00ff88;
  --warning: #ffaa00;
  --steel: #3a3a50;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
}

/* ─── Reset ────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent-primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Navigation ───────────────────────────────────────────────── */

.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.accent { color: var(--accent-primary); }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); opacity: 1; }

.nav-cta {
  background: var(--accent-gradient);
  color: var(--bg-primary) !important;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Sections ─────────────────────────────────────────────────── */

.section { padding: 7rem 0; }
.section-alt { background: var(--bg-secondary); }

.section-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ─── Hero ─────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 60px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* ─── Buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.35);
  color: var(--bg-primary);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-primary);
  opacity: 1;
}

/* ─── Cards ────────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.card-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.card p:last-child {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ─── Daemon Block ─────────────────────────────────────────────── */

.daemon-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
}

.terminal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.terminal-body code {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.terminal-quiet {
  color: var(--text-tertiary) !important;
  font-style: italic;
}

/* ─── Flow Diagram ─────────────────────────────────────────────── */

.flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  flex: 0 1 140px;
}

.flow-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.flow-step h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.flow-step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flow-arrow {
  color: var(--text-tertiary);
  font-size: 1.5rem;
  padding-top: 0.8rem;
  flex-shrink: 0;
}

.tech-stack {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tech-stack p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tech-stack strong {
  color: var(--text-primary);
}

/* ─── Hardware ─────────────────────────────────────────────────── */

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.hardware-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
}

.hardware-card.active { border-color: rgba(0, 212, 255, 0.25); }
.hardware-card.upcoming { opacity: 0.5; }

.hardware-card h4 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.hw-maker {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
}

.hardware-card p:last-of-type {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.hw-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.upcoming-badge {
  background: rgba(255, 170, 0, 0.1) !important;
  color: var(--warning) !important;
  border-color: rgba(255, 170, 0, 0.2) !important;
}

/* ─── Hiring ───────────────────────────────────────────────────── */

.hiring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hiring-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.hiring-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hiring-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hiring-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.hiring-reqs {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.hiring-reqs li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.hiring-reqs li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hiring-comp {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 1.2rem;
  font-style: italic;
}

/* ─── Waitlist Form ────────────────────────────────────────────── */

.waitlist-form {
  max-width: 650px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.form-row input,
.form-row select {
  flex: 1;
  min-width: 180px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  transition: border-color 0.2s;
  appearance: none;
}

.form-row input::placeholder { color: var(--text-tertiary); }
.form-row select { color: var(--text-tertiary); cursor: pointer; }
.form-row select:valid { color: var(--text-primary); }

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.form-row .btn {
  flex-shrink: 0;
  min-width: 140px;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 0.8rem;
  border-radius: 8px;
}

.form-message.success {
  color: var(--success);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.form-message.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.15);
}

/* ─── Footer ───────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.footer-contact { margin-bottom: 0.5rem; }
.footer-contact a { color: var(--text-secondary); font-size: 0.9rem; }

.footer-tagline {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.footer-copy {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

/* ─── Animations ───────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .card-grid { grid-template-columns: 1fr; }
  .hardware-grid { grid-template-columns: 1fr; }
  .hiring-grid { grid-template-columns: 1fr; }

  .flow-arrow { display: none; }
  .flow { gap: 1.5rem; }
  .flow-step { flex: 0 1 100%; }

  .section { padding: 4rem 0; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .form-row input, .form-row select, .form-row .btn { min-width: 100%; }
  .hero-title { font-size: 2.4rem; }
}
