
:root {
  --color-bg-primary: #0a0a0a;
  --color-bg-footer: #FF722B;
  --color-text-primary: #ffffff;
  --color-text-dark: #000000;
  --color-accent: #FF3D16;

  --font-mono: 'IBM Plex Mono', monospace;
  --font-display: 'Familjen Grotesk', sans-serif;
  --font-body: 'Golos Text', sans-serif;

  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  --header-padding: var(--spacing-lg) var(--spacing-2xl);
  --hero-padding: var(--spacing-2xl);
  --footer-padding: var(--spacing-md) var(--spacing-2xl);
  --content-max-width: 1000px;
  --description-max-width: 700px;

  --z-content: 2;
  --z-overlay: 1;
  --z-fixed: 100;

  --transition-fast: 0.2s ease;

  --radius-md: 8px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-mono);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--header-padding);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: transparent;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header__logo-text {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.social-links__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  transition: opacity var(--transition-fast);
}

.social-links__item:hover {
  opacity: 0.7;
}

.social-links__item svg {
  width: 16px;
  height: 16px;
  padding: 6px;
  border: 1px solid var(--color-text-primary);
  border-radius: 4px;
  fill: var(--color-text-primary);
  box-sizing: content-box;
}

.social-links__item span {
  font-family: var(--font-mono);
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
}

.btn--outline {
  background: #FF3D16;
  border: none;
  color: #FFFFFF;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
}

.btn--outline:hover {
  background: #FF722B;
  color: #FFFFFF;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--hero-padding);
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  min-height: 100vh;
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.5) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: var(--z-overlay);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: var(--content-max-width);
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  max-width: 1200px;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}

.hero__headline br {
  display: block;
  content: "";
}

.hero__headline-accent {
  text-transform: none;
}

.nowrap {
  white-space: nowrap;
}

.hero__description {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.5;
  max-width: 800px;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}

.footer {
  background-color: var(--color-bg-footer);
  padding: clamp(6px, 0.8vw, 12px) clamp(24px, 4vw, 80px);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
}

