/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Main colors */
  --color-primary: #1d2974;
  --color-button: #e52914;
  --color-background: #1d2974;
  --color-background-light: #f0f5ff;
  --color-text: #000;
  --color-text-muted: #333;
  --color-gradient-light: #edeafd;

  /* Gradients */
  --gradient-background: linear-gradient(
    135deg,
    var(--color-gradient-light) 100%,
    var(--color-primary) 100%
  );
}

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

li {
  list-style: none;
}

a {
  text-decoration: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.xl-text {
  font-size: clamp(1.5rem, 0.8182rem + 2.9091vw, 3rem);
  font-weight: bold;
}

.plus {
  position: relative;
}

.plus::after,
.plus::before {
  content: "＋";
  display: inline-block;
  color: var(--color-button);
  margin: 0 10px;
}

.underline {
  position: relative;
  width: max-content;
  margin: 0 auto;
}

.underline::before {
  content: attr(data-english);
  position: absolute;
  line-height: 1;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  z-index: -1;
  color: var(--color-button);
  display: block;
  padding: 10px;
  background: #fff;
  width: max-content;
  text-transform: uppercase;
}
.underline::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 2px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -2;
  background: var(--color-button);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
.header {
  backdrop-filter: blur(10px);
  width: 100%;
  top: 0;
  z-index: 1000;
  position: absolute;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hero section */
.hero {
  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  img {
    width: 100%;
  }

  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: polygon(100% 0, 100% 55%, 0 90%, 0 0);
  background: var(--color-background-light);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(1.25rem, 0.7955rem + 1.9394vw, 2.25rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 400;
}

.hero p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: var(--color-button);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 20px;
  cursor: pointer;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  width: 100%;
  max-width: 380px;
  text-align: center;
  display: block;
}

.hero-image {
  margin-top: -60px;
}

/* Prize section */
.prize-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px;
}
.prize-item {
  background-image: url(../images/prize-images.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem;
  height: 250px;

  h2 {
    color: #000;
    font-size: 18px;
    text-align: center;
  }

  p {
    text-align: center;
    color: var(--color-text);
    font-weight: 600;
    .xl-num {
      font-size: 96px;
      color: var(--color-primary);
      font-weight: bold;
    }
  }
}

/* companies-logo */
.companies-logo .lists {
  margin: 20px 0 140px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
  justify-content: center;
  align-items: center;

  .item {
    list-style: none;

    img {
      max-width: 140px;
      height: 100px;
      object-fit: contain;
      display: flex;
    }
  }
}

/* problems */
.problems {
  .section-title {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 1.1591rem + 1.4545vw, 2.25rem);
    text-align: center;
    margin-bottom: 50px;
  }

  .problems-container {
    max-width: 1080px;
    margin: 0 auto 100px;

    .problem-lists {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(calc(320px - 50px), 1fr));
      column-gap: 50px;

      .problem {
        .case-number {
          display: grid;
          width: max-content;
          text-align: center;
          font-size: 32px;
          line-height: 1;
          position: relative;
          margin-bottom: 50px;
          font-weight: 600;

          .xl-case-num {
            line-height: 1;
            color: var(--color-primary);
            font-size: 64px;
            font-weight: bold;
            margin-bottom: 6px;
          }
        }

        .case-number::after {
          content: "";
          position: absolute;
          bottom: 0;
          width: 100%;
          height: 4px;
          background: var(--color-primary);
          border-radius: 8px;
          margin-left: 8px;
        }

        .case-number::before {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 4px;
          height: 4px;
          background: var(--color-button);
          border-radius: 8px;
        }

        .text-contents {
          text-align: center;

          h3 {
            color: var(--color-primary);
            margin-bottom: 10px;
          }
        }
      }
    }
  }
}

