:root {
  color-scheme: light;
  --powder: #c1e2be;
  --water: #cae9be;
  --alice: #e6f8d1;
  --light-blue: #d6ebc3;
  --sky: #ddf0c7;
  --ink: #1d2f26;
  --muted: #516b5c;
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(31, 59, 38, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, var(--water), transparent 55%),
    radial-gradient(circle at 80% 15%, var(--powder), transparent 45%),
    linear-gradient(180deg, var(--alice), var(--water));
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 248, 255, 0.7));
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: float-in 0.8s ease-out;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 226, 190, 0.6), transparent 65%);
  top: -70px;
  right: -40px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.3rem);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__meta a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.hero__meta a:hover {
  color: var(--ink);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(31, 47, 59, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.ghost:hover {
  background: var(--sky);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(134, 216, 182, 0.4);
}

.hero__visual {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 16px 36px rgba(31, 47, 59, 0.08);
  min-height: 220px;
  position: relative;
  z-index: 1;
}

.terminal {
  width: 100%;
  max-width: 360px;
  background: #1d2f26;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(31, 47, 59, 0.22);
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
  user-select: none;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #2a3f33;
}

.terminal__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.terminal__dot--r { background: #ff5f57; }
.terminal__dot--y { background: #febc2e; }
.terminal__dot--g { background: #28c840; }

.terminal__title {
  margin-left: auto;
  color: rgba(230, 248, 209, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.terminal__body {
  padding: 18px 18px 22px;
  color: #e6f8d1;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.t-prompt { color: #c1e2be; }
.t-cmd { color: #ffffff; }
.t-out { color: rgba(230, 248, 209, 0.78); }

.t-cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
  color: #c1e2be;
}

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

.section {
  margin-top: 64px;
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section__header p {
  color: var(--muted);
}

.prose {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-grid span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 47, 59, 0.08);
  font-weight: 500;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(28, 51, 39, 0.08);
  display: grid;
  gap: 12px;
  align-content: start;
  animation: rise 0.9s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px rgba(28, 51, 39, 0.12);
}

.card h3 {
  font-size: 1.25rem;
}

.card__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.card__links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-weight: 600;
}

.card__links a {
  color: var(--ink);
  border-bottom: 1px solid rgba(31, 47, 59, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.card__links a:hover {
  border-color: var(--ink);
}

.footer {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  font-weight: 600;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 24px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
