@import url('./ScrollStack.css');

body {
  background: #f0f0f0;
  background-image: none;
  color: #0f0f0f;
  font-family: "Noto Sans KR", "source-han-sans-korean", "Helvetica Neue", Arial, sans-serif;
}

.new-home-section {
  padding: clamp(60px, 8vw, 100px) 4vw clamp(60px, 8vw, 100px) 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: auto;
  text-align: center;
  margin: 0;
  border: 0;
  background: #f0f0f0;
  background-image: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.domain-section {
  background: #ffffff;
  background-image: none;
}

.partners-heading-block {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin: 0 auto;
}

.partners-tagline {
  font-weight: 700;
  margin: 0;
  color: #ff7f00;
}

.partners-title {
  margin: 0;
}

.partners-subtitle {
  margin: 0;
  color: #333;
  line-height: 1.7;
}

.scroll-stack-section {
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
}

.scroll-stack-scroller {
  width: 100vw;
  max-width: none;
  height: min(78vh, 880px);
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 10px clamp(6vw, 8vw, 120px) clamp(30vh, 40vh, 520px);
  scrollbar-width: none; /* Firefox */
  margin-left: calc(50% - 50vw);
  margin-top: 0;
}

.scroll-stack-scroller::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}

.scroll-stack-card {
  background: var(--panel, #ffffff);
  border: 2px solid var(--border-strong, rgba(20, 17, 14, 0.18));
  border-radius: clamp(32px, 6vw, 48px);
  box-shadow: 0 24px 60px rgba(16, 12, 8, 0.2);
  padding: clamp(32px, 5vw, 48px);
  color: #161616;
}

.scroll-stack-card h2 {
  margin: 0 0 12px;
}

.scroll-stack-card p {
  margin: 0;
  color: #404040;
  line-height: 1.6;
}

/* Domain cards: force consistent styling on about.html despite other sheet order */
.new-home-section.domain-section .apply-feature-card {
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
  border-radius: clamp(28px, 5vw, 36px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.08);
  position: relative;
  width: min(414px, 48vw);
}

.new-home-section.domain-section .apply-feature-card::before {
  content: none;
}

.new-home-section.domain-section .apply-feature-image {
  width: min(78%, 320px);
  height: clamp(240px, 38vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-home-section.domain-section .apply-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.new-home-section.domain-section .apply-feature-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) auto minmax(260px, 360px);
  gap: clamp(35px, 2vw, 40px);
  align-items: center;
  justify-content: center;
  justify-items: center;
  max-width: 980px;
  margin: 20px auto 0;
  column-gap: clamp(42px, 4vw, 64px);
}

.new-home-section.domain-section .apply-feature-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(62px, 9vw, 83px);
  height: clamp(62px, 9vw, 83px);
  border-radius: 50%;
  background: #ff7f00;
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  transform: translateY(1px);
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  margin: auto;
}

@media (max-width: 900px) {
  .new-home-section.domain-section .apply-feature-grid {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
    gap: 18px;
  }

  .new-home-section.domain-section .apply-feature-plus {
    display: none;
  }
}

@media (max-width: 768px) {
  .new-home-section.domain-section .apply-feature-card {
    width: 100%;
    max-width: 92vw;
  }

  .new-home-section.domain-section .apply-feature {
    width: 100%;
  }
}
@media (max-width: 768px) {
  body {
    background: #ffffff;
  }

  main {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .new-home-section {
    width: 100%;
    margin-left: 0;
  }

  .scroll-stack-scroller {
    height: 72vh;
    padding: 10px 6vw 38vh;
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  .scroll-stack-card {
    height: auto;
    min-height: 16rem;
    padding: 2.2rem;
  }
}

@supports (corner-shape: continuous) {
  * {
    corner-shape: continuous;
  }
}
