:root {
  --page-bg: #f4f7fd;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --icon-bg: #eef3ff;
  --line: #d8e1f1;
  --line-soft: #dbe5f8;
  --ink-strong: #0d1733;
  --ink: #18294d;
  --muted: #667798;
  --accent: #2c73f5;
  --accent-dark: #1d63e7;
  --shadow: 0 20px 50px rgba(71, 97, 148, 0.11);
  --shadow-soft: 0 14px 34px rgba(71, 97, 148, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(44, 115, 245, 0.06), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 100%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.2rem;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.support-home {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  width: 100%;
  margin: 0;
  padding-block: 0.78rem 0.74rem;
  padding-inline: max(1.25rem, calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(191, 204, 230, 0.45);
  background: var(--header-bg);
}

.brand {
  width: clamp(100px, 16vw, 146px);
}

.header-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.header-label::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.38rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(44, 115, 245, 0.25) 100%);
  transform: scaleX(0.2);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.header-label:hover,
.header-label:focus-visible {
  color: var(--accent-dark);
  background: rgba(44, 115, 245, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(44, 115, 245, 0.12);
}

.header-label:hover::after,
.header-label:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-label:focus-visible {
  outline: none;
}

.support-home {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4.25rem);
  padding: 2.25rem 0 4.75rem;
}

.support-home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16rem;
  width: 136%;
  height: 17rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(215, 228, 252, 0.58);
  z-index: 0;
}

.hero,
.tool-grid,
.support-main,
.support-tagline {
  position: relative;
  z-index: 1;
}

.support-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 2rem;
}

.hero h1 {
  color: var(--ink-strong);
  font-size: clamp(3rem, 6vw, 4.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-text {
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: clamp(1.14rem, 2.2vw, 1.34rem);
  line-height: 1.48;
  padding-top: 1rem;
}

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

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 56px;
  column-gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(222, 230, 243, 0.95);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(44, 115, 245, 0);
  box-shadow: inset 0 0 0 0 rgba(44, 115, 245, 0);
  transform: scale(0.985);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  pointer-events: none;
}

.tool-card-main {
  display: contents;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(120, 157, 233, 0.45);
  box-shadow: 0 22px 48px rgba(71, 97, 148, 0.16);
}

.tool-card:hover::after,
.tool-card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(44, 115, 245, 0.28);
  box-shadow: inset 0 0 0 1px rgba(44, 115, 245, 0.12);
}

.tool-card:focus-visible {
  outline: none;
}

.tool-icon {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--icon-bg);
}

.tool-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.tool-icon--survey svg {
  width: 56px;
  height: 56px;
}

.tool-copy {
  grid-column: 2;
  padding-top: 0;
}

.tool-copy h2 {
  color: var(--ink-strong);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.tool-copy > p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
}

.tool-copy-meta {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.tool-copy-meta strong {
  color: var(--ink-strong);
  font-weight: 700;
}

.tool-copy-meta span {
  padding-inline: 0.3rem;
}

.tool-action {
  grid-column: 3;
  width: 56px;
  min-width: 56px;
  height: 56px;
  margin-top: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  font-size: 1.01rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  align-self: center;
  justify-self: end;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tool-action:hover,
.tool-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(44, 115, 245, 0.22);
}

.tool-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-action-icon svg {
  width: 22px;
  height: 22px;
}

.support-tagline {
  margin-top: auto;
  margin-bottom: 2.8rem;
  padding-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.support-tagline-line {
  height: 1px;
  flex: 1 1 auto;
  background: var(--line-soft);
}

.support-tagline-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: fit-content;
}

.support-tagline-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(44, 115, 245, 0.1);
}

.support-tagline-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.support-tagline p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

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

  .tool-card {
    grid-template-columns: 90px minmax(0, 1fr) 56px;
    padding: 1.2rem 1.1rem;
  }
}

@media (max-width: 640px) {
  .support-home {
    width: min(calc(100% - 1.25rem), 520px);
  }

  .site-header {
    padding-block: 0.72rem 0.76rem;
    padding-inline: 1.25rem;
  }

  .brand {
    width: min(166px, 56vw);
  }

  .header-label {
    font-size: 0.88rem;
  }

  .support-home {
    min-height: auto;
    padding: 1.8rem 0 3.5rem;
  }

  .support-main {
    display: block;
  }

  .support-home::after {
    bottom: -11rem;
    width: 165%;
    height: 14.5rem;
  }

  .hero {
    max-width: 430px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    letter-spacing: -0.035em;
  }

  .hero-text {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .tool-grid {
    gap: 1.2rem;
    margin-top: 1.35rem;
  }

  .tool-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 48px;
    column-gap: 0.95rem;
    row-gap: 0;
    align-items: center;
    padding: 1.2rem 1.05rem;
    border-radius: var(--radius-lg);
  }

  .tool-card-main {
    display: contents;
  }

  .tool-icon {
    width: 86px;
    height: 86px;
  }

  .tool-icon svg {
    width: 46px;
    height: 46px;
  }

  .tool-icon--survey svg {
    width: 54px;
    height: 54px;
  }

  .tool-copy {
    padding-top: 0.15rem;
  }

  .tool-copy h2 {
    font-size: 1.2rem;
  }

  .tool-copy > p {
    margin-top: 0.34rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .tool-copy-meta {
    margin-top: 0.38rem;
    font-size: 0.76rem;
    line-height: 1.38;
  }

  .tool-action {
    grid-column: 3;
    width: 48px;
    min-width: 48px;
    height: 48px;
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    border-radius: 12px;
    align-self: center;
    justify-self: end;
  }

  .tool-action-icon svg {
    width: 23px;
    height: 23px;
  }

  .support-tagline {
    gap: 0.8rem;
    margin-top: 2.2rem;
    padding-top: 0;
  }

  .support-tagline-line {
    display: none;
  }

  .support-tagline-content {
    width: 100%;
    justify-content: center;
  }

  .support-tagline-icon {
    width: 38px;
    height: 38px;
  }

  .support-tagline p {
    font-size: 0.98rem;
  }
}
