﻿/* ===== CSS RESET (minimal cross-browser baseline) ===== */
/* Keep box model predictable for all elements. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default spacing to avoid inconsistent browser gaps. */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove default list styles when used as navigation/layout. */
ul,
ol {
  padding: 0;
  list-style: none;
}

/* Improve media behavior in responsive containers. */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Let form controls inherit typography for visual consistency. */
input,
button,
textarea,
select {
  font: inherit;
}

/* Respect users with reduced motion preference. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== BASE ===== */
:root {
  /* Brand and UI colors from the design palette. */
  --color-surface: #fff;
  --color-text: #010611;
  --color-primary: #0985f4;
  --header-scrolled-height: 100px;
  --container-width: 1200px;
  --container-padding: 16px;
  --header-height: 80px;
  --font-base: 'Suisse Intl', sans-serif;
  --font-heading: 'Benzin', sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--color-primary) transparent;
  scrollbar-width: thin;
  scroll-padding-top: var(--header-height);
}

html::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 999px;
  border: 2px solid transparent;
}

html::-webkit-scrollbar-thumb:hover {
  background-color: #2e9fff;
}

body {
  min-height: 100vh;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-text);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(1.875rem, 1.1667rem + 3.1481vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
  line-height: 1.375;
}

h3 {
  font-size: 24px;
  line-height: 1.375;
}

.logo {
  transition: opacity .3s ease-in-out;
}

.logo:hover {
  opacity: .8;
}

.container {
  width: min(100% - (var(--container-padding) * 2), var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: 40px;
}

.section-title {
  color: var(--color-surface);
  margin-bottom: 60px;
}

.section-title b {
  color: var(--color-primary);
}

@media (max-width: 1199px) {
  .section-title {
    margin-bottom: 60px;
  }
}

@media (max-width: 767px) {
  .section-title {
    margin-bottom: 24px;
  }

  br {display: none;}

  .page {
    padding-top: 24px;
  }
}
/* 2buttons */



/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 206px;
  height: 56px;
  padding-inline: 24px;
  padding-block: 8px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
  background-color: var(--color-surface);
  transform: translateY(0);
  transition:
    transform .22s ease,
    box-shadow .22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(4px);
  box-shadow: 0 0 32px 0 var(--color-primary);
}

.btn:active {
  transform: translateY(7px);
  box-shadow: 0 0 32px 0 var(--color-primary);
}

/* Fixed adaptive video background layer. */
.page-bg__video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  pointer-events: none;
}

/* ===== HEADER ===== */
.header {
  font-size: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  opacity: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  backdrop-filter: blur(12px);
  transition:
    height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.header__container {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.header__logo {
  display: inline-flex;
  transition: width 0.3s ease;
}

.header__logo-image {
  max-width: 76px;
  height: auto;
  transition: max-width 0.3s ease;
}

@media (max-width: 767px) {
  .header .btn {
    height: 50px;
    min-width: 180px;
  }
}

.header.is-scrolled {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0%);
  height: var(--header-height);
}

/* ===== HERO SECTION ===== */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 100vh;
  padding-block: 80px;
}

.hero__mobile-logo {
  max-width: 110px;
}

@media (max-width: 767px) {
  .hero-container {
    min-height: 100%;
    text-align: center;
    align-items: center;
    padding-block: 40px;
  }

  .hero__mobile-logo {
    max-width: 86px;
  }
}

.hero__content {
  max-width: 750px;
}

.hero__title {
  color: var(--color-surface);
}

.hero__title b {
  color: var(--color-primary);
}

/* ===== NOTIFY SECTION ===== */
.notify-cards {
  position: fixed;
  top: 20%;
  right: calc((100vw - min(1200px, 100%)) / 2);
  width: 100%;
  max-width: 360px;
  min-height: var(--notify-height, 124px);
  z-index: 5;
  overflow: visible;
  isolation: isolate;
  perspective: 1000px;
}

@media (max-width: 767px) {
  .notify-cards {
    position: relative;
    top: auto;
    right: auto;
    width: min(100% - (var(--container-padding) * 2), var(--container-width));
    margin: auto;
  }
}

.notify-card {
  position: absolute;
  inset: 0;
  min-height: min-content;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background:
    radial-gradient(
      ellipse at 50% -10%,
      rgba(255,255,255,0.40) 0%,
      rgba(255,255,255,0.22) 30%,
      rgba(255,255,255,0.08) 55%,
      rgba(255,255,255,0.02) 70%,
      rgba(255,255,255,0) 85%
    ),
    radial-gradient(
      circle at 30% 40%,
      rgba(255,255,255,0.12) 0%,
      rgba(200,200,200,0.10) 40%,
      rgba(40,40,40,0.80) 75%
    ),
    linear-gradient(
      180deg,
      rgba(28,28,28,0.92) 0%,
      rgba(18,18,18,0.96) 100%
    );
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 24px;
  transform-origin: center center;
  opacity: 1;
  transform: translate(0, -34px) scale(0.94);
  pointer-events: none;
  backface-visibility: hidden;
  transition:
    transform 850ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 850ms ease-in-out,
    backdrop-filter .3s ease-in-out;
}

@media (max-width: 767px) {
  .notify-card {
    padding: 16px;
  }
}

.notify-card.is-active {
  pointer-events: auto;
}

