:root {
  --bg: #060607;
  --bg-soft: #0d0d0f;
  --surface: rgba(14, 14, 16, 0.8);
  --surface-2: rgba(10, 10, 12, 0.88);
  --line: rgba(255, 226, 172, 0.17);
  --line-strong: rgba(255, 210, 140, 0.32);
  --text: #f0debe;
  --text-muted: #aa997c;
  --text-dim: #7f7057;
  --candle: #f2ab54;
  --candle-soft: rgba(242, 171, 84, 0.32);
  --mist: rgba(250, 201, 120, 0.12);
  --teal: #88b9ae;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(252, 183, 86, 0.08), transparent 32%),
    radial-gradient(circle at 78% 70%, rgba(255, 193, 112, 0.06), transparent 36%),
    linear-gradient(150deg, #050506 0%, #09090a 52%, #060606 100%);
  overflow-x: hidden;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif KR", "Instrument Serif", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wax {
  position: fixed;
  border-radius: 999px;
  filter: blur(52px);
  z-index: -2;
  pointer-events: none;
}

.wax-a {
  width: 290px;
  height: 290px;
  top: -70px;
  left: -70px;
  background: rgba(255, 187, 96, 0.2);
  animation: drift-a 15s ease-in-out infinite;
}

.wax-b {
  width: 340px;
  height: 340px;
  right: -100px;
  top: 30%;
  background: rgba(236, 162, 76, 0.11);
  animation: drift-b 19s ease-in-out infinite;
}

.wax-c {
  width: 240px;
  height: 240px;
  left: 34%;
  bottom: -80px;
  background: rgba(255, 175, 90, 0.1);
  animation: drift-c 14s ease-in-out infinite;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(#fff 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  animation: grain 8s linear infinite;
}

.site-header {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  backdrop-filter: blur(10px);
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  color: #f7e6c9;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd7a1 0%, #e29c4b 55%, #885421 100%);
  box-shadow: 0 0 22px rgba(242, 171, 84, 0.45);
}

.site-nav {
  display: flex;
  gap: 0.55rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.56rem;
  transition: all 0.24s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f5e3c5;
  border-color: var(--line);
}

.hero {
  margin-top: 1rem;
  padding: clamp(1rem, 2.6vw, 1.65rem) 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0.9rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 140, 0.22), transparent);
}

.hero::before {
  top: 0;
}

.hero::after {
  bottom: 0;
}

.micro {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: #d2b17f;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.14;
  color: #f9ebd2;
}

.hero-copy {
  margin-top: 0.9rem;
  max-width: 560px;
  color: #dac8a8;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.metric {
  border-radius: 12px;
  border: 0;
  background: transparent;
  padding: 0.64rem 0.7rem;
  position: relative;
}

.metric::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 199, 120, 0.18), transparent);
}

.metric strong {
  display: block;
  font-family: "Instrument Serif", serif;
  font-size: 1.35rem;
  color: #f4c280;
}

.metric span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-visual {
  border-radius: 22px;
  border: 0;
  overflow: hidden;
  position: relative;
  background: #080809;
  min-height: 360px;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 137, 0.14);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(132deg, rgba(255, 192, 114, 0.14), transparent 44%, rgba(255, 189, 102, 0.1));
}

.hero-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 13s ease-in-out infinite;
}

.hero-visual figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 145, 0.24);
  background: rgba(8, 8, 10, 0.64);
  color: #f0d6ac;
  font-size: 0.72rem;
  padding: 0.22rem 0.5rem;
}

.gallery {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.real-card {
  position: relative;
  min-height: 250px;
  border-radius: 14px;
  border: 0;
  overflow: hidden;
  background: #0b0b0d;
  box-shadow: inset 0 0 0 1px rgba(255, 203, 124, 0.08);
}

.real-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03) brightness(0.82);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.real-card:hover img,
.real-card:focus-within img {
  transform: scale(1.03);
  filter: saturate(0.98) contrast(1.08) brightness(0.88);
}

.real-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 8, 0.9));
}

.real-overlay h2 {
  font-size: 1.16rem;
  color: #f4debc;
}

.real-overlay p {
  margin-top: 0.28rem;
  font-size: 0.84rem;
  color: #c4ae88;
}

.panel {
  margin-top: 1.05rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: clamp(0.95rem, 2.2vw, 1.28rem) 0;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 140, 0.18), transparent);
}

.panel-head {
  margin-bottom: 0.74rem;
  display: grid;
  gap: 0.2rem;
}

.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.66rem;
  color: #9cbfb8;
}

.panel-head h2 {
  font-size: clamp(1.32rem, 2.8vw, 1.72rem);
  color: #f3e2c4;
}

.panel-head p {
  color: #c7b293;
}

