:root {
  --page: #f2f6fc;
  --paper: #ffffff;
  --ink: #060b14;
  --muted: #516075;
  --soft: #eaf2ff;
  --line: #c9d4e3;
  --blue: #087bd8;
  --blue-dark: #005fb8;
  --navy: #0e2035;
  --green: #10a86f;
  --orange: #e99700;
  --shadow: 0 18px 44px rgba(16, 35, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 850;
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--blue);
}

.nav-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 34px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  min-height: 500px;
  padding: 48px 34px 58px;
  background: #f6f8fd;
  overflow: hidden;
}

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

.hero h1 {
  margin: 0 0 20px;
  color: #020617;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-title {
  max-width: 600px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 800;
}

.hero-text {
  max-width: 610px;
  margin: 30px 0 0;
  color: #303847;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
}

.button.primary:hover,
.nav-button:hover,
.contact-form button:hover {
  background: var(--blue-dark);
}

.button.secondary,
.button.outline {
  color: #0f172a;
  background: #ffffff;
  border-color: #1c2a3b;
}

.button.full {
  width: 100%;
}

.hero-preview {
  position: relative;
  min-height: 330px;
}

.preview-frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #bfccda;
  border-top: 13px solid #F1F5F9;
  border-radius: 5px;
  /* border-top: 14px solid #1e252d; */
  box-shadow: var(--shadow);
}

.preview-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c5d0dd;
  box-shadow: 10px 0 0 #c5d0dd, 20px 0 0 #c5d0dd;
  z-index: 2;
}

.preview-main {
  right: 70px;
  top: 34px;
  width: 68%;
}

.preview-top {
  right: -10px;
  top: 0;
  width: 24%;
}

.preview-bottom {
  left: 0;
  bottom: -18px;
  width: 41%;
}

.features-section,
.download-section {
  padding: 36px 34px 46px;
  background: #eef4ff;
}

