@font-face {
  font-family: Onest;
  src: url("/assets/fonts/Onest-Regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: Onest;
  src: url("/assets/fonts/Onest-Medium.woff") format("woff");
  font-weight: 500;
}

@font-face {
  font-family: Onest;
  src: url("/assets/fonts/Onest-SemiBold.woff") format("woff");
  font-weight: 600;
}

:root {
  --blue: #046ceb;
  --blue-hover: #0855b3;
  --ink: #111111;
  --muted: #727783;
  --line: #eceef3;
  --soft: #f4f6fa;
  --mint: #00ffc3;
  --shadow: 0 28px 90px rgba(18, 32, 62, 0.1);
  font-family: Onest, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 86% 16%, rgba(4, 108, 235, 0.12), transparent 28%),
    #ffffff;
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
}

.page-shell {
  width: min(1500px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.topline {
  height: clamp(74px, 8vh, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.brand {
  width: 184px;
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.top-contact {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  box-shadow: 0 18px 32px rgba(4, 108, 235, 0.22);
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.top-contact:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(4, 108, 235, 0.28);
}

.top-contact:focus-visible,
.primary-action:focus-visible,
.link-row:focus-visible {
  outline: 3px solid rgba(4, 108, 235, 0.24);
  outline-offset: 4px;
}

.top-contact img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 640px);
  grid-template-areas: "copy links";
  align-items: start;
  gap: clamp(32px, 4.6vw, 76px);
  padding: clamp(28px, 4vh, 42px) 0 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  max-width: 700px;
}

h1 {
  margin: 0;
  font-size: clamp(62px, 6vw, 112px);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 600;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.02;
  font-weight: 600;
}

.support {
  max-width: 610px;
  margin: 22px 0 0;
  color: #515761;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.45;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin: 28px 0 0;
}

.trust-row span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
}

.trust-row svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action {
  width: min(680px, 100%);
  min-height: 66px;
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px 0 34px;
  border-radius: 16px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(4, 108, 235, 0.24);
  font-size: clamp(19px, 1.45vw, 24px);
  font-weight: 500;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.primary-action:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 28px 68px rgba(4, 108, 235, 0.32);
}

.primary-action img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.primary-action svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-stage {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-top: 22px;
  opacity: 1;
  pointer-events: none;
}

.product-lineup {
  width: 100%;
  height: clamp(210px, 27vh, 260px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 28px 38px rgba(15, 31, 58, 0.12));
}

.links-stack {
  grid-area: links;
  display: grid;
  gap: 14px;
  align-self: start;
}

.links-panel {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: clamp(14px, 1.55vw, 20px);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.social-title {
  margin: 0 4px 1px;
  color: #171717;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 600;
}

.link-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(16, 24, 40, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.link-row:hover,
.link-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(4, 108, 235, 0.3);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.075);
}

.link-row:hover .icon,
.link-row:focus-visible .icon {
  transform: scale(1.04);
}

.link-row:hover .arrow,
.link-row:focus-visible .arrow {
  transform: translateX(3px);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  transition: transform 0.18s ease;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-globe {
  background: var(--blue);
  color: #ffffff;
}

.icon-globe svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.08;
  font-weight: 600;
}

.link-row strong.marked-title {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  overflow: visible;
}

.legal-mark {
  position: relative;
  top: -0.18em;
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.78em;
  line-height: 1;
  cursor: help;
  outline: none;
}

.legal-mark::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 10;
  width: max-content;
  max-width: min(300px, 72vw);
  padding: 7px 10px;
  border-radius: 9px;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.legal-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 11;
  width: 9px;
  height: 9px;
  background: #111111;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.legal-mark:hover::after,
.instagram-row:hover .legal-mark::after,
.instagram-row:focus-visible .legal-mark::after,
.legal-mark:hover::before,
.instagram-row:hover .legal-mark::before,
.instagram-row:focus-visible .legal-mark::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.link-row small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.15;
}

.arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.panel-title {
  margin: 6px 4px 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.contact-row {
  border-color: rgba(4, 108, 235, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.side-action {
  width: 100%;
  min-height: 62px;
  margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .top-contact,
  h1,
  .lead,
  .support,
  .trust-row,
  .product-stage,
  .links-panel,
  .side-action {
    animation: rise-in 0.48s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .top-contact {
    animation-delay: 0.04s;
  }

  .lead {
    animation-delay: 0.05s;
  }

  .support {
    animation-delay: 0.08s;
  }

  .trust-row {
    animation-delay: 0.11s;
  }

  .product-stage {
    animation-delay: 0.14s;
  }

  .links-panel {
    animation-delay: 0.08s;
  }

  .side-action {
    animation-delay: 0.16s;
  }

  .link-row {
    animation: row-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .link-row:nth-of-type(1) {
    animation-delay: 0.1s;
  }

  .link-row:nth-of-type(2) {
    animation-delay: 0.13s;
  }

  .link-row:nth-of-type(3) {
    animation-delay: 0.16s;
  }

  .link-row:nth-of-type(4) {
    animation-delay: 0.19s;
  }

  .link-row:nth-of-type(5) {
    animation-delay: 0.22s;
  }

  .link-row:nth-of-type(6) {
    animation-delay: 0.25s;
  }

  .link-row:nth-of-type(7) {
    animation-delay: 0.28s;
  }

  .link-row:nth-of-type(8) {
    animation-delay: 0.31s;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes row-in {
    from {
      opacity: 0;
      transform: translateY(7px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (min-width: 1041px) {
  body {
    overflow: hidden;
  }

  .page-shell {
    height: 100dvh;
    min-height: 0;
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "links";
    align-items: start;
    gap: 34px;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .product-stage {
    display: none;
  }

  .primary-action {
    margin-top: 32px;
  }

  .side-action {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 92% 8%, rgba(4, 108, 235, 0.13), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
  }

  .page-shell {
    width: min(100% - 28px, 520px);
  }

  .topline {
    height: 74px;
  }

  .brand {
    width: 128px;
  }

  .top-contact {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .top-contact img {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 28px 0 38px;
    gap: 26px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 78px);
  }

  .lead {
    margin-top: 17px;
    font-size: clamp(29px, 9vw, 38px);
  }

  .support {
    margin-top: 17px;
    font-size: 17px;
  }

  .trust-row {
    gap: 8px 15px;
    margin-top: 20px;
  }

  .trust-row span {
    min-height: 34px;
    gap: 7px;
    font-size: 13px;
  }

  .trust-row svg {
    width: 23px;
    height: 23px;
  }

  .primary-action {
    min-height: 64px;
    margin-top: 24px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 19px;
  }

  .primary-action img,
  .primary-action svg {
    width: 27px;
    height: 27px;
  }

  .links-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .link-row {
    min-height: 68px;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    gap: 13px;
    padding: 10px 12px 10px 10px;
    border-radius: 15px;
  }

  .icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .icon-globe svg {
    width: 28px;
    height: 28px;
  }

  .link-row strong {
    font-size: 18px;
  }

  .link-row small {
    margin-top: 5px;
    font-size: 13px;
  }

  .arrow {
    width: 22px;
    height: 22px;
  }

  .panel-title {
    margin-top: 6px;
    font-size: 16px;
  }
}
