* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #08090d;
  color: #fffaf0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 64, 0.38), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(255, 171, 15, 0.22), transparent 34%),
    linear-gradient(135deg, #050609 0%, #0b0d13 48%, #161007 100%);
}
.hero-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(72vw, 1050px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.96;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 18%,
    black 42%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.18) 18%,
    black 42%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  margin-left: max(20px, 8vw);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(255,255,255,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotate(-6deg) scale(1.2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 220, 140, 0.04) 48%, transparent 58%),
    linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.48) 100%);
  pointer-events: none;
}

.hero::after {
  content: "ESTP";
  position: absolute;
  right: -32px;
  bottom: -42px;
  font-size: clamp(120px, 28vw, 340px);
  font-weight: 1000;
  letter-spacing: -0.12em;
  color: rgba(255, 230, 160, 0.045);
  line-height: 1;
  pointer-events: none;
}

.site-logo {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 184, 61, 0.6);
  border-radius: 999px;
  color: #f5d28a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 28px rgba(245, 184, 61, 0.16);
}

h1 {
  margin: 0;
  font-size: clamp(62px, 15vw, 150px);
  line-height: 0.76;
  letter-spacing: -0.1em;
  font-weight: 1000;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:first-child {
  color: #ffd43b;
  text-shadow:
    0 0 20px rgba(255, 212, 59, 0.58),
    0 0 80px rgba(255, 212, 59, 0.24);
}

h1 span:last-child {
  color: #fffaf0;
  transform: translateX(34px);
}

.hero-copy {
  margin: 24px 0 0;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: #ffe082;
  text-shadow: 0 0 22px rgba(255, 212, 59, 0.22);
}

.lead {
  margin: 22px 0 0;
  max-width: 560px;
  color: #c9c0ad;
  font-size: 17px;
  line-height: 1.9;
}

.floating-card {
  display: none;
}

.card {
  position: relative;
  min-height: 230px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 59, 0.26), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 240, 180, 0.16);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  color: white;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.card:nth-child(3n) {
  transform: translateY(18px) rotate(0.8deg);
}

.card:nth-child(3n + 1) {
  transform: translateY(-4px) rotate(-0.8deg);
}

.card:nth-child(3n + 2) {
  transform: translateY(8px) rotate(0.5deg);
}

.card:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.02);
  border-color: rgba(255, 212, 59, 0.82);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(255, 212, 59, 0.22);
}

.card::before {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(245, 184, 61, 0.13);
}

.card::after {
  content: "ESTP";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(255, 230, 160, 0.05);
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: -0.08em;
}

.card-number {
  color: #ffd43b;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 20px 0 12px;
  font-size: 25px;
  line-height: 1.2;
  color: #f7f2e8;
}

.card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #cbc3b3;
  line-height: 1.7;
}
@media (max-width: 640px) {

  h1 span:last-child {
    transform: translateX(4px);
  }
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: #111;
}

.btn.primary {
  background: #ffd43b;
  border: 1px solid rgba(255, 212, 59, 0.9);
  box-shadow: 0 0 28px rgba(255, 212, 59, 0.22);
}

.btn.secondary {
  color: #fff7d6;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 230, 150, 0.22);
}


.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 20px;
}

.about {
  text-align: left;
}

.section-title {
  margin-bottom: 42px;
  border-left: 5px solid #ffd43b;
  padding-left: 18px;
}

.section-title h2,
.about h2 {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  align-items: stretch;
}

img {
  max-width: 100%;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 212, 59, 0.12), transparent 35%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 59, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    #101116;
  border: 1px solid rgba(255, 230, 150, 0.18);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(255, 212, 59, 0.12);
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 230, 150, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff7d6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 26px rgba(255, 212, 59, 0.12);
}

.close-btn:hover {
  background: #ffd43b;
  color: #111;
}

.modal-tag {
  margin: 0 0 14px;
  color: #ffd43b;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

#modalName {
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #fffaf0;
}

