:root {
  --ink: #10121a;
  --muted: #5c6470;
  --accent: #4c74ff;
  --accent-dark: #2841b3;
  --peach: #ffddc8;
  --mint: #c7f2e5;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(12, 16, 28, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 800px at 10% 10%, #f9f4ee 0%, transparent 60%),
    radial-gradient(900px 700px at 90% 0%, #eef4ff 0%, transparent 65%),
    linear-gradient(180deg, #f7f3eb 0%, #f4f7ff 40%, #fdf2f0 100%);
  min-height: 100vh;
}

.page {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 28px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 14px;
}

.brand-title {
  font-family: "Sora", "Outfit", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.lang-switch a {
  text-decoration: none;
  color: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 18, 26, 0.08);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.lang-switch a:hover {
  color: var(--accent-dark);
  border-color: rgba(40, 65, 179, 0.35);
}

.hero {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 32px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 15% 15%, rgba(199, 242, 229, 0.8), transparent 60%),
    radial-gradient(520px 320px at 80% 20%, rgba(255, 221, 200, 0.9), transparent 62%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-title {
  font-family: "Sora", "Outfit", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
}

.cta {
  align-self: flex-start;
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 24px rgba(40, 65, 179, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(40, 65, 179, 0.3);
}

.cta-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.hero-art .screen {
  width: min(90%, 420px);
  background: #f7f8fb;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(16, 18, 26, 0.08), 0 20px 40px rgba(22, 28, 60, 0.18);
}

.screen-header {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 18, 26, 0.15);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.screen-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.7rem;
  color: var(--muted);
  box-shadow: 0 10px 16px rgba(16, 18, 26, 0.08);
}

.flag-row {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.flag {
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(16, 18, 26, 0.12);
}

.hero--portrait {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.hero--portrait .hero-content {
  align-items: center;
}

.hero--portrait .cta {
  align-self: center;
}

.hero--portrait .hero-sub {
  margin: 0 auto;
}

.hero--landscape {
  display: none;
}

.hero--landscape .hero-body {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.note {
  background: rgba(16, 18, 26, 0.04);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.note--accent {
  background: rgba(76, 116, 255, 0.08);
  border: 1px solid rgba(76, 116, 255, 0.2);
}

.font-medium {
  font-weight: 600;
}

@media (min-width: 900px), (min-width: 768px) and (orientation: landscape) {
  .hero--portrait {
    display: none;
  }

  .hero--landscape {
    display: block;
  }
}

.auth-login-btn {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px rgba(40, 65, 179, 0.25);
}

.auth-guest-btn {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(76, 116, 255, 0.12);
  border: 1px solid rgba(40, 65, 179, 0.24);
}

.auth-mount {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-user-shell {
  position: relative;
}

.auth-avatar-btn {
  border: 1px solid rgba(16, 18, 26, 0.12);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent-dark);
  cursor: pointer;
}

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border: 1px solid rgba(16, 18, 26, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 36px rgba(16, 18, 26, 0.18);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 40;
}

.auth-menu-header {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 10px;
}

.auth-menu-link {
  text-decoration: none;
  color: var(--ink);
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.auth-menu-link:hover {
  background: rgba(76, 116, 255, 0.12);
}

.auth-menu-logout {
  color: #b42318;
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
