:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(15, 31, 51, 0.78);
  --panel-solid: #0f1f33;
  --line: rgba(152, 185, 220, 0.18);
  --text: #edf6ff;
  --muted: #9fb1c7;
  --cyan: #32d6ff;
  --blue: #4e7dff;
  --gold: #ffc857;
  --green: #4de1a8;
  --purple: #b983ff;
  --danger: #ff7b7b;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(50,214,255,.12), transparent 24rem),
    radial-gradient(circle at 85% 12%, rgba(78,125,255,.14), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", Consolas, monospace; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(7,17,31,.78); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03101c; font-weight: 900;
  box-shadow: 0 8px 28px rgba(50,214,255,.25);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: -2px; }
.desktop-nav { display: flex; gap: 22px; color: #c9d7e6; font-size: .95rem; }
.desktop-nav a:hover { color: var(--cyan); }
.icon-button {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 12px; width: 42px; height: 42px; cursor: pointer;
}
.mobile-only { display: none; }
.mobile-menu {
  position: fixed; right: 0; top: 0; z-index: 100; width: min(320px, 88vw); height: 100vh;
  padding: 20px; display: flex; flex-direction: column; gap: 18px;
  background: #0a1728; border-left: 1px solid var(--line);
  transform: translateX(102%); transition: .25s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .icon-button { align-self: flex-end; }
.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 92px 0; }
.hero {
  min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 60px;
}
.eyebrow { color: var(--cyan); letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.hero h1 {
  margin: 16px 0 20px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .95; letter-spacing: -.055em;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), #7da1ff 65%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 680px; color: #b8c7d8; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; transition: .2s ease; font-weight: 750;
}
.button.primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #04111d; }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(50,214,255,.25); }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.button.ghost:hover { border-color: rgba(50,214,255,.55); }
.button.full { width: 100%; }
.hero-notice {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border-left: 3px solid var(--gold); background: rgba(255,200,87,.08); border-radius: 0 12px 12px 0;
}
.hero-notice span { color: #d6c89f; font-size: .92rem; }
.hero-panel { position: relative; display: grid; place-items: center; min-height: 500px; }
.board-visual {
  position: relative; width: min(360px, 78vw); aspect-ratio: .7;
  border-radius: 34px; background:
    linear-gradient(145deg, rgba(255,255,255,.06), transparent 20%),
    #173e61;
  box-shadow: 0 40px 100px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.05);
  transform: rotate(5deg);
}
.board-visual::before {
  content:""; position:absolute; inset:24px; border:1px solid rgba(120,220,255,.18); border-radius:26px;
}
.board-chip {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%);
  width: 55%; aspect-ratio: 1; border-radius: 20px; display:grid; place-items:center;
  background: #0a1420; color:#afc6da; font-weight: 900; letter-spacing:.15em;
  box-shadow: inset 0 0 0 2px #253342, 0 18px 28px rgba(0,0,0,.3);
}
.board-port {
  position:absolute; left:50%; bottom:0; transform:translate(-50%, 30%);
  width:42%; height:12%; border-radius:10px 10px 18px 18px; background:#b7c2ca;
  box-shadow: inset 0 -10px 14px rgba(0,0,0,.25);
}
.board-led {
  position:absolute; right:22%; top:18%; width:14px; height:14px; border-radius:50%;
  background:var(--green); box-shadow:0 0 24px var(--green);
}
.pin-row { position:absolute; top:10%; bottom:10%; width:18px; background:repeating-linear-gradient(to bottom,#d7b35e 0 9px,transparent 9px 22px); }
.pin-row.left { left:-8px; }
.pin-row.right { right:-8px; }
.status-card {
  position:absolute; right:-10px; bottom:30px; display:grid; gap:10px; padding:18px 20px;
  border:1px solid var(--line); background:rgba(8,21,36,.88); backdrop-filter:blur(14px);
  border-radius:18px; box-shadow:var(--shadow); color:#cbd8e6;
}
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:9px; }
.green{background:var(--green)} .blue{background:var(--cyan)} .gold{background:var(--gold)} .purple{background:var(--purple)}
.section-heading { margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 6px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); margin: 0; }
.section-heading.split { display:flex; justify-content:space-between; gap:24px; align-items:end; }
.timeline { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.timeline article, .project-card {
  border:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border-radius:var(--radius); padding:24px; box-shadow:var(--shadow);
}
.timeline article span {
  width:38px; height:38px; border-radius:12px; display:grid; place-items:center;
  background:rgba(50,214,255,.12); color:var(--cyan); font-weight:900;
}
.timeline h3 { margin:22px 0 8px; }
.timeline p { color:var(--muted); margin:0; }
.filters { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.filter, .tab, .mini-button {
  border:1px solid var(--line); background:rgba(255,255,255,.03); color:#cbd8e6;
  padding:9px 13px; border-radius:999px; cursor:pointer;
}
.filter.active, .tab.active { color:#04111d; border-color:transparent; background:var(--cyan); font-weight:800; }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.project-card { position:relative; overflow:hidden; transition:.2s ease; }
.project-card:hover { transform:translateY(-5px); border-color:rgba(50,214,255,.38); }
.project-card::after {
  content:""; position:absolute; width:140px; height:140px; border-radius:50%; right:-70px; top:-70px;
  background:radial-gradient(circle, rgba(50,214,255,.18), transparent 65%);
}
.project-meta { display:flex; gap:8px; flex-wrap:wrap; }
.badge { padding:5px 9px; border-radius:999px; background:rgba(255,255,255,.06); color:#b9cadb; font-size:.78rem; }
.badge.level-easy { color:var(--green); background:rgba(77,225,168,.1); }
.badge.level-medium { color:var(--gold); background:rgba(255,200,87,.1); }
.badge.level-advanced { color:var(--purple); background:rgba(185,131,255,.1); }
.project-card h3 { margin:18px 0 8px; font-size:1.25rem; }
.project-card p { color:var(--muted); min-height:76px; }
.project-card button { width:100%; margin-top:10px; }
.prompt-section { position:relative; }
.builder-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.panel {
  border:1px solid var(--line); background:var(--panel); backdrop-filter:blur(12px);
  border-radius:var(--radius); box-shadow:var(--shadow);
}
.form-panel, .output-panel, .report-form { padding:24px; }
label { display:block; color:#dbe7f2; font-weight:700; font-size:.92rem; }
input, textarea, select {
  width:100%; margin-top:8px; padding:13px 14px; border-radius:13px;
  border:1px solid rgba(145,179,214,.22); background:#091626; color:var(--text); outline:none;
}
input:focus, textarea:focus, select:focus { border-color:var(--cyan); box-shadow:0 0 0 3px rgba(50,214,255,.1); }
.form-panel { display:grid; gap:16px; }
.inline-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.panel-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.output-panel pre, .code-panel pre {
  min-height:420px; max-height:560px; overflow:auto; margin:0; padding:18px;
  border-radius:16px; background:#06101c; border:1px solid rgba(255,255,255,.05);
  white-space:pre-wrap; color:#c9f4ff;
}
.tip-box, .warning { margin-top:16px; padding:18px; display:flex; flex-direction:column; gap:5px; }
.tip-box { border-radius:16px; background:rgba(50,214,255,.07); color:#bdd9e3; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:720px; }
th, td { padding:16px 18px; border-bottom:1px solid var(--line); text-align:left; }
th { color:var(--cyan); background:rgba(50,214,255,.05); }
td { color:#c7d5e3; }
td code { color:#fff; background:rgba(255,255,255,.06); padding:3px 7px; border-radius:7px; }
.warning { border-left:4px solid var(--danger); }
.warning p { color:#ccbcbc; margin:0; }
.tabs { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; }
.code-panel { padding:20px; }
.code-panel pre { min-height:360px; }
.search-input { width:min(360px,100%); }
.accordion-list { display:grid; gap:12px; }
.accordion {
  border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.025); overflow:hidden;
}
.accordion button {
  width:100%; display:flex; justify-content:space-between; gap:20px; padding:18px 20px;
  border:0; background:transparent; color:var(--text); cursor:pointer; text-align:left; font-weight:800;
}
.accordion-content { display:none; padding:0 20px 20px; color:var(--muted); }
.accordion.open .accordion-content { display:block; }
.accordion-content code { color:var(--cyan); }
.report-form { display:grid; gap:16px; }
.check-row { display:flex; flex-wrap:wrap; gap:16px; color:var(--muted); }
.check-row label { font-weight:500; }
.check-row input { width:auto; margin-right:8px; }
.mentor-section {
  display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:center;
  border-top:1px solid var(--line);
}
.mentor-copy ol { color:#c8d6e4; padding-left:22px; }
.mentor-card { padding:28px; border-radius:var(--radius); background:linear-gradient(135deg,rgba(78,125,255,.16),rgba(50,214,255,.08)); border:1px solid rgba(100,159,255,.28); }
.mentor-card p { margin-bottom:0; color:#cad8e8; }
dialog {
  width:min(760px, calc(100% - 28px)); max-height:90vh; border:1px solid var(--line);
  border-radius:24px; background:#0a1728; color:var(--text); padding:0; box-shadow:0 40px 100px rgba(0,0,0,.55);
}
dialog::backdrop { background:rgba(0,7,14,.78); backdrop-filter:blur(6px); }
.dialog-close { position:absolute; right:16px; top:16px; width:40px; height:40px; border-radius:12px; border:1px solid var(--line); background:#102238; color:#fff; cursor:pointer; }
#dialogContent { padding:30px; }
.dialog-section { margin-top:20px; }
.dialog-section h4 { margin-bottom:8px; color:var(--cyan); }
.dialog-section ul { color:#c6d4e2; }
.dialog-prompt {
  background:#06101c; padding:16px; border-radius:14px; white-space:pre-wrap; color:#c9f4ff; overflow:auto;
}
.toast {
  position:fixed; left:50%; bottom:28px; transform:translate(-50%, 120px); z-index:200;
  padding:12px 18px; border-radius:12px; background:#e9f8ff; color:#07111f; font-weight:800;
  transition:.25s ease; box-shadow:var(--shadow);
}
.toast.show { transform:translate(-50%, 0); }
footer {
  width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:28px 0 44px;
  border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; color:var(--muted);
}
footer strong { color:var(--text); }
@media (max-width: 980px) {
  .desktop-nav { display:none; } .mobile-only { display:block; }
  .hero { grid-template-columns:1fr; padding-top:60px; }
  .hero-panel { min-height:440px; }
  .timeline, .project-grid { grid-template-columns:repeat(2,1fr); }
  .builder-grid, .mentor-section { grid-template-columns:1fr; }
  .section-heading.split { align-items:flex-start; flex-direction:column; }
  .filters { justify-content:flex-start; }
}
@media (max-width: 640px) {
  .section { width:min(100% - 24px,1180px); padding:70px 0; }
  .topbar { padding:10px 14px; }
  .hero { min-height:auto; gap:28px; }
  .hero h1 { font-size:3.2rem; }
  .hero-panel { min-height:370px; }
  .status-card { right:0; bottom:0; }
  .timeline, .project-grid, .inline-fields { grid-template-columns:1fr; }
  .timeline article { padding:20px; }
  .project-card p { min-height:auto; }
  .check-row { flex-direction:column; gap:8px; }
}
@media print {
  body * { visibility:hidden; }
  #pinmap, #pinmap * { visibility:visible; }
  #pinmap { position:absolute; left:0; top:0; width:100%; color:#000; }
  #pinmap .button, #pinmap .warning { display:none; }
  #pinmap .panel { box-shadow:none; border:1px solid #ccc; background:#fff; }
  #pinmap td, #pinmap th, #pinmap h2, #pinmap p { color:#000; }
}


.hero-panel {
  grid-template-columns: auto auto minmax(220px, 340px) auto auto;
  gap: 14px;
}
.logic-card {
  min-width: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8,21,36,.86);
  box-shadow: var(--shadow);
  text-align: center;
}
.logic-card span {
  display: block;
  color: var(--cyan);
  font-size: .74rem;
  letter-spacing: .12em;
  font-weight: 900;
}
.logic-card strong { display:block; margin-top:4px; }
.logic-arrow { color: var(--cyan); font-size: 2rem; font-weight: 900; }
.design-output {
  min-height: 480px;
  padding: 4px;
}
.design-output.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.design-block {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.design-block:last-child { border-bottom: 0; }
.design-block h3 {
  margin: 0 0 8px;
  color: var(--cyan);
}
.design-block ul, .design-block ol {
  margin: 8px 0 0;
  padding-left: 22px;
  color: #c7d5e3;
}
.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.part-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}
.part-card h3 { margin: 12px 0 8px; }
.part-card p { color: var(--muted); }
.part-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: .92rem;
}
.part-meta span {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #c9d7e6;
}
.web-paths {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.path-card {
  position: relative;
  padding: 26px;
}
.path-card h3 { margin: 18px 0 8px; }
.path-card p, .path-card li { color: var(--muted); }
.path-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04111d;
  font-weight: 900;
}
.path-card .button { margin-top: 10px; width: 100%; }
@media (max-width: 980px) {
  .hero-panel {
    grid-template-columns: auto auto minmax(180px, 300px) auto auto;
  }
  .parts-grid, .web-paths { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .hero-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .logic-arrow { transform: rotate(90deg); }
  .board-visual { width: min(240px, 70vw); }
  .parts-grid, .web-paths { grid-template-columns: 1fr; }
}
