:root {
  --page: #071018;
  --panel: #0c1a24;
  --panel-2: #102431;
  --stroke: rgba(127, 243, 232, .16);
  --stroke-strong: rgba(127, 243, 232, .38);
  --glow: #22d3c5;
  --warm: #ffad66;
  --warm-soft: #ffd7b0;
  --white: #f2f8f7;
  --copy: #b3c7c9;
  --display: "Manrope", "Noto Sans KR", system-ui, sans-serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

body { min-width: 320px; overflow-x: hidden; font-family: var(--body); font-weight: 400; letter-spacing: -.015em; }
.top { position: fixed; }
.logo { letter-spacing: -.03em; }
.logo b { color: var(--warm); }
.nav a, .acct a, .acct button { letter-spacing: -.01em; }
.hero-copy { max-width: 720px; }
.hero-desc { max-width: 620px; margin: 20px 0 0; color: #c1d1d2; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.9; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.action { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--stroke-strong); border-radius: 10px; color: var(--white); text-decoration: none; font-size: 14px; cursor: pointer; background: rgba(8, 26, 38, .76); font-family: var(--body); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.action.primary { border-color: var(--teal-soft); background: var(--teal-soft); color: var(--ink); font-weight: 600; }
.action:hover { border-color: var(--teal-soft); transform: translateY(-2px); }
.action.primary:hover { background: #fff; }
.member-mark { margin-left: 8px; font: 500 10px var(--mono); letter-spacing: .08em; opacity: .75; }
.acct button { border: 0; font-family: var(--body); }
.acct .link-button { color: var(--muted); font-size: 13px; }
.acct .join { border-radius: 9px; }

.site-main { background: var(--page); }
.section { position: relative; padding: 116px 28px; border-top: 1px solid rgba(127, 243, 232, .08); overflow: hidden; }
.section::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,197,.09), rgba(255,173,102,.025) 43%, transparent 70%); pointer-events: none; top: -260px; right: -130px; }
.section.alt { background: linear-gradient(145deg, #091723 0%, #07131e 58%, #0d1920 100%); }
.inner { width: min(1180px, 100%); margin: 0 auto; position: relative; }
.section-head { max-width: 760px; margin-bottom: 46px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 11px var(--mono); color: var(--teal-soft); letter-spacing: .14em; }
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--teal); }
.section h2 { margin: 0; color: var(--white); font: 600 clamp(30px, 4vw, 52px)/1.24 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.lead { margin: 22px 0 0; max-width: 720px; color: var(--copy); font-size: clamp(15px, 1.45vw, 18px); line-height: 1.9; }

.principles, .services, .roles, .cases, .insights { display: grid; gap: 1px; border: 1px solid var(--stroke); background: var(--stroke); }
.principles, .services, .roles, .cases, .insights { gap: 12px; border: 0; background: transparent; }
.principles { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.services { grid-template-columns: repeat(3, 1fr); }
.roles { grid-template-columns: repeat(5, 1fr); margin-top: 30px; }
.cases { grid-template-columns: repeat(5, 1fr); }
.insights { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; min-height: 220px; padding: 30px; background: linear-gradient(145deg, rgba(15,34,46,.98), rgba(9,24,35,.98)); }
.card, .card:first-child, .card:last-child { border: 1px solid var(--stroke); border-radius: 16px; }
.card .num { color: var(--warm); font: 500 11px var(--mono); letter-spacing: .12em; }
.card h3 { margin: 34px 0 12px; color: var(--white); font-size: 19px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--copy); font-size: 14px; line-height: 1.85; }
.service-card { min-height: 270px; }
.service-card .tag { display: inline-flex; border: 1px solid var(--stroke-strong); color: var(--teal-soft); padding: 5px 8px; font: 500 10px var(--mono); letter-spacing: .08em; }
.service-card h3 { margin-top: 38px; font-family: var(--display); font-size: 17px; }

.tech-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: stretch; }
.flow-step { display: grid; align-content: center; min-height: 104px; padding: 16px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(12,30,41,.78); color: var(--white); font-size: 13px; font-weight: 500; text-align: center; line-height: 1.6; }
.flow-arrow { display: none; }
.role { padding: 24px 18px; background: linear-gradient(145deg, #0d202c, #0a1823); min-height: 150px; }
.role, .case-card { border: 1px solid var(--stroke); border-radius: 14px; }
.role b { display: block; color: var(--teal-soft); font: 500 11px var(--mono); margin-bottom: 16px; }
.role span { color: var(--copy); font-size: 13px; line-height: 1.6; }
.safe-note { margin: 32px 0 0; padding: 20px 22px; border-left: 2px solid var(--warm); border-radius: 0 12px 12px 0; background: rgba(255,173,102,.08); color: #dfc9b4; font-size: 14px; line-height: 1.8; }

.timeline { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--stroke-strong); }
.phase { position: relative; padding: 30px 18px 0 0; min-height: 180px; }
.phase::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.phase b { color: var(--warm); font: 500 11px var(--mono); }
.phase h3 { color: var(--white); font-family: var(--display); font-size: 16px; margin: 15px 0 9px; }
.phase p { color: var(--copy); font-size: 13px; line-height: 1.75; margin: 0; }

.liming { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(360px, 1.2fr); gap: 54px; align-items: center; }
.video-lock { position: relative; aspect-ratio: 1; max-height: 590px; overflow: hidden; border: 1px solid var(--stroke-strong); border-radius: 20px; background: #02070f; box-shadow: 0 28px 80px rgba(0,0,0,.28), 0 0 50px rgba(34,211,197,.05); }
.video-lock img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.64) saturate(.85); }
.video-lock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,7,15,.9), transparent 60%); }
.lock-badge { position: absolute; z-index: 2; top: 20px; left: 20px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.32); background: rgba(2,7,15,.68); color: #fff; font: 500 10px var(--mono); letter-spacing: .1em; }
.play-button { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; border: 1px solid rgba(255,255,255,.72); background: rgba(13,26,34,.58); color: #fff; font-size: 23px; cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 12px 38px rgba(0,0,0,.32); }
.play-button:hover { border-color: var(--teal-soft); color: var(--teal-soft); }
.video-caption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; font-size: 13px; }
.liming-copy h2 { font-size: clamp(30px, 3.7vw, 48px); }
.liming-copy .action { margin-top: 26px; }

