:root {
  --ink: #0b1f33;
  --ink-soft: #3a5166;
  --paper: #f3f6f9;
  --gold: #c4921a;
  --gold-deep: #9a7110;
  --line: rgba(11, 31, 51, 0.12);
  --accent: var(--gold);
  --accent-soft: rgba(196, 146, 26, 0.28);
  --nav-h: 64px;
  --font-display: "Fraunces", "Apple SD Gothic Neo", serif;
  --font-body: "Manrope", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.theme-round {
  --gold: #2a9d8f;
  --gold-deep: #1f7269;
  --accent: #2a9d8f;
  --accent-soft: rgba(42, 157, 143, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 60% at 0% -10%, #d9e7f4 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, var(--accent-soft) 0%, transparent 50%),
    linear-gradient(180deg, #eef3f7 0%, var(--paper) 40%, #e7edf3 100%);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 249, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .inner,
.site-footer .inner,
.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo .mute {
  color: var(--ink-soft);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav .cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #f7fafc !important;
  font-size: 0.85rem;
}

.nav .cta:hover { background: #16344f; }

.nav .cta.is-muted {
  background: transparent;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero.is-hub {
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11, 31, 51, 0.88) 0%, rgba(18, 52, 78, 0.72) 45%, rgba(28, 70, 96, 0.55) 100%),
    radial-gradient(circle at 70% 40%, var(--accent-soft), transparent 40%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 47px,
      rgba(255, 255, 255, 0.04) 47px,
      rgba(255, 255, 255, 0.04) 48px
    );
  animation: wash 14s ease-in-out infinite alternate;
}

.theme-round .hero-bg {
  background:
    linear-gradient(160deg, rgba(8, 32, 36, 0.9) 0%, rgba(18, 58, 62, 0.75) 50%, rgba(24, 78, 72, 0.55) 100%),
    radial-gradient(circle at 68% 38%, rgba(42, 157, 143, 0.4), transparent 42%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 36px,
      rgba(255, 255, 255, 0.035) 36px,
      rgba(255, 255, 255, 0.035) 37px
    );
}

@keyframes wash {
  from { filter: saturate(1); }
  to { filter: saturate(1.15); }
}

.pulse {
  position: absolute;
  left: 12%;
  bottom: 22%;
  width: min(42vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: beat 1s ease-out infinite;
}

.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pulse::after { inset: 36%; border-color: rgba(255, 255, 255, 0.35); }

.orbit {
  position: absolute;
  right: 10%;
  top: 18%;
  width: min(48vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  animation: spin 22s linear infinite;
}

.orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 24px var(--accent-soft);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes beat {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 var(--accent-soft); }
  70% { transform: scale(1); box-shadow: 0 0 0 28px transparent; }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 transparent; }
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
  color: #f5f8fb;
  max-width: 640px;
}

.hero.is-hub .hero-copy {
  max-width: 720px;
  padding-bottom: 40px;
}

.hero-copy .brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  animation: rise 0.9s ease both;
}

.hero-copy p {
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(245, 248, 251, 0.86);
  max-width: 28em;
  animation: rise 0.9s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 0.9s ease 0.22s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #1a1406;
}

.theme-round .btn-primary { color: #041614; }

.btn-primary:hover { filter: brightness(1.06); color: inherit; }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f5f8fb;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.apps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  animation: rise 0.9s ease 0.28s both;
  max-width: 760px;
}

.app-link {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8fb;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.app-link h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.app-link p {
  margin: 0;
  color: rgba(245, 248, 251, 0.78);
  font-size: 0.95rem;
}

.app-link .status {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.page {
  padding: 56px 0 88px;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lede {
  margin: 0 0 36px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 40em;
}

.section {
  margin-bottom: 40px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.section p,
.section li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section li { margin-bottom: 8px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold-deep);
  font-weight: 700;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 10px 0 4px;
}

.contact-line {
  font-size: 1.05rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

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

.legal th {
  width: 28%;
  background: rgba(11, 31, 51, 0.04);
  font-weight: 700;
}

.legal .tag {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(196, 146, 26, 0.16);
  color: var(--gold-deep);
}

.theme-round .legal .tag {
  background: rgba(42, 157, 143, 0.16);
}

.legal .tag.none {
  background: rgba(11, 31, 51, 0.08);
  color: var(--ink-soft);
}

.legal .warn {
  margin: 12px 0;
  padding: 12px 14px;
  background: rgba(196, 146, 26, 0.12);
  border-radius: 8px;
  color: #6d520d;
  font-size: 0.92rem;
}

.theme-round .legal .warn {
  background: rgba(42, 157, 143, 0.12);
  color: #14544c;
}

.legal .meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .pulse,
  .orbit { opacity: 0.35; }
  .pulse { left: -8%; bottom: 18%; }
  .orbit { right: -12%; top: 12%; }
  .nav .cta { display: none; }
  .apps { grid-template-columns: 1fr; }
}
