:root {
  --bg: #0b1020;
  --bg-alt: #0f162b;
  --card: #131c36;
  --line: #22304f;
  --text: #e6ebf5;
  --muted: #9aa6c0;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --radius: 14px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; background: rgba(11, 16, 32, .72); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; letter-spacing: .2px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--grad); color: #0b1020; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 211, 238, .25); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#synapse-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(11,16,32,.2), var(--bg) 75%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding-top: 64px; }
.eyebrow { color: var(--cyan); font-size: .85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.15; font-weight: 800; margin-bottom: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; color: var(--muted); font-size: 1.12rem; }
.motto { margin-top: 18px; font-style: italic; color: var(--violet); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 18px; }
.section-lead { max-width: 760px; color: var(--muted); margin-bottom: 44px; font-size: 1.05rem; }
.sub { margin: 70px 0 26px; font-size: 1.35rem; }
.grid { display: grid; gap: 22px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.card-accent { border-color: rgba(167, 139, 250, .55); box-shadow: 0 0 40px rgba(167, 139, 250, .12); }
.card .icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--muted); }

.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.benefit b { font-size: 1.1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.benefit span { color: var(--muted); font-size: .93rem; }

.pipeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.pipeline li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.pipeline li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--cyan); z-index: 1; }
.pipeline .step { display: block; font-size: .8rem; color: var(--cyan); font-weight: 700; margin-bottom: 8px; }
.pipeline b { display: block; margin-bottom: 6px; }
.pipeline p { color: var(--muted); font-size: .9rem; }

.tech { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.tech h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.2rem; }
.tag { font-size: .75rem; font-weight: 800; padding: 4px 9px; border-radius: 6px; background: var(--grad); color: #0b1020; }
.tech ul { list-style: none; display: grid; gap: 10px; }
.tech li { color: var(--muted); padding-left: 16px; position: relative; }
.tech li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.tech li b { color: var(--text); font-weight: 600; }
.tech em { color: var(--violet); font-style: normal; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips span { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--muted); background: var(--card); transition: color .2s, border-color .2s; }
.chips span:hover { color: var(--text); border-color: var(--violet); }

.contact { text-align: center; background: radial-gradient(ellipse at center, rgba(34,211,238,.10), transparent 65%); }
.contact-inner p { color: var(--muted); margin-bottom: 30px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 24px; background: var(--bg-alt); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .section { padding: 80px 0; }
}