.notify-card:hover {
  transform: translateY(5%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .notify-card {
    transition: none;
  }
}

.notify-badge {
  background-color: var(--color-surface);
  border-radius: 32px;
  padding-inline: 16px;
  padding-block: 6px;
  font-size: 14px;
  line-height: 1.29;
  color: #000;
  margin-bottom: 16px;
}

.notify-badge span {
  color: rgba(0, 0, 0, 0.7);
}

.notify-title {
  font-size: 16px;
  line-height: 1.375;
  color: var(--color-surface);
  margin-bottom: 4px;
}

.notify-sub {
  font-size: 14px;
  line-height: 1.29;
  color: rgba(255, 255, 255, 0.7);
}

.notify-img {
  position: relative;
  aspect-ratio: 1;
  flex-basis: 48px;
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 10px;
  overflow: clip;
}

.notify-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== STATS SECTION ===== */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-card {
  border-radius: 40px;
  padding: 24px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.2);
}

.stats-card__icon {
  width: 56px;
  aspect-ratio: 1;
  margin-bottom: 30px;
}

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

.stats-card__value {
  margin-bottom: 4px;
}

.stats-card__label {
  font-size: 20px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.7);
}

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

/* ===== CHANNELS SECTION ===== */
.channels {
  scroll-margin-top: 80px;
}

.channels__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.channel-card {
  --channel-card-padding: 24px;
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  border-radius: 24px;
  padding: var(--channel-card-padding);
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  .channel-card {
    flex: 1 1 250px;
  }
}

.channel-card-badge {
  font-size: 0;
  position: absolute;
  max-width: calc(100% - 64px);
  top: calc(var(--channel-card-padding) + 8px);
  left: calc(var(--channel-card-padding) + 8px);
  background-color: var(--color-surface);
  border-radius: 12px;
  padding-inline: 12px;
  padding-block: 8px;
  z-index: 1;
}

.channel-card-badge .badge-title {
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.channel-card-badge .badge-text {
  font-size: 12px;
  line-height: 1.3333333;
}

.channel-card__media {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1;
  background: var(--color-text);
  margin-bottom: 16px;    
}

.channel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}


.channel-card:hover img{
  transform: scale(1.2);
}

.channel-card__title {
  font-size: 16px;
  line-height: 1.5625;
  color: var(--color-surface);
  margin-bottom: 4px;
}

.channel-card__meta {
  font-size: 16px;
  line-height: 1.125;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== UNIVERSAL FEATURE CARD ===== */
.feature-card {
  border-radius: 40px;
  padding: 40px;
  color: var(--color-text);
  background-color: var(--color-surface);
}

.feature-card__title {
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .feature-card {
    padding: 24px;
  }

  .feature-card__title {
    font-size: 20px;
  }

  .feature-card__text {
    font-size: 14px;
  }
}

/* ===== SERVICES SCROLL SECTION ===== */
.services-scroll {
  overflow: hidden;
}

.services-scroll__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1200px);
  margin-inline: auto;
  min-height: calc(100vh - var(--header-scrolled-height));
  padding-top: var(--header-scrolled-height);
}

.services-scroll__viewport {
  width: 100%;
}

.services-scroll__track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.services-scroll__card {
  width: 682px;
  min-height: 264px;
  border-radius: 28px;
}

.services-scroll__progress {
  position: relative;
  width: 122px;
  height: 20px;
  margin-inline: auto;
}

.services-scroll__progress-track {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0.75;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5) 0,
      rgba(255, 255, 255, 0.5) 2px,
      transparent 2px,
      transparent 10px
    );
}

.services-scroll__progress-thumb {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 1);
  transition: transform 0.15s linear;
}

.services-scroll__progress-track,
.services-scroll__progress-thumb {
  pointer-events: none;
}

.services-scroll__progress-track {
  display: block;
  height: 100%;
}

@media (max-width: 767px) {
  .services-scroll {
    overflow: visible;
    padding-inline: 0;
    min-height: auto;
  }

  .services-scroll__container {
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
    min-height: auto;
    padding: 0 16px;
    background: transparent;
  }

  .services-scroll__track {
    flex-direction: column;
    width: 100%;
  }

  .services-scroll__card {
    width: 100%;
    min-height: auto;
  }

  .services-scroll__progress {
    display: none;
  }
}

/* ===== SERVICES FLEX SECTION ===== */
.services-flex {
  --services-flex-gap: 24px;
  --services-flex-card-height: 0px;
}

.services-flex__container {
  display: flex;
  flex-direction: column;
}

.services-flex__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  justify-items: center;
  gap: var(--services-flex-gap);
  margin: auto;
  overflow: visible;
}

.services-flex__card {
  min-width: 0;
  min-height: var(--services-flex-card-height);
  position: relative;
  border-radius: 28px;
  will-change: transform;
  transform: translate(
    calc((50% + (var(--services-flex-gap) / 2)) * var(--services-flex-shift-direction, 1)),
    calc(var(--services-flex-card-height) * var(--services-flex-stack-level, 0))
  );
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    opacity 0.4s ease;
}

.services-flex.is-scrolled .services-flex__card {
  transform: translate(0, 0);
}

.services-flex__card .feature-card__text {
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .services-flex__grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .services-flex__card {
    min-height: auto;
    position: static;
    transform: none;
    will-change: auto;
  }

  .services-flex__card .feature-card__text {
    font-size: 14px;
  }
}

/* ===== MAIN FOOTER ===== */
.footer-main {
  position: relative;
}

.footer-main::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(40% 35% at 50% 100%, #0985f4 -50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.footer-main__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  row-gap: 32px;
}

.footer-main__logo {
  display: inline-flex;
}

.footer-main__logo img {
  max-width: 330px;
  width: 100%;
  height: auto;
}

.footer-main__button {
  min-width: min(336px, 100%);
}

@media (max-width: 767px) {
  .footer-main__inner {
    row-gap: 24px;
  }
}

header .register .btn {
  min-width: 0;
  height: 45px;
  font-size: 14px;
}

header .register{
  min-width: 0;
}

.register {
  display: flex;
  align-items: center;
  gap: 8px;
}