.screenshots-section,
.contact-section {
  padding: 38px 34px 52px;
  background: #f7f9fe;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-card {
  min-height: 228px;
  padding: 25px;
  background: var(--paper);
  border: 1px solid #c4cfdd;
  border-radius: 5px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  margin-bottom: 24px;
  color: var(--blue);
  background: #e3efff;
  border-radius: 4px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.main-screenshot {
  max-width: 960px;
  margin: 0 auto 34px;
}

.main-screenshot span {
  display: block;
  margin: 0 0 6px;
  color: #1f2937;
  font-size: 11px;
}

.main-screenshot img {
  width: 100%;
  max-height: 455px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #bdcad9;
  border-top: 14px solid #1e252d;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.interface-carousel {
  max-width: 1225px;
  margin: 0 auto 0;
  padding: 28px;
  /* background: #ffffff; */
  /* border: 1px solid #c8d3e1; */
  /* border-radius: 6px; */
  /* box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1); */
}

.carousel-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.carousel-copy h3 {
  margin: 0;
  font-size: 24px;
}

.carousel-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.carousel-shell {
  position: relative;
  min-height: 455px;
  overflow: hidden;
  background: #f8fbff;
  /* border: 1px solid #d8e2ef; */
  border-radius: 5px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0;
  width: min(76%, 820px);
  padding: 24px 0 22px;
  opacity: 0;
  transform: translateX(-50%) scale(0.82);
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  pointer-events: auto;
}

.carousel-slide.is-prev,
.carousel-slide.is-next {
  opacity: 0.42;
  z-index: 2;
}

.carousel-slide.is-prev {
  transform: translateX(-116%) scale(0.72);
}

.carousel-slide.is-next {
  transform: translateX(16%) scale(0.72);
}

.carousel-slide img {
  width: 100%;
  max-height: 406px;
  /* object-fit: contain; */
  background: #ffffff;
  border: 1px solid #bdcad9;
  border-top: 13px solid #F1F5F9;
  border-radius: 5px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.carousel-slide figcaption {
  color: var(--blue);
  text-align: center;
  font-size: 15px;
  font-weight: 750;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 56px;
  color: #ffffff;
  background: rgba(8, 123, 216, 0.92);
  border: 0;
  border-radius: 4px;
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-control:hover {
  background: var(--blue-dark);
}

.carousel-control.prev {
  left: 14px;
}

.carousel-control.next {
  right: 14px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #b8c6d8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 28px;
  background: var(--blue);
  border-radius: 999px;
}

.requirements-section {
  padding: 36px 34px 40px;
  color: #ffffff;
  background: var(--navy);
}

.section-heading.light {
  margin-bottom: 32px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 70px;
  max-width: 1180px;
  margin: 0 auto;
}

.requirements-grid article {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.checkmark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 2px solid #00a6ff;
  border-radius: 50%;
}

.checkmark::after {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  margin: 4px 0 0 4px;
  border-left: 2px solid #00a6ff;
  border-bottom: 2px solid #00a6ff;
  transform: rotate(-45deg);
}

.requirements-grid h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.requirements-grid p {
  margin: 0;
  color: #d6e2f1;
  font-size: 14px;
  line-height: 1.5;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  justify-content: center;
  gap: 32px;
}

.download-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 38px 34px;
  text-align: center;
  background: var(--paper);
  border: 1px solid #c8d3e1;
  border-radius: 6px;
}

.download-card.recommended {
  border-color: var(--blue);
  box-shadow: 0 16px 35px rgba(8, 123, 216, 0.16);
}

.corner-ribbon {
  position: absolute;
  top: 14px;
  right: -39px;
  width: 160px;
  padding: 5px 0;
  color: #ffffff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(45deg);
}

.pill {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 5px 11px;
  color: #475569;
  background: #dfe9f7;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
}

.download-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 18px;
}

.download-icon.rocket {
  border: 5px solid var(--blue);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.download-icon.monitor {
  border: 6px solid #7b8492;
  border-bottom-width: 8px;
  border-radius: 3px;
  box-shadow: 0 15px 0 -10px #7b8492;
}

.download-card h3 {
  margin: 0 0 14px;
  font-size: 25px;
}

.download-card p {
  min-height: 48px;
  margin: 0 0 28px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.contact-section {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card,
.contact-form {
  padding: 28px;
  background: #eef4ff;
  border: 1px solid #d8e2ef;
  border-radius: 6px;
}

.contact-card h3 {
  margin: 0 0 28px;
  font-size: 18px;
}

.contact-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-row span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  border: 2px solid var(--blue);
}

.mail-icon {
  border-radius: 2px;
}

.clock-icon {
  border-radius: 50%;
}

.contact-row p {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.contact-row strong {
  display: block;
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 12px;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #b8c6d8;
  border-radius: 3px;
  padding: 14px 16px;
  color: #111827;
  background: #ffffff;
  font: inherit;
}

.contact-form textarea {
  min-height: 115px;
  resize: vertical;
}

.contact-form button {
  min-height: 48px;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 4px;
  font-weight: 750;
}

.site-footer {
  padding: 28px 34px;
  background: #e4eefc;
  border-top: 1px solid #d1deef;
}

.site-footer p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

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

  .hero-preview {
    min-height: 480px;
  }

  .preview-main {
    right: 0;
    width: 82%;
  }

  .preview-top {
    width: 35%;
  }

  .preview-bottom {
    width: 55%;
  }

  .feature-grid,
  .requirements-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-copy {
    display: block;
  }

  .carousel-copy p {
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .nav-button {
    min-width: auto;
    padding: 0 14px;
  }

  .hero,
  .features-section,
  .screenshots-section,
  .requirements-section,
  .download-section,
  .contact-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .download-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-preview {
    min-height: 380px;
  }

  .preview-main,
  .preview-top,
  .preview-bottom {
    position: relative;
    inset: auto;
    width: 100%;
    margin-bottom: 18px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .interface-carousel {
    padding: 16px;
  }

  .carousel-shell {
    min-height: 330px;
  }

  .carousel-slide {
    width: calc(100% - 72px);
    padding: 18px 0;
  }

  .carousel-slide.is-prev,
  .carousel-slide.is-next {
    opacity: 0;
  }

  .carousel-slide img {
    max-height: 240px;
  }

  .carousel-control {
    width: 32px;
    height: 46px;
    font-size: 30px;
  }
}