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

:root {
  --bg:         #07090e;
  --surface:    #0d1018;
  --surface-2:  #121620;
  --border:     #1b2035;
  --text:       #eef2f8;
  --text-muted: #556070;
  --accent:     #58a6ff;
  --radius:     8px;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  /* dot-grid + top glow — CSS only */
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(88,166,255,.1) 0%, transparent 68%),
    linear-gradient(rgba(88,166,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,166,255,.028) 1px, transparent 1px);
  background-size: 100% 100%, 52px 52px, 52px 52px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(88,166,255,.07);
  border: 1px solid rgba(88,166,255,.18);
  border-radius: 999px;
  padding: .28rem .9rem .28rem .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  margin-bottom: 2.5rem;
}

.badge-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(3.8rem, 11vw, 7rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}

/* Signature: blinking terminal cursor */
.hero-title::after {
  content: '_';
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-title::after { animation: none; opacity: 1; }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}

.hero-description {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: .93rem;
  line-height: 1.8;
}

/* ── Features ────────────────────────────────────────────────── */
.features {
  padding: 4.5rem 0 6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Feature card ────────────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}

.feature-card:hover {
  border-color: rgba(88,166,255,.4);
  box-shadow: 0 0 0 1px rgba(88,166,255,.1), 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}

/* Window-chrome header */
.card-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.card-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
  flex-shrink: 0;
}

.card-slug {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-img-wrap {
  width: 100%;
  background: #040508;
  border-bottom: 1px solid var(--border);
}

.card-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 1.1rem 1rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.card-body h3 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.card-body p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Connect ─────────────────────────────────────────────────── */
.connect {
  padding: 0 0 6rem;
}

.connect-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .connect-grid { grid-template-columns: 3fr 2fr; }
}

.connect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}

.connect-card:hover {
  border-color: rgba(88,166,255,.4);
  box-shadow: 0 0 0 1px rgba(88,166,255,.1), 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}

.connect-card--coffee:hover {
  border-color: rgba(255,221,0,.35);
  box-shadow: 0 0 0 1px rgba(255,221,0,.08), 0 8px 32px rgba(0,0,0,.4);
}

.card-dot--coffee {
  background: #ffdd00;
  opacity: 1;
}

.connect-card-body {
  padding: 1.25rem 1rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* BMC card: QR + text side by side */
.coffee-layout {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
}

.coffee-qr {
  flex-shrink: 0;
  width: 108px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  line-height: 0;
}

.coffee-qr img {
  width: 100%;
  height: auto;
  display: block;
}

.coffee-text {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 0;
  padding-top: .1rem;
}

.coffee-tagline {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.coffee-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: #07090e;
  background: #ffdd00;
  border-radius: 4px;
  padding: .38rem .65rem;
  text-decoration: none;
  letter-spacing: .01em;
  font-weight: 500;
  transition: opacity .15s ease;
  word-break: break-all;
  align-self: flex-start;
}

.coffee-btn:hover { opacity: .82; }

/* LinkedIn card */
.linkedin-layout {
  justify-content: center;
}

.linkedin-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.linkedin-link {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .01em;
  transition: opacity .15s ease;
}

.linkedin-link:hover { opacity: .72; }

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .08em;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a3248; }