.footer__content {
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.9vw + 6px, 24px);
  font-weight: 400;
  color: var(--color-text-dark);
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer__marquee {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.footer__marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 80s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

.footer__marquee-text {
  display: inline-block;
  white-space: nowrap;
  padding-right: 4em;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.footer__content span {
  white-space: nowrap;
}

.footer__divider {
  color: var(--color-text-dark);
  opacity: 0.5;
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  padding-bottom: 80px;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__container {
  position: relative;
  width: 440px;
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
}

.modal__container--success {
  position: fixed;
  bottom: 80px;
  right: 24px;
  margin: 0;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 85%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1A1A1A;
  transition: color var(--transition-fast);
}

.modal__close:hover {
  color: #FF3D16;
}

.modal__content {
  display: flex;
  flex-direction: column;
  width: 408px;
  gap: 24px;
}

.modal__title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 85%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.modal__context {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: -0.04em;
  color: #000000;
  margin: 0;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__input {
  width: 408px;
  height: 46px;
  padding: 16px 12px;
  background: #E5E5E5;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.04em;
  color: #000000;
  outline: none;
  transition: background var(--transition-fast);
}

.modal__input::placeholder {
  color: #A5A19C;
}

.modal__input--dark::placeholder {
  color: #000000;
}

.modal__input:focus {
  border-color: var(--color-accent);
}

.modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.modal__checkbox input {
  display: none;
}

.modal__checkbox-mark {
  width: 18px;
  height: 18px;
  border: 1px solid #E5E5E5;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}

.modal__checkbox input:checked + .modal__checkbox-mark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.modal__checkbox input:checked + .modal__checkbox-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modal__checkbox-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.04em;
  color: #000000;
}

.modal__submit {
  width: 408px;
  height: 54px;
  background: var(--color-accent);
  border: none;
  border-radius: 4px;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.modal__submit:hover {
  opacity: 0.9;
}


/* Large desktop screens (1440px+) */
@media (min-width: 1440px) {
  :root {
    --content-max-width: 1200px;
    --description-max-width: 900px;
  }

  .hero__tagline {
    font-size: 15px;
  }

  .hero__headline {
    font-size: 88px;
    max-width: 1400px;
  }

  .hero__description {
    font-size: 26px;
    max-width: 900px;
  }

  .header__logo-img {
    height: 64px;
  }

  .social-links__item {
    font-size: 16px;
  }

  .social-links__item svg {
    width: 18px;
    height: 18px;
  }

  .btn {
    font-size: 16px;
    padding: var(--spacing-md) var(--spacing-xl);
  }
}

/* Full HD screens (1920px+) */
@media (min-width: 1920px) {
  :root {
    --content-max-width: 1400px;
    --description-max-width: 1000px;
    --hero-padding: 64px;
  }

  .hero__tagline {
    font-size: 17px;
    margin-bottom: var(--spacing-md);
  }

  .hero__headline {
    font-size: 105px;
    max-width: 1600px;
  }

  .hero__description {
    font-size: 30px;
    max-width: 1000px;
  }

  .header__logo-img {
    height: 72px;
  }

  .social-links__item {
    font-size: 18px;
  }

  .social-links__item svg {
    width: 20px;
    height: 20px;
    padding: 8px;
  }

  .btn {
    font-size: 18px;
  }
}

/* 2K/4K screens (2560px+) */
@media (min-width: 2560px) {
  :root {
    --content-max-width: 1800px;
    --description-max-width: 1200px;
    --hero-padding: 80px;
    --header-padding: var(--spacing-xl) 80px;
  }

  .hero__tagline {
    font-size: 20px;
  }

  .hero__headline {
    font-size: 130px;
    max-width: 2000px;
  }

  .hero__description {
    font-size: 36px;
    max-width: 1200px;
  }

  .header__logo-img {
    height: 88px;
  }

  .social-links__item {
    font-size: 20px;
    gap: 10px;
  }

  .social-links__item svg {
    width: 24px;
    height: 24px;
    padding: 10px;
  }

  .btn {
    font-size: 20px;
    padding: var(--spacing-lg) var(--spacing-2xl);
  }
}

@media (max-width: 1024px) {
  .hero__headline {
    font-size: 56px;
  }

  .hero__description {
    font-size: 18px;
  }
}

.hero__social-links {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --header-padding: var(--spacing-md) var(--spacing-lg);
    --hero-padding: var(--spacing-lg);
    --footer-padding: var(--spacing-sm) var(--spacing-lg);
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .header__logo {
    gap: var(--spacing-xs);
  }

  .header__logo-img {
    height: 40px;
    width: auto;
  }

  .header__logo-text {
    font-size: 14px;
  }

  .header__actions .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 12px;
  }

  /* Hide social links in header on mobile */
  .header .social-links {
    display: none;
  }

  /* Show social links in hero on mobile */
  .hero__social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
  }

  .hero__social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 14px;
    transition: opacity var(--transition-fast);
  }

  .hero__social-item:hover {
    opacity: 0.7;
  }

  .hero__social-item svg {
    width: 16px;
    height: 16px;
    padding: 6px;
    border: 1px solid var(--color-text-primary);
    border-radius: 4px;
    fill: var(--color-text-primary);
    box-sizing: content-box;
  }

  .hero {
    padding-bottom: 70px;
  }

  .hero__headline {
    font-size: 48px;
  }

  .hero__description {
    font-size: 16px;
  }

  .footer__content {
    justify-content: center;
    text-align: center;
  }

  .modal {
    padding: 0;
    padding-bottom: 70px;
    align-items: flex-end;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal__backdrop {
    background: rgba(0, 0, 0, 0.8);
  }

  .modal__container {
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    position: fixed;
    bottom: 70px;
    left: 16px;
    right: 16px;
    border-radius: 12px 12px 0 0;
    padding: 20px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .modal__container--success {
    position: fixed;
    bottom: 70px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 440px;
    margin: 0 auto;
    max-height: calc(100vh - 86px);
    border-radius: 12px 12px 0 0;
    padding: 20px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }

  .modal__content {
    width: 100%;
    max-height: 100%;
    overflow-y: visible;
  }

  .modal__input,
  .modal__submit {
    width: 100%;
  }

  .modal__title {
    font-size: 11px;
  }

  .modal__context {
    font-size: 20px;
  }
}
