:root {
  --salary-bg: #09130d;
  --salary-surface: #102018;
  --salary-line: #314638;
  --salary-gold: #f4c45e;
  --salary-mint: #61e3b7;
  --salary-cream: #f6f3e8;
}

.detail-page {
  background: #f4f6f4;
}

.detail-header {
  border-bottom-color: rgba(26, 43, 33, 0.14);
}

.detail-back {
  justify-self: end;
  color: #516057;
  font-size: 0.7rem;
  font-weight: 650;
}

.detail-main {
  padding-top: 76px;
}

.detail-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  padding: clamp(4rem, 8vh, 7rem) clamp(2rem, 8vw, 9rem);
  align-items: center;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 7vw, 8rem);
  color: var(--salary-cream);
  background:
    radial-gradient(circle at 86% 10%, rgba(244, 196, 94, 0.13), transparent 25rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--salary-bg);
  background-size: auto, 30px 30px, 30px 30px, auto;
  overflow: hidden;
}

.detail-hero::before {
  position: absolute;
  top: 7%;
  right: -0.05em;
  color: rgba(255, 255, 255, 0.025);
  content: "SALARY";
  font-family: var(--display);
  font-size: clamp(7rem, 15vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  writing-mode: vertical-rl;
}

.detail-hero-copy,
.detail-hero-visual {
  position: relative;
  z-index: 2;
}

.detail-code {
  margin: 0 0 1.2rem;
  color: var(--salary-mint);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.detail-product-id {
  display: flex;
  margin-bottom: 2.2rem;
  align-items: center;
  gap: 0.9rem;
  color: #9aab9f;
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
}

.detail-product-id img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--salary-line);
}

.detail-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 9rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.detail-hero h1 small {
  display: block;
  margin-top: 1.3rem;
  color: var(--salary-gold);
  font-size: 0.2em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.detail-lead {
  margin: 2.6rem 0 1.2rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 650;
  line-height: 1.55;
}

.detail-summary {
  max-width: 570px;
  margin: 0 0 2rem;
  color: #a8b5ac;
  font-size: 0.9rem;
  line-height: 1.85;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.detail-primary,
.detail-secondary {
  display: inline-flex;
  min-height: 50px;
  padding: 0 1.2rem;
  align-items: center;
  border: 1px solid var(--salary-gold);
  font-size: 0.75rem;
  font-weight: 650;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.detail-primary {
  color: var(--salary-bg);
  background: var(--salary-gold);
}

.detail-secondary {
  color: var(--salary-cream);
}

.detail-primary:hover,
.detail-secondary:hover {
  color: var(--salary-bg);
  background: #ffe39d;
  transform: translateY(-2px);
}

.detail-meta {
  display: flex;
  margin-top: 2.3rem;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  color: #7f9285;
  font-size: 0.7rem;
}

.detail-meta span {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-meta b {
  color: var(--salary-cream);
  font-size: 0.58rem;
}

.detail-hero-visual {
  min-height: min(64vw, 660px);
}

.detail-cover-frame {
  position: absolute;
  top: 5%;
  right: 0;
  bottom: 8%;
  left: 0;
  padding: clamp(0.7rem, 1.4vw, 1.2rem);
  border: 1px solid var(--salary-line);
  background: #0b1710;
  box-shadow: 32px 32px 0 rgba(244, 196, 94, 0.09), 0 42px 90px rgba(0, 0, 0, 0.38);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.detail-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-float {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 130px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--salary-line);
  flex-direction: column;
  color: var(--salary-cream);
  background: rgba(15, 31, 23, 0.92);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.detail-float strong {
  color: var(--salary-gold);
  font-family: var(--display);
  font-size: 1.5rem;
}

.detail-float span {
  margin-top: 0.25rem;
  color: #91a298;
  font-size: 0.62rem;
}

.detail-float-offline {
  top: 0;
  left: -4%;
}

.detail-float-size {
  right: -2%;
  bottom: 1%;
}

.detail-corner {
  position: absolute;
  right: -3%;
  bottom: 18%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 2px solid var(--salary-gold);
}

.detail-section {
  padding: clamp(6rem, 10vw, 10rem) clamp(2rem, 9vw, 10rem);
}

.detail-section-heading {
  max-width: 1180px;
  margin: 0 auto 4rem;
}

.detail-section-heading h2,
.formula-section h2,
.privacy-section h2,
.download-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.overview-content {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.widget-stage {
  position: relative;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 3rem);
  border: 1px solid #d9e0dc;
  background:
    linear-gradient(rgba(20, 48, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 48, 34, 0.035) 1px, transparent 1px),
    #eef3ef;
  background-size: 24px 24px;
}

.widget-stage img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 28px 65px rgba(18, 39, 26, 0.25);
}

.widget-shadow {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 70%;
  height: 35%;
  background: rgba(244, 196, 94, 0.28);
  filter: blur(32px);
}

.overview-copy h3 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.overview-copy p,
.privacy-copy > p:last-child {
  margin: 0 0 1.2rem;
  color: #667168;
  font-size: 0.94rem;
  line-height: 1.9;
}

.feature-section {
  background: var(--salary-bg);
}

.feature-section .detail-section-heading h2 {
  color: var(--salary-cream);
}

.detail-section-heading.compact {
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--salary-line);
  border-left: 1px solid var(--salary-line);
}

.feature-grid article {
  min-height: 260px;
  padding: 2rem;
  border-right: 1px solid var(--salary-line);
  border-bottom: 1px solid var(--salary-line);
  color: var(--salary-cream);
  background: rgba(255, 255, 255, 0.018);
  transition: background 250ms ease, transform 250ms ease;
}

.feature-grid article:hover {
  background: rgba(97, 227, 183, 0.07);
  transform: translateY(-6px);
}

.feature-grid span {
  color: var(--salary-mint);
  font-family: var(--display);
  font-size: 0.65rem;
}

.feature-grid h3 {
  margin: 4rem 0 0.8rem;
  font-family: var(--display);
  font-size: 1.6rem;
}

.feature-grid p {
  margin: 0;
  color: #93a298;
  font-size: 0.82rem;
  line-height: 1.7;
}

.formula-section {
  display: grid;
  padding: clamp(6rem, 10vw, 10rem) clamp(2rem, 11vw, 13rem);
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  background: #eaf0eb;
}

.formula-card {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid #cad5cd;
  background: #fff;
  box-shadow: 22px 22px 0 rgba(33, 91, 58, 0.09);
}

.formula-card p {
  margin: 0 0 0.5rem;
  color: #718078;
  font-size: 0.7rem;
}

.formula-card strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.formula-card span {
  display: block;
  height: 1px;
  margin: 2rem 0;
  background: #cfd9d2;
}

.privacy-section {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 9rem);
}

.privacy-copy > p:last-child {
  margin-top: 2rem;
}

.privacy-list {
  border-top: 1px solid #d4dbd6;
}

.privacy-list p {
  display: flex;
  margin: 0;
  padding: 1.25rem 0;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1px solid #d4dbd6;
  color: #566259;
}

.privacy-list span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--salary-bg);
  background: var(--salary-mint);
  font-weight: 700;
}

