:root {
  --proprism-blue: #1976d2;
  --merino: #f8fafb;
  --spring-wood: #f3f5f8;
  --font-primary: "Libre Franklin", "Arial Narrow", sans-serif;
  --font-secondary: "Raleway", "Lucida Grande", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #7394b1;
  font-family: var(--font-primary);
  background: var(--spring-wood);
}

a {
  color: inherit;
}

.home {
  padding: 0;
}

.home-above-fold {
  background: none;
  padding: 0;
  position: relative;
  width: 100%;
}

.home-search {
  background-color: #1976d2;
  height: 720px;
  position: relative;
  overflow: visible;
}

.bg-svg {
  position: absolute;
  width: 64px;
  height: 64px;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(100%);
}

.svg-1 { top: 10%; left: 8%; }
.svg-2 { top: 10%; right: 8%; }
.svg-3 { top: 15%; left: 25%; }
.svg-4 { top: 15%; right: 25%; }
.svg-5 { top: 20%; left: 42%; }
.svg-6 { top: 30%; left: 12%; }
.svg-7 { top: 30%; right: 12%; }
.svg-8 { top: 35%; left: 32%; }
.svg-9 { top: 35%; right: 32%; }
.svg-10 { top: 40%; left: 48%; }
.svg-11 { top: 50%; left: 15%; }
.svg-12 { top: 50%; right: 15%; }
.svg-13 { top: 55%; left: 35%; }
.svg-14 { top: 55%; right: 35%; }
.svg-15 { top: 60%; left: 48%; }
.svg-16 { top: 70%; left: 10%; }
.svg-17 { top: 70%; right: 10%; }
.svg-18 { top: 75%; left: 28%; }
.svg-19 { top: 75%; right: 28%; }
.svg-20 { top: 80%; left: 45%; }
.svg-21 { bottom: 10%; left: 12%; }
.svg-22 { bottom: 10%; right: 12%; }
.svg-23 { bottom: 15%; left: 32%; }
.svg-24 { bottom: 15%; right: 32%; }
.svg-25 { bottom: 20%; left: 45%; }

.home-search::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.95) 0%, rgba(25, 118, 210, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 27px;
  width: calc(100% - 54px);
  z-index: 10;
}

.logo-style {
  height: 48px;
  width: 300px;
  margin-right: 10px;
}

.home-header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--merino);
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

.btn-home-modern {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--merino);
  letter-spacing: 1.1px;
  padding: 10px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  min-height: 40px;
}

.btn-home-modern:hover {
  background: var(--merino);
  color: #1976d2;
  border-color: var(--merino);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-button-icon {
  width: 22px;
  height: 22px;
  font-size: 22px;
  line-height: 22px;
  transition: all 0.3s ease;
}

.btn-home-modern:hover .header-button-icon {
  color: #1976d2;
  transform: rotate(10deg);
}

.search-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 720px;
  justify-content: center;
  padding: 0;
  position: relative;
  z-index: 30000;
}

.home-headline {
  color: var(--merino);
  font-family: var(--font-primary);
  font-size: 60px;
  font-weight: 200;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
  text-align: center;
  line-height: 1.08;
}

.home-tagline {
  color: var(--merino);
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 200;
  margin: -5px 0 40px;
  text-align: center;
  width: 500px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
}

.home-below-fold {
  background-color: var(--spring-wood);
  display: flex;
  flex-direction: column;
  padding: 0 15%;
}

.home-above-fold + .home-below-fold {
  padding-top: 36px;
}

.home-below-fold + .home-below-fold {
  padding-top: 30px;
}

.home-below-fold:last-of-type {
  padding-bottom: 44px;
}