/* cta-section */
.cta-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  opacity: 1;
  background-image: radial-gradient(#5b5b5b 0.9px, var(--color-primary) 0.9px);
  background-size: 18px 18px;
  margin-bottom: 170px;

  .container {
    position: relative;
    padding: 130px 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    .texts-contents {
      padding-bottom: 80px;

      img {
        max-width: 200px;
        margin-bottom: 15px;
        margin-left: -10px;
      }

      .cta-title {
        color: #fff;
        font-size: 48px;
        margin-bottom: 25px;
      }

      p {
        color: #fff;
      }
    }

    .image-content {
      display: flex;

      img {
        object-fit: contain;
      }
    }
  }

  /* .container::before {
    content: "";
    position: absolute;
    top: 0;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    height: 130px;
    background: #ffdbdb;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
  }
  .container::after {
    content: "";
    position: absolute;
    top: -10px;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    height: 130px;
    background: #fff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
  } */
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 130px;
  background: #ffffff;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* cta-with-button */
.cta-with-button {
  background: linear-gradient(35deg, #edeafd, #1d2974);
  margin-bottom: 100px;

  .container {
    padding: 65px 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;

    .texts-contents {
      width: 50%;
      text-align: center;

      h2 {
        color: #fff;
        font-size: 20px;
        font-weight: normal;
      }

      p {
        font-size: 32px;
        color: #fff;
        font-weight: bold;
        margin-top: 20px;
      }

      .cta-button {
        margin: 30px auto 0;
      }
    }

    .image-content {
      position: absolute;
      width: 50%;
      right: 0;
      top: 40%;
      transform: translateY(-50%);
      display: flex;
    }
  }
}

/* function section */
.function-lists {
  margin-bottom: 100px;

  .list-item {
    display: flex;
    margin-bottom: 120px;
    gap: 5rem;

    div {
      width: 50%;
    }

    .text-contents {
      span {
        font-size: 18px;
        text-transform: uppercase;
        color: var(--color-primary);
      }

      h2 {
        margin-bottom: 50px;
        font-size: 36px;
        position: relative;
      }

      h2:before {
        content: attr(data-number);
        position: absolute;
        line-height: 1;
        bottom: 0;
        font-size: 168px;
        z-index: -1;
        opacity: 0.2;
        -webkit-text-stroke: 1px rgb(0, 0, 0, 50%);
        color: white;
        text-shadow: 1px 1px 0 rgb(0 0 0 / 50%), -1px -1px 0 rgb(0 0 0 / 50%),
          1px -1px 0 rgb(0 0 0 / 50%), -1px 1px 0 rgb(0 0 0 / 50%),
          1px 1px 0 rgb(0 0 0 / 50%);
      }
    }
  }
  .list-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* TODO */
.card-section {
  margin-bottom: 80px;
}

.card-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
  gap: 30px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 350px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card img {
  width: 100%;
  display: block;
}

.card-content {
  position: relative;
  padding: 1rem;
  text-align: center;

  img {
    width: 50px;
    margin: 20px auto;
  }
}

.card-content::before {
  content: attr(data-name);
  position: absolute;
  left: 0;
  top: -39px;
  padding: 8px 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.card-button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background-color: #1d2974;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

/* -------------------------- */

/* video */
.video {
  max-width: 1000px;
  margin: 0 auto 80px;
  width: calc(100% - 2rem);

  iframe {
    width: 100%;
    height: 500px;
  }
}
/* ___________ */

/* Pricing section */
.pricing {
  margin-bottom: 110px;
}
.pricing h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 36px;
  color: var(--color-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 100px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;

  .plus-icon {
    width: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.pricing-card {
  padding: 3rem 2rem;
  border: 1px solid #e6e6e6;
  text-align: center;

  img {
    width: 150px;
  }
}

.pricing-card h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.price {
  font-size: 28px;
  font-weight: bold;
}

/* slider */
.caseSwiper {
  padding-bottom: 100px;

  > h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 36px;
    color: var(--color-primary);
  }
}

.swiper-slide {
  width: 360px;
}

.case-card {
  background: #f0f5ff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.case-label {
  font-size: 0.9rem;
  color: #333;
  margin: 0 0 8px;
}

.case-title {
  font-size: 1.25rem;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px dotted #aaa;
}

.case-content {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.case-img {
  width: 170px;
  height: auto;
  object-fit: cover;
}

.case-text {
  font-size: 0.9rem;
  color: #333;

  p:first-child {
    margin-bottom: 10px;
  }
}

.after {
  color: red;
  font-size: 18px;
}

.after-text {
  font-weight: bold;
  color: #222;
  font-size: 18px;
}
/* ----------- */

.flow {
  margin-bottom: 130px;
}
.flow h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 36px;
  color: var(--color-primary);
}

.step-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 50px 50px;
  background: var(--color-background-light);
}
.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  gap: 75px;
  border-bottom: 2px dotted #d72828;
  position: relative;
}

.step:first-of-type {
  border-top: 2px dotted #d72828;
}

.step::before {
  content: attr(data-flow-number);
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translate(-50%, 0px);
  font-size: 68px;
  padding: 0px 24px;
  background: #f0f5ff;
  font-weight: bold;
  line-height: 1;
  -webkit-text-stroke: 1px rgb(0, 0, 0, 50%);
  color: #f0f5ff;
  text-shadow: 1px 1px 0 rgb(0 0 0 / 50%), -1px -1px 0 rgb(0 0 0 / 50%),
    1px -1px 0 rgb(0 0 0 / 50%), -1px 1px 0 rgb(0 0 0 / 50%),
    1px 1px 0 rgb(0 0 0 / 50%);
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.step-number {
  font-size: 48px;
  font-weight: 700;
  color: #ccc;
  margin-right: 20px;
  flex-shrink: 0;
}
.step-content {
  flex: 1;
}
.step-content h3 {
  color: #001c58;
  font-size: 32px;
  margin-bottom: 20px;
}
.step-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.step-icon {
  width: 380px;
  height: auto;
}

#recommend {
  overflow: hidden;
  background-color: #f5f5f5;

  .recommend_wrapeer {
    display: flex;
    margin-top: 30px;

    .recommend_left {
      flex-basis: 55%;
      height: 255px;
      background-color: #fff;
      border-radius: 45px;
      display: flex;
      justify-content: center;
      align-items: center;

      ul li {
        display: flex;
        align-items: center;
        font-size: 20px;
        font-weight: 700;
        line-height: 2;

        img {
          width: 25px;
          margin-right: 10px;
        }
      }
    }

    .recommend_right {
      display: flex;
    }
  }

  .contents_inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;

    .section_title {
      padding: 50px 0 50px;
      text-align: center;

      img {
        width: 500px;
      }
    }
  }
}

footer {
  p {
    padding: 10px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .nav {
    margin-top: 10px;
  }
  .hero-image {
    margin-top: 0;
  }
  .hero p {
    margin-bottom: 10px;
  }
  .cta-button {
    padding: 13px;
    font-size: 16px;
  }
  .prize-container {
    gap: 30px;
    padding: 0;
  }
  .prize-item {
    height: auto;
    padding: 10px;

    p {
      line-height: 1;

      .xl-num {
        font-size: 62px;
      }
    }
  }

  .companies-logo .lists {
    display: flex;
    margin: 20px 0 20px;
  }

  .cta-section {
    margin-bottom: 80px;
  }

  .cta-section .container {
    padding: 70px 20px 0;
  }

  .cta-section::before {
    height: 30px;
  }

  .cta-section .container .texts-contents {
    padding-bottom: 10px;
  }

  .cta-section .container .texts-contents .cta-title {
    font-size: 30px;
  }

  .video {
    iframe {
      width: 100%;
      height: 300px;
    }
  }

  .function-lists .list-item {
    flex-direction: column;
    gap: 0;
  }

  .function-lists .list-item div {
    width: 100%;
    margin-bottom: 20px;
  }

  .function-lists .list-item:nth-child(even) {
    flex-direction: column;
    gap: 0;
  }

  .function-lists .list-item .text-contents h2 {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .card-section {
    margin-bottom: 60px;
  }

  .card-container {
    flex-direction: column;
    padding: 0;
    align-items: center;
  }

  .problems .problems-container {
    margin: 0 auto 50px;
  }

  .problems .section-title {
    font-size: 20px;
  }

  .problems .problems-container .problem-lists {
    width: calc(100% - 2rem);
    margin: 0 auto;
    gap: 5rem;
  }

  .problems .problems-container .problem-lists .problem .case-number {
    margin-bottom: 20px;
  }

  .cta-with-button {
    background: linear-gradient(35deg, #edeafd, #1d2974);
    margin-bottom: 100px;

    .container {
      padding: 65px 0;
      position: relative;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      align-items: center;

      .texts-contents {
        width: 100%;
        padding: 1rem;
        text-align: center;

        h2 {
          color: #fff;
          font-size: 18px;
          font-weight: normal;
        }

        p {
          font-size: 20px;
          color: #fff;
          font-weight: bold;
          margin-top: 20px;
        }

        .cta-button {
          margin: 30px auto 0;
        }
      }

      .image-content {
        position: unset;
        width: 100%;
        display: flex;
        transform: unset;
      }
    }
  }

  .case-content {
    flex-direction: column;

    img {
      width: 100%;
    }
  }
  .step {
    flex-direction: column;
    gap: 30px;
  }
  .step-wrapper {
    padding: 80px 30px 50px;
  }
  .step-icon {
    width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    margin-bottom: 80px;
  }

  #recommend .recommend_wrapeer {
    flex-direction: column;
  }

  #recommend .contents_inner .section_title {
    padding: 20px 0 0;
  }

  #recommend .contents_inner .section_title img {
    width: 100%;
  }

  #recommend .recommend_wrapeer .recommend_left {
    border-radius: 0;
    padding: 10px;
  }

  #recommend .recommend_wrapeer .recommend_left ul li {
    font-size: 15px;
  }

  #recommend .recommend_wrapeer .recommend_left ul li img {
    width: 15px;
  }
}
