:root {
  --ink: #102326;
  --ink-soft: #33484d;
  --muted: #60777d;
  --teal-900: #08383f;
  --teal-800: #0b4f5b;
  --teal-700: #0f6674;
  --teal-600: #147784;
  --teal-500: #1d8a8c;
  --teal-400: #28a090;
  --teal-300: #60c0b0;
  --teal-200: #b7ded7;
  --teal-100: #dcefee;
  --teal-50: #f2f9f7;
  --paper: #fbfdfc;
  --white: #ffffff;
  --line: #dbe9e6;
  --line-dark: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 8px 24px rgba(8, 56, 63, 0.08);
  --shadow-md: 0 24px 60px rgba(8, 56, 63, 0.14);
  --shadow-lg: 0 40px 100px rgba(8, 56, 63, 0.2);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
}

::selection {
  background: var(--teal-400);
  color: white;
}

:focus-visible {
  outline: 3px solid var(--teal-300);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--teal-800);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.section-tinted {
  background: var(--teal-50);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--teal-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--teal-200);
}

.section-heading {
  max-width: 700px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.accent {
  color: var(--teal-300);
  white-space: nowrap;
  background-image: linear-gradient(transparent 66%, rgba(40, 160, 144, 0.28) 66%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal-600);
  color: white;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--teal-700);
  box-shadow: 0 12px 28px rgba(20, 119, 132, 0.3);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.86rem;
}

.button-large {
  min-height: 54px;
  padding: 0 28px;
  font-size: 0.98rem;
}

.button-light {
  background: var(--white);
  color: var(--teal-800);
}

.button-light:hover {
  background: var(--teal-50);
  color: var(--teal-900);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: white;
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-700);
  font-size: 0.94rem;
  font-weight: 700;
}

.text-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(251, 253, 252, 0.9);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 253, 252, 0.97);
  box-shadow: 0 8px 28px rgba(8, 56, 63, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-name span {
  color: var(--teal-500);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav > a:not(.button):not(.nav-signin) {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-nav > a:not(.button):not(.nav-signin):hover {
  color: var(--teal-600);
}

.nav-signin {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--teal-700);
  font-size: 0.9rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--teal-800);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 108px) 0 clamp(88px, 9vw, 128px);
  background-color: var(--teal-800);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' viewBox='0 0 1440 900'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-140 660 C 120 470 360 790 660 610 S 1180 420 1580 620' stroke='%23107080' stroke-width='170' opacity='0.5'/%3E%3Cpath d='M-100 240 C 220 80 460 400 760 240 S 1210 80 1540 280' stroke='%2328a090' stroke-width='90' opacity='0.45'/%3E%3Cpath d='M-120 800 C 250 640 500 920 830 740 S 1250 600 1560 790' stroke='%23188888' stroke-width='120' opacity='0.4'/%3E%3Cpath d='M-80 380 C 250 220 480 520 790 360 S 1230 220 1520 400' stroke='%2360c0b0' stroke-width='12' opacity='0.4'/%3E%3Cpath d='M-80 540 C 290 380 520 680 850 510 S 1260 380 1540 550' stroke='%2398d0c8' stroke-width='7' opacity='0.35'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 18% 22%, rgba(40, 160, 144, 0.55) 0%, rgba(40, 160, 144, 0) 42%),
    radial-gradient(circle at 82% 78%, rgba(8, 96, 112, 0.6) 0%, rgba(8, 96, 112, 0) 48%);
  background-position: center;
  background-size: cover;
  color: white;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(8, 56, 63, 0), rgba(8, 56, 63, 0.22));
  content: "";
  pointer-events: none;
}

.hero-flow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 56, 63, 0.15), transparent 46%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 46%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-copy h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.04rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 34px;
}

.hero .button {
  background: white;
  color: var(--teal-800);
}

.hero .button:hover {
  background: var(--teal-50);
  color: var(--teal-900);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.hero .text-link {
  color: white;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.product-shell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: #f6fbfa;
  box-shadow: 0 42px 100px rgba(3, 31, 36, 0.38);
  color: var(--ink);
}

.product-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 1px);
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-right: 1px solid #e1eeeb;
  background: #ffffff;
}

