/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inder", sans-serif;
  background-color: #000000;
  color: #000000;
  line-height: 1.25;
}

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* Typography */
h1 {
  font-family: Impact, "Anton", "Inter", sans-serif;
  font-size: 48px;
  line-height: 1.22;
  letter-spacing: 0.03em;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
}

h2 {
  font-family: "Inder", sans-serif;
  font-size: 40px;
  letter-spacing: 0.01em;
  text-align: left;
  margin-bottom: 20px;
}

h3 {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  margin-bottom: 15px;
  color: #000000;
}

p {
  font-size: 20px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

ul {
  margin-bottom: 20px;
  padding-left: 25px;
}

li {
  font-size: 20px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

a {
  color: inherit;
}

/* Sections */
.section {
  padding: 40px;
  margin-bottom: 30px;
}

.section-white {
  background-color: #ffffff;
}

.section-rounded {
  border-radius: 40px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title-blue {
  color: #3964ef;
}

/* Hero Section */
.hero {
  height: 830px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 44px;
  margin-top: 0;
  margin-bottom: 40px;
}

.hero-content {
  max-width: 1098px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  background-color: #3964ef;
  color: #ffffff;
  border: none;
  padding: 20px 40px;
  font-family: Impact, "Anton", "Inter", sans-serif;
  font-size: 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  background-color: #2a4ecf;
}

/* Layout Helpers */
.flex-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.flex-col-left {
  flex: 1.2;
}

.flex-col-right {
  flex: 1;
}

.flex-row--vcenter-right {
  align-items: stretch;
}

.flex-row--vcenter-right .flex-col-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mt-30 {
  margin-top: 30px;
}
.mt-40 {
  margin-top: 40px;
}
.mb-40 {
  margin-bottom: 40px;
}

/* Inset card (for "Basic working principle" visual grouping) */
.inset-card {
  background: #ffffff;
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Video area helper */
.video-main {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* YouTube embed (responsive) */
.youtube-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #f6d9d9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.youtube-embed--large {
  border-radius: 24px;
}

.caption {
  font-size: 18px;
  margin-top: 10px;
  color: #333;
}

.caption.center {
  text-align: center;
}

.tip {
  background-color: #f8f9fa;
  padding: 20px;
  border-left: 5px solid #3964ef;
  border-radius: 5px;
}

/* Grid for Components (Section 3) */
.components-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.component-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
}

.component-media {
  width: 300px;
  height: 190px;
  flex: 0 0 auto;
  display: block;
}

.component-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: #ffffff;
  display: block;
}

.component-text {
  flex: 1;
}

/* Comparison section: stack video on top, text below, video centered */
.compare-stack {
  flex-direction: column;
  align-items: center;
}

.compare-stack .flex-col-left {
  flex: none;
  width: min(760px, 100%);
}

.compare-stack .flex-col-right {
  flex: none;
  width: min(1100px, 100%);
}

/* Responsive */
@media (max-width: 1024px) {
  .flex-row {
    flex-direction: column;
  }

  .hero {
    height: 600px;
  }

  h1 {
    font-size: 36px;
  }

  .component-card {
    flex-direction: column;
  }

  .component-media {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .component-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 28px 18px 60px;
  }

  .section {
    padding: 20px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .inset-card {
    padding: 22px;
    border-radius: 26px;
  }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inder', sans-serif;
    background-color: #F1F7FD;
    color: #000000;
    line-height: 1.25;
}

.container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 48px 130px 80px;
}

/* Typography */
h1 {
    font-family: Impact, 'Anton', 'Inter', sans-serif;
    font-size: 48px;
    line-height: 1.22;
    letter-spacing: 0.03em;
    text-align: center;
    color: #FFFFFF;
    text-transform: uppercase;
}

h2 {
    font-family: 'Inder', sans-serif;
    font-size: 40px;
    letter-spacing: 0.01em;
    text-align: left;
    margin-bottom: 20px;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    letter-spacing: 0.03em;
    margin-bottom: 15px;
    color: #000000;
}

p {
    font-size: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

li {
    font-size: 20px;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

/* Sections */
.section {
    padding: 40px;
    margin-bottom: 30px;
}

.section-white {
    background-color: #FFFFFF;
}

.section-rounded {
    border-radius: 40px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title-blue {
    color: #3964EF;
}

/* Hero Section */
.hero {
    height: 830px;
    background: linear-gradient(rgba(70, 70, 70, 0.6), rgba(70, 70, 70, 0.6)),
        image-set(
            url("images/cover.webp") type("image/webp"),
            url("images/cover.jpg") type("image/jpeg")
        );
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 44px;
    margin-top: 0;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 1098px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-primary {
    background-color: #3964EF;
    color: #FFFFFF;
    border: none;
    padding: 20px 40px;
    font-family: Impact, 'Anton', 'Inter', sans-serif;
    font-size: 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-primary:hover {
    background-color: #2a4ecf;
}

/* Layout Helpers */
.flex-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.flex-row--vcenter-right {
    align-items: stretch;
}

.flex-row--vcenter-right .flex-col-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Comparison section: stack video on top, text below, video centered */
.compare-stack {
    flex-direction: column;
    align-items: center;
}

.compare-stack .flex-col-left {
    flex: none;
    width: min(760px, 100%);
}

.compare-stack .flex-col-right {
    flex: none;
    width: min(1100px, 100%);
}

.flex-col-left {
    flex: 1.2;
}

.flex-col-right {
    flex: 1;
}

.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Components */
.embed-box {
    background-color: #E3DCDC;
    border-radius: 20px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    width: 100%;
}

.embed-box.large {
    height: 400px;
}

.embed-box--video {
    background: #f6d9d9;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.embed-box--video:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.embed-box--video:active {
    transform: translateY(0);
}

.embed-box--video:focus-visible {
    outline: 4px solid rgba(57, 100, 239, 0.55);
    outline-offset: 4px;
}

.youtube-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #f6d9d9;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.youtube-embed--large {
    border-radius: 24px;
}

.embed-play {
    width: 90px;
    height: 64px;
    border-radius: 16px;
    background: #ff0000;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.embed-play::before {
    content: "";
    position: absolute;
    left: 38px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #ffffff;
}

.caption {
    font-size: 18px;
    margin-top: 10px;
    color: #333;
}

.caption.center {
    text-align: center;
}

.video-main {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tip {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 5px solid #3964EF;
    border-radius: 5px;
}

/* Grid for Components */
.components-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.component-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    text-align: left;
}

.component-card img {
    width: 300px;
    height: 190px;
    object-fit: cover;
    object-position: center;
    flex: 0 0 auto;
    border-radius: 18px;
    background: #ffffff;
}

.component-media {
    width: 300px;
    height: 190px;
    flex: 0 0 auto;
    display: block;
}

.component-media img {
    width: 100%;
    height: 100%;
}

.component-text {
    flex: 1;
}

/* Steps and Guide */
.step-item, .guide-item {
    margin-bottom: 30px;
}

.step-item h3, .guide-item h3 {
    color: #333;
    border-bottom: none;
}

/* Inset card (for "Basic working principle" visual grouping) */
.inset-card {
    background: #ffffff;
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Responsive */
@media (max-width: 1024px) {
    .flex-row {
        flex-direction: column;
    }
    
    .hero {
        height: 600px;
    }
    
    h1 {
        font-size: 36px;
    }

    .component-card {
        flex-direction: column;
    }

    .component-media {
        width: 100%;
        max-width: 420px;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .component-card img {
        width: 100%;
        max-width: 420px;
        aspect-ratio: 16 / 10;
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 28px 18px 60px;
    }
    
    .section {
        padding: 20px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 24px;
    }

    .inset-card {
        padding: 22px;
        border-radius: 26px;
    }
}

