/* arif-fazil.com — Professional personal site */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #18181f;
  --border: #22222e;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --accent: #c8a84b;
  --accent-dim: #8a7030;
  --green: #4caf82;
  --red: #e05c5c;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Liberation Mono', 'Courier New', monospace;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Navigation ─────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

nav .logo span { color: var(--text-muted); font-weight: 400; }

.nav-links { display: flex; gap: 0.25rem; list-style: none; }

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.03em;
}

.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active { color: var(--accent); }

/* ── Layout ────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ── Hero ──────────────────────────────────── */
.hero {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.hero .tagline strong { color: var(--text); font-weight: 600; }

/* ── Section headers ───────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.subhead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.75;
}

/* ── Cards ─────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--accent-dim); }

.card .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Well cards ────────────────────────────── */
.well-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.well-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.well-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.badge-public { background: rgba(76,175,130,0.15); color: var(--green); border: 1px solid rgba(76,175,130,0.3); }
.badge-self   { background: rgba(200,168,75,0.12); color: var(--accent); border: 1px solid rgba(200,168,75,0.25); }
.badge-private{ background: rgba(136,136,160,0.1); color: var(--text-muted); border: 1px solid var(--border); }

.well-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.well-meta dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.well-meta dd {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
}

.well-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Proof pages ───────────────────────────── */
.proof-header { padding: 5rem 0 3rem; }

.proof-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.status-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--green); box-shadow: 0 0 6px rgba(76,175,130,0.5); }
.dot-amber { background: var(--accent); box-shadow: 0 0 6px rgba(200,168,75,0.4); }
.dot-grey  { background: var(--text-muted); }

.status-item .label { font-size: 0.8rem; color: var(--text-muted); }
.status-item .value { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-top: 0.1rem; }

/* ── Vault /999 ─────────────────────────────── */
.vault-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.vault-container .vault-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.vault-container h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.vault-container .vault-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.vault-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.vault-state h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.vault-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.vault-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 2rem 0;
  text-align: left;
}

.vault-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}

.vault-feature .vf-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.vault-feature .vf-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.vault-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
}

.vault-verify-link:hover { text-decoration: underline; }

/* ── Machine-readable code block ───────────── */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.code-block pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover { background: #d4b455; }

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

.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
  font-size: 0.8rem;
}

.btn-ghost:hover { color: #d4b455; }

/* ── Two-column text ───────────────────────── */
.text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.text-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.text-grid p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Evidence list ────────────────────────── */
.evidence-list {
  list-style: none;
  margin-top: 1.5rem;
}

.evidence-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.evidence-list li:last-child { border-bottom: none; }

.evidence-list .ev-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  align-self: center;
  font-family: var(--font-mono);
}

.tag-OBS { background: rgba(76,175,130,0.12); color: var(--green); }
.tag-INT { background: rgba(200,168,75,0.12); color: var(--accent); }
.tag-DER { background: rgba(136,136,160,0.1); color: var(--text-muted); }

/* ── Footer ────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 0;
}

footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer .footer-left {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

footer .footer-right {
  display: flex;
  gap: 1.5rem;
}

footer .footer-right a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

footer .footer-right a:hover { color: var(--accent); }

/* ── Utility ───────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.gap-top { margin-top: 2rem; }
.gap-top-sm { margin-top: 1rem; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 5rem 0 3rem; }
  .text-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .vault-features { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}
