/* TalkCos marketing landing — Night tokens + HomeArtwork, not App home clone */
:root {
  color-scheme: dark;
  --home-bg: #0d0618;
  --home-glow: #4b2476;
  --surface: #241d38;
  --stroke: #3a3054;
  --ink: #f4f1fa;
  --ink-sub: #a79fc4;
  --ink-dim: #6e6590;
  --brand-neon: #d9c8ff;
  --tone-violet: #7b5cc9;
  --voice-amber: #f2c14e;
  --glass-rim: #8e7bd8;
  --shell: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans",
    "Yu Gothic UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  background: var(--home-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 72% 18%, rgba(75, 36, 118, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 12% 70%, rgba(242, 193, 78, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #14101f 0%, #0d0618 45%, #120a1c 100%);
}

a {
  color: var(--brand-neon);
  text-decoration: none;
}

a:hover {
  color: var(--voice-amber);
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(13, 6, 24, 0.78);
  border-bottom: 1px solid rgba(58, 48, 84, 0.45);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo-link {
  line-height: 0;
}

.logo-link img {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(183, 138, 255, 0.35));
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  font-size: 0.84rem;
}

.nav-links a {
  color: var(--ink-sub);
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(36, 29, 56, 0.75);
  border: 1px solid rgba(142, 123, 216, 0.45);
}

.lang-btn {
  appearance: none;
  margin: 0;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-sub);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: rgba(123, 92, 201, 0.45);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(217, 200, 255, 0.25);
}

/* —— Hero: brand + one headline + CTA + dominant art —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 56px);
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: center;
}

.hero-logo {
  width: min(220px, 56vw);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(183, 138, 255, 0.5));
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy h1 {
  margin: 22px 0 0;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  animation: rise 0.75s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: 1.05rem;
  color: var(--ink-sub);
  animation: rise 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: rise 0.75s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-voice {
  color: #2a2108;
  background: linear-gradient(180deg, #f5d06a 0%, var(--voice-amber) 100%);
  box-shadow: 0 8px 24px rgba(242, 193, 78, 0.28);
}

.btn-voice:hover {
  filter: brightness(1.05);
  color: #2a2108;
}

.btn-ghost {
  color: var(--ink);
  background: rgba(36, 29, 56, 0.55);
  border-color: rgba(142, 123, 216, 0.55);
}

.btn-ghost:hover {
  color: var(--brand-neon);
  border-color: var(--glass-rim);
}

.hero-art {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rise 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-mascot {
  width: min(420px, 92%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 48px rgba(123, 92, 201, 0.45));
  animation: floatY 6s ease-in-out infinite;
}

.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floater {
  position: absolute;
  width: 108px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}

.floater.f1 {
  top: 8%;
  left: 2%;
  animation: floatY 5.2s 0.2s ease-in-out infinite;
}

.floater.f2 {
  top: 18%;
  right: 0;
  width: 118px;
  animation: floatY 5.8s 0.5s ease-in-out infinite;
}

.floater.f3 {
  bottom: 10%;
  left: 12%;
  width: 100px;
  animation: floatY 6.4s 0.1s ease-in-out infinite;
}

/* —— Sections —— */
.band {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.band-alt {
  background: rgba(20, 16, 31, 0.55);
  border-block: 1px solid rgba(58, 48, 84, 0.4);
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 32px;
  max-width: 48ch;
  color: var(--ink-sub);
}

.rail {
  display: grid;
  gap: 14px;
}

.rail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(36, 29, 56, 0.55);
  border: 1px solid rgba(58, 48, 84, 0.65);
}

.rail-item img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  justify-self: center;
}

.rail-item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rail-item p {
  margin: 0;
  color: var(--ink-sub);
  font-size: 0.95rem;
}

.voice-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: flow;
}

.flow li {
  position: relative;
  padding: 16px 18px 16px 56px;
  border-radius: 14px;
  background: rgba(36, 29, 56, 0.5);
  border: 1px solid var(--stroke);
  color: var(--ink-sub);
}

.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #2a2108;
  background: var(--voice-amber);
}

.flow strong {
  color: var(--ink);
}

.voice-panel {
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(58, 36, 84, 0.9) 0%, rgba(28, 18, 43, 0.95) 100%);
  border: 1px solid rgba(102, 66, 133, 0.55);
  text-align: center;
}

.voice-panel img {
  width: 140px;
  height: auto;
  margin: 0 auto 16px;
}

.voice-panel p {
  margin: 0;
  text-align: left;
  color: var(--ink-sub);
  font-size: 0.94rem;
}

.voice-panel strong {
  color: var(--voice-amber);
}

.privacy-strip {
  display: grid;
  gap: 12px;
}

.privacy-strip p {
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(36, 29, 56, 0.55);
  border: 1px solid var(--stroke);
  color: var(--ink-sub);
}

.privacy-strip strong {
  color: var(--ink);
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(36, 29, 56, 0.7);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}

.chip:hover {
  border-color: var(--glass-rim);
  color: var(--brand-neon);
}

.foot {
  position: relative;
  z-index: 1;
  padding: 36px 0 48px;
  border-top: 1px solid var(--stroke);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot-inner img {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.foot-inner p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.86rem;
}

.foot-inner a {
  color: var(--ink-sub);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 860px) {
  .hero-layout,
  .voice-split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-art {
    min-height: 300px;
    order: -1;
  }

  .hero-mascot {
    width: min(300px, 82%);
  }

  .floater {
    width: 84px;
  }

  .floater.f2 {
    width: 92px;
  }

  .floater.f3 {
    width: 78px;
  }

  .rail-item {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 14px 16px;
  }

  .rail-item img {
    width: 88px;
    height: 66px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 32px);
  }

  .topbar-right {
    gap: 8px 10px;
  }

  .nav-links {
    font-size: 0.74rem;
    gap: 4px 10px;
  }

  .lang-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.76rem;
  }

  .logo-link img {
    width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
  }
}
