:root {
  --ink: #14212a;
  --muted: #4d6070;
  --paper: #f3f7fa;
  --accent: #1f6f5b;
  --accent-ink: #f4fffb;
  --line: rgba(20, 33, 42, 0.12);
  --glow: rgba(31, 111, 91, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.85), transparent 42%),
    radial-gradient(circle at 80% 10%, rgba(143, 208, 176, 0.35), transparent 34%),
    linear-gradient(135deg, #e8f1f6 0%, #d5e2ec 45%, #c3d3df 100%);
  z-index: 0;
  animation: wash 14s ease-in-out infinite alternate;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.65rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--glow);
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #185647;
}

.button:focus-visible {
  outline: 3px solid #8fd0b0;
  outline-offset: 3px;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__visual {
  min-width: 0;
}

.scene {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  filter: drop-shadow(0 24px 40px rgba(20, 33, 42, 0.18));
  animation: float-in 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.keys rect {
  transform-origin: center;
  animation: key-pulse 2.8s ease-in-out infinite;
}

.keys rect:nth-child(3) {
  animation-delay: 0.4s;
}

.section {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.footer {
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0;
}

@keyframes wash {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes key-pulse {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero__visual {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__atmosphere,
  .scene,
  .keys rect,
  .button {
    animation: none;
    transition: none;
  }
}
