/* HomeQuest promo — Kakao service-page inspired layout */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #191f28;
  --text-muted: #6b7684;
  --accent: #4a7dd8;
  --accent-soft: #e8f0ff;
  --accent-deep: #1e3a5f;
  --hero-gradient-top: #0a4a8c;
  --hero-gradient-bottom: #021a33;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

#main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem max(1rem, env(safe-area-inset-left)) 0.875rem max(1rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.header-cta {
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .logo {
    align-self: flex-start;
  }

  .header-cta {
    width: 100%;
    flex-direction: column;
    justify-content: stretch;
    gap: 0.5rem;
  }

  .header-cta .btn {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .header-cta .btn-playstore-header {
    font-size: 0.9rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.2s,
    transform 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #3d6bc4;
  text-decoration: none;
  color: #fff;
}

.btn-hero {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  background: #fff;
  color: var(--accent-deep);
}

.btn-hero:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(165deg, var(--hero-gradient-top) 0%, var(--hero-gradient-bottom) 100%);
  color: #fff;
  padding: 3.5rem max(1rem, env(safe-area-inset-left)) 4rem max(1rem, env(safe-area-inset-right));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(100, 180, 255, 0.15), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
  }
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 36ch;
}

.hero-copy {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem 1rem;
  max-width: 100%;
}

.btn-playstore-hero {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-playstore-hero:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  text-decoration: none;
}

.btn-playstore-hero:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-height: min(420px, 55vw);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 7vw, 1.95rem);
    word-break: keep-all;
  }

  .hero-lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .btn-hero,
  .btn-playstore-hero {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  .hero-visual img {
    max-width: 100%;
    width: min(100%, 320px);
    max-height: none;
    height: auto;
  }
}

/* Sections */
.section {
  padding: 4rem max(1rem, env(safe-area-inset-left)) 4rem max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
  max-width: 100%;
}

.section-alt {
  background: var(--surface);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

/* Feature rows */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
}

.feature:first-of-type {
  margin-top: 2.5rem;
}

@media (min-width: 880px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .feature-reverse .feature-text {
    order: 2;
  }

  .feature-reverse .feature-visual {
    order: 1;
  }
}

.feature-text h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-text p {
  max-width: 100%;
}

/* Phone mockup */
.phone {
  position: relative;
  margin: 0 auto;
  max-width: 280px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2f3a 0%, #1a1d24 100%);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  background: #1a1d24;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

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

.section-alt .phone {
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
}

.section-alt .phone-notch {
  background: #94a3b8;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem max(1rem, env(safe-area-inset-left)) 4rem max(1rem, env(safe-area-inset-right));
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
  max-width: 100%;
  box-sizing: border-box;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 720px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.25rem;
    box-sizing: border-box;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

/* Google Play — 다크 바탕에 맞춘 보조 버튼 */
.btn-playstore {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #1a1a1a;
}

.btn-playstore:hover {
  background: #333;
  border-color: #333;
  color: #fff;
  text-decoration: none;
}

.btn-playstore:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  padding: 2.5rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--surface);
  max-width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 720px) {
  .footer-block {
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-contact-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.footer-email:hover {
  color: var(--accent);
}

.btn-playstore-footer {
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
