:root {
  --bg: #f7f7f5;
  --text-dark: #141922;
  --muted-dark: #4a5563;

  --button-primary-bg: #1f3047;
  --button-primary-text: #ffffff;
  --button-secondary-border: rgba(20, 25, 34, 0.18);
  --button-secondary-text: #141922;

  --surface: #ffffff;
  --card: #ffffff;
  --shadow-card: 0 12px 30px rgba(10, 20, 40, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

body {
  min-height: 200vh;
}

a {
  text-decoration: none;
}

main {
  position: relative;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  /* overflow: hidden; */
  background:
    linear-gradient(to right, transparent 49.95%, rgba(20, 25, 34, 0.05) 50%, transparent 50.05%),
    linear-gradient(to bottom, transparent 49.95%, rgba(20, 25, 34, 0.05) 50%, transparent 50.05%),
    linear-gradient(180deg, #f8f8f6 0%, #f5f5f3 100%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, transparent 0, transparent calc(100% - 1px), rgba(20,25,34,0.018) calc(100% - 1px)),
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(20,25,34,0.018) calc(100% - 1px));
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero__copy {
  position: relative;
  z-index: 2;
  /* min-height: 100vh; */
  width: min(1280px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 0;
  text-align: center;
}

.hero__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 300;
  color: #111827;
}

.hero__title span {
  font-weight: 500;
}

.hero__subtitle {
  margin: 1.25rem 0 0;
  width: min(680px, 90vw);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  color: var(--muted-dark);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hero__button:hover {
  transform: translateY(-1px);
}

.hero__button--primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: 0 10px 24px rgba(17, 36, 57, 0.12);
}

.hero__button--secondary {
  background: rgba(255,255,255,0.7);
  color: var(--button-secondary-text);
  border: 1px solid var(--button-secondary-border);
  backdrop-filter: blur(8px);
}

/* =========================
   CONTENT
========================= */
.content {
  position: relative;
  z-index: 3;
  padding: 7rem min(6vw, 72px);
  background: var(--surface);
}

.content__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.content__card {
  padding: 2rem;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.content__card h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.content__card p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero__title {
    font-size: clamp(2.8rem, 10vw, 5rem);
    max-width: 10ch;
  }

  .content__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__copy {
    padding: 3rem 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    width: min(100%, 320px);
  }

  .hero__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__button {
    transition: none;
  }
}