:root {
  color-scheme: light;
  --bg: #eef3f1;
  --bg-accent: #d7ebe4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #152033;
  --muted: #60708a;
  --line: rgba(21, 32, 51, 0.12);
  --primary: #0f9d7a;
  --primary-strong: #0c7b60;
  --secondary: #1798cf;
  --success-soft: #edf9f5;
  --shadow: 0 18px 48px rgba(28, 44, 63, 0.1);
  --radius: 24px;
  --radius-sm: 16px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", "Arial Nova", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

*::selection {
  background: #173a63;
  color: #f7fbff;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 157, 122, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(24, 96, 164, 0.1), transparent 24%),
    linear-gradient(180deg, #f6faf8 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--primary-strong);
  text-decoration-color: rgba(12, 123, 96, 0.35);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(246, 250, 248, 0.56), rgba(246, 250, 248, 0.24));
}

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

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: clamp(210px, 23vw, 280px);
  height: auto;
}

.menu-toggle,
.nav-link,
.button-link {
  border: none;
  border-radius: 18px;
  background: none;
  color: var(--text);
}

.menu-toggle {
  display: none;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  cursor: pointer;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-dropdown.open .nav-link,
.nav-link[aria-current="page"] {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.48);
  outline: none;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.dropdown-link:hover,
.dropdown-link:focus-visible,
.dropdown-link.active {
  background: var(--success-soft);
  color: var(--primary-strong);
  outline: none;
}

.hero {
  padding: 72px 0 28px;
}

.hero-compact {
  padding-top: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 157, 122, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
.kv-label {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.lead,
.section-heading p,
.spotlight-text,
.feature-block p,
.footer-copy,
.legal-page p,
code {
  color: var(--muted);
}

.lead {
  max-width: 44rem;
  margin: 16px 0 0;
  font-size: 1.1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding-bottom: 72px;
}

.card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.form-card {
  overflow: hidden;
}

.form-card::after,
.spotlight-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 157, 122, 0.16), transparent 72%);
  pointer-events: none;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p {
  margin: 10px 0 0;
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-block {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
}

.feature-kicker,
.kv-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.feature-block p,
.spotlight-text {
  margin: 0;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #f8fcff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(15, 157, 122, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.button-link:hover,
.button-link:focus-visible {
  filter: saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(15, 157, 122, 0.24);
  outline: none;
}

.tool-preview {
  max-width: 840px;
}

.tool-shell-card {
  overflow: hidden;
}

.tool-page-main {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.tool-frame-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.tool-frame {
  display: block;
  width: 100%;
  min-height: 1450px;
  border: 0;
  background: transparent;
}

.tool-frame-page {
  min-height: calc(100vh - 220px);
}

.integration-card {
  margin-top: 24px;
}

.status-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-badge.success {
  background: var(--success-soft);
  color: var(--primary-strong);
}

.result-grid {
  display: grid;
  gap: 14px;
}

.kv {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.kv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

code {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.98rem;
  white-space: pre-wrap;
}

.legal-page {
  padding-bottom: 72px;
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-item {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown.open .dropdown-panel {
    display: block;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    padding: 40px 0 20px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  .card {
    padding: 22px 18px;
    border-radius: 20px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .tool-page-main {
    width: min(100% - 28px, 1320px);
    padding: 18px 0 32px;
  }

  .tool-frame {
    min-height: 1600px;
  }
}
