* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8f8f5;
  color: #1f1f1d;
  font-family:
    Arial,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
}

.header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: #6d6d68;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: #1f1f1d;
}

.hero {
  max-width: 920px;
  margin: 90px auto 140px;
  padding: 0 28px;
}

.hero-badge {
  text-align: center;
  color: #8d8d84;
  font-size: 11px;
  letter-spacing: 2.4px;
  margin-bottom: 26px;
}

h1 {
  margin: 0;

  text-align: center;

  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.14;
  letter-spacing: -4px;
  font-weight: 600;
}

.hero-description {
  margin: 30px auto 48px;

  color: #73736d;

  text-align: center;

  font-size: 18px;
  line-height: 1.8;
}

.dream-card {
  padding: 34px;

  background: #ffffff;

  border: 1px solid #e9e9e4;
  border-radius: 28px;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.06);
}

.dream-card label {
  display: block;

  margin-bottom: 15px;

  font-size: 14px;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 210px;

  padding: 22px;

  resize: vertical;

  background: #fafaf8;

  border: 1px solid #e6e6e0;
  border-radius: 18px;

  outline: none;

  font: inherit;
  font-size: 17px;
  line-height: 1.7;

  transition: 0.2s;
}

textarea:focus {
  background: white;
  border-color: #aaa99f;
}

textarea::placeholder {
  color: #aaa9a1;
}

.input-info {
  margin: 12px 3px 0;

  display: flex;
  justify-content: space-between;

  color: #9b9b94;

  font-size: 12px;
}

#interpretButton {
  width: 100%;

  margin-top: 28px;
  padding: 19px 24px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  color: white;
  background: #262622;

  border: none;
  border-radius: 16px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s,
    background 0.2s;
}

#interpretButton:hover {
  background: #000000;
  transform: translateY(-2px);
}

.analysis-info {
  margin-top: 42px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.analysis-item {
  display: flex;
  gap: 14px;

  padding: 18px;
}

.analysis-icon {
  font-size: 20px;
}

.analysis-item strong {
  font-size: 14px;
}

.analysis-item p {
  margin: 7px 0 0;

  color: #8d8d86;

  font-size: 12px;
  line-height: 1.5;
}

.result-section {
  display: none;

  max-width: 920px;

  margin: 0 auto 140px;
  padding: 0 28px;
}

.result-title {
  margin-bottom: 38px;
}

.result-title span {
  color: #92928b;

  font-size: 11px;
  letter-spacing: 2px;
}

.result-title h2 {
  margin: 12px 0 0;

  font-size: 42px;
  letter-spacing: -2px;
}

.result-card {
  padding: 32px 0;

  display: grid;
  grid-template-columns: 80px 1fr;

  border-top: 1px solid #deded8;
}

.result-number {
  color: #a3a39b;

  font-size: 13px;
}

.result-card h3 {
  margin: 0 0 14px;

  font-size: 20px;
}

.result-card p {
  max-width: 680px;

  margin: 0;

  color: #60605b;

  font-size: 16px;
  line-height: 1.9;
}

.lucky-area {
  margin-top: 42px;

  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
}

.lucky-card,
.lotto-card {
  min-height: 210px;

  padding: 30px;

  background: white;

  border: 1px solid #e8e8e3;
  border-radius: 24px;
}

.lucky-card span,
.lotto-card > span {
  color: #85857e;

  font-size: 13px;
}

.lucky-card strong {
  display: block;

  margin-top: 38px;

  font-size: 70px;
  font-weight: 500;
}

.lotto-numbers {
  margin-top: 36px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lotto-ball {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f1ed;

  border-radius: 50%;

  font-size: 15px;
  font-weight: 600;
}

.lotto-button {
  margin-top: 28px;

  padding: 10px 15px;

  background: transparent;

  border: 1px solid #d8d8d2;
  border-radius: 10px;

  color: #62625d;

  cursor: pointer;
}

.notice {
  margin-top: 35px;

  color: #989891;

  font-size: 12px;
  line-height: 1.8;
}

footer {
  padding: 55px 28px;

  background: #242421;

  color: white;

  text-align: center;
}

footer p {
  margin: 0;

  font-weight: 600;
}

footer span {
  display: block;

  margin-top: 10px;

  color: #a4a49d;

  font-size: 12px;
}

@media (max-width: 700px) {

  .header {
    padding: 22px;
  }

  .nav {
    display: none;
  }

  .hero {
    margin-top: 55px;
  }

  h1 {
    font-size: 43px;
    letter-spacing: -2.8px;
  }

  .hero-description {
    font-size: 15px;
  }

  .dream-card {
    padding: 22px;
    border-radius: 22px;
  }

  .analysis-info {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-title h2 {
    font-size: 34px;
  }

  .result-card {
    grid-template-columns: 42px 1fr;
  }

  .lucky-area {
    grid-template-columns: 1fr;
  }

}

/* Dream Insight Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #171c2b;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .brand {
    gap: 8px;
    font-size: 18px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }
}