﻿:root {
  --bg: radial-gradient(circle at 14% 10%, #153a8d 0%, transparent 34%),
    radial-gradient(circle at 84% 18%, #1072a4 0%, transparent 32%),
    linear-gradient(130deg, #050d24 0%, #0b1b43 48%, #13285f 100%);
  --text: #ecf4ff;
  --text-soft: rgba(226, 236, 255, 0.78);
  --accent: #8cc6ff;
  --accent-strong: #58b0ff;
  --surface-soft: rgba(255, 255, 255, 0.08);
  --btn-dark: rgba(16, 45, 111, 0.52);
  --btn-dark-hover: rgba(32, 68, 148, 0.68);
}

[data-theme="light"] {
  --bg: radial-gradient(circle at 14% 8%, #dbe7f7 0%, transparent 34%),
    radial-gradient(circle at 86% 20%, #d8eef7 0%, transparent 34%),
    linear-gradient(128deg, #fffdf8 0%, #f8f4ea 54%, #f0e9dc 100%);
  --text: #13264b;
  --text-soft: rgba(19, 38, 75, 0.72);
  --accent: #315da8;
  --accent-strong: #2b4f8d;
  --surface-soft: rgba(255, 255, 255, 0.42);
  --btn-dark: rgba(255, 255, 255, 0.52);
  --btn-dark-hover: rgba(255, 255, 255, 0.76);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.welcome-shell {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

.tech-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(132, 177, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(132, 177, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 86%);
  animation: gridDrift 22s linear infinite;
}

.tech-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.45;
}

.tech-glow-a {
  width: 420px;
  height: 420px;
  left: -80px;
  top: 60px;
  background: rgba(112, 179, 255, 0.3);
  animation: floatA 10s ease-in-out infinite;
}

.tech-glow-b {
  width: 360px;
  height: 360px;
  right: -60px;
  top: 20%;
  background: rgba(78, 218, 255, 0.2);
  animation: floatB 11s ease-in-out infinite;
}

.tech-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 64%, #ffffff);
  opacity: 0.7;
  animation: particleMove linear infinite;
}

.welcome-topbar {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  z-index: 18;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.welcome-view-badge {
  margin-right: auto;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--btn-dark);
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  letter-spacing: 0.01em;
}

.welcome-view-label {
  font-size: 12px;
  opacity: 0.82;
}

.welcome-view-badge strong {
  font-size: 15px;
  color: var(--accent);
  line-height: 1;
}

.madeby-badge {
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  background: var(--btn-dark);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background 0.28s ease, transform 0.28s ease;
}

.madeby-badge img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.madeby-badge:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-2px);
}

.theme-toggle {
  border: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--btn-dark);
  color: var(--text);
  cursor: pointer;
  transition: background 0.28s ease, transform 0.28s ease;
  font-family: "Sora", "Noto Sans SC", sans-serif;
}

.theme-toggle:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-2px);
}

.progress-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  z-index: 28;
  width: 220px;
  height: 420px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.progress-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.progress-arc {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.progress-arc svg {
  display: block;
  width: 100%;
  height: 100%;
}

.progress-arc-line {
  fill: none;
  stroke-linecap: round;
}

.progress-arc-line-soft {
  stroke: color-mix(in oklab, var(--text-soft) 48%, transparent);
  stroke-width: 1.2;
}

.progress-arc-line-main {
  stroke: color-mix(in oklab, var(--accent) 84%, transparent);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px color-mix(in oklab, var(--accent) 36%, transparent));
}

.progress-item {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  position: absolute;
  left: 171px;
  top: 122px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  cursor: pointer;
  padding: 2px;
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), top 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease;
}

.progress-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--text-soft) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--text-soft) 42%, transparent);
  transition: transform 0.22s ease, background 0.22s ease;
}

.progress-label {
  font-size: 12px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.progress-item:hover .progress-label,
.progress-item.active .progress-label {
  opacity: 0.88;
  transform: translateX(0);
}

.progress-item:hover .progress-dot,
.progress-item.active .progress-dot {
  background: var(--accent);
  transform: scale(1.65);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 58%, transparent);
}