.modal-catch {
  margin: 20px 0 28px;
  color: #ffe082;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.6;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-grid div {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 240, 180, 0.12);
}

.detail-grid h3 {
  margin: 0 0 10px;
  color: #ffd43b;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.detail-grid p {
  margin: 0;
  color: #ddd5c5;
  line-height: 1.8;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #ffd43b;
  color: #111;
  text-decoration: none;
  font-weight: 1000;
  box-shadow: 0 0 32px rgba(255, 212, 59, 0.22);
}

@media (max-width: 640px) {
  .modal {
    padding: 14px;
    place-items: end center;
  }

  .modal-content {
    max-height: 82vh;
    padding: 22px;
    border-radius: 26px 26px 0 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  #modalName {
    font-size: 38px;
  }
}

.modal-image-wrap {
  margin: 0 0 22px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 180, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.footer {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 70px 20px 28px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 212, 59, 0.18), transparent 32%),
    linear-gradient(135deg, #07080c 0%, #101018 52%, #171106 100%);
  border-top: 1px solid rgba(255, 230, 150, 0.14);
}

.footer::after {
  content: "COLLECTION";
  position: absolute;
  right: -24px;
  bottom: -34px;
  font-size: clamp(70px, 16vw, 220px);
  font-weight: 1000;
  letter-spacing: -0.1em;
  color: rgba(255, 230, 160, 0.035);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}

.footer-logo {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 59, 0.5);
  color: #ffd43b;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  background: rgba(0, 0, 0, 0.35);
}

.footer h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.85;
  letter-spacing: -0.08em;
  color: #fffaf0;
}

.footer-copy {
  margin: 22px 0 0;
  color: #c9c0ad;
  line-height: 1.9;
}

.footer-links {
  display: grid;
  gap: 12px;
  min-width: 180px;
}

.footer-links a {
  color: #fff7d6;
  text-decoration: none;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 150, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, background 0.18s ease;
}

.footer-links a:hover {
  transform: translateX(6px);
  background: rgba(255, 212, 59, 0.14);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 44px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 230, 150, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8f8778;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 640px) {
  .footer {
    padding: 54px 20px 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.diagnosis {
  position: relative;
}

.quiz-box,
.result-box {
  border-radius: 32px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 212, 59, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 240, 180, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.question-count {
  margin: 0 0 14px;
  color: #ffd43b;
  font-weight: 1000;
  letter-spacing: 0.14em;
  font-size: 13px;
}

.question-text {
  margin: 0 0 24px;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.answer-list {
  display: grid;
  gap: 12px;
}

.answer-btn {
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 240, 180, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025));
  color: #fffaf0;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.answer-btn:hover {
  transform: translateX(8px);
  border-color: rgba(255, 212, 59, 0.72);
  background: rgba(255, 212, 59, 0.12);
}

.result-label {
  margin: 0 0 12px;
  color: #ffd43b;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.result-box h3 {
  margin: 0;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.result-catch {
  margin: 18px 0 24px;
  color: #ffe082;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.6;
}

.result-image-wrap {
  margin: 0 0 22px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 240, 180, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.result-image-wrap img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.result-summary {
  color: #ddd5c5;
  line-height: 1.9;
  font-size: 16px;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .quiz-box,
  .result-box {
    padding: 22px;
    border-radius: 26px;
  }

  .answer-btn:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-start;
    padding-top: 72px;
    height: var(--hero-height, 760px);
    min-height: var(--hero-height, 760px);
  }

  .hero-inner {
    margin-left: 0;
  }

  .hero-visual {
    right: -120px;
    bottom: 0;
    width: 160vw;
    height: calc(var(--hero-height, 760px) * 0.7);
    opacity: 0.5;
    object-position: right bottom;
    object-fit: cover;
    transform: translateZ(0);

    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 24%,
      black 55%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 24%,
      black 55%
    );
  }

  h1 span:last-child {
    transform: translateX(4px);
  }
}
