:root {
  color-scheme: light;
  --surface: #fff;
  --subtle: #f3f6fc;
  --ink: #101a32;
  --muted: #4f5c74;
  --line: #dbe3f0;
  --accent: #234bd3;
  --icon-bg: #eaf0ff;
  --focus: #527dff;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --surface: #10192b;
    --subtle: #0b1323;
    --ink: #eff4ff;
    --muted: #b4c2d9;
    --line: #293854;
    --accent: #9ab5ff;
    --icon-bg: #1a2b50;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #10192b;
  --subtle: #0b1323;
  --ink: #eff4ff;
  --muted: #b4c2d9;
  --line: #293854;
  --accent: #9ab5ff;
  --icon-bg: #1a2b50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 8px; left: 8px; padding: .5rem 1rem; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); font-weight: 850; font-size: 1rem; letter-spacing: .055em; text-decoration: none; }
.wordmark img { display: block; }
nav, .controls, .footer-links { display: flex; align-items: center; gap: 22px; }
nav a, .footer-links a, .language { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 650; }
nav a:hover, .footer-links a:hover, .language:hover { text-decoration: underline; }
nav a[aria-current] { color: var(--accent); }
.controls { gap: 7px; }
.language, .theme { min-height: 44px; min-width: 44px; display: grid; place-items: center; padding-inline: 8px; }
.theme { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme[hidden] { display: none; }
.theme[aria-pressed="true"] { background: var(--icon-bg); color: var(--accent); }
.theme svg, .card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero { overflow: hidden; background: radial-gradient(ellipse at 78% 42%, #182b60 0%, #0c1836 43%, #080f22 76%); color: #fff; }
.hero-inner { position: relative; display: grid; align-items: center; grid-template-columns: 1.25fr 1fr; min-height: 550px; padding-block: 75px; }
.hero-copy { position: relative; z-index: 1; }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: #c2d3ff; font-size: .75rem; font-weight: 750; letter-spacing: .22em; }
.hero-brand span { width: 19px; height: 2px; background: #7d9eff; }
.hero h1 { font-size: clamp(2.35rem, 5.35vw, 4.75rem); font-weight: 780; letter-spacing: -.065em; }
.hero p { margin-top: 24px; color: #cbd7ee; font-size: clamp(1rem, 1.55vw, 1.15rem); word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 47px; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background-color 160ms ease; }
.primary { background: #3158e7; color: #fff; }
.primary:hover { background: #2546c5; }
.outline { border-color: #607493; color: #eef4ff; }
.outline:hover { background: #243657; }
.art { position: relative; aspect-ratio: 1; margin: -24px -13% -24px -13%; pointer-events: none; background: radial-gradient(circle at 55% 49%, #4877ff42, transparent 53%); }
.art::before { content: ""; position: absolute; inset: 2%; background-image: radial-gradient(circle, #a2bfff7a 1px, transparent 1px); background-size: 27px 27px; mask-image: radial-gradient(ellipse, #000, transparent 70%); }
.planet { position: absolute; inset: 23% 22% 21% 22%; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #d9edff 0%, #7eb6ff 9%, #446ff9 24%, #243fa9 43%, #121d53 64%, #0b1029 81%); box-shadow: inset -10px -12px 36px #7995ff40, 0 0 54px #446cff55; }
.orbit { position: absolute; inset: 31% 3%; border: 1px solid #93b3ff94; border-radius: 50%; transform: rotate(-29deg); }
.orbit-a { z-index: 1; border-top-color: #93b3ff26; box-shadow: 0 9px 21px -15px #c1d8ff; }
.orbit-b { inset: 25% 10%; transform: rotate(35deg); opacity: .4; }
.orbit-c { inset: 20% 9%; transform: rotate(-29deg); opacity: .27; }
.satellite, .spark { position: absolute; z-index: 2; border-radius: 50%; background: #cfe3ff; box-shadow: 0 0 18px 4px #6496ff; }
.satellite { width: 11px; height: 11px; top: 29%; right: 15%; animation: glow 5s ease-in-out infinite alternate; }
.spark { width: 5px; height: 5px; bottom: 28%; left: 20%; }
@keyframes glow { to { box-shadow: 0 0 23px 7px #6496ff; } }
.section { padding-block: 78px; }
.section-label { margin-bottom: 10px; color: var(--accent); font-weight: 750; font-size: .8125rem; }
.section h2 { font-size: clamp(1.8rem, 3.7vw, 3.12rem); word-break: keep-all; }
.section-intro { color: var(--muted); margin-top: 12px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-copy { color: var(--muted); }
.about-copy p + p { margin-top: 12px; }
.services { background: var(--subtle); border-block: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow-wrap: anywhere; }
.card-icon, .empty-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: var(--icon-bg); color: var(--accent); }
.card h3 { margin-top: 18px; font-size: 1.1rem; }
.card p { margin-top: 9px; color: var(--muted); font-size: .91rem; }
.app-card img { border-radius: 10px; object-fit: contain; }
.card .app-status { color: var(--accent); font-weight: 700; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: .875rem; }
.empty { display: flex; align-items: center; gap: 16px; border: 1px dashed var(--line); padding: 20px; margin-top: 24px; border-radius: 13px; color: var(--muted); background: var(--subtle); }
.empty-icon { flex: 0 0 43px; }
.contact { color: #fff; background: #101f40; }
.contact .section-label, .contact a:not(.button) { color: #bbceff; }
.contact-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.contact p:not(.section-label) { margin-top: 12px; color: #d4def2; }
.contact .button { margin-top: 22px; }
address { display: grid; gap: 7px; padding: 22px; border: 1px solid #526487; border-radius: 12px; font-style: normal; color: #d4def2; overflow-wrap: anywhere; }
address strong { font-size: 1.125rem; color: #fff; }
address a { width: fit-content; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; }
.site-footer small { color: var(--muted); }
.document { min-height: 65vh; max-width: 760px; padding-block: 68px; overflow-wrap: anywhere; }
.document h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 26px; }
.document h2 { font-size: 1.25rem; margin-bottom: 8px; }
.document p { color: var(--muted); margin-bottom: 14px; }
.document section { margin-bottom: 26px; }

@media (max-width: 870px) {
  .shell { width: calc(100% - 48px); }
  nav { gap: 12px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 12px; }
  .hero-inner { min-height: 480px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-top: 8px; gap: 0 8px; }
  nav { order: 3; flex: 1 0 100%; min-height: 44px; justify-content: space-between; gap: 6px; }
  nav a { padding-block: 10px; white-space: nowrap; }
  .hero-inner { display: block; min-height: auto; padding-block: 48px 0; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); }
  .art { margin: -16px auto -35px; width: min(100%, 340px); }
  .section { padding-block: 48px; }
  .about, .contact-inner { grid-template-columns: 1fr; gap: 22px; }
  .card { padding: 15px; }
  .card-grid { gap: 9px; }
  .footer-inner { justify-content: flex-start; flex-wrap: wrap; padding-block: 18px; gap: 12px 20px; }
}
@media (max-width: 350px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .satellite { animation: none; }
  .button { transition: none; }
}
