:root {
  --bg: #0f1110;
  --surface: #181b1a;
  --surface-strong: #202423;
  --text: #f7f4ef;
  --muted: #b8b0aa;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #e20112;
  --accent-deep: #93000a;
  --gold: #d8b86a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(15, 17, 16, 0.9), rgba(15, 17, 16, 0.62)),
    url("media/login-background.png") center / cover;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.42);
  content: "";
}

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

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

.page-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(15, 17, 16, 0.2), #0f1110 58%);
}

.topbar,
.hero,
.section,
.footer,
.policy-main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  box-shadow: 0 18px 44px rgba(226, 1, 18, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand-text small,
.nav a,
.eyebrow,
.hero-meta,
.copyright {
  color: var(--muted);
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100svh - 5.5rem);
  padding: 2rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  line-height: 0.98;
  font-weight: 900;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 900;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
}

.hero-body,
.feature-card p,
.download-card p,
.support-card p,
.footer p,
.policy-card p,
.policy-card li,
.policy-hero p,
.not-found p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-body {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 18px 42px rgba(226, 1, 18, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-meta li,
.store-badge {
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.phone-frame {
  position: relative;
  width: min(23rem, 82vw);
  padding: 0.75rem;
  background: #070807;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2.4rem;
  box-shadow: var(--shadow);
}

.phone-notch {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  z-index: 2;
  width: 6rem;
  height: 1.35rem;
  background: #070807;
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 1.8rem;
  background: #111;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.screen-overlay {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  left: 1.4rem;
  padding: 1.1rem;
  background: rgba(10, 11, 10, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.screen-overlay span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-overlay strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 2rem;
  font-weight: 900;
}

.screen-overlay p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.7rem;
}

.feature-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.feature-card,
.download-card,
.support-card,
.policy-card {
  background: rgba(24, 27, 26, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.feature-card,
.download-card,
.policy-card {
  padding: 1.35rem;
}

.feature-index {
  display: inline-flex;
  margin-bottom: 2.2rem;
  color: var(--gold);
  font-weight: 900;
}

.store-badge {
  display: inline-flex;
  margin-top: 0.7rem;
  color: var(--gold);
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
}

.support-card p {
  max-width: 46rem;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
}

.footer strong {
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.copyright {
  margin: 0;
  font-size: 0.86rem;
}

.policy-page::before {
  opacity: 0.2;
}

.policy-shell {
  background: linear-gradient(180deg, rgba(15, 17, 16, 0.86), #0f1110);
}

.policy-main {
  max-width: 840px;
  padding: 3rem 0 5rem;
}

.policy-hero {
  margin-bottom: 1.2rem;
}

.policy-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.policy-card {
  margin-top: 1rem;
}

.policy-card h2 {
  font-size: 1.25rem;
}

.policy-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.support-link {
  color: var(--gold);
  font-weight: 800;
}

.not-found {
  display: grid;
  place-items: center;
  width: min(calc(100% - 2rem), 560px);
  min-height: 100vh;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 820px) {
  .topbar,
  .footer,
  .support-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-visual {
    justify-content: flex-start;
  }

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