/* MyGenLab — Homepage v1.0
   Brand: Navy #09223E (structural) · Teal #1ABBCF (procedural) · Green #6FDD8B (fluorescence reveal only)
   Teal-dark #0B6E7B is used for text on light backgrounds (contrast). */

:root {
  --navy: #09223E;
  --navy-2: #0F2D4F;
  --navy-3: #16385C;
  --navy-line: #1E4167;
  --navy-deep: #061A30;
  --teal: #1ABBCF;
  --teal-dark: #0B6E7B;
  --teal-tint: #EAF7F9;
  --green: #6FDD8B; /* fluorescence reveal only */
  --ground: #F4F7F9;
  --white: #FFFFFF;
  --line: #DCE4EB;
  --ink-2: #4A5E73;
  --on-navy: #C5D3E0;
  --on-navy-2: #8AA0B6;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 120px);
  --section: clamp(72px, 9vw, 120px);
  --font: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Space Grotesk', 'Noto Sans KR', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--ground); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }

.eyebrow { font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 3px; color: var(--teal-dark); }
.bg-navy .eyebrow, .campus .eyebrow, .hero .eyebrow { color: var(--teal); }
.h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.35; font-weight: 900; letter-spacing: -1px; }
.lead { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.head-row .head { margin-bottom: 0; }

.btn { display: inline-block; font-weight: 700; font-size: 17px; text-decoration: none; padding: 18px 30px; border-radius: 12px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #3FCADB; color: var(--navy); }
.btn-ghost { border: 1.5px solid #4E6A87; color: var(--white); font-weight: 500; }
.btn-ghost:hover { border-color: var(--teal); color: var(--white); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); }
.nav .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.brand-by { font-size: 13px; color: #9FB3C8; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { color: #D7E2EC; text-decoration: none; }
.nav-links a:hover { color: var(--white); }
.nav-links .nav-corp { color: var(--teal); font-weight: 700; }
.nav-links .nav-cta { color: var(--navy); background: var(--teal); font-weight: 700; padding: 12px 22px; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: var(--white); cursor: pointer; }

/* HERO */
.hero { background: var(--navy); color: var(--white); padding-top: clamp(56px, 7vw, 96px); padding-bottom: var(--section); }
.hero .wrap { display: flex; align-items: center; gap: 64px; }
.hero-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.22; font-weight: 900; letter-spacing: -1.5px; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--on-navy); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero-note { font-size: 14px; color: var(--on-navy-2); }

.reveal { width: 480px; max-width: 100%; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: 28px; background: var(--navy-2); border: 1px solid var(--navy-line); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.reveal-top { display: flex; justify-content: space-between; align-items: center; }
.reveal-label { font-family: var(--display); font-size: 13px; letter-spacing: 2px; color: #7FA1C0; }
.reveal-chip { font-size: 12px; color: #7FA1C0; border: 1px solid #2A4E75; border-radius: 999px; padding: 4px 12px; }
.tubes { display: flex; justify-content: center; align-items: flex-end; gap: clamp(40px, 6vw, 72px); }
.tube-col { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.tube { width: 96px; height: 200px; border-radius: 14px 14px 48px 48px; }
.tube-a { border: 2px solid var(--green); background: #1D5A4A; box-shadow: 0 0 60px 12px rgba(111,221,139,.45), inset 0 -80px 60px -10px rgba(111,221,139,.75); animation: glow 3.2s ease-in-out infinite; }
.tube-b { border: 2px solid #3A5A7C; background: var(--navy-3); }
@keyframes glow { 0%,100% { box-shadow: 0 0 44px 8px rgba(111,221,139,.35), inset 0 -80px 60px -10px rgba(111,221,139,.65); } 50% { box-shadow: 0 0 70px 16px rgba(111,221,139,.5), inset 0 -80px 60px -10px rgba(111,221,139,.85); } }
@media (prefers-reduced-motion: reduce) { .tube-a { animation: none; } html { scroll-behavior: auto; } }
.tube-letter { font-family: var(--display); font-size: 28px; font-weight: 700; }
.tube-a-letter { color: var(--green); }
.tube-b-letter { color: var(--on-navy-2); }
.tube-desc { font-size: 14px; color: var(--on-navy); }
.reveal-caption { font-size: 15px; line-height: 1.6; color: var(--on-navy); border-top: 1px solid var(--navy-line); padding-top: 20px; }

/* PRINCIPLES */
.principles { background: var(--white); border-bottom: 1px solid var(--line); }
.principles .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.principle h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.principle p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

/* CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.card-num { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--teal-dark); }
.card h3 { font-size: 22px; font-weight: 700; line-height: 1.45; }
.card p { font-size: 16px; line-height: 1.75; color: var(--ink-2); }

/* FLOW */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.flow li { background: var(--ground); border-radius: 18px; padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--teal); }
.flow li:first-child { border-top-color: var(--navy); }
.flow li.final { background: var(--navy); border-top-color: var(--navy); }
.flow-step { font-family: var(--display); font-size: 22px; font-weight: 700; }
.flow-name { font-size: 15px; font-weight: 700; }
.flow-desc { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.flow li.final .flow-step, .flow li.final .flow-name { color: var(--white); }
.flow li.final .flow-desc { color: var(--on-navy); }
.callout { margin-top: 32px; background: var(--teal-tint); border-radius: 16px; padding: 24px 32px; font-size: 17px; line-height: 1.7; }

/* CONTROLS */
.split { display: flex; gap: 80px; align-items: flex-start; }
.split-side { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.split-main { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; }
.control { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; display: flex; gap: 28px; align-items: center; }
.control-key { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: var(--navy); color: var(--white); font-family: var(--display); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.control-key.alt { background: var(--teal); color: var(--navy); }
.control-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.control-body h3 { font-size: 20px; font-weight: 700; }
.control-body p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.tag { font-size: 14px; font-weight: 700; border-radius: 999px; padding: 8px 16px; background: var(--teal-tint); color: var(--navy); white-space: nowrap; }
.tag.muted { background: var(--ground); color: var(--ink-2); }

/* TIMELINE */
.status-chip { font-size: 14px; color: var(--on-navy); border: 1px solid #2A4E75; border-radius: 999px; padding: 8px 18px; flex-shrink: 0; }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; border-radius: 18px; overflow: hidden; }
.timeline li { background: var(--navy-2); padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.t-time { font-family: var(--display); font-size: 15px; color: var(--teal); }
.t-name { font-size: 18px; font-weight: 700; color: var(--white); }
.t-desc { font-size: 14px; line-height: 1.6; color: var(--on-navy); }
.timeline-note { margin-top: 32px; font-size: 15px; line-height: 1.7; color: #9FB3C8; }

/* KIT */
.kit { display: flex; gap: 24px; align-items: stretch; }
.kit-media { width: 520px; flex-shrink: 0; min-height: 440px; border-radius: 24px; overflow: hidden; background: #EEF3F7; }
.kit-media img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.kit-placeholder { height: 100%; min-height: 440px; border: 2px dashed #9FB3C8; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; color: var(--ink-2); }
.kit-placeholder strong { font-size: 17px; }
.kit-placeholder span { font-size: 14px; line-height: 1.6; }
.kit-list { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; }
.kit-item { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; }
.kit-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kit-title h3 { font-size: 21px; font-weight: 700; }
.badge { font-size: 13px; font-weight: 700; border-radius: 6px; padding: 4px 10px; }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-teal { background: var(--teal); color: var(--navy); }
.badge-tint { background: var(--teal-tint); color: var(--navy); }
.kit-item p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* FOUNDING */
.founding { display: flex; gap: 80px; align-items: center; }
.founding-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.founding-target { font-size: 15px; color: var(--ink-2); }
.steps { width: 520px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 20px; align-items: center; background: var(--ground); border-radius: 16px; padding: 22px 26px; }
.step-n { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--teal-dark); width: 32px; flex-shrink: 0; }
.steps h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* CAMPUS */
.campus { background: var(--navy-2); border-radius: 28px; padding: clamp(36px, 5vw, 72px); display: flex; gap: 64px; align-items: center; color: var(--white); }
.campus-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.campus h2 { font-size: clamp(34px, 3.6vw, 44px); line-height: 1.25; font-weight: 900; letter-spacing: -1px; }
.campus-copy p { font-size: 17px; line-height: 1.8; color: var(--on-navy); }
.text-link { align-self: flex-start; color: var(--teal); font-weight: 700; font-size: 16px; text-decoration: none; border-bottom: 1.5px solid var(--teal); padding-bottom: 4px; }
.text-link:hover { color: #7FE0EC; border-color: #7FE0EC; }
.campus-flow { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.campus-flow li { display: flex; align-items: center; gap: 16px; background: var(--navy-3); border-radius: 12px; padding: 16px 22px; }
.cf-key { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--teal); width: 110px; flex-shrink: 0; }
.cf-desc { font-size: 15px; }

/* INTRO FILM */
.intro-film { margin-top: 32px; display: grid; grid-template-columns: minmax(0, .72fr) minmax(420px, 1.28fr); gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.intro-film-copy { display: flex; flex-direction: column; gap: 14px; padding-left: 12px; }
.intro-film-copy h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; }
.intro-film-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.film-card { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--navy); aspect-ratio: 4 / 3; }
.film-card img { width: 100%; height: 100%; object-fit: cover; }
.film-poster { display: none; }
.film-play { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 999px; background: rgba(9,34,62,.92); color: var(--white); font-size: 14px; font-weight: 700; }

/* FAQ */
.faq-list { flex: 1 1 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 20px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--teal-dark); flex-shrink: 0; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { font-size: 16px; line-height: 1.75; color: var(--ink-2); padding: 0 48px 28px 0; }

/* CTA */
.cta { background: var(--navy); text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: clamp(72px, 8vw, 112px); padding-bottom: clamp(72px, 8vw, 112px); }
.cta h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.35; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.cta p { font-size: 18px; color: var(--on-navy); }

/* FOOTER */
.footer { background: var(--navy-deep); }
.footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-sub { font-size: 14px; color: var(--on-navy-2); }
.footer-home { display: inline-block; margin-top: 14px; color: var(--teal); font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-home:hover { color: var(--white); }
.footer-legal { font-size: 13px; color: var(--on-navy-2); max-width: 520px; line-height: 1.7; text-align: right; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .hero .wrap { gap: 48px; }
  .reveal { width: 440px; padding: 32px; }
  .flow, .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split, .founding { gap: 48px; }
  .split-side { width: 340px; }
  .kit-media, .steps { width: 440px; }
  .campus { gap: 40px; }
  .campus-flow { width: 400px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; border-top: 1px solid var(--navy-line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 16px; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; padding: 14px 22px; }
  .hero .wrap, .split, .founding, .kit, .campus { flex-direction: column; align-items: stretch; }
  .reveal { width: 100%; max-width: 520px; margin: 0 auto; }
  .principles .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .split-side, .kit-media, .steps, .campus-flow { width: 100%; }
  .intro-film { grid-template-columns: 1fr; }
  .kit-media { min-height: 320px; }
  .kit-placeholder { min-height: 320px; }
}
@media (max-width: 640px) {
  .brand-by { display: none; }
  .flow, .timeline { grid-template-columns: minmax(0, 1fr); }
  .principles .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .reveal { aspect-ratio: auto; gap: 32px; padding: 28px; }
  .tube { width: 72px; height: 150px; }
  .control { flex-wrap: wrap; gap: 16px 20px; padding: 24px; }
  .control-key { width: 52px; height: 52px; font-size: 24px; }
  .card, .kit-item { padding: 28px 24px; }
  .campus-flow li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .intro-film { padding: 20px; }
  .intro-film-copy { padding-left: 0; }
  .cf-key { width: auto; }
  .faq-list summary { font-size: 18px; }
  .faq-list details p { padding-right: 0; }
  .footer .wrap { flex-direction: column; }
  .footer-legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .film-gif { display: none; }
  .film-poster { display: block; }
}
