:root {
  color-scheme: dark;
  --bg: #080b15;
  --surface: #111625;
  --surface-soft: #171d30;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #9ba7be;
  --lime: #c7f35b;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --cyan: #14b8a6;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, Pretendard, "Noto Sans KR", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -50px; z-index: 100; background: var(--lime); color: #0b1014; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--line); background: rgba(8, 11, 21, .86); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 13px; color: #0c1118; background: var(--lime); font-weight: 900; font-size: 22px; transform: rotate(-6deg); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.header-actions, .language-switch { display: flex; align-items: center; }
.header-actions { gap: 12px; }
.language-switch { padding: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; }
.language-button { border: 0; color: var(--muted); background: transparent; padding: 8px 11px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 800; }
.language-button.is-active { color: #10151b; background: var(--lime); }
.itinerary-button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); cursor: pointer; }
.count-badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; color: #0d1219; background: var(--lime); font-weight: 900; font-size: 12px; }

main { overflow: hidden; }
.hero { min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); align-items: center; gap: 54px; padding: 92px clamp(24px, 7vw, 112px) 110px; background: radial-gradient(circle at 76% 48%, rgba(139,92,246,.19), transparent 28%), radial-gradient(circle at 22% 18%, rgba(199,243,91,.08), transparent 28%); }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow { margin: 0 0 15px; color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(45px, 6vw, 82px); line-height: 1.05; letter-spacing: -.06em; }
.hero-description { max-width: 640px; color: #c4ccda; font-size: clamp(17px, 2vw, 21px); line-height: 1.75; }
.primary-link { display: inline-flex; margin-top: 20px; padding: 14px 20px; border-radius: 13px; background: var(--lime); color: #0c1216; font-weight: 900; text-decoration: none; box-shadow: 0 12px 30px rgba(199,243,91,.16); }
.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 270px; height: 270px; top: 0; right: 8%; background: linear-gradient(135deg, rgba(139,92,246,.78), rgba(236,72,153,.35)); }
.orb-two { width: 170px; height: 170px; left: 3%; bottom: 0; background: linear-gradient(135deg, rgba(20,184,166,.7), rgba(199,243,91,.4)); }
.route-preview { position: relative; width: min(100%, 500px); aspect-ratio: 1.15; border: 1px solid rgba(255,255,255,.17); border-radius: 38px; background: rgba(17,22,37,.76); box-shadow: var(--shadow); backdrop-filter: blur(20px); transform: rotate(3deg); overflow: hidden; }
.route-preview::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 38px 38px; }
.route-preview svg { position: absolute; inset: 15% 7%; width: 86%; height: 70%; overflow: visible; }
.route-preview path { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 7 10; filter: drop-shadow(0 0 7px rgba(199,243,91,.6)); }
.route-preview strong { position: absolute; right: 28px; bottom: 22px; color: rgba(255,255,255,.12); font-size: 55px; letter-spacing: .1em; }
.preview-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 5px solid white; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #0c1118; background: var(--lime); font-weight: 900; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.preview-pin::first-letter { transform: rotate(45deg); }
.pin-one { left: 13%; top: 68%; }
.pin-two { left: 55%; top: 32%; background: #fff; }
.pin-three { right: 9%; top: 13%; background: var(--pink); }

.explore-section { padding: 100px clamp(24px, 7vw, 112px); background: #0b0f1b; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 32px; }
.section-heading h2, .simulator-topline h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.section-heading > p { max-width: 430px; margin-bottom: 4px; color: var(--muted); line-height: 1.7; }
.theme-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.theme-button { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); cursor: pointer; }
.theme-button.is-active { color: #0d1218; background: var(--lime); border-color: var(--lime); font-weight: 900; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.course-card { position: relative; min-height: 325px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); color: inherit; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 19%, var(--surface)), var(--surface) 58%); overflow: hidden; cursor: pointer; transition: transform .25s ease, border-color .25s ease; }
.course-card:hover, .course-card.is-selected { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 65%, white); }
.course-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; top: -80px; border-radius: 50%; background: var(--accent); opacity: .16; filter: blur(2px); }
.course-index { color: var(--accent); font-weight: 900; font-size: 12px; letter-spacing: .13em; }
.course-card h3 { margin: 48px 0 14px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; }
.course-card p { color: #bac4d6; font-size: 14px; line-height: 1.65; }
.course-meta { display: flex; gap: 14px; margin-top: auto; color: var(--muted); font-size: 12px; }
.course-action { margin-top: 18px; align-self: flex-start; color: var(--accent); font-weight: 900; }
.loading-card { min-height: 260px; border-radius: var(--radius-md); background: linear-gradient(100deg, var(--surface) 20%, var(--surface-soft) 38%, var(--surface) 58%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.simulator-section { padding: 100px clamp(20px, 5vw, 80px); background: radial-gradient(circle at 20% 10%, rgba(20,184,166,.09), transparent 25%), var(--bg); }
.simulator-panel { max-width: 1320px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(17,22,37,.88); box-shadow: var(--shadow); }
.simulator-topline { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.simulator-topline > div > p:last-child { max-width: 720px; color: var(--muted); line-height: 1.65; }
.transport-control { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.transport-control select { min-width: 145px; padding: 11px 38px 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-soft); }
.route-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.route-metrics > div { display: grid; gap: 7px; padding: 18px 20px; border-right: 1px solid var(--line); }
.route-metrics > div:last-child { border-right: 0; }
.route-metrics span { color: var(--muted); font-size: 12px; }
.route-metrics strong { font-size: 21px; }
.map-shell { position: relative; min-height: 520px; border: 1px solid var(--line); border-radius: 20px; background: #0a1020; overflow: hidden; }
.map-toolbar { position: absolute; z-index: 3; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.map-label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,11,21,.82); color: #d7deea; font-size: 12px; }
.map-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.map-toolbar button { width: 38px; height: 38px; margin-left: 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(8,11,21,.9); cursor: pointer; font-size: 20px; }
.route-map { display: block; width: 100%; height: 520px; transition: .3s ease; }
.route-line { fill: none; stroke: var(--route-color, var(--lime)); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12 10; filter: url(#glow); }
.map-marker { cursor: pointer; }
.map-marker circle { fill: var(--route-color, var(--lime)); stroke: white; stroke-width: 5; }
.map-marker text { fill: #0c1118; font-size: 13px; font-weight: 900; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-marker:focus circle, .map-marker:hover circle { stroke: var(--lime); stroke-width: 8; }
.map-watermark { fill: rgba(255,255,255,.065); font-size: 72px; font-weight: 900; letter-spacing: .16em; }
.map-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 300px; color: var(--muted); text-align: center; line-height: 1.6; }
.route-detail-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; margin-top: 18px; }
.stop-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.stop-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; }
.stop-item:hover { border-color: rgba(199,243,91,.5); }
.stop-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #0d1218; background: var(--route-color, var(--lime)); font-weight: 900; }
.stop-item strong { display: block; font-size: 14px; }
.stop-item small { color: var(--muted); }
.spot-detail { min-height: 180px; padding: 22px; border-radius: 15px; background: linear-gradient(145deg, rgba(139,92,246,.18), rgba(255,255,255,.025)); border: 1px solid var(--line); }
.spot-detail > span { color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.spot-detail h3 { margin: 24px 0 10px; font-size: 21px; }
.spot-detail p { color: var(--muted); line-height: 1.7; }
.simulator-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.simulator-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.save-route-button { padding: 13px 20px; border: 0; border-radius: 12px; color: #0c1118; background: var(--lime); font-weight: 900; cursor: pointer; }
.save-route-button:disabled { opacity: .35; cursor: not-allowed; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 46px clamp(24px, 7vw, 112px); border-top: 1px solid var(--line); color: var(--muted); background: #070a12; }
.site-footer strong { color: var(--text); }
.site-footer p { margin: 8px 0 0; }
.provider-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.provider-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }
.provider-chip.is-ready::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--lime); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #171d30; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { min-height: 370px; }
  .route-preview { max-width: 520px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; padding: 14px 18px; }
  .brand small, .itinerary-button > span:first-child { display: none; }
  .header-actions { gap: 7px; }
  .language-button { padding: 7px 9px; }
  .hero { min-height: auto; padding: 64px 22px 80px; }
  h1 { font-size: 45px; }
  .hero-visual { min-height: 300px; }
  .section-heading, .simulator-topline, .simulator-footer, .site-footer { align-items: flex-start; flex-direction: column; }
  .explore-section, .simulator-section { padding: 72px 18px; }
  .course-grid { grid-template-columns: 1fr; }
  .route-metrics { grid-template-columns: 1fr; }
  .route-metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-metrics > div:last-child { border-bottom: 0; }
  .map-shell, .route-map { min-height: 410px; height: 410px; }
  .route-detail-grid { grid-template-columns: 1fr; }
  .transport-control, .transport-control select { width: 100%; }
  .provider-status { justify-content: flex-start; }
}
