/* ── Variables ── */
:root {
  --bg: #0f1117;
  --bg-card: #161a24;
  --bg-card-hover: #1c2131;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #e8e6e0;
  --text-dim: rgba(232,230,224,0.45);
  --text-muted: rgba(232,230,224,0.25);
  --accent: #c8f060;
  --accent-dim: rgba(200,240,96,0.12);
  --accent-glow: rgba(200,240,96,0.18);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── Canvas grid ── */
#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── Noise overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.6;
}

/* ── Header ── */
header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-2 { color: var(--accent); }
.logo-mood { color: var(--text); }
.logo-tech {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-left: 10px;
  text-transform: lowercase;
}

.header-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Main ── */
main {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}
.hero-title {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--text-dim);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.card:nth-child(1) { animation-delay: 0.55s; }
.card:nth-child(2) { animation-delay: 0.7s; }
.card:nth-child(3) { animation-delay: 0.85s; }

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.card-inner {
  position: relative;
  z-index: 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, var(--accent-glow) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.card:hover .card-glow { opacity: 1; }

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(200,240,96,0.2);
}

/* Card Icon */
.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.card:hover .card-icon { color: var(--accent); }
.card-icon svg { width: 100%; height: 100%; }

/* Card Content */
.card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 400;
  flex: 1;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.card-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.card:hover .card-link { color: var(--text-dim); }
.card-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 10;
  padding: 0 48px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-credit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.footer-author {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-author:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 860px) {
  header { padding: 24px 24px; }
  main { padding: 0 24px 60px; }
  footer { padding: 0 24px 28px; }
  .hero { padding: 56px 0 48px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-inner { min-height: auto; }
}
@media (max-width: 560px) {
  .logo-tech { display: none; }
  .hero-title { font-size: 44px; }
}
