:root {
  --page: #fbf9f3;
  --paper: #ffffff;
  --paper-soft: #f3efe7;
  --ink: #181716;
  --muted: #5f5b55;
  --line: #e8e1d8;
  --blue: #0967d2;
  --blue-dark: #064fa4;
  --orange: #f49b2f;
  --green: #9bc64d;
  --shadow: 0 18px 45px rgba(38, 31, 22, 0.08);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.top-strip {
  background: #f8f2e7;
  border-bottom: 1px solid rgba(232, 225, 216, 0.75);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 1rem;
  text-align: center;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 1.25rem 1.35rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.85rem;
}

.brand-mark {
  display: inline-flex;
  height: 36px;
  position: relative;
  width: 72px;
}

.brand-mark span {
  border: 5px solid currentColor;
  border-radius: 999px;
  height: 34px;
  position: absolute;
  top: 0;
  width: 34px;
}

.brand-mark span:nth-child(1) {
  color: var(--orange);
  left: 0;
}

.brand-mark span:nth-child(2) {
  color: #f1c232;
  left: 19px;
}

.brand-mark span:nth-child(3) {
  color: var(--green);
  left: 38px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.nav-links a:not(.nav-button) {
  color: var(--muted);
}

.nav-button,
.primary-button,
.card-cta {
  align-items: center;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-button {
  font-size: 0.78rem;
  padding: 0.58rem 1rem;
}

.primary-button {
  box-shadow: 0 12px 24px rgba(9, 103, 210, 0.18);
  padding: 0.9rem 1.25rem;
}

.card-cta {
  margin-top: auto;
  padding: 0.78rem 1rem;
  width: 100%;
}

.nav-button:hover,
.primary-button:hover,
.card-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.hero {
  padding: 1rem 1.35rem 4.5rem;
}

.hero-inner {
  align-items: center;
  background: linear-gradient(135deg, rgba(243, 239, 231, 0.78), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(232, 225, 216, 0.85);
  border-radius: 34px;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.4rem);
  position: relative;
}

.hero-inner::after {
  background: radial-gradient(circle, rgba(9, 103, 210, 0.13), transparent 65%);
  content: "";
  height: 430px;
  pointer-events: none;
  position: absolute;
  right: -160px;
  top: -150px;
  width: 430px;
}

.eyebrow {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.4rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--orange);
  border-radius: 50%;
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.hero h1,
.section-heading h2,
.maintenance-card h2 {
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 760px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1.35rem 0 1.8rem;
  max-width: 560px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-window {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 320px;
  padding: 1.25rem;
  transform: rotate(1.6deg);
}

.window-dots {
  display: flex;
  gap: 0.42rem;
  margin-bottom: 1.2rem;
}

.window-dots span {
  background: var(--line);
  border-radius: 50%;
  height: 0.58rem;
  width: 0.58rem;
}

.window-dots span:nth-child(1) { background: var(--orange); }
.window-dots span:nth-child(2) { background: #f1c232; }
.window-dots span:nth-child(3) { background: var(--green); }

.window-line {
  background: #ede7dc;
  border-radius: 999px;
  height: 0.82rem;
  margin-bottom: 0.7rem;
  width: 56%;
}

.window-line.wide {
  width: 82%;
}

.tool-preview-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1.5rem;
}

.tool-preview-grid span {
  align-items: end;
  aspect-ratio: 1.3;
  background: linear-gradient(135deg, #eaf4ff, #fff9df);
  border: 1px solid #e9e1d6;
  border-radius: 18px;
  color: var(--ink);
  display: flex;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.9rem;
}

.tool-preview-grid span:nth-child(2) { background: linear-gradient(135deg, #fff4df, #edf8d9); }
.tool-preview-grid span:nth-child(3) { background: linear-gradient(135deg, #f3f8dc, #fff1d9); }
.tool-preview-grid span:nth-child(4) { background: linear-gradient(135deg, #edf8ff, #f6f1ff); }

.resources-section {
  background: var(--paper-soft);
  border-top: 1px solid rgba(232, 225, 216, 0.8);
  padding: 3.25rem 1.35rem 5rem;
}

.section-heading {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.maintenance-card h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 1rem auto 0;
  max-width: 550px;
}

.search-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(38, 31, 22, 0.06);
  display: flex;
  gap: 0.75rem;
  margin: 2rem auto 1rem;
  max-width: 640px;
  padding: 0.35rem 0.55rem 0.35rem 1.1rem;
}

.search-icon {
  color: var(--blue);
  font-size: 1.15rem;
  line-height: 1;
}

.search-card input {
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: 0;
  padding: 0.95rem 0.5rem;
  width: 100%;
}

.search-card input::placeholder {
  color: #9a9287;
}

.resource-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  justify-content: space-between;
  margin: 0 auto 1.35rem;
  max-width: 1120px;
}

.legend {
  align-items: center;
  display: inline-flex;
  gap: 0.4rem;
}

.dot {
  border-radius: 50%;
  display: inline-block;
  height: 0.5rem;
  margin-left: 0.35rem;
  width: 0.5rem;
}

.website-dot { background: var(--blue); }
.download-dot { background: var(--orange); }

.cards-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(38, 31, 22, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.resource-card:hover {
  box-shadow: 0 18px 42px rgba(38, 31, 22, 0.12);
  transform: translateY(-4px);
}

.card-image-wrap {
  background: #faf6ed;
  border: 1px solid #eee4d7;
  border-radius: 18px;
  overflow: hidden;
}

.card-image {
  display: block;
  width: 100%;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0.15rem 0.1rem;
}

.card-kicker {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.card-title-row {
  align-items: start;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.card-title-row h3 {
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.info-button {
  align-items: center;
  background: #edf6ff;
  border: 1px solid #d8ecff;
  border-radius: 50%;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 900;
  height: 1.65rem;
  justify-content: center;
  width: 1.65rem;
}

.info-button:hover {
  background: var(--blue);
  color: #fff;
}

.card-description {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0.85rem 0 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}

.tag {
  background: #f6f1e8;
  border: 1px solid #ebe0d2;
  border-radius: 999px;
  color: #756b61;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
}

.empty-state {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  margin: 1.5rem auto 0;
  max-width: 640px;
  padding: 2rem;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 0;
}

.maintenance-section {
  padding: 4.5rem 1.35rem;
}

.maintenance-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 900px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.maintenance-card ol {
  color: var(--muted);
  line-height: 1.85;
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
}

code {
  background: #f6f1e8;
  border: 1px solid #eadfce;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9em;
  padding: 0.12rem 0.35rem;
}

.site-footer {
  align-items: center;
  background: #2b2722;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 2rem max(1.35rem, calc((100vw - 1120px) / 2));
}

.site-footer p {
  color: #c8beb2;
  margin: 0.3rem 0 0;
}

.site-footer a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.modal[hidden] {
  display: none;
}

.modal {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.modal-backdrop {
  background: rgba(24, 23, 22, 0.45);
  inset: 0;
  position: absolute;
}

.modal-card {
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  left: 50%;
  max-width: 560px;
  padding: 2rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100vw - 2rem), 560px);
}

.modal-card h2 {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  margin: 0 2rem 1rem 0;
}

.modal-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  white-space: pre-line;
}

.modal-close {
  background: #f7f1e8;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  height: 2.2rem;
  line-height: 1;
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 2.2rem;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .top-strip {
    font-size: 0.72rem;
  }

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

  .nav-links {
    justify-content: space-between;
    width: 100%;
  }

  .hero {
    padding-top: 0;
  }

  .hero-inner {
    border-radius: 24px;
    padding: 1.7rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .resource-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

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

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