.case-card { min-height: 210px; padding: 26px 22px; background: linear-gradient(145deg, #0e202b, #091822); }
.case-card b { display: block; color: var(--white); font-size: 16px; margin-bottom: 14px; }
.case-card span { color: var(--copy); font-size: 13px; line-height: 1.7; }
.example { display: inline-block; margin-bottom: 28px; color: var(--warm); font: 500 10px var(--mono); letter-spacing: .1em; }
.case-note { color: var(--copy); font-size: 13px; margin: 22px 0 0; }

.insight-card { border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.insight-card h3 { margin-top: 18px; }
.insight-card .answer { display: none; margin-top: 16px; }
.insight-card[aria-expanded="true"] .answer { display: block; }
.insight-card[aria-expanded="true"] { background: var(--panel-2); }

.faq { border-top: 1px solid var(--stroke); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary { position: relative; list-style: none; padding: 24px 52px 24px 0; color: var(--white); font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; color: var(--teal); font: 400 22px var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 780px; margin: -4px 0 26px; color: var(--copy); line-height: 1.8; }

.contact-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); }
.contact-shell { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.contact-intro, .contact-box { background: linear-gradient(145deg, #0f2330, #091a25); padding: 40px; }
.contact-intro h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); }
.contact-intro p { color: var(--copy); line-height: 1.8; }
.suggestions { display: grid; gap: 8px; margin-top: 28px; }
.suggestions button { border: 1px solid var(--stroke); border-radius: 9px; background: rgba(4,15,23,.28); color: #c7d8da; padding: 13px 15px; text-align: left; cursor: pointer; font-family: var(--body); }
.suggestions button:hover { border-color: var(--teal); color: #fff; }
.contact-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.contact-tabs button { flex: 1; border: 1px solid var(--stroke); border-radius: 9px; background: transparent; color: var(--copy); padding: 13px; cursor: pointer; font-family: var(--body); font-weight: 600; }
.contact-tabs button[aria-selected="true"] { background: var(--teal-soft); color: var(--ink); border-color: var(--teal-soft); }
.chat-log { min-height: 190px; max-height: 270px; overflow: auto; padding: 18px; background: #030c16; border: 1px solid var(--stroke); }
.message { max-width: 88%; margin: 0 0 10px; padding: 12px 14px; background: var(--panel-2); color: #ccdde1; font-size: 13px; line-height: 1.65; }
.message.user { margin-left: auto; background: rgba(114, 212, 196, .14); color: #eefaf7; }
.message.assistant { margin-right: auto; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.field, .chat-form input { width: 100%; border: 1px solid var(--stroke); border-radius: 9px; background: #07131c; color: #fff; padding: 13px 14px; font: 400 14px var(--body); }
.chat-form button, .form-submit { border: 0; border-radius: 9px; background: var(--teal-soft); color: var(--ink); padding: 0 18px; font-family: var(--body); font-weight: 700; cursor: pointer; white-space: nowrap; }
.prototype-note { color: #75939c; font-size: 11px; margin: 10px 0 0; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inquiry-grid textarea, .inquiry-grid .wide { grid-column: 1 / -1; }
.inquiry-grid textarea { min-height: 110px; resize: vertical; }
.inquiry-grid .check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.inquiry-grid .check input { width: auto; margin-top: 3px; }
.form-submit { min-height: 46px; grid-column: 1 / -1; }
[hidden] { display: none !important; }

.site-footer { padding: 54px 28px 34px; border-top: 1px solid var(--stroke); background: #02070f; }
.footer-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand strong { display: block; font: 700 18px var(--display); color: var(--white); }
.footer-brand b { color: var(--warm); }
.footer-brand p, .footer-col a, .footer-col span { color: #78939c; font-size: 13px; line-height: 1.8; }
.footer-col h3 { margin: 0 0 14px; color: var(--white); font-size: 13px; }
.footer-col a, .footer-col span { display: block; text-decoration: none; margin: 4px 0; }
.footer-bottom { width: min(1180px, 100%); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(127,243,232,.09); color: #526e77; font: 400 11px var(--mono); }
.footer-biz span { white-space: nowrap; }
.footer-biz { margin: 0 0 10px; color: #6f8a93; font: 400 12px/1.7 "Noto Sans KR", sans-serif; word-break: keep-all; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,5,10,.82); backdrop-filter: blur(10px); }
.dialog { width: min(500px, 100%); max-height: min(90vh, 760px); overflow-y: auto; border: 1px solid var(--stroke-strong); border-radius: 20px; background: linear-gradient(145deg, #102531, #091923); padding: 36px; box-shadow: 0 30px 90px rgba(0,0,0,.56), 0 0 70px rgba(34,211,197,.05); }
.dialog.wide { width: min(920px, 100%); }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.dialog h2 { margin: 0; color: var(--white); font: 600 25px/1.4 var(--display); letter-spacing: -.035em; }
.dialog p { color: var(--copy); line-height: 1.8; }
.close { width: 38px; height: 38px; flex: none; border: 1px solid var(--stroke); border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; font-size: 20px; }
.auth-form { display: grid; gap: 14px; margin-top: 24px; }
.auth-form label { display: grid; gap: 7px; color: #b9ced3; font-size: 13px; }
.auth-form input { border: 1px solid var(--stroke); border-radius: 9px; background: #07131c; color: #fff; padding: 13px 14px; font: 400 14px var(--body); }
.auth-form .check { display: flex; grid-template-columns: auto 1fr; align-items: start; }
.auth-form .check input { width: auto; margin: 3px 8px 0 0; }
.auth-submit { min-height: 48px; border: 0; border-radius: 9px; background: var(--teal-soft); color: var(--ink); font-family: var(--body); font-weight: 700; cursor: pointer; }
.auth-switch { margin: 18px 0 0; text-align: center; font-size: 13px; }
.video-dialog { width: min(880px, 100%); }
.video-dialog video { display: block; width: 100%; max-height: 70vh; margin-top: 20px; border-radius: 18px; background: #07171a; }
.link-button { border: 0; padding: 0; background: transparent; color: var(--teal-soft); cursor: pointer; font: inherit; }
.locked-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.locked-actions button { min-height: 48px; }

@media (max-width: 1050px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .roles, .cases { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 78px 18px; }
  .principles, .insights { grid-template-columns: 1fr; }
  .services, .roles, .cases { grid-template-columns: repeat(2, 1fr); }
  .tech-flow { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .liming, .contact-shell { grid-template-columns: 1fr; gap: 1px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-desc { font-size: 14px; max-width: 92%; }
  .hero-actions { max-width: 340px; }
  .hero-actions .action { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .copy.hero-copy { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
  .hero-desc { display: none; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .action { min-height: 42px; }
  .services, .roles, .cases, .timeline { grid-template-columns: 1fr; }
  .card, .service-card { min-height: auto; }
  .phase { min-height: 140px; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .inquiry-grid textarea, .inquiry-grid .wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .dialog { padding: 26px 20px; }
  .locked-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