.product-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--teal-600);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
}

.side-pill {
  width: 22px;
  height: 5px;
  border-radius: 99px;
  background: #dce8e6;
}

.side-pill.short {
  width: 14px;
}

.side-pill.is-active {
  background: var(--teal-400);
}

.product-main {
  padding: 20px;
}

.product-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.product-heading p {
  margin-bottom: 2px;
  color: #8aa0a3;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f6f1;
  color: #1b7b68;
  font-size: 0.63rem;
  font-weight: 800;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2aa889;
  box-shadow: 0 0 0 3px rgba(42, 168, 137, 0.14);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.metric-card {
  padding: 11px 12px;
  border: 1px solid #e6f0ee;
  border-radius: 10px;
  background: white;
}

.metric-card span {
  display: block;
  margin-bottom: 4px;
  color: #81979a;
  font-size: 0.58rem;
  font-weight: 600;
}

.metric-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-card em {
  display: inline-block;
  margin-top: 2px;
  color: #1b8b70;
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 700;
}

.metric-card em.neutral {
  color: #758b8e;
}

.chart-card {
  padding: 13px 14px 10px;
  border: 1px solid #e6f0ee;
  border-radius: 12px;
  background: white;
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.chart-heading span {
  display: block;
  color: #8aa0a3;
  font-size: 0.58rem;
  font-weight: 600;
}

.chart-heading strong {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
}

.chart-total {
  color: #1b8b70 !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
}

.line-chart {
  width: 100%;
  height: 92px;
  overflow: visible;
}

.chart-area {
  opacity: 0;
  animation: fade-in 900ms 300ms forwards;
}

.chart-line {
  fill: none;
  stroke: var(--teal-500);
  stroke-linecap: round;
  stroke-width: 2.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 1500ms 200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #9aacae;
  font-size: 0.5rem;
  font-weight: 600;
}

.response-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.response-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #e6f0ee;
  border-radius: 9px;
  background: white;
}

.response-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 0.5rem;
  font-weight: 800;
}

.response-avatar.warm {
  background: #f7ecdc;
  color: #a36f2f;
}

.response-lines {
  display: grid;
  flex: 1;
  gap: 4px;
}

.response-lines i {
  display: block;
  width: 72%;
  height: 4px;
  border-radius: 99px;
  background: #e3eceb;
}

.response-lines i:last-child {
  width: 44%;
}

.response-status {
  color: #1b8b70;
  font-size: 0.52rem;
  font-weight: 800;
}

.response-status.pending {
  color: #a36f2f;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(219, 233, 230, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 40px rgba(3, 31, 36, 0.18);
  backdrop-filter: blur(8px);
}

.floating-card strong {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.floating-card small {
  display: block;
  margin-top: 1px;
  color: #81979a;
  font-size: 0.55rem;
  font-weight: 600;
}

.floating-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e6f6f1;
  color: #1b8b70;
}

.floating-icon.alt {
  background: #fdf1df;
  color: #a36f2f;
}

.floating-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.floating-card-a {
  top: 24%;
  right: -30px;
  animation: float-a 7s ease-in-out infinite;
}

.floating-card-b {
  bottom: 14%;
  left: -34px;
  animation: float-b 8s ease-in-out infinite;
}

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

.feature-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.13rem;
  font-weight: 800;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

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

.step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.step-number {
  margin-bottom: 22px;
  color: var(--teal-400);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 800;
}

.step p {
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.step-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  height: 176px;
  min-height: 176px;
  margin-top: auto;
  padding: 20px;
  border-radius: 12px;
  background: var(--teal-50);
}

.field-line {
  width: 64%;
  height: 6px;
  border-radius: 99px;
  background: #d7e9e5;
}

.field-line.wide {
  width: 86%;
}

.field-line.short {
  width: 42%;
}

.field-input {
  width: 100%;
  height: 34px;
  margin-top: 5px;
  border: 1px solid #cfe4df;
  border-radius: 7px;
  background: white;
}

