/* Helicon Landing — exact Figma tokens from node 4980:11305 */

:root {
  --primary: #1c252b;
  --secondary: #66757f;
  --red: #eb343e;
  --white: #ffffff;
  --gray-1: #3a3a3a;
  --border: #dce3e8;
  --bg: #f5f7fa;
  --placeholder: #94a3ad;
  --topbar: #1c252b;
  --container: 1232px;
  --font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--primary);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  background: var(--topbar);
  color: var(--white);
  font-size: 12px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 1rem;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__left {
  gap: 20px;
}

.topbar__left a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topbar__right a {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
}

.topbar__right img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 50px;
}

.logo__mark {
  width: auto;
  height: 50px;
}

.logo__word {
  width: auto;
  height: 30px;
}

.logo--light .logo__mark {
  height: 32px;
}

.logo--light .logo__word {
  height: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex: 1;
}

.nav__link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16px;
  color: var(--secondary);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--primary);
}

.nav__link.is-active {
  box-shadow: inset 0 -2px 0 var(--red);
  padding-bottom: 4px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--white);
}

.search input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 12px;
  color: var(--primary);
  background: transparent;
}

.search input::placeholder {
  color: var(--placeholder);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-radius: 4px;
  padding: 10.5px 20px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn--sm {
  border-radius: 6px;
  padding: 10.5px 15px;
  font-size: 14px;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-radius: 8px;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
}

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 24px 0 40px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 712fr 504fr;
  grid-template-rows: 260px 260px;
  gap: 20px;
}

.hero__card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.hero__card--lg {
  grid-row: 1 / span 2;
  min-height: 540px;
}

.hero__card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(63deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero__copy {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: var(--white);
  max-width: 340px;
}

.hero__copy--dark {
  color: var(--primary);
  left: 40px;
  bottom: 40px;
  max-width: 375px;
}

.hero__copy h1,
.hero__copy h2 {
  margin: 0 0 5px;
  font-weight: 600;
}

.hero__copy h1 {
  font-size: 44px;
  line-height: 1.1;
}

.hero__copy h2 {
  font-size: 28px;
}

.hero__copy p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
}

.hero__copy:not(.hero__copy--dark) p {
  font-weight: 400;
  opacity: 0.95;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
}

.section-title--gray {
  color: var(--gray-1);
}

.section-title--left {
  text-align: left;
  margin-bottom: 10px;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}

.tabs__item {
  border: 0;
  background: transparent;
  color: var(--secondary);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  padding: 0 0 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tabs__item.is-active {
  color: var(--primary);
  border-bottom-color: var(--red);
}

/* Trending */
.trending__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trending__item {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 243px;
}

.trending__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending__item--overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.trending__item figcaption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.cat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(235, 52, 62, 0.06);
  border-radius: 12px;
  height: 110px;
  padding: 0 20px;
}

.cat-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cat-card strong {
  display: block;
  color: var(--red);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.cat-card small {
  color: var(--secondary);
  font-size: 14px;
}

/* Products */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
}

.product {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 0 20px;
  background: var(--white);
  overflow: hidden;
}

.product__media {
  height: 240px;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg);
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.product__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product__row h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
}

.product__price {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  flex-shrink: 0;
}

.product__price s {
  color: var(--primary);
  text-decoration: line-through;
}

.product__price span {
  color: var(--red);
  font-weight: 600;
}

.product__sku {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}

.product__line {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 5px 0;
  width: 100%;
}

.product__cat {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.product__cat span {
  color: var(--secondary);
  font-size: 12px;
  margin-right: 4px;
}

/* Why */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.why__lead {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 12px;
}

.why__cards {
  display: grid;
  gap: 24px;
}

.why__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: var(--white);
}

.why__card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.why__card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.why__card p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
}

.why__icon {
  width: 44px;
  height: 44px;
  border-radius: 28px;
  background: var(--red);
  border: 3px solid rgba(235, 52, 62, 0.2);
  display: grid;
  place-items: center;
}

.why__visual {
  position: relative;
  min-height: 510px;
}

.why__main {
  width: 90%;
  height: 510px;
  margin-left: auto;
  object-fit: cover;
  border-radius: 20px;
}

.why__side {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 268px;
  height: 330px;
  object-fit: cover;
  border-radius: 10px;
  border: 5px solid var(--white);
}

.why__badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 300px;
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.why__badge-icon {
  position: absolute;
  top: -20px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background: var(--red);
  border: 4px solid var(--white);
  display: grid;
  place-items: center;
}

.why__badge strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.why__badge p {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}

/* Contact */
.contact {
  background: var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.contact__form-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}

.contact__lead {
  margin: 0 0 30px;
  color: var(--secondary);
  font-size: 12px;
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field--half {
  max-width: 320px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  font-size: 12px;
  outline: none;
}

.field input {
  height: 44px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

.form-status {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.form-status--pending {
  color: var(--secondary);
}

.form-status--success {
  color: #1a7f37;
}

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

.btn--primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.partners-box {
  background: rgba(235, 52, 62, 0.06);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.partners-box__head {
  background: var(--red);
  color: var(--white);
  padding: 16px 22px;
  flex-shrink: 0;
}

.partners-box__head .logo--light .logo__mark {
  height: 28px;
}

.partners-box__head .logo--light .logo__word {
  height: 16px;
}

.partners-box__head p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 17px;
}

.partners-box__body {
  padding: 14px 22px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.partners-box__body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.partners-box__body > p {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.partners-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  align-items: center;
  justify-items: center;
  flex: 1;
  align-content: space-evenly;
  min-height: 0;
}

.partners-logos img {
  width: 100%;
  max-width: 130px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Brand banner — Figma: 1493×70 text on #1C252B; show full image (not clipped) */
.brand-banner {
  background: var(--topbar);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

.brand-banner__img {
  display: block;
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

/* Footer */
.footer {
  background: var(--bg);
  padding-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand p {
  margin: 20px 0 0;
  max-width: 275px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 20px;
}

.footer h4 {
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}

.footer ul {
  display: grid;
  gap: 12px;
}

.footer a {
  color: var(--primary);
  font-size: 12px;
}

.footer a:hover {
  color: var(--red);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer__bottom p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .hero__card--lg {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .hero__card:not(.hero__card--lg) {
    min-height: 240px;
  }

  .trending__grid,
  .cat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar__left a:nth-child(2),
  .search {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(40px + 70px);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .hero__grid,
  .products__grid,
  .cat-cards,
  .trending__grid,
  .field-row,
  .footer__grid,
  .partners-logos {
    grid-template-columns: 1fr;
  }

  .hero__copy--dark h1 {
    font-size: 32px;
  }

  .tabs {
    gap: 16px 24px;
  }

  .why__main {
    width: 100%;
    height: 280px;
  }

  .why__side {
    width: 42%;
    height: 160px;
    bottom: 20px;
  }

  .why__badge {
    width: min(240px, 70%);
    right: 12px;
    bottom: 12px;
  }

  .field--half {
    max-width: none;
  }
}
