:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --fg: #f4f1ea;
  --muted: #a9a8b6;
  --line: rgba(244, 241, 234, 0.16);
  --accent: #b8a8ff;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(60rem 40rem at 8% -10%, rgba(124, 92, 255, 0.34), transparent 70%),
    radial-gradient(50rem 36rem at 105% 105%, rgba(45, 212, 191, 0.22), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/grain.svg");
  opacity: 0.09;
  pointer-events: none;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header.wrap { padding-top: 4rem; }

main { flex: 1; display: flex; flex-direction: column; }

.hero { padding-bottom: 3rem; }

.site-header ~ main .hero { padding-bottom: 2rem; }

.tagline {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.25rem;
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
}

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

.site-footer { padding: 1.5rem 0 2rem; color: var(--muted); font-size: 0.875rem; }

.site-footer p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.wrap.products { padding-top: 3rem; padding-bottom: 4rem; }

.products h2 {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.products h2:lang(en) { text-transform: uppercase; }

.wrap.reach { padding-top: 1rem; padding-bottom: 1rem; }

.reach .about { margin-bottom: 1.25rem; }

.reach-stage {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(150deg, oklch(0.3 0.07 245), oklch(0.17 0.05 245));
}

.reach-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 2.5rem rgba(0, 0, 0, 0.45);
}

.reach-window {
  overflow: hidden;
  border-radius: 0.5rem;
  background: #16161d;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.reach-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 1.25rem;
  padding: 0 0.5rem;
  background: #1d1d27;
  border-bottom: 1px solid #2c2c3a;
}

.reach-bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; }
.reach-bar i:nth-child(2) { background: #febc2e; }
.reach-bar i:nth-child(3) { background: #28c840; }
.reach-bar b { flex: 1; height: 8px; margin: 0 2rem 0 1rem; border-radius: 4px; background: #2a2a38; }

.reach-window img { display: block; width: 100%; height: auto; }

.thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.thumbs li {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.thumbs li::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 2.5rem rgba(0, 0, 0, 0.45);
}

.thumbs img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .thumbs li:hover img { transform: scale(1.03); }
}

.center main { flex: none; margin-bottom: auto; }

.center > main:first-child { margin-top: auto; }

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.d1 { animation-delay: 0.1s; }
.rise.d2 { animation-delay: 0.25s; }
.rise.d3 { animation-delay: 0.4s; }
.rise.d4 { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .thumbs img { transition: none; }
  .thumbs li:hover img { transform: none; }
}

@media (min-width: 40rem) {
  .thumbs { gap: 1rem; grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 48rem) {
  .wrap { padding: 0 2.5rem; }
  .wrap.reach { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .reach-stage { padding: 2.5rem; }
  .reach-window { border-radius: 0.875rem; }
  .reach-bar { height: 1.75rem; gap: 6px; padding: 0 0.6875rem; }
  .reach-bar i { width: 9px; height: 9px; }
  .reach-bar b { height: 14px; margin: 0 3.75rem 0 2.5rem; border-radius: 7px; }
}

@media (min-width: 64rem) {
  .site-header.wrap { padding-top: 7rem; }
}

.site-header.wrap { position: relative; }

.lang-switch {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch:hover { color: var(--fg); }

@media (min-width: 48rem) {
  .lang-switch { right: 2.5rem; }
}