.how-it-works {
  background: #fafbff;
  border: 1px solid #e6edf5;
  border-radius: 20px;
  margin-top: 0;
  padding: 32px 32px 26px;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.how-it-works::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.how-it-works > * {
  position: relative;
  z-index: 1;
}

.works-header {
  padding: 0 0 26px;
  max-width: 560px;
}

.works-label,
.customers-label,
.tools-label {
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.works-label::before,
.customers-label::before,
.tools-label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #0f766e;
  border-radius: 2px;
}

.works-tagline,
.home-customers-title,
.tools-title {
  color: #0f172a;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.works-tagline strong,
.home-customers-title strong,
.tools-title strong {
  font-weight: 600;
}

.works-subtitle {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  margin: 12px 0 0;
}

.tools {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  margin: 12px 0 0;
  max-width: 860px;
  padding: 0 20px 0 0;
}

.works-content {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.works-content-item {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 188px;
  padding: 18px 16px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.works-content-item:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 32px;
  color: #cbd5e1;
  font-size: 14px;
  z-index: 2;
}

.works-content-item:hover {
  border-color: #c7d9f0;
  box-shadow: 0 6px 20px rgba(11, 92, 171, 0.08);
  transform: translateY(-3px);
}

.works-content-item:hover .works-icon {
  color: #0f766e;
  transform: scale(1.1);
}

.works-content-item:hover .step-pill {
  background: #0b5cab;
  color: #fff;
  border-color: #0b5cab;
}

.step-pill {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #0b5cab;
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding: 3px 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.works-icon {
  color: #0b5cab;
  font-size: 28px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  transition: color 0.22s ease, transform 0.22s ease;
  transform-origin: center;
}

.works-content-text {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: auto;
  padding-top: 14px;
  text-align: left;
  width: 100%;
}

.works-learn-more {
  color: #0b5cab;
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0 0;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.works-learn-more::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.2s ease;
}

.works-learn-more:hover {
  color: #0f766e;
}

.works-learn-more:hover::after {
  transform: translateX(3px);
}

.home-customers {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.home-customers::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(15, 118, 110, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(11, 92, 171, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.customers-header {
  margin-bottom: 28px;
}

.customer-content {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.customer-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-height: 128px;
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.customer-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0f766e, #0b5cab);
  border-radius: 0 0 14px 14px;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.customer-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.customer-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.customer-numbers {
  color: #0f172a;
  font-size: 52px;
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.22s ease;
}

.customer-item:hover .customer-numbers {
  color: #0b5cab;
}

.customer-text {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-top: 10px;
  text-transform: uppercase;
  line-height: 1.5;
}

.home-tools {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  display: block;
  padding: 32px;
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  margin-top: 28px;
}

.feature-card {
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid #d9e5f4;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 34, 68, 0.06);
  display: flex;
  gap: 12px;
  min-height: 138px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0f766e, #0b5cab);
  border-radius: 0 0 14px 14px;
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.feature-card:hover {
  border-color: #c7d9f0;
  box-shadow: 0 12px 28px rgba(11, 92, 171, 0.1);
  transform: translateY(-3px);
}

.feature-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.feature-icon-wrap {
  align-items: center;
  background: linear-gradient(180deg, #e9f2ff, #dcecff);
  border: 1px solid #c9ddf7;
  border-radius: 10px;
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  margin-top: 2px;
  width: 42px;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.tool-icon {
  color: #1d5daa;
  font-size: 22px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  transition: color 0.22s ease, transform 0.22s ease;
}

.feature-card:hover .feature-icon-wrap {
  background: linear-gradient(180deg, #dcecff, #d0e4ff);
  border-color: #b8d4f7;
}

.feature-card:hover .tool-icon {
  color: #0b5cab;
  transform: scale(1.08);
}

.feature-content h4 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 6px;
  transition: color 0.22s ease;
}

.feature-card:hover .feature-content h4 {
  color: #0b5cab;
}

.feature-content p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.page-footer {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border-top: 1px solid #dbe4f0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.footer-wave-animation {
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.footer-wave {
  background-position: 0 bottom;
  background-repeat: repeat-x;
  bottom: -4px;
  height: 70px;
  left: 0;
  position: absolute;
  transform-origin: center bottom;
  width: 200%;
}

.footer-wave1 {
  animation: footerWaveShift 16s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M0 56.9L200 36.9L400 66.9L600 46.9L800 56.9V88.7H0V56.9Z' fill='rgba(37, 112, 209, 0.08)'/%3E%3C/svg%3E");
  background-size: 50% 78px;
}

.footer-wave2 {
  animation: footerWaveShift 12s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M0 46.9L133.3 66.9L266.6 36.9L400 76.9L533.3 26.9L666.6 56.9L800 36.9V88.7H0V46.9Z' fill='rgba(37, 112, 209, 0.1)'/%3E%3C/svg%3E");
  background-size: 50% 92px;
}

.footer-wave3 {
  animation: footerWaveShift 18s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M0 36.9L160 66.9L320 26.9L480 56.9L640 36.9L800 56.9V88.7H0V36.9Z' fill='rgba(37, 112, 209, 0.12)'/%3E%3C/svg%3E");
  background-size: 50% 72px;
}

.footer-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 22px;
  position: relative;
  z-index: 1;
}

.footer-topline {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.footer-brand {
  color: #10345c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

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

.footer-link {
  color: #3b5679;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.copyright-foot {
  border-top: 1px solid #e4ebf5;
  color: #617896;
  font-size: 12px;
  margin-top: 12px;
  padding-top: 10px;
  text-align: center;
}

@keyframes footerWaveShift {
  0% {
    transform: translateX(0) translateZ(0) scaleY(1);
  }

  50% {
    transform: translateX(-25%) translateZ(0) scaleY(0.96);
  }

  100% {
    transform: translateX(-50%) translateZ(0) scaleY(1);
  }
}

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

@media (max-width: 1024px) {
  .home-below-fold {
    padding: 0 8%;
  }

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

  .works-content-item:not(:last-child)::after {
    display: none;
  }

  .customer-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .home-tools,
  .home-customers,
  .how-it-works {
    padding: 24px 20px;
  }

  .works-tagline,
  .home-customers-title,
  .tools-title {
    font-size: 28px;
  }
}

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

@media (max-width: 768px) {
  .home-search {
    height: auto;
    min-height: 760px;
    overflow: hidden;
  }

  .home-header {
    width: calc(100% - 28px);
    padding: 20px 14px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .home-header-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-home-modern {
    min-height: 42px;
    min-width: 0;
  }

  .logo-style {
    width: min(300px, 72vw);
    height: auto;
  }

  .search-panel {
    height: auto;
    padding: 64px 0 88px;
  }

  .home-headline {
    font-size: clamp(3rem, 10vw, 60px);
    line-height: 1.02;
  }

  .home-tagline {
    font-size: clamp(1.8rem, 6vw, 36px);
    margin-bottom: 24px;
    width: min(500px, calc(100% - 32px));
  }

  .footer-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