.stack-form,
.chat-form {
  display: grid;
  gap: 0.65rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #e9d7b9;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(255, 214, 146, 0.14);
  background: rgba(6, 6, 8, 0.5);
  color: #f3dec0;
  padding: 0.7rem 0.82rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7f6e54;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 192, 106, 0.66);
  box-shadow: 0 0 0 3px rgba(242, 171, 84, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 600;
  padding: 0.58rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff5e4;
  background: linear-gradient(140deg, #d58d3e, #a96324);
  box-shadow: 0 8px 22px rgba(208, 137, 66, 0.28);
}

.btn-ghost {
  color: #d9c5a2;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 214, 146, 0.28);
}

.result-card {
  margin-top: 0.75rem;
  min-height: 96px;
  border-radius: 12px;
  border: 1px solid rgba(255, 208, 136, 0.1);
  background: rgba(8, 8, 10, 0.38);
  color: #e8d7ba;
  padding: 0.8rem;
  white-space: pre-wrap;
}

.streak {
  margin-top: 0.58rem;
  font-size: 0.9rem;
  color: #ad9a79;
}

.chat-shell {
  min-height: 210px;
  max-height: 370px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 142, 0.1);
  background: rgba(6, 6, 8, 0.45);
  padding: 0.68rem;
  display: grid;
  gap: 0.55rem;
}

.bubble {
  max-width: 92%;
  border-radius: 13px;
  padding: 0.64rem 0.76rem;
  white-space: pre-wrap;
}

.bubble.user {
  margin-left: auto;
  border: 1px solid rgba(255, 189, 108, 0.36);
  background: rgba(192, 120, 52, 0.24);
  color: #fbe7c9;
}

.bubble.assistant {
  margin-right: auto;
  border: 1px solid rgba(147, 187, 176, 0.32);
  background: rgba(84, 117, 111, 0.24);
  color: #dff1ed;
}

.breath-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 143, 0.1);
  background:
    radial-gradient(circle at 50% 0%, rgba(254, 182, 92, 0.08), transparent 50%),
    rgba(8, 8, 10, 0.5);
  padding: 0.92rem;
}

.timer-text {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
  color: #f4cd95;
}

.phase-text {
  margin-top: 0.22rem;
  color: #9dc1ba;
}

.timer-actions {
  margin-top: 0.74rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.62rem;
}

.price-card {
  border-radius: 14px;
  border: 0;
  background: rgba(8, 8, 10, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 143, 0.08);
  padding: 0.9rem;
}

.price-card h3 {
  color: #f0d7b1;
  font-size: 1.1rem;
}

.price {
  margin: 0.3rem 0 0.45rem;
  color: #f2b569;
  font-family: "Instrument Serif", serif;
  font-size: 1.3rem;
}

.price-card ul {
  margin: 0 0 0.85rem;
  padding-left: 1.05rem;
  color: #c8b18a;
}

.price-card.featured {
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 143, 0.18),
    0 6px 20px rgba(164, 99, 44, 0.09);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 149, 0.45);
  background: rgba(224, 145, 71, 0.2);
  color: #f6c88d;
  font-size: 0.76rem;
  padding: 0.14rem 0.48rem;
  margin-bottom: 0.3rem;
}

.ad-unit {
  display: block;
  width: 100%;
  min-height: 94px;
  margin: 0.54rem 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 204, 132, 0.14);
  background: rgba(8, 8, 10, 0.28);
}

.ad-unit::before {
  content: "Ad Slot (승인 후 활성화)";
  display: block;
  text-align: center;
  color: #b39d7a;
  font-size: 0.88rem;
  padding-top: 33px;
}

.ad-unit.ad-live::before {
  content: "";
  padding-top: 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.52rem;
}

.text-link {
  border-radius: 11px;
  border: 0;
  background: rgba(8, 8, 10, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 145, 0.08);
  padding: 0.72rem;
  text-decoration: none;
  color: #e8d6b7;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: rgba(255, 205, 128, 0.5);
  color: #fff1d7;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 2rem auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 213, 146, 0.16);
  color: #9f8b6a;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 0.76rem;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 1.3rem));
  z-index: 35;
  border-radius: 13px;
  border: 1px solid rgba(255, 210, 136, 0.32);
  background: rgba(5, 5, 6, 0.95);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.56);
  padding: 0.74rem;
  display: grid;
  gap: 0.5rem;
}

.consent-banner[hidden] {
  display: none !important;
}

.consent-banner p {
  color: #dac4a0;
}

.consent-actions {
  display: flex;
  gap: 0.45rem;
}

.info-page {
  width: min(900px, calc(100% - 2rem));
  margin: 1.2rem auto 2.8rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 145, 0.22);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 1.8rem);
}

.info-page h1 {
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  color: #f6e4c7;
  margin-bottom: 0.75rem;
}

.info-page h2 {
  margin-top: 1rem;
  color: #efc488;
  font-size: 1.1rem;
}

.info-page p,
.info-page li {
  color: #d7c3a2;
  line-height: 1.7;
}

.info-page ul {
  padding-left: 1.12rem;
}

.hidden-copy {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px) scale(0.996);
  filter: blur(5px);
  transition:
    max-height 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.45s ease,
    transform 0.5s ease,
    filter 0.5s ease;
}

.veil:hover .hidden-copy,
.veil:focus-within .hidden-copy,
.veil:focus .hidden-copy {
  max-height: 300px;
  opacity: 0.92;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.veil {
  transition: transform 0.35s ease;
}

.veil:hover,
.veil:focus-within {
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0% {
    transform: scale(1.01);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.01);
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, 20px);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, -26px);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -14px);
  }
}

@keyframes grain {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-8px, -8px);
  }
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 310px;
  }

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

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .site-nav a {
    white-space: nowrap;
  }

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

  .bubble {
    max-width: 100%;
  }
}

@media (hover: none) {
  .hidden-copy {
    max-height: 320px;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
