:root {
  --bg-dark: #0b0f19;
  --bg-card: #131b2e;
  --bg-elevated: #1b253d;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #fe8a32;
  --accent-hover: #ff9f55;
  --accent-soft: rgba(254, 138, 50, 0.14);
  --border-color: rgba(255, 255, 255, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 96px;
  background: var(--bg-dark);
  color: var(--text-main);
}

a {
  color: inherit;
}

img, video, iframe {
  max-width: 100%;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: max(16px, var(--mobile-input-min, 16px));
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
}

.brand-badge {
  background: var(--accent);
  color: #111827;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: #ffffff;
}

.header-nav .nav-cta-btn {
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-nav .nav-cta-btn:hover {
  background: var(--accent-hover);
  color: #111827;
}

/* HERO */
.hero-section {
  padding: 56px 0 64px;
  background: radial-gradient(circle at 18% 15%, rgba(254, 138, 50, 0.16), transparent 45%),
              radial-gradient(circle at 82% 20%, rgba(56, 189, 248, 0.10), transparent 45%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 138, 50, 0.14);
  border: 1px solid rgba(254, 138, 50, 0.4);
  color: #ffb070;
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-copy h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.24;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.accent-orange {
  color: var(--accent);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 24px;
}

.hero-city-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.city-mini-card {
  background: var(--bg-card);
  border: 1px solid rgba(254, 138, 50, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
}

.city-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}

.city-date {
  font-weight: 800;
  font-size: 16.5px;
  margin-bottom: 4px;
}

.city-meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.city-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 9px;
  text-decoration: none;
}

.city-apply-btn:hover {
  background: var(--accent-hover);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  background: #ffffff;
  color: #0b0f19;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
}

.btn-ghost-large {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
}

.video-switcher-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.video-tab {
  flex: 1;
  min-height: 44px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.video-tab.active {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
}

.hero-video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(254, 138, 50, 0.45);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  background: #000;
}

.hero-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-takeaway-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-takeaway-strip > div {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.hero-takeaway-strip strong {
  display: block;
  color: var(--accent);
  font-size: 13px;
}

.hero-takeaway-strip span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* SECTION COMMON */
section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin: 0;
}

/* STORYLINE CONTRAST */
.story-contrast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.contrast-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
}

.contrast-card.old-way {
  background: rgba(255, 255, 255, 0.03);
}

.contrast-card.new-way {
  background: linear-gradient(145deg, rgba(254, 138, 50, 0.13), rgba(19, 27, 46, 0.95));
  border: 2px solid var(--accent);
}

.contrast-step {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.contrast-card.new-way .contrast-step {
  background: var(--accent);
  color: #111827;
}

.contrast-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.contrast-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.75;
}

.contrast-card hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

/* SIMULATOR */
.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.sim-tab {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.sim-tab.active {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
}

.sim-panel-box {
  background: var(--bg-card);
  border: 1px solid rgba(254, 138, 50, 0.4);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.sim-inner-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.sim-badge {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.sim-inner-grid h3 {
  font-size: 24px;
  margin: 0 0 12px;
}

.sim-inner-grid ul {
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.85;
}

.sim-metric-box {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-color);
}

/* TIMELINE */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 18px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.timeline-card.highlight-card {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(254, 138, 50, 0.14), var(--bg-card));
}

.time-badge {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* 39 STORIES ARCHIVE */
.stories-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.cat-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--accent);
  color: #111827;
  border-color: var(--accent);
}

.story-search-wrap {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
}

.story-search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.story-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.16s, border-color 0.16s;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.story-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.story-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-cat-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(11, 15, 25, 0.86);
  color: var(--accent);
  border: 1px solid rgba(254, 138, 50, 0.45);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.story-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card-body h3 {
  font-size: 17.5px;
  line-height: 1.42;
  margin: 0 0 10px;
}

.story-card-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}

.story-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* APPLY SECTION */
.apply-box {
  background: linear-gradient(145deg, #131b2e, #0d1322);
  border: 2px solid var(--accent);
  border-radius: 22px;
  padding: 40px 32px;
}

.apply-header {
  text-align: center;
  margin-bottom: 32px;
}

.apply-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.apply-detail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px;
}

.apply-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.apply-spec-list {
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.apply-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: var(--accent);
  color: #111827;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
}

.instructor-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.instructor-info h4 {
  margin: 0 0 6px;
  color: #ffffff;
}

.instructor-info p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.btn-export {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.export-status {
  display: block;
  font-size: 13px;
  color: #a3be8c;
  margin-top: 6px;
}

/* FLOATING CTA BAR */
.floating-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--accent);
  padding: 10px 0;
}

.floating-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.floating-cta-text strong {
  color: var(--accent);
  margin-right: 10px;
}

.floating-cta-text span {
  font-size: 14.5px;
  color: var(--text-muted);
}

.floating-cta-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-seoul, .btn-busan, .btn-primary-orange {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}

.btn-seoul, .btn-busan {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: #ffffff;
}

.btn-primary-orange {
  background: var(--accent);
  color: #111827;
}

/* MODAL & SINGLE POST RENDERED CONTENT */
.story-modal[hidden] {
  display: none !important;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.story-modal-dialog {
  position: relative;
  z-index: 1;
  background: #131b2e;
  border: 1px solid rgba(254, 138, 50, 0.45);
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.story-modal-header .story-cat-pill {
  position: static;
  display: inline-block;
  margin-bottom: 6px;
}

.story-modal-header h2 {
  margin: 0;
  font-size: 21px;
}

.modal-close-btn {
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.story-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.story-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: #0b0f19;
}

.btn-ghost-small {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
}

.post-detail-main {
  padding: 40px 0 80px;
}

.post-detail-container {
  max-width: 880px;
}

.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: 14px;
}

.post-article-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 48px;
}

.post-main-title {
  margin-top: 0;
  font-size: clamp(24px, 3.4vw, 34px);
}

@media (max-width: 900px) {
  .hero-grid, .sim-inner-grid {
    grid-template-columns: 1fr;
  }
  .post-article-box, .apply-box {
    padding: 20px;
  }
}