main {
  position: relative;
  z-index: 10;
  padding-right: 46px;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 88px 8vw 86px;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-copy {
  max-width: 860px;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

h1 {
  margin: 0;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(2) {
  animation-delay: 0.14s;
}

.hero-line:nth-child(3) {
  animation-delay: 0.28s;
}

.hero-line-accent {
  color: var(--accent);
  text-shadow: 0 0 28px color-mix(in oklab, var(--accent) 36%, transparent);
}

.hero-sub {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.6s ease forwards;
  animation-delay: 0.42s;
}

.hero-actions {
  display: grid;
  gap: 14px;
  justify-self: end;
  width: min(340px, 100%);
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 0.65s ease forwards;
  animation-delay: 0.5s;
}

.hero-btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 20px;
  text-align: center;
  font-size: 18px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(25, 65, 146, 0.3);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(25, 65, 146, 0.38);
}

.hero-btn-secondary {
  background: var(--surface-soft);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
  transform: translateY(-3px);
  background: color-mix(in oklab, var(--surface-soft) 80%, #ffffff);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  animation: hintPulse 1.8s ease-in-out infinite;
}

.scroll-hint:hover {
  color: var(--accent);
}

.scroll-hint-arrow {
  width: 22px;
  height: 14px;
  opacity: 0.62;
  animation: hintArrowFloat 1.5s ease-in-out infinite;
}

.scroll-hint-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scroll-hint-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro,
.showcase {
  padding: 56px 8vw 4px;
  max-width: 1140px;
}

.scenic-inline {
  padding: 18px 8vw 6px;
  max-width: 1180px;
}

.section-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

h2 {
  margin: 12px 0 16px;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.intro p {
  margin: 0;
  max-width: 960px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.82;
  color: var(--text-soft);
}

.official-intro {
  margin: 0 0 18px;
  max-width: 980px;
  font-size: clamp(15px, 1.7vw, 20px);
  line-height: 1.78;
  color: var(--text-soft);
}

.official-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.official-stats li {
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: color-mix(in oklab, var(--surface-soft) 92%, transparent);
  display: grid;
  gap: 4px;
}

.official-stats strong {
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  color: var(--accent);
}

.official-stats span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.source-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

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

.source-note a:hover {
  color: var(--accent-strong);
}

.official-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.official-card {
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: color-mix(in oklab, var(--surface-soft) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  gap: 8px;
}

.official-card h3 {
  margin: 0;
  font-size: clamp(19px, 2.2vw, 28px);
  font-family: "Sora", "Noto Sans SC", sans-serif;
  line-height: 1.2;
}

.official-card p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.68;
  color: var(--text-soft);
}

.official-card a,
.official-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.official-card a:hover {
  color: var(--accent-strong);
}

.scenic-grid {
  display: grid;
  gap: 14px;
}

.scenic-grid-a {
  grid-template-columns: 1.25fr 1fr;
}

.scenic-grid-b {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenic-grid-c {
  grid-template-columns: 1fr;
}

.scenic-card {
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  background: color-mix(in oklab, var(--surface-soft) 85%, transparent);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 26px rgba(6, 20, 58, 0.18);
}

.scenic-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.scenic-card figcaption {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  padding: 0 2px 2px;
}

.scenic-card-rise {
  transform: translateY(-10px);
}

.scenic-card-drop {
  transform: translateY(10px);
}

.scenic-card-wide {
  max-width: 860px;
  justify-self: center;
}

.feature-list {
  margin: 18px 0 62px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.feature-list li {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--accent) 88%, #ffffff), transparent 88%);
}

.feature-list strong {
  font-size: clamp(21px, 3vw, 32px);
  font-family: "Sora", "Noto Sans SC", sans-serif;
}

.feature-list span {
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.72;
  color: var(--text-soft);
}

.feature-list-site li::before {
  background: linear-gradient(to bottom, color-mix(in oklab, var(--accent-strong) 80%, #ffffff), transparent 85%);
}

.site-feature-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.reading-complete {
  border-radius: 24px;
  padding: 18px;
  background: color-mix(in oklab, var(--surface-soft) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  gap: 10px;
}

.reading-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.reading-complete h3 {
  margin: 0;
  font-family: "Sora", "Noto Sans SC", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.reading-complete p {
  margin: 0;
  font-size: 14px;
  line-height: 1.64;
  color: var(--text-soft);
}

.reading-actions {
  margin-top: 4px;
  display: grid;
  gap: 10px;
}

.reading-actions .hero-btn {
  font-size: 15px;
  padding: 12px 14px;
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hintPulse {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, 5px);
    opacity: 1;
  }
}

@keyframes hintArrowFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes gridDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(36px);
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(35px, -24px, 0) scale(1.08);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-28px, 26px, 0) scale(0.93);
  }
}

@keyframes particleMove {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(-90vh);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .progress-nav {
    right: 8px;
  }

  .hero {
    padding: 84px 24px 82px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-actions {
    justify-self: start;
  }

  .intro,
  .showcase {
    padding: 48px 24px 2px;
  }

  .scenic-inline {
    padding: 16px 24px 4px;
  }

  .official-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-grid {
    grid-template-columns: 1fr;
  }

  .scenic-grid-a,
  .scenic-grid-b {
    grid-template-columns: 1fr 1fr;
  }

  .site-feature-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main {
    padding-right: 0;
  }

  .progress-nav {
    right: 8px;
    top: auto;
    bottom: 14px;
    transform: translateY(8px);
    width: auto;
    height: auto;
    grid-auto-flow: column;
    display: grid;
    gap: 8px;
    background: color-mix(in oklab, var(--surface-soft) 80%, transparent);
    border-radius: 999px;
    padding: 8px 10px;
  }

  .progress-nav.is-visible {
    transform: translateY(0);
  }

  .progress-arc {
    display: none;
  }

  .progress-item {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  .progress-label {
    display: none;
  }

  .welcome-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .theme-toggle {
    font-size: 13px;
    padding: 8px 12px;
  }

  .madeby-badge {
    padding: 6px 10px 6px 7px;
    font-size: 12px;
    gap: 6px;
  }

  .madeby-badge img {
    width: 22px;
    height: 22px;
  }

  .welcome-view-badge {
    padding: 6px 10px;
    gap: 6px;
  }

  .welcome-view-label {
    font-size: 11px;
  }

  .welcome-view-badge strong {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 66px);
  }

  .hero-btn {
    font-size: 16px;
    padding: 13px 16px;
  }

  .official-stats {
    grid-template-columns: 1fr;
  }

  .scenic-grid-a,
  .scenic-grid-b,
  .scenic-grid-c {
    grid-template-columns: 1fr;
  }

  .scenic-card {
    border-radius: 18px;
    padding: 8px;
  }

  .scenic-card img {
    border-radius: 12px;
  }

  .scenic-card-rise,
  .scenic-card-drop {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero-sub,
  .hero-actions,
  .reveal-section,
  .tech-grid,
  .tech-glow,
  .tech-particle,
  .scroll-hint,
  .scroll-hint-arrow {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
