/* ══════════════════════════════════════════
   Theme tokens
   ══════════════════════════════════════════ */

:root {
  --bg:       #0a0a0b;
  --bg-card:  #111113;
  --fg:       #e4e4e7;
  --fg-dim:   #a1a1aa;
  --accent:   #6d5dfc;
  --accent-2: #38bdf8;
  --border:   rgba(255,255,255,0.06);
  --glow:     rgba(109,93,252,0.15);
  --radius:   12px;
}


/* ══════════════════════════════════════════
   Reset & base
   ══════════════════════════════════════════ */

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════
   Top nav
   ══════════════════════════════════════════ */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 0;
}

.topnav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topnav-links {
  display: flex;
  gap: 0.75rem;
}

.topnav-links a {
  color: var(--fg-dim);
  transition: color 0.2s;
}

.topnav-links a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   Hero
   ══════════════════════════════════════════ */

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem 3.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-greeting {
  font-size: 1rem;
  color: var(--fg-dim);
  margin-bottom: 0.35rem;
}

.hero-name {
  font-size: clamp(2.8rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--glow);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--border);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   Content area
   ══════════════════════════════════════════ */

.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ══════════════════════════════════════════
   Cards
   ══════════════════════════════════════════ */

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

.card:hover {
  border-color: rgba(109,93,252,0.25);
  box-shadow: 0 0 30px var(--glow);
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.75;
  max-width: 60ch;
}

.card p + p {
  margin-top: 0.85rem;
}

/* ══════════════════════════════════════════
   Resume embed
   ══════════════════════════════════════════ */

.resume-frame {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #1a1a1c;
}


.resume-frame iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: none;
}

.resume-dl {
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */

.site-footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.site-footer a {
  color: var(--fg-dim);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 600px) {
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .card { padding: 1.5rem; }
  .content { padding: 0 1rem; }
  .topnav { padding: 1.25rem 1.25rem 0; }
  .site-footer { padding: 2rem 1.25rem; }
  .resume-frame iframe { height: 450px; }
}

/* ═══════════════════════════════════════════════
   Dashboard styles (shared via ../assets/style.css)
   ═══════════════════════════════════════════════ */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.dash-header h1 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.last-updated {
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.range-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.range-buttons button {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.range-buttons button:hover {
  background: var(--border);
}

.range-buttons button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chart-wrap {
  margin-bottom: 1.5rem;
}

.doc-count {
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}

.dash-footer {
  font-size: 0.8rem;
  color: var(--fg-dim);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

/* ── Password gate ── */

.gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.gate form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(320px, 90vw);
}

.gate input[type="password"] {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

.gate input[type="password"]:focus {
  border-color: var(--accent);
}

.gate button[type="submit"] {
  padding: 0.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.gate .error {
  font-size: 0.8rem;
  color: #e05050;
  min-height: 1em;
}