.step-visual.distribution {
  display: flex;
  align-items: center;
  justify-content: center;
}

.distribution-map {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dist-line {
  fill: none;
  stroke: #9fd4ca;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: dist-draw 1100ms 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dist-line.line-b {
  animation-delay: 280ms;
}

.dist-line.line-c {
  animation-delay: 380ms;
}

.dist-source {
  fill: var(--teal-600);
  opacity: 0;
  animation: dist-fade 500ms 80ms ease forwards;
}

.dist-source-icon {
  fill: none;
  stroke: white;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  animation: dist-fade 500ms 220ms ease forwards;
}

.dist-node circle:first-child {
  fill: white;
  stroke: var(--teal-300);
  stroke-width: 1.5;
}

.dist-node-dot {
  fill: var(--teal-400);
}

.dist-node {
  opacity: 0;
  animation: dist-fade 500ms ease forwards;
}

.dist-node.node-a {
  animation-delay: 650ms;
}

.dist-node.node-b {
  animation-delay: 750ms;
}

.dist-node.node-c {
  animation-delay: 850ms;
}

.dist-node text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.step-visual.insight {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
}

.insight-bar {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--teal-300);
}

.insight-bar.h1 {
  height: 34%;
}

.insight-bar.h2 {
  height: 52%;
}

.insight-bar.h3 {
  height: 72%;
}

.insight-bar.h4 {
  height: 60%;
}

.insight-bar.h5 {
  height: 88%;
  background: var(--teal-500);
}

.analytics-section {
  overflow: hidden;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
}

.analytics-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
}

.analytics-copy p {
  margin-bottom: 24px;
  font-size: 1.02rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--teal-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2l2.1 2.1 4.7-4.7' fill='none' stroke='%23147784' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  content: "";
}

.analytics-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.analytics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.analytics-card-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.analytics-card-head strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.period-pill {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700) !important;
  font-size: 0.66rem !important;
}

.analytics-score {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--teal-50);
}

.score-ring {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-track,
.score-value {
  fill: none;
  stroke-width: 9;
}

.score-track {
  stroke: #d8ebe7;
}

.score-value {
  stroke: var(--teal-400);
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 25;
  animation: score-in 1200ms 200ms ease-out both;
}

.score-ring > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-ring strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.score-ring small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.score-notes {
  display: grid;
  gap: 12px;
}

.score-notes span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.good {
  background: var(--teal-400);
}

.dot.warn {
  background: #dba35a;
}

.funnel-list {
  display: grid;
  gap: 13px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.funnel-row > strong {
  text-align: right;
  font-size: 0.76rem;
  font-weight: 800;
}

.funnel-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf5f3;
}

.funnel-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
}

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

.use-case {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.use-case:hover {
  transform: translateY(-4px);
  border-color: var(--teal-200);
  box-shadow: var(--shadow-sm);
}

.use-case-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.use-case h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.use-case p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.security-section {
  background:
    radial-gradient(circle at 88% 10%, rgba(40, 160, 144, 0.22), transparent 32%),
    var(--teal-900);
  color: white;
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
}

.security-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
}

.security-copy p {
  max-width: 480px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.02rem;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.security-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(96, 192, 176, 0.13);
  color: var(--teal-300);
}

.security-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.security-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.87rem;
  font-weight: 800;
}

.security-list small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.55;
}

.cta-section {
  padding: clamp(56px, 7vw, 88px) 0;
  background:
    radial-gradient(circle at 15% 100%, rgba(40, 160, 144, 0.3), transparent 35%),
    var(--teal-700);
  color: white;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner > div:first-child {
  max-width: 620px;
}

.cta-inner h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.cta-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.contact-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
}

