:root {
  color-scheme: dark;
  --bg: #07060f;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #2dd4bf;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body {
  min-height: 100%;
}

main {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

h2 {
  margin: 48px 0 0;
  font-size: 20px;
  font-weight: 500;
}

.en {
  margin-left: 10px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lead {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.6;
}

.points,
.steps {
  margin: 36px 0 0;
  padding: 0;
}

.points {
  list-style: none;
}

.points li,
.steps li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.points li:last-child,
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps {
  padding-left: 1.2em;
}

.steps li::marker {
  color: var(--accent);
}

a.button {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.note,
.hint,
.brand {
  color: var(--muted);
  font-size: 15px;
}

.note {
  margin: 14px 0 0;
}

.hint {
  margin: 18px 0 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: #99f6e4;
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.more {
  display: inline-block;
  margin-top: 36px;
  font-size: 18px;
}

.brand {
  margin: 0 0 18px;
}

.brand a {
  color: var(--muted);
}

.cards {
  margin-top: 28px;
}

.card {
  display: block;
  margin-top: 18px;
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--text);
}

.card h2,
.card p {
  margin-right: 16px;
  margin-left: 16px;
}

.card h2 {
  margin-top: 14px;
}

.files {
  margin: 4px 0 0;
}

.files dt {
  margin-top: 20px;
  color: var(--accent);
  font-family: Consolas, "Segoe UI", sans-serif;
  font-size: 15px;
}

.files dd {
  margin: 4px 0 0;
}

.card p {
  margin-top: 4px;
  margin-bottom: 16px;
  color: var(--muted);
}

.preview {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: #07060f;
}

.preview i {
  position: absolute;
  display: block;
}

.blob-a,
.blob-b,
.blob-c,
.orb-a,
.orb-b,
.orb-c {
  position: absolute;
}

.blob-a,
.blob-b,
.blob-c {
  inset: 0;
}

.blob-a {
  background: radial-gradient(ellipse at 18% 74%, rgba(45, 212, 191, 0.72) 0%, rgba(45, 212, 191, 0) 52%);
}

.blob-b {
  background: radial-gradient(ellipse at 80% 20%, rgba(232, 121, 249, 0.55) 0%, rgba(232, 121, 249, 0) 50%);
}

.blob-c {
  background: radial-gradient(ellipse at 62% 82%, rgba(251, 191, 36, 0.42) 0%, rgba(251, 191, 36, 0) 46%);
}

.orb-a,
.orb-b,
.orb-c {
  border-radius: 50%;
}

.orb-a {
  width: 46%;
  height: 70%;
  left: -6%;
  top: 8%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.4) 0%, rgba(45, 212, 191, 0) 68%);
}

.orb-b {
  width: 40%;
  height: 64%;
  right: -4%;
  top: -8%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0) 70%);
}

.orb-c {
  width: 42%;
  height: 58%;
  left: 28%;
  bottom: -16%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(251, 191, 36, 0) 68%);
}

.preview-clock .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 82%, rgba(45, 212, 191, 0.2), rgba(45, 212, 191, 0) 58%);
}

.mini-clock {
  position: absolute;
  right: 8%;
  bottom: 14%;
  text-align: right;
  color: rgba(255, 255, 255, 0.94);
}

.mini-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.mini-time {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.preview-grid {
  background-color: #07060f;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px);
}

.preview-waves {
  background: linear-gradient(#e6dbfa, #d0f0ff 46%, #29abe2 46%, #0071bc);
}

.preview-waves .crest {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 18px;
  border-top: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.preview-waves .crest.a {
  bottom: 28%;
}

.preview-waves .crest.b {
  bottom: 18%;
  opacity: 0.55;
}

.preview-leaves {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(196, 92, 38, 0.35), rgba(7, 6, 15, 0) 58%),
    #07060f;
}

.preview-leaves i {
  position: absolute;
  width: 18px;
  height: 11px;
  border-radius: 0 80% 0 80%;
}

.preview-leaves .a {
  left: 22%;
  top: 28%;
  background: #c45c26;
  transform: rotate(-24deg);
}

.preview-leaves .b {
  left: 48%;
  top: 46%;
  background: #d4a054;
  transform: rotate(18deg);
}

.preview-leaves .c {
  left: 68%;
  top: 62%;
  background: #6f8f4a;
  transform: rotate(-8deg);
}

.preview-snake {
  background: #0a121f;
}

.preview-snake i {
  position: absolute;
  top: 42%;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.preview-snake .body {
  left: 18%;
  background: #1f7a86;
}

.preview-snake .mid {
  left: 32%;
  background: #3fbfa8;
}

.preview-snake .head {
  left: 46%;
  background: #8ef0d8;
}

.preview-snake .food {
  left: 68%;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-radius: 50%;
  background: #ffd27a;
}

.preview-fish {
  background: linear-gradient(#16384a, #0c1e26);
}

.preview-fish .weed {
  position: absolute;
  bottom: 0;
  width: 5px;
  border-radius: 5px;
  background: rgba(74, 144, 120, 0.7);
}

.preview-fish .weed.a {
  left: 22%;
  height: 46%;
}

.preview-fish .weed.b {
  left: 74%;
  height: 34%;
}

.preview-fish .fish {
  position: absolute;
  height: 16px;
  border-radius: 50%;
}

.preview-fish .fish.a {
  left: 28%;
  top: 36%;
  width: 36px;
  background: #f4a261;
}

.preview-fish .fish.b {
  left: 52%;
  top: 58%;
  width: 28px;
  background: #8ecae6;
}

.preview-glow {
  background: #000;
}

.preview-glow i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.preview-glow .a {
  left: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.85) 0%, rgba(45, 212, 191, 0) 70%);
}

.preview-glow .b {
  left: 34%;
  top: 18%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.8) 0%, rgba(244, 114, 182, 0) 70%);
}

