/* ============================================================
   S-CAD shared styles
   ============================================================ */

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

:root {
  --bg:      #0d0d0d;
  --bg2:     #161616;
  --bg3:     #1e1e1e;
  --border:  rgba(255,255,255,0.08);
  --accent:  #00aadd;
  --accent2: #0088bb;
  --text:    #e8e8e8;
  --muted:   #888;
  --radius:  2px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

/* ── Nav ────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 24px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent2); }

/* ── Main & Footer ──────────────────────────── */
main { flex: 1; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── Page hero ──────────────────────────────── */
.page-hero {
  padding: 64px 40px 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero .sub {
  font-size: 15px;
  color: var(--muted);
}

/* ── Content wrapper ────────────────────────── */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 40px;
}

/* ── Sections ───────────────────────────────── */
.section { margin-bottom: 56px; }
.section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 8px;
}
.section p { color: var(--text); margin-bottom: 12px; }
.section ul, .section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.section li { margin-bottom: 6px; }
.section a { color: var(--accent); }
.section a:hover { color: var(--accent2); }

/* ── Video embed ────────────────────────────── */
.video-block { margin-bottom: 40px; }
.video-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.video-block p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Info card ──────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.card dt { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.card dd { color: var(--text); }

/* ── Form ───────────────────────────────────── */
.form-embed {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-embed iframe {
  width: 100%;
  min-height: 640px;
  border: none;
  display: block;
}

/* ── Key binding table ──────────────────────── */
.keytable { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.keytable th, .keytable td { padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.keytable th { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.keytable td:first-child { font-family: 'Courier New', monospace; color: var(--accent); font-size: 12px; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
  .site-nav { padding: 0 20px; gap: 16px; }
  .nav-links { gap: 16px; }
  .page-hero { padding: 40px 20px 32px; }
  .content { padding: 40px 20px; }
  .site-footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}
