/* Hero: headline, CTA, meta stats, code card */

.hero {
  padding-block: clamp(56px, 9vw, 110px) clamp(56px, 8vw, 96px);
  position: relative; overflow: hidden;
}
/* grid backdrop */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 35%, #000 15%, transparent 75%);
}
/* mint glow */
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -180px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: .45; filter: blur(20px); pointer-events: none;
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.hero-role { margin-bottom: 18px; }

.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; margin: 28px 0 36px; }
.hero .lead p { margin: 0; }
.hero .lead p + p { margin-top: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: 14px; color: var(--ink-3); }
.hero-meta strong { display: block; font: 700 30px/1.1 var(--display); color: var(--ink); }

/* ---------- code card ---------- */
.code-card {
  position: relative; z-index: 1;
  background: rgba(7, 16, 13, .92); color: #dff3ea;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(99,241,183,.28), 0 30px 70px -25px rgba(0,0,0,.5), 0 0 60px -20px var(--glow);
  transform: rotate(1.5deg);
  font: 14px/1.75 var(--mono);
  backdrop-filter: blur(8px);
}
.code-bar {
  display: flex; gap: 7px; align-items: center; padding: 14px 18px;
  background: rgba(99,241,183,.05); border-bottom: 1px solid rgba(99,241,183,.15);
}
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #24332d; display: block; }
.code-bar i:nth-child(3) { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.code-bar span { margin-left: 10px; color: #6f8a7f; font-size: 12px; }
.code-body { padding: 20px 22px 24px; overflow-x: auto; white-space: pre; }

/* syntax colors */
.c-k { color: #63f1b7; }   /* keyword */
.c-s { color: #f3d58a; }   /* string */
.c-p { color: #6fd8f0; }   /* function */
.c-c { color: #55695f; }   /* comment */
.c-n { color: #c4a8ff; }   /* literal */

.cursor {
  display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px;
  background: var(--accent); box-shadow: 0 0 10px var(--glow);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .code-card { transform: none; max-width: 560px; }
}
@media (max-width: 640px) {
  .hero-meta { gap: 20px; }
  .hero-meta strong { font-size: 26px; }
  .code-card { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
