:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #07111f;
  --muted: #63728a;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf2ff;
  --border: #e1e9f5;
  --shadow: 0 24px 70px rgba(37, 99, 235, 0.11);
  --focus: #b45309;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.13), transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, #f5f8ff 48%, #ffffff 100%);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 1000;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
}

.skip-link:focus {
  top: 0.75rem;
}

a {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.86);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 540;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-actions select {
  min-height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text);
  border-radius: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span,
.mobile-menu summary span::before,
.mobile-menu summary span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu summary span {
  position: relative;
}

.mobile-menu summary span::before,
.mobile-menu summary span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu summary span::before {
  top: -0.35rem;
}

.mobile-menu summary span::after {
  top: 0.35rem;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  z-index: 30;
  display: grid;
  gap: 0.25rem;
  min-width: 210px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  padding: 0.7rem;
}

.mobile-menu-panel a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 0.8rem;
}

.mobile-menu-panel .btn {
  color: #fff;
  margin-top: 0.3rem;
  padding: 0.75rem 1rem;
}

.hero {
  min-height: calc(100vh - 4.25rem);
  padding: clamp(5rem, 16vh, 11rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.pill,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.8rem;
}

.pill svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

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

h1,
h2,
h3 {
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  font-weight: 500;
  margin-bottom: 1.3rem;
}

h1 span {
  display: block;
}

.accent {
  color: var(--primary);
}

h2 {
  max-width: 780px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 520;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.hero-copy,
.section-intro,
.card p,
.process-list p,
.contact-card p,
.site-footer {
  color: var(--muted);
}

.hero-copy {
  max-width: 52ch;
  font-size: 1.12rem;
  margin-bottom: 1.7rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  border-radius: 0.9rem;
  padding: 0.7rem 1.45rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 255, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.btn-small {
  min-height: 2.3rem;
  border-radius: 0.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.hero-meta {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.hero-meta li {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.2rem;
  font-size: 0.95rem;
}

.hero-meta svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  fill: none;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.hero-meta li + li {
  border-left: 1px solid var(--border);
  padding-left: 1.8rem;
}

.hero-visual {
  position: relative;
}

.illustration-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  padding: clamp(0.8rem, 2vw, 1.4rem);
}

.illustration-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.offline-card {
  position: absolute;
  left: -2rem;
  bottom: -1.4rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 1rem;
}

.offline-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 0.8rem;
}

.offline-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.offline-card strong,
.offline-card div span {
  display: block;
}

.offline-card strong {
  color: var(--text);
  line-height: 1.1;
}

.offline-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.value-section {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.value-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.06);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.value-card .section-kicker {
  margin-bottom: 1rem;
}

.value-card h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  margin-bottom: 0;
}

.value-points {
  display: grid;
  gap: 1rem;
}

.value-points p {
  position: relative;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  margin: 0;
  padding: 1rem 1rem 1rem 2.8rem;
}

.value-points p::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.22rem;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem var(--primary-soft);
}

.field-section {
  padding-top: 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.62);
}

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

.section-heading .section-kicker {
  margin-inline: auto;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-intro {
  max-width: 64ch;
  margin-inline: auto;
  font-size: 1.08rem;
}

.wide-visual,
.section-visual {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  padding: clamp(0.8rem, 2vw, 1.5rem);
}

.wide-visual {
  width: min(920px, 100%);
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: 0;
}

.cases-visual {
  width: min(820px, 100%);
  margin-inline: auto;
}

.wide-visual img,
.section-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.contact-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.06);
  padding: 1.35rem;
}

.feature-cards .card {
  min-height: 210px;
}

.field-cards .card {
  min-height: 180px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 0.8rem;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3.2rem;
}

.case-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
  min-height: 170px;
  padding: 1.2rem;
}

.case-icon,
.pricing-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.case-icon.green,
.case-icon.lime {
  color: #16a34a;
  background: #ecfdf3;
}

.case-icon.amber,
.case-icon.yellow {
  color: #d97706;
  background: #fffbeb;
}

.case-icon.red,
.case-icon.pink {
  color: #e11d48;
  background: #fff1f2;
}

.case-icon.teal {
  color: #0891b2;
  background: #ecfeff;
}

.case-icon.purple {
  color: #7c3aed;
  background: #f5f3ff;
}

.case-card small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.case-card h3 {
  font-size: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.case-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.process-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem;
}

.workflow-list li {
  min-height: 160px;
}

.optional-step {
  border-style: dashed !important;
}

.process-list span {
  display: block;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 1rem;
}

.process-list strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.8rem);
  width: min(960px, 100%);
  margin-inline: auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  min-height: 520px;
  overflow-wrap: break-word;
  padding: clamp(1.35rem, 2.5vw, 1.8rem);
}

.pricing-card-featured {
  color: #fff;
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(37, 99, 255, 0.28);
}

.pricing-icon {
  color: var(--primary);
  background: var(--primary-soft);
}

.pricing-card-featured .pricing-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.pricing-card h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
}

.pricing-card-featured p,
.pricing-card-featured li {
  color: rgba(255, 255, 255, 0.88);
}

.price strong,
.quote {
  display: block;
  color: var(--text);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 1.2rem 0;
}

.pricing-card-featured .price strong {
  color: #fff;
}

.price span {
  color: inherit;
  font-size: 0.95rem;
}

.pricing-card ul {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}

.pricing-card li {
  position: relative;
  font-size: 0.86rem;
  line-height: 1.35;
  padding-left: 1.35rem;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.pricing-card-featured li::before {
  color: #fff;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
  min-height: 2.7rem;
  padding-inline: 0.9rem;
  text-align: center;
  white-space: normal;
}

.open-source-note {
  padding: 0 0 clamp(3rem, 7vw, 5rem);
}

.open-source-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.06);
  max-width: 920px;
  padding: clamp(1.4rem, 3vw, 2rem);
}

.open-source-card .section-kicker {
  margin-bottom: 0.8rem;
}

.open-source-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.community-commitment {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.open-source-card a {
  font-weight: 800;
}

.btn-contrast {
  color: var(--text);
  background: #fff;
}

.pricing-note {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  margin: 1.5rem auto 0;
  max-width: 720px;
}

.contact-section {
  padding-top: 3rem;
}

.contact-card {
  text-align: center;
  max-width: 820px;
}

.contact-card .section-kicker {
  margin-inline: auto;
}

.contact-card h2 {
  margin-inline: auto;
}

.site-footer {
  padding: 1.6rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

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

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-grid,
  .cards,
  .value-card,
  .process-list,
  .field-cards,
  .use-case-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .section-visual,
  .wide-visual {
    max-width: 620px;
  }

  .offline-card {
    left: 1rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    position: sticky;
  }

  .nav {
    align-items: center;
    flex-wrap: nowrap;
    min-height: 4rem;
    padding: 0;
  }

  .brand {
    font-size: 1.08rem;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 3.2rem 0 3rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .pill {
    margin-bottom: 1.7rem;
  }

  h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.4rem);
    letter-spacing: -0.07em;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-meta {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.35rem;
  }

  .hero-meta li + li {
    border-left: 1px solid var(--border);
    padding-left: 1.35rem;
  }
}
