:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f1f4f7;
  --text: #18202a;
  --muted: #66717f;
  --line: #dde3ea;
  --accent: #126b63;
  --accent-dark: #0f554f;
  --accent-soft: #e4f3f1;
  --warning: #8a5b10;
  --warning-soft: #fff3d8;
  --shadow: 0 12px 32px rgba(21, 31, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(221, 227, 234, 0.9);
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(14px);
}

.nav,
main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 720;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 570;
  padding: 8px 10px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
}

main {
  padding: 54px 0 48px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-text {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.tools-section,
.about-section {
  padding: 28px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-heading p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  min-height: 252px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.tool-card.is-coming-soon {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: none;
}

.tool-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.tool-category {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--surface-muted);
  color: #485464;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 760;
  padding: 4px 8px;
  white-space: nowrap;
}

.status-live {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status-coming-soon {
  background: var(--warning-soft);
  color: var(--warning);
}

.tool-card h3 {
  margin: 18px 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.tool-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #596575;
  font-size: 0.76rem;
  font-weight: 650;
  padding: 4px 8px;
}

.tool-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 720;
  padding: 9px 13px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.tool-action:hover,
.tool-action:focus-visible {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  outline: none;
  transform: translateY(-1px);
}

.tool-action[aria-disabled="true"] {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.about-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
}

.about-section .section-heading {
  align-items: start;
  margin-bottom: 0;
}

.about-section p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 34px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .intro,
  .about-section {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  .nav,
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 62px;
  }

  .brand-name {
    display: none;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 7px 8px;
  }

  main {
    padding-top: 38px;
  }

  .intro {
    gap: 16px;
    padding-bottom: 22px;
  }

  h1 {
    font-size: 2.45rem;
  }

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

  .tool-card {
    min-height: 230px;
    padding: 18px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}
