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

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:        #0d1117;
  --surface:   #161b22;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --accent:    #f0c27f;
  --accent-dim:#a07840;
  --danger:    #ff6b6b;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

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

/* ─── Grid lines ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  z-index: 1;
  max-width: 720px;
  width: 90%;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px var(--border),
    0 32px 64px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* top accent bar */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px 2px 0 0;
}

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--danger);
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.25);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 2rem;
  animation: pulse-border 2.4s ease-in-out infinite;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  animation: blink 1.2s step-start infinite;
}

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

@keyframes pulse-border {
  0%, 100% { border-color: rgba(255,107,107,0.25); }
  50%       { border-color: rgba(255,107,107,0.55); }
}

/* ─── Headline ─── */
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: var(--accent);
}

/* ─── Divider ─── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
  opacity: 0.6;
}

/* ─── Body text ─── */
.hero-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.hero-body strong {
  color: var(--text);
  font-weight: 500;
}

/* ─── CTA Link ─── */
.cta-wrap {
  display: flex;
  justify-content: center;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(240,194,127,0.2);
}

.cta-link:hover {
  background: #f8d08f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,194,127,0.35);
}

.cta-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── Footer note ─── */
.hero-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero-footer span {
  color: var(--accent-dim);
}

/* ─── Entrance animation ─── */
.hero {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge      { animation-delay: 0.15s; animation: fade-up 0.6s 0.1s cubic-bezier(0.22,1,0.36,1) both; }
.hero-title { animation: fade-up 0.6s 0.25s cubic-bezier(0.22,1,0.36,1) both; }
.hero-body  { animation: fade-up 0.6s 0.4s  cubic-bezier(0.22,1,0.36,1) both; }
.cta-wrap   { animation: fade-up 0.6s 0.55s cubic-bezier(0.22,1,0.36,1) both; }
