/* =========================================
   Mywish Homepage — shared styles
   ========================================= */

:root {
  --bg: #0b0b14;
  --bg-soft: #141428;
  --surface: #1a1a2e;
  --surface-2: #222244;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-muted: #a0a0b8;
  --text-dim: #6b6b80;
  --brand: #7b5cff;
  --brand-2: #5ad1ff;
  --brand-grad: linear-gradient(135deg, #7b5cff 0%, #5ad1ff 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(123, 92, 255, 0.15) 0%, rgba(90, 209, 255, 0.15) 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(123, 92, 255, 0.25);
  --max-w: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(11, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(123, 92, 255, 0.4);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(123, 92, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 209, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-grad-soft);
  border: 1px solid rgba(123, 92, 255, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #c5b4ff;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 12px var(--brand-2);
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero h1 .hero-line-1 {
  white-space: nowrap;
}

.hero h1 .accent {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  word-break: keep-all;
  white-space: nowrap;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(123, 92, 255, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero visual (phone mockup) ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}

.phone-frame {
  position: relative;
  width: 300px;
  border-radius: 44px;
  padding: 14px;
  background: linear-gradient(155deg, #1a1a2e 0%, #0b0b14 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px rgba(123, 92, 255, 0.12);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 30% 30%, rgba(123, 92, 255, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(90, 209, 255, 0.4) 0%, transparent 55%);
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 18.5;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen::before {
  content: "";
  position: absolute;
  bottom: 3%;
  left: 4%;
  width: 92%;
  height: 7%;
  background: #ffffff;
  z-index: 2;
  pointer-events: none;
}

.fake-done-btn {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 5%;
  background: #9c7050;
  color: #ffffff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-wave {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
  align-items: center;
  height: 38px;
  padding: 6px 16px;
  background: #ffffff;
  border-radius: 8px;
  z-index: 2;
}

.hero-wave span {
  width: 3px;
  border-radius: 2px;
  background: #a87050;
  animation: wave 1.3s ease-in-out infinite;
  transform-origin: center;
}

.hero-wave span:nth-child(1)  { height: 28%; animation-delay: 0.00s; }
.hero-wave span:nth-child(2)  { height: 62%; animation-delay: 0.08s; }
.hero-wave span:nth-child(3)  { height: 44%; animation-delay: 0.16s; }
.hero-wave span:nth-child(4)  { height: 85%; animation-delay: 0.24s; }
.hero-wave span:nth-child(5)  { height: 52%; animation-delay: 0.32s; }
.hero-wave span:nth-child(6)  { height: 95%; animation-delay: 0.40s; }
.hero-wave span:nth-child(7)  { height: 60%; animation-delay: 0.48s; }
.hero-wave span:nth-child(8)  { height: 80%; animation-delay: 0.56s; }
.hero-wave span:nth-child(9)  { height: 40%; animation-delay: 0.64s; }
.hero-wave span:nth-child(10) { height: 70%; animation-delay: 0.72s; }
.hero-wave span:nth-child(11) { height: 32%; animation-delay: 0.80s; }

@keyframes wave {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ===== Sections ===== */
section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto;
  font-size: 16px;
  word-break: keep-all;
}

/* ===== Features grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 92, 255, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 56px;
}

.step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Security section ===== */
.security {
  background: linear-gradient(180deg, transparent 0%, rgba(123, 92, 255, 0.04) 50%, transparent 100%);
}

.security-grid {
  max-width: 980px;
  margin: 0 auto;
}

.security-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.security-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.security-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.security-list h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.security-list p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== CTA band ===== */
.cta-band {
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  background: var(--brand-grad);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.cta-inner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  position: relative;
}

.cta-inner .btn {
  background: #fff;
  color: #1a1a2e;
  position: relative;
}

.cta-inner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================
   Legal pages (terms / privacy)
   ========================================= */
.legal {
  padding: 64px 0 96px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-header .legal-meta {
  color: var(--text-dim);
  font-size: 14px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
  margin: 8px 0 12px 20px;
  display: grid;
  gap: 6px;
}

.legal-content ol {
  margin-left: 22px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-content th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.legal-content tr:last-child td {
  border-bottom: none;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc ol {
  list-style: decimal;
  margin-left: 20px;
  columns: 2;
  column-gap: 24px;
  font-size: 14px;
}

.toc a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--brand-2);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero {
    padding: 64px 0 80px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero h1 .hero-line-1 {
    white-space: normal;
  }
  .hero-sub {
    white-space: normal;
  }
  .hero-visual {
    order: -1;
    min-height: auto;
  }
  .phone-frame {
    width: 240px;
  }
  .hero-wave {
    bottom: 20px;
    height: 56px;
    padding: 0 22px;
    gap: 4px;
  }
  .security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 64px 0;
  }
  .toc ol {
    columns: 1;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cta-inner {
    padding: 48px 20px;
  }
}
