:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #5d6b82;
  --line: rgba(36, 72, 118, 0.16);
  --panel: rgba(255, 255, 255, 0.84);
  --blue: #1457d9;
  --blue-dark: #0b3a91;
  --teal: #07a6a6;
  --gold: #f5b84b;
  --navy: #07182f;
  --shadow: 0 24px 70px rgba(13, 33, 67, 0.16);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(7, 166, 166, 0.2), transparent 30rem),
    radial-gradient(circle at 78% 6%, rgba(20, 87, 217, 0.18), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f5f8fc 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 64%);
}

a {
  color: inherit;
}

.button,
.site-footer a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button {
  padding: 0 1.35rem;
  border: 1px solid transparent;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 18px 36px rgba(20, 87, 217, 0.28);
}

.button-secondary {
  color: var(--navy);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.button:hover,
.site-footer a:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(245, 184, 75, 0.72);
  outline-offset: 4px;
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  align-items: center;
  min-height: min(760px, calc(100vh - 96px));
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.6vw, 4.3rem);
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.35rem;
}



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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.narrow {
  display: block;
  max-width: 780px;
  text-align: left;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f8fc;
  box-shadow: var(--shadow);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 500ms ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 33, 65, 0.12);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease;
}

.carousel-dot.active {
  background: var(--blue);
  border-color: var(--blue);
}

.carousel-labels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel-label {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all 200ms ease;
}

.carousel-label.active {
  color: var(--blue-dark);
  background: rgba(20, 87, 217, 0.08);
  border-color: rgba(20, 87, 217, 0.18);
}

/* Instruments table */
.instruments-table-wrap {
  overflow-x: auto;
  margin-top: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.instruments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.instruments-table th,
.instruments-table td {
  padding: 0.85rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.instruments-table thead th {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1.2rem;
}

.instruments-table tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.instruments-table tbody td {
  color: var(--muted);
}

.instruments-table tbody tr:last-child td {
  border-bottom: none;
}

/* Comparison table */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  padding-top: 1rem;
  padding-bottom: 1.2rem;
  vertical-align: bottom;
}

.compare-th-img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  background: #f5f8fc;
}

.compare-table thead th.highlight {
  color: var(--blue);
}

.compare-table tbody td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.compare-table tbody td {
  color: var(--muted);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Software section */
.software-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}

.software-card {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(12, 33, 65, 0.08);
}

.software-card p {
  color: var(--muted);
}

.software-kicker {
  display: inline-flex;
  margin-bottom: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(20, 87, 217, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Airtable */
.airtable {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(12, 33, 65, 0.08);
}

.airtable-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.airtable {
  margin-top: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 244, 255, 0.9)),
    radial-gradient(circle at top right, rgba(245, 184, 75, 0.24), transparent 18rem);
}

.airtable-placeholder {
  min-height: 21rem;
  padding: 1.5rem;
  border: 1px dashed rgba(20, 87, 217, 0.46);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    repeating-linear-gradient(
      -45deg,
      rgba(20, 87, 217, 0.08),
      rgba(20, 87, 217, 0.08) 10px,
      rgba(7, 166, 166, 0.08) 10px,
      rgba(7, 166, 166, 0.08) 20px
    );
}

.airtable-placeholder span {
  display: block;
  margin-bottom: 1rem;
  color: var(--blue-dark);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.airtable-placeholder p {
  color: var(--muted);
}

.airtable-placeholder code {
  display: block;
  overflow-x: auto;
  margin-top: 1.35rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--navy);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--blue-dark);
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero,
  .section-heading,
  .airtable {
    grid-template-columns: 1fr;
  }

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

  h1 {
    max-width: 12ch;
  }

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

  .carousel-labels {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    gap: 2rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.7rem);
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }
}