.download-section {
  display: grid;
  padding: clamp(6rem, 10vw, 10rem) clamp(2rem, 12vw, 14rem);
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  color: var(--salary-cream);
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 196, 94, 0.12), transparent 22rem),
    var(--salary-bg);
}

.download-section > img {
  width: clamp(110px, 15vw, 190px);
  border: 1px solid var(--salary-line);
  box-shadow: 20px 20px 0 rgba(244, 196, 94, 0.09);
}

.download-section > div > p:not(.detail-code) {
  margin: 1.5rem 0;
  color: #99a79e;
}

.download-section code {
  display: block;
  max-width: 760px;
  margin-top: 2rem;
  color: #708178;
  font-size: 0.62rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.detail-footer {
  border-top-color: #1c2e23;
  color: #74847a;
  background: #071009;
}

.detail-footer a {
  color: var(--salary-gold);
}

@media (max-width: 900px) {
  .detail-back {
    display: none;
  }

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

  .detail-hero-visual {
    min-height: 58vw;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .detail-main {
    padding-top: 68px;
  }

  .detail-hero {
    min-height: auto;
    padding: 4rem 1rem 5rem;
  }

  .detail-hero h1 {
    font-size: clamp(4rem, 22vw, 6.5rem);
  }

  .detail-hero-visual {
    min-height: 62vw;
    margin-top: 1rem;
  }

  .detail-cover-frame {
    box-shadow: 14px 14px 0 rgba(244, 196, 94, 0.09), 0 24px 55px rgba(0, 0, 0, 0.34);
    transform: none;
  }

  .detail-float {
    min-width: 100px;
    padding: 0.7rem;
  }

  .detail-float strong {
    font-size: 1rem;
  }

  .detail-corner {
    width: 34px;
    height: 34px;
  }

  .detail-section {
    padding: 5rem 1rem;
  }

  .overview-content,
  .privacy-section,
  .formula-section,
  .download-section {
    grid-template-columns: 1fr;
  }

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

  .feature-grid article {
    min-height: 220px;
  }

  .formula-section {
    padding: 5rem 1rem;
  }

  .download-section {
    padding: 5rem 1rem;
  }
}
