/* 꿈랩 랜딩 v2 — 다크 테크 (Linear·Vercel 런치 톤), 포인트 1색 라임, 모션 시스템 = 기둥(블록) */
:root {
  --bg: #0a0c10; --bg2: #0f1218; --bg3: #151a22; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --fg: #eef1f5; --fg2: #9aa3b2; --fg3: #5f6877;
  --lime: #cdf24f; --lime2: #e6ff8a; --lime-dim: rgba(205,242,79,.14);
  --ease: cubic-bezier(.2,.8,.2,1); --ease2: cubic-bezier(.6,0,.2,1);
  --r: 20px;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 720px) { .wrap { padding: 0 18px; } }

/* ── 배경 ── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg .glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; right: -200px; top: -200px; background: radial-gradient(circle, rgba(205,242,79,.16), rgba(205,242,79,.04) 40%, transparent 70%); filter: blur(10px); }
.bg .grain { position: absolute; inset: 0; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main { position: relative; z-index: 1; }

/* ── 내비 ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(10,12,16,.55); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.logo i { width: 12px; height: 12px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 18px rgba(205,242,79,.6); }
.logo small { color: var(--fg3); font-weight: 600; font-size: .72rem; letter-spacing: .14em; margin-left: 4px; }
.nav nav { display: flex; gap: 6px; }
.nav nav a { padding: 8px 12px; border-radius: 10px; color: var(--fg2); font-size: .92rem; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav nav a.cta { color: #0a0c10; background: var(--lime); font-weight: 800; }
@media (max-width: 720px) { .nav nav a:not(.cta) { display: none; } }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--fg3); letter-spacing: .08em; text-transform: uppercase; }
.status b { width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); }
.status.on b { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* ── 히어로 ── */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-top: 90px; padding-bottom: 40px; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 100px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg2); font-weight: 700; margin-bottom: 26px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255,255,255,.03); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); font-weight: 800; line-height: 1.0; letter-spacing: -.035em; }
.h1 .l2 { color: var(--lime); display: block; font-size: .78em; margin-top: .1em; }
.wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.wm span { display: inline-block; transform: translateY(112%) rotate(3deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: var(--d, 0s); will-change: transform; }
.in .wm span { transform: none; }
.lead { margin-top: 26px; max-width: 520px; color: var(--fg2); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.65; }
.lead b { color: var(--fg); font-weight: 700; }
.ctas { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 800; font-size: 1.02rem; transition: transform .25s var(--ease), background .2s, box-shadow .25s; will-change: transform; }
.btn.p { background: var(--lime); color: #0a0c10; box-shadow: 0 8px 30px rgba(205,242,79,.25); }
.btn.p:hover { box-shadow: 0 12px 40px rgba(205,242,79,.4); }
.btn.g { border: 1px solid var(--line2); color: var(--fg); background: rgba(255,255,255,.03); }
.btn.g:hover { background: rgba(255,255,255,.07); }
.btn .ar { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.facts { display: flex; gap: 28px; margin-top: 42px; flex-wrap: wrap; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.facts span { color: var(--fg3); font-size: .82rem; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.in .fade-up, .fade-up.in { opacity: 1; transform: none; }

/* ── 3D 타워 ── */
.scene-wrap { position: relative; width: 100%; height: clamp(380px, 62vh, 640px); display: flex; align-items: center; justify-content: center; overflow: visible; }
.scene { width: 560px; height: 560px; perspective: 1500px; perspective-origin: 50% 40%; position: relative; }
@media (max-width: 900px) { .scene-wrap { height: 400px; overflow: hidden; } .scene { transform: scale(.66); transform-origin: 50% 42%; } }
@media (max-width: 480px) { .scene-wrap { height: 340px; } .scene { transform: scale(.52); transform-origin: 50% 38%; } }
.tower { position: absolute; left: 50%; top: 66%; width: 0; height: 0; transform-style: preserve-3d; }
.tower .part, .tower .box { position: absolute; transform-style: preserve-3d; }
.f { position: absolute; left: 0; top: 0; backface-visibility: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.f.front { background: linear-gradient(180deg, #2a3140 0%, #1a2029 60%, #141922 100%); }
.f.back  { background: linear-gradient(180deg, #1f2530, #141922); }
.f.left  { background: linear-gradient(180deg, #1a1f29, #10141b); }
.f.right { background: linear-gradient(180deg, #232a36, #161b24); }
.f.top   { background: linear-gradient(135deg, #39424f, #262d3a); }
.f.bottom{ background: #0e1218; }
.f .hp { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(205,242,79,.75), rgba(205,242,79,.28) 60%, rgba(205,242,79,.06)); border-top: 1px solid rgba(230,255,138,.7); }
.f .hp.dim { opacity: .55; }
.f .lab { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: rgba(238,241,245,.8); }
.f .lab small { display: block; font-size: 10px; color: var(--fg3); letter-spacing: .18em; font-weight: 700; }
.f.roof { background: linear-gradient(180deg, #e9ecf1, #c9cfd8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.f.roof.slope { background: linear-gradient(180deg, #2b3340, #171c25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.f.roof.ridge { background: var(--lime); box-shadow: 0 0 24px rgba(205,242,79,.8); }
.f.roof.cap { background: #1d232e; box-shadow: none; }
.f.roof .rtxt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #0a0c10; font-size: 15px; letter-spacing: .08em; }
.floor { position: absolute; left: 50%; top: 66%; width: 760px; height: 760px; margin: -380px 0 0 -380px; transform: rotateX(90deg); background: radial-gradient(circle, rgba(0,0,0,.6), rgba(0,0,0,.25) 35%, transparent 62%); transform-style: preserve-3d; }
.floor.ring { background: none; border: 1px solid rgba(205,242,79,.18); border-radius: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; }
.reflect { opacity: .22; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 60%); mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 60%); }
.hp-badge { position: absolute; right: 8%; bottom: 10%; padding: 10px 14px; border-radius: 12px; background: rgba(15,18,24,.8); border: 1px solid var(--line2); backdrop-filter: blur(8px); font-size: .78rem; color: var(--fg2); display: flex; gap: 14px; }
.hp-badge b { color: var(--lime); font-size: 1rem; display: block; }
@media (max-width: 900px) { .hp-badge { right: 4%; bottom: -4px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--fg3); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(180deg, var(--lime), transparent); display: block; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── 섹션 공통 ── */
.sec { padding: 110px 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sec-h p { color: var(--fg2); max-width: 460px; }
.k { color: var(--lime); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; display: block; margin-bottom: 12px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── 지금 수업 ── */
.now-card { position: relative; border-radius: 26px; background: linear-gradient(180deg, #11151c, #0d1016); padding: 36px; overflow: hidden; }
.now-card::before { content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1.5px; background: conic-gradient(from var(--beam), transparent 0 62%, var(--lime) 80%, var(--lime2) 86%, transparent 94% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: beam 5s linear infinite; pointer-events: none; }
@keyframes beam { to { --beam: 360deg; } }
.now-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 20% 0%, rgba(205,242,79,.08), transparent 55%); pointer-events: none; }
.now-card .inner { position: relative; z-index: 1; }
.now-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); font-weight: 800; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(205,242,79,.6); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(205,242,79,.55); } 70% { box-shadow: 0 0 0 12px rgba(205,242,79,0); } 100% { box-shadow: 0 0 0 0 rgba(205,242,79,0); } }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.slot { border: 1px solid var(--line2); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 12px; }
.slot .g { color: var(--fg3); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.slot .n { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.slot .code { font-family: "JetBrains Mono", "SF Mono", Consolas, monospace; font-size: 2.6rem; font-weight: 800; letter-spacing: .18em; color: var(--lime); line-height: 1; }
.slot .code small { display: block; font-family: inherit; font-size: .72rem; letter-spacing: .08em; color: var(--fg3); margin-top: 6px; font-weight: 600; }
.slot .note { color: var(--fg2); }
.slot .btn { justify-content: center; margin-top: 4px; }
.empty { display: flex; flex-direction: column; gap: 6px; color: var(--fg2); padding: 8px 0; }
.empty b { font-size: 1.3rem; color: var(--fg); letter-spacing: -.01em; }

/* ── 마키 ── */
.marq { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq .track { display: flex; gap: 52px; width: max-content; animation: marq 36s linear infinite; }
.marq .track span { font-size: 1.1rem; font-weight: 700; color: var(--fg3); letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 52px; }
.marq .track span::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); opacity: .7; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── 앱 그리드 ── */
.grade { margin-bottom: 44px; }
.grade h3 { font-size: 1.05rem; color: var(--fg2); font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.grade h3 i { width: 10px; height: 10px; border-radius: 2px; background: var(--lime); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.app-card { --mx: 50%; --my: 50%; position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .3s; will-change: transform; }
.app-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(205,242,79,.13), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.app-card:hover { border-color: rgba(205,242,79,.45); }
.app-card:hover::after { opacity: 1; }
.app-card .head { display: flex; align-items: center; gap: 12px; }
.app-card .tile { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(205,242,79,.4); background: var(--lime-dim); color: var(--lime); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; flex: none; }
.app-card .nm { font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.app-card .sb { font-size: .78rem; color: var(--fg3); margin-top: 2px; }
.app-card .ds { color: var(--fg2); font-size: .92rem; flex: 1; line-height: 1.55; }
.app-card .go { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; font-size: .92rem; margin-top: 4px; }
.app-card .go .ar { transition: transform .25s var(--ease); color: var(--lime); }
.app-card:hover .go .ar { transform: translateX(4px); }

/* ── 세 기둥 ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; margin-top: 10px; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }
.pcol { position: relative; border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); padding: 26px 22px 22px; overflow: hidden; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; transition: transform .9s var(--ease), opacity .6s; transition-delay: var(--d, 0s); }
.pcol.in { transform: none; opacity: 1; }
.pcol::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fill, 60%); background: linear-gradient(0deg, rgba(205,242,79,.22), transparent); pointer-events: none; }
.pcol h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.pcol h3 small { color: var(--fg3); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.pcol p { color: var(--fg2); margin-top: 8px; font-size: .95rem; position: relative; }
.roofline { width: 100%; height: 3px; background: linear-gradient(90deg, var(--lime), var(--lime2)); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) .9s; margin-bottom: 18px; box-shadow: 0 0 20px rgba(205,242,79,.5); }
.roofline.in { transform: none; }
.quote { margin-top: 30px; color: var(--fg2); font-size: 1.05rem; max-width: 640px; }
.quote b { color: var(--fg); }

/* ── 자료실 ── */
.mat { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); transition: border-color .2s, transform .3s var(--ease); }
.mat:hover { border-color: rgba(205,242,79,.4); transform: translateY(-2px); }
.mat b { flex: 1; }
.mat span { color: var(--fg3); font-size: .85rem; }

/* ── 푸터 ── */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--fg3); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--fg); }

/* 접근성: 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  .wm span, .fade-up, .reveal, .pcol, .roofline { transition: none !important; transform: none !important; opacity: 1 !important; }
  .marq .track, .now-card::before, .live i, .scroll-cue i { animation: none !important; }
}
