:root {
  --ink: #121b2b;
  --text: #1e2b40;
  --muted: #56647a;
  --paper: #ffffff;
  --line: #dce6f3;
  --accent: #d44a1d;
  --accent-2: #0e6f7a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, #d9f2ff 0%, rgba(217, 242, 255, 0) 36%),
    radial-gradient(circle at 88% 0%, #ffe7d6 0%, rgba(255, 231, 214, 0) 35%),
    linear-gradient(145deg, #f7fbff 0%, #f3f8ff 44%, #faf8f5 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  opacity: 0.35;
  filter: blur(42px);
  pointer-events: none;
}

.bg-shape-a {
  width: 320px;
  height: 320px;
  left: -100px;
  top: 30%;
  background: #97d9ff;
}

.bg-shape-b {
  width: 280px;
  height: 280px;
  right: -70px;
  top: 60%;
  background: #ffbf9c;
}

.site-shell {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}

.hero,
.panel,
.footer {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(13, 33, 69, 0.08);
}

.hero {
  padding: 2rem;
  animation: rise 600ms ease-out both;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.hero-logo-text {
  height: 60px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(13, 33, 69, 0.08);
}

.eyebrow {
  margin: 0;
  font: 600 0.78rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  color: var(--accent-2);
}

h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 850px;
}

.lede {
  margin: 1rem 0 0;
  max-width: 820px;
  line-height: 1.65;
  color: var(--muted);
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  font: 600 0.9rem/1 "JetBrains Mono", monospace;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--accent), #e4771f);
  box-shadow: 0 10px 22px rgba(212, 74, 29, 0.34);
}

.btn-ghost {
  color: var(--accent-2);
  border: 1px solid #b8cfdf;
  background: rgba(255, 255, 255, 0.7);
}

.panel {
  margin-top: 1.2rem;
  padding: 1.2rem;
}

.panel-head h2,
.note h2 {
  margin: 0;
  color: var(--ink);
}

.panel-head p,
.note p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(23, 46, 86, 0.07);
  transform: translateY(8px);
  opacity: 0;
  animation: stagger 540ms ease-out forwards;
}

.card:nth-child(2) { animation-delay: 80ms; }
.card:nth-child(3) { animation-delay: 120ms; }
.card:nth-child(4) { animation-delay: 160ms; }
.card:nth-child(5) { animation-delay: 200ms; }
.card:nth-child(6) { animation-delay: 240ms; }

.tag {
  font: 600 0.72rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.card h3 {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.card p {
  margin: 0.5rem 0 0;
  min-height: 3.1em;
  color: var(--muted);
}

.card a {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font: 600 0.84rem/1.3 "JetBrains Mono", monospace;
}

.card a:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.note {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfdff;
  padding: 0.95rem;
}

.footer {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 0.8rem/1 "JetBrains Mono", monospace;
  color: #3e4f67;
}

.footer-logo {
  height: 28px;
  width: auto;
}

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

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

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(1120px, calc(100% - 1rem));
    padding-top: 1rem;
  }

  .hero,
  .panel,
  .footer {
    border-radius: 18px;
  }

  .hero,
  .panel {
    padding: 1rem;
  }

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

  .card p {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