.preview-glow .c {
  left: 60%;
  top: 10%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.75) 0%, rgba(251, 191, 36, 0) 70%);
}

.preview-glow .d {
  left: 16%;
  top: 52%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.8) 0%, rgba(56, 189, 248, 0) 70%);
}

.preview-glow .e {
  left: 42%;
  top: 58%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.8) 0%, rgba(167, 139, 250, 0) 70%);
}

.preview-glow .f {
  left: 68%;
  top: 48%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.75) 0%, rgba(52, 211, 153, 0) 70%);
}

.dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
}

.dot.lg {
  width: 3px;
  height: 3px;
}

footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 14px;
}

body.home {
  min-height: 100vh;
  background: #07060f;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  overflow: hidden;
  padding: 12vh 8vw 11vh;
}

.hero-wash,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-wash .wash,
.hero-wash .orb {
  position: absolute;
}

.hero-wash .wash {
  inset: 0;
}

.hero-wash .wash.a {
  background: radial-gradient(ellipse at 16% 72%, rgba(45, 212, 191, 0.72) 0%, rgba(45, 212, 191, 0) 54%);
}

.hero-wash .wash.b {
  background: radial-gradient(ellipse at 84% 16%, rgba(232, 121, 249, 0.62) 0%, rgba(129, 140, 248, 0) 50%);
}

.hero-wash .wash.c {
  background: radial-gradient(ellipse at 58% 86%, rgba(251, 191, 36, 0.42) 0%, rgba(244, 114, 182, 0) 48%);
}

.hero-wash .orb {
  border-radius: 50%;
}

.hero-wash .orb.a {
  width: 46vw;
  height: 46vw;
  left: -8vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.42) 0%, rgba(56, 189, 248, 0) 68%);
}

.hero-wash .orb.b {
  width: 38vw;
  height: 38vw;
  right: -6vw;
  top: -10vh;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(244, 114, 182, 0) 70%);
}

.hero-wash .orb.c {
  width: 42vw;
  height: 34vw;
  left: 28vw;
  bottom: -12vh;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.32) 0%, rgba(45, 212, 191, 0) 68%);
}

.hero-shade {
  background:
    linear-gradient(to top, #07060f 0%, rgba(7, 6, 15, 0.72) 28%, rgba(7, 6, 15, 0.18) 58%, rgba(7, 6, 15, 0.42) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

body.home h1 {
  margin: 0;
  font-size: clamp(80px, 12vw, 148px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.14em;
}

body.home .lead {
  max-width: 14em;
  margin: 32px 0 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 36px;
  margin-top: 44px;
}

body.home a.button {
  margin-top: 0;
  padding: 14px 28px;
  border-color: #2dd4bf;
  background: #2dd4bf;
  color: #042f2e;
  letter-spacing: 0.08em;
}

body.home a.button:hover,
body.home a.button:focus-visible {
  background: #99f6e4;
  color: #042f2e;
}

.ghost {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  letter-spacing: 0.18em;
}

.facts {
  padding: 28px 8vw 12px;
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 16px;
  line-height: 1.6;
}

body.home footer {
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 0 8vw 48px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 100svh;
    padding: 18vh 24px 56px;
  }

  .facts {
    padding: 12px 24px 0;
  }

  .facts ul {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  body.home footer {
    padding: 0 24px 40px;
  }
}

@media (max-width: 560px) {
  body.home h1 {
    letter-spacing: 0.08em;
  }

  .facts ul {
    grid-template-columns: 1fr;
  }
}

html[data-i18n-pending="1"] body {
  visibility: hidden;
}

html[lang="en"] body.home h1,
html[lang="ko"] body.home h1 {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0.02em;
}

html[lang="en"] body.home .lead,
html[lang="ja"] body.home .lead,
html[lang="ko"] body.home .lead {
  max-width: 22em;
}

.bar {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn,
.lang-btn,
.lang-menu button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.icon-btn svg {
  display: block;
}

.icon-btn .moon {
  display: none;
}

html[data-theme="light"] .icon-btn .sun {
  display: none;
}

html[data-theme="light"] .icon-btn .moon {
  display: block;
}

.lang {
  position: relative;
}

.lang-btn {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 128px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--bg);
}

.lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button:focus-visible,
.icon-btn:hover,
.lang-btn:hover {
  color: var(--accent);
}

.lang-menu button[aria-current="true"] {
  color: var(--accent);
}

.icon-btn:focus-visible,
.lang-btn:focus-visible,
.lang-menu button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --text: rgba(28, 24, 20, 0.92);
  --muted: rgba(28, 24, 20, 0.62);
  --accent: #0f766e;
  --line: rgba(28, 24, 20, 0.14);
}

html[data-theme="light"] body.home {
  background: #f4f1ea;
}

html[data-theme="light"] .hero-shade {
  background: linear-gradient(to top, #f4f1ea 0%, rgba(244, 241, 234, 0.84) 34%, rgba(244, 241, 234, 0.16) 62%, rgba(244, 241, 234, 0.4) 100%);
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .ghost {
  color: rgba(28, 24, 20, 0.72);
}

html[data-theme="light"] .facts li {
  border-top-color: rgba(28, 24, 20, 0.14);
}

@media (max-width: 560px) {
  .bar {
    top: 14px;
    right: 14px;
  }
}