.contact-copy p {
  max-width: 480px;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.contact-options {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-card > span:nth-child(2) {
  flex: 1;
}

.contact-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--teal-500);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.contact-card:hover .contact-arrow {
  transform: translateX(4px);
}

/* ─── Contact form ──────────────────────────────────────────────────────── */

.contact-section .contact-grid {
  align-items: start;
}

.contact-copy .contact-options {
  margin-top: 32px;
}

.form-card {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

#contact-form,
.form-result {
  display: grid;
  gap: 18px;
}

#contact-form[hidden],
.form-result[hidden] {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.field .required {
  color: var(--teal-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147784' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--teal-200);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(40, 160, 144, 0.16);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c2412d;
}

.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(194, 65, 45, 0.14);
}

.field-error {
  margin: 0;
  color: #b3361f;
  font-size: 0.8rem;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-submit:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.form-result a {
  color: var(--teal-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Google's badge only shows while the contact form is on screen. */
body:not(.recaptcha-visible) .grecaptcha-badge {
  visibility: hidden;
  opacity: 0;
}

.grecaptcha-badge {
  transition: opacity 200ms ease, visibility 200ms ease !important;
}

.form-result {
  justify-items: center;
  padding: clamp(20px, 4vw, 48px) 0;
  text-align: center;
  outline: none;
}

.form-result h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 800;
}

.form-result p {
  max-width: 420px;
  margin: 0;
}

.form-result-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
}

.form-result-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.form-result-error .form-result-icon {
  background: #fdecea;
  color: #b3361f;
}

.form-retry {
  margin-top: 6px;
}

.site-footer {
  padding: 64px 0 26px;
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.5fr));
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name {
  color: white;
}

.footer-brand .brand-name span {
  color: var(--teal-300);
}

.footer-brand p {
  max-width: 300px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.footer-column h3 {
  margin-bottom: 15px;
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  transition: color 160ms ease;
}

.footer-column a:hover {
  color: var(--teal-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.76rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.footer-legal a:hover {
  color: var(--teal-300);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2),
.use-case-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.feature-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3),
.use-case-grid .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.feature-grid .reveal:nth-child(4),
.use-case-grid .reveal:nth-child(4) {
  transition-delay: 60ms;
}

.feature-grid .reveal:nth-child(5),
.use-case-grid .reveal:nth-child(5) {
  transition-delay: 140ms;
}

.feature-grid .reveal:nth-child(6),
.use-case-grid .reveal:nth-child(6) {
  transition-delay: 220ms;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dist-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dist-fade {
  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes score-in {
  from {
    stroke-dashoffset: 314;
  }
  to {
    stroke-dashoffset: 25;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@media (max-width: 1280px) {
  .site-nav {
    gap: 20px;
  }

  .floating-card-a {
    right: -12px;
  }

  .floating-card-b {
    left: -14px;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .analytics-grid,
  .security-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }

  .analytics-copy,
  .security-copy,
  .contact-copy {
    max-width: 660px;
  }

  .feature-grid,
  .use-case-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps .step:last-child {
    grid-column: span 2;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    /*
     * Absolute within the sticky header. The header uses backdrop-filter,
     * which makes position: fixed resolve against the header instead of the
     * viewport and collapses the panel.
     */
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    padding: 18px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav > a:not(.button) {
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-signin {
    padding-left: 4px !important;
    border-left: 0 !important;
  }

  .site-nav .button {
    margin-top: 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 10.5vw, 3.6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-body {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .product-main {
    padding: 15px;
  }

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

  .floating-card {
    display: none;
  }

  .feature-grid,
  .use-case-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps .step:last-child {
    grid-column: auto;
  }

  .security-list {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .button {
    flex: 1;
  }

  .analytics-score {
    gap: 18px;
  }

  .score-ring {
    width: 96px;
    height: 96px;
  }

  .funnel-row {
    grid-template-columns: 100px minmax(0, 1fr) 38px;
    gap: 9px;
    font-size: 0.7rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .product-body {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    display: none;
  }

  .metric-card {
    padding: 9px;
  }

  .metric-card strong {
    font-size: 0.86rem;
  }

  .analytics-score {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-notes {
    gap: 8px;
  }

  .funnel-row {
    grid-template-columns: 82px minmax(0, 1fr) 34px;
  }

  .cta-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
