/* ── variables ── */
:root {
  --bg:        #060608;
  --surface:   #0d0d12;
  --surface2:  #13131a;
  --border:    #1e1e2e;
  --border-hi: #2e2e4e;
  --text:      #cdd6f4;
  --subtext:   #a6adc8;
  --muted:     #585b70;
  --accent:    #89b4fa;
  --accent2:   #cba6f7;
  --green:     #a6e3a1;
  --yellow:    #f9e2af;
  --red:       #f38ba8;
  --mono:      "JetBrains Mono", monospace;
  --sans:      "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ── scanline overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── noise texture ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
}

/* ── layout ── */
.wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,6,8,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
}

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

nav .logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

nav .logo span { color: var(--muted); }

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav ul a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--accent); }

/* ── hero ── */
header {
  padding: 100px 0 60px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

header h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

header h1 .dim { color: var(--muted); font-weight: 300; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--subtext);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-motto {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--accent2);
  padding-left: 14px;
  margin-bottom: 40px;
  font-style: italic;
}

.hero-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── buttons ── */
.btn {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #060608;
  font-weight: 700;
}

.btn-primary:hover { background: #b9d0ff; transform: translateY(-2px); }

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

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

/* ── sections ── */
section {
  padding: 60px 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── grid ── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(137,180,250,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover { border-color: var(--border-hi); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }

.card-title {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}

.card p {
  font-size: 0.9rem;
  color: var(--subtext);
  line-height: 1.6;
}

.card-accent { border-left: 2px solid var(--accent); }
.card-purple { border-left: 2px solid var(--accent2); }
.card-green  { border-left: 2px solid var(--green); }
.card-yellow { border-left: 2px solid var(--yellow); }

/* ── about ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-main { grid-column: 1 / -1; }

/* ── quote block ── */
.quote-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 16px 0;
  position: relative;
}

.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 5rem;
  color: var(--accent2);
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-block blockquote {
  font-size: 1rem;
  color: var(--subtext);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 10px;
}

.quote-block cite {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── stack tags ── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--subtext);
  background: var(--surface);
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(137,180,250,0.06); }
.tag.core { border-color: var(--accent); color: var(--accent); background: rgba(137,180,250,0.08); }

/* ── setup items ── */
.setup-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.setup-icon {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.setup-item .label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 2px;
}

.setup-item .val {
  font-size: 0.88rem;
  color: var(--subtext);
}

/* ── pokemon easter egg ── */
.poke-card {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1025 100%);
  border: 1px solid #3b2d5e;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s;
}

.poke-card:hover { border-color: var(--accent2); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(203,166,247,0.1); }

.poke-sprite {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(203,166,247,0.4));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.poke-text .poke-name {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.poke-text p {
  font-size: 0.88rem;
  color: var(--subtext);
}

/* ── contact ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
}

.contact-card .email-link {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-card .email-link:hover { border-color: var(--accent); }

.contact-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

/* ── footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
  text-align: center;
}

footer .inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

footer .status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
}

footer .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── responsive ── */
@media (max-width: 680px) {
  .grid-2, .grid-3, .about-grid { grid-template-columns: 1fr; }
  .about-main { grid-column: 1; }
  nav ul { display: none; }
  header { padding: 70px 0 40px; }
}
