:root {
  --ink: #f4f7f6;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(15, 74, 62, 0.12);
  --panel-hover: rgba(255, 255, 255, 0.95);
  --mint: #1f7a66;
  --mint-soft: rgba(31, 122, 102, 0.1);
  --sand: #132126;
  --sand-muted: rgba(19, 33, 38, 0.68);
  --glow: rgba(31, 122, 102, 0.28);
  --atmosphere-1: rgba(31, 122, 102, 0.16);
  --atmosphere-2: rgba(70, 140, 190, 0.1);
  --atmosphere-3: rgba(180, 150, 90, 0.12);
  --atmosphere-base: linear-gradient(165deg, #f7faf9 0%, #eef3f1 45%, #e8eef3 100%);
  --radius: 1.1rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #071316;
    --panel: rgba(12, 31, 36, 0.72);
    --panel-border: rgba(126, 200, 176, 0.18);
    --panel-hover: rgba(16, 40, 46, 0.88);
    --mint: #7ec8b0;
    --mint-soft: rgba(126, 200, 176, 0.14);
    --sand: #e8dcc8;
    --sand-muted: rgba(232, 220, 200, 0.72);
    --glow: rgba(126, 200, 176, 0.35);
    --atmosphere-1: rgba(126, 200, 176, 0.22);
    --atmosphere-2: rgba(126, 184, 232, 0.14);
    --atmosphere-3: rgba(61, 46, 20, 0.45);
    --atmosphere-base: linear-gradient(165deg, #0a1a1e 0%, #071316 45%, #0c1820 100%);
    color-scheme: dark;
  }
}

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

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--sand);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, var(--atmosphere-1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 8%, var(--atmosphere-2), transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 110%, var(--atmosphere-3), transparent 55%),
    var(--atmosphere-base);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 0 4rem;
}

.hero {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 6vh, 3.75rem);
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--sand);
}

.headline {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--mint);
}

.lede {
  margin: 0;
  font-size: 1rem;
  color: var(--sand-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.2rem 1.35rem;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  animation: rise 0.65s ease both;
}

.card:nth-child(1) {
  animation-delay: 0.08s;
}
.card:nth-child(2) {
  animation-delay: 0.14s;
}
.card:nth-child(3) {
  animation-delay: 0.2s;
}
.card:nth-child(4) {
  animation-delay: 0.26s;
}
.card:nth-child(5) {
  animation-delay: 0.32s;
}
.card:nth-child(6) {
  animation-delay: 0.38s;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mint) 45%, transparent);
  background: var(--panel-hover);
  box-shadow: 0 16px 40px -18px var(--glow);
  outline: none;
}

.card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--mint-soft);
}

.card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card-description {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--sand-muted);
}

.card-cta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
}

.status {
  margin-top: 2rem;
  color: var(--sand-muted);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero,
  .card {
    animation: none;
  }

  .card:hover,
  .card:focus-visible {
    transform: none;
  }
}
