:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #526173;
  --line: #d8e1ec;
  --panel: #ffffff;
  --soft: #f3f7fb;
  --primary: #1238ff;
  --primary-dark: #0f25a8;
  --accent: #f5c918;
  --green: #0f9f6e;
  --danger: #d74646;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-weight: 520;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 225, 236, 0.86);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 950;
}

.brand span:last-child {
  font-size: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 820;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 930;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

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

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(18, 56, 255, 0.22);
}

.button.secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.button.accent {
  background: var(--accent);
  color: #111827;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #07142b;
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 32, 0.94) 0%, rgba(5, 14, 32, 0.78) 42%, rgba(5, 14, 32, 0.36) 100%),
    image-set(
      url("assets/homepage-hero-pool-clean.webp") type("image/webp"),
      url("assets/homepage-hero-pool-clean.png") type("image/png")
    );
  background-size: cover;
  background-position: center right;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 118px 22px 78px;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0;
  max-width: 880px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.hero p,
.page-hero p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  overflow-wrap: anywhere;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
}

.proof-tile {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
}

.proof-tile strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.proof-tile span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
}

main section {
  padding: 86px 22px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-head p,
.card p,
.pricing-card p,
.case-card p,
.faq p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid > *,
.split > *,
.feature-row > * {
  min-width: 0;
}

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

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

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

.card,
.pricing-card,
.case-card,
.faq details,
.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
}

.card {
  min-height: 100%;
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 18px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: rgba(18, 56, 255, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 18px;
}

.soft {
  background: var(--soft);
}

.dark-band {
  background: #0a1830;
  color: #ffffff;
}

.dark-band .section-head p,
.dark-band .card p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-band .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 42px;
}

.product-shot {
  min-height: 430px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.feature-image {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mock-app {
  height: 100%;
  min-height: 390px;
  display: grid;
  grid-template-columns: 180px 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
}

.mock-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.mock-logo {
  width: 112px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 14px;
}

.mock-logo-mark {
  width: 112px;
  height: 82px;
  border-radius: 20px;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 950;
  margin-bottom: 14px;
}

.mock-nav-line {
  height: 12px;
  border-radius: 99px;
  background: #e6ecf4;
  margin: 14px 0;
}

.mock-nav-line.active {
  background: var(--primary);
}

.mock-main {
  padding: 22px;
}

.mock-title {
  width: 48%;
  height: 18px;
  border-radius: 99px;
  background: #102033;
  margin-bottom: 18px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.mock-card {
  min-height: 112px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px;
}

.mock-pill {
  height: 10px;
  border-radius: 99px;
  background: var(--accent);
  margin-bottom: 12px;
}

.mock-table {
  min-height: 145px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 16px;
}

.mock-row {
  height: 12px;
  border-radius: 99px;
  background: #e8eef6;
  margin-bottom: 14px;
}

.list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin: 11px 0;
  font-weight: 720;
}

.list li::before {
  content: "+";
  color: var(--green);
  font-weight: 950;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 950;
  margin: 18px 0 6px;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(245, 201, 24, 0.2);
  color: #6f5600;
  font-size: 11px;
  font-weight: 930;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-line {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.metric-line strong {
  font-size: 30px;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.resource-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.resource-thumb {
  min-height: 78px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1238ff, #0a1830);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.legal-copy {
  max-width: 880px;
}

.legal-copy h2 {
  font-size: 30px;
  margin-top: 36px;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.page-hero {
  position: relative;
  min-height: 420px;
  background: #0a1830;
  color: #ffffff;
  padding: 108px 22px 70px;
  overflow: hidden;
}

.page-hero.image-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 32, 0.94) 0%, rgba(5, 14, 32, 0.76) 48%, rgba(5, 14, 32, 0.34) 100%),
    var(--page-hero-image);
  background-size: cover;
  background-position: center right;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.workspace-overview {
  display: grid;
  gap: 30px;
}

.workspace-overview > div:first-child {
  max-width: 820px;
}

.workspace-overview .table-wrap {
  width: 100%;
}

.workspace-overview table {
  min-width: 0;
  table-layout: fixed;
}

.workspace-overview th,
.workspace-overview td {
  overflow-wrap: anywhere;
}

.form-panel label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 46px;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

.form-panel textarea {
  min-height: 130px;
  resize: vertical;
}

.hidden {
  display: none;
}

.field-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 0 0 14px;
  padding: 13px;
}

.field-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  text-transform: none;
  letter-spacing: 0;
}

.field-group input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.form-note {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.form-note.compact {
  margin-top: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--danger);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  box-shadow: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin-bottom: 0;
}

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

.feature-list .card {
  padding: 20px;
}

.feature-list h3 {
  font-size: 18px;
}

.feature-list p {
  margin-bottom: 0;
}

.answer-box {
  max-width: 900px;
  border-left: 5px solid var(--primary);
  padding: 22px 26px;
  background: #ffffff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
}

.footer {
  background: #07142b;
  color: rgba(255, 255, 255, 0.75);
  padding: 58px 22px 36px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(5, 1fr);
  gap: 28px;
}

.footer h4 {
  color: #ffffff;
  margin: 0 0 12px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 720;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer .social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer .social-link svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.footer .social-link:hover {
  transform: translateY(-1px);
  background: var(--primary);
}

.footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 22px;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 14, 32, 0.95) 0%, rgba(5, 14, 32, 0.78) 55%, rgba(5, 14, 32, 0.62) 100%),
      image-set(
        url("assets/homepage-hero-pool-clean-768.webp") type("image/webp"),
        url("assets/homepage-hero-pool-clean.png") type("image/png")
      );
    background-position: center;
  }

  .page-hero.image-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 14, 32, 0.95) 0%, rgba(5, 14, 32, 0.78) 55%, rgba(5, 14, 32, 0.62) 100%),
      var(--page-hero-image-mobile, var(--page-hero-image));
    background-position: center;
  }

  .hero-inner {
    padding-top: 86px;
    align-items: flex-start;
  }

  .hero-proof,
  .grid.four,
  .grid.three,
  .grid.two,
  .feature-list,
  .feature-row,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mock-app {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-links {
    gap: 13px;
    font-size: 13px;
  }

  .nav-actions {
    flex-direction: column;
    overflow: visible;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
    letter-spacing: 0;
  }

  h2 {
    font-size: 28px;
    letter-spacing: 0;
  }

  main section {
    padding: 62px 18px;
  }

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