/* css/style.css */

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

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-void);
  color: var(--color-cream);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography — strictly following design.md / MarkForMC spec ── */

h1, h2, h3 {
  font-family: var(--font-primary);
  color: var(--color-cream);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* H1 hero: 64px / 500 / 1:1 line-height / -2% tracking */
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
}

/* H2 section: 36px / 500 / 44px line-height / -2% tracking */
h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.22;
}

/* H3 card: 24px / 500 / 1.2 line-height / -2% tracking */
h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Body: 16px / weight 400 (simulating 450) / line-height 1.4 / normal tracking */
p {
  color: var(--color-cream-muted);
  line-height: 1.4;
}

/* ── Eyebrow label ── */

/* Eyebrow: 14px / 700 / 14px line-height / +0.04em (+4%) / uppercase */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-flame);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-flame);
  flex-shrink: 0;
}

/* ── Ghost watermark ── */

.ghost-watermark {
  font-family: var(--font-primary);
  font-size: clamp(70px, 13vw, 170px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.04em;
  color: rgba(243, 240, 238, 0.025);
  position: absolute;
  top: 4%;
  left: -1%;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero load animation ── */

.hero-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-animate:nth-child(1) { animation-delay: 0.2s; }
.hero-animate:nth-child(2) { animation-delay: 0.4s; }
.hero-animate:nth-child(3) { animation-delay: 0.6s; }
.hero-animate:nth-child(4) { animation-delay: 0.75s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .grid-2 { grid-template-columns: 1fr; gap: var(--space-6); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .ghost-watermark { display: none; }
}
