:root {
  --accent: #3156d8;
  --accent-rgb: 49, 86, 216;
  --soft: #eaf0ff;
  --ink: #101c33;
  --muted: #738096;
  --line: #dfe5ee;
  --page: #f4f7fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; }

.shell { max-width: 1500px; min-height: 100vh; margin: auto; display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 22px; padding: 22px; }
.side { position: sticky; top: 22px; align-self: start; display: grid; gap: 15px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 17px 15px; color: #21418f; font-weight: 900; letter-spacing: -.5px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px 4px 10px 4px; background: linear-gradient(145deg, #3156d8, #54a5ff); position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 13px; height: 5px; border: 3px solid white; border-left: 0; border-bottom: 0; transform: rotate(-8deg); left: 7px; top: 10px; }
.side-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(28, 53, 88, .06); }
.side-label { margin: 0 0 10px; color: #7a8799; font-size: 12px; font-weight: 800; }
.account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tiny-btn { min-height: 38px; border: 1px solid #d8e0eb; border-radius: 12px; background: #fff; color: #26354b; font-weight: 800; }
.side-topic { font-size: 14px; font-weight: 850; line-height: 1.45; }
.side-topic span { display: block; margin-top: 5px; color: var(--accent); font-size: 12px; }
.sample { display: block; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #4c86ef); color: #fff; text-decoration: none; font-weight: 850; line-height: 1.45; }
.sample small { display: block; margin-top: 5px; opacity: .82; font-weight: 650; }
.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 15; top: 14px; display: grid; grid-template-columns: repeat(8, minmax(78px, 1fr)); gap: 9px; padding: 10px; margin-bottom: 18px; border: 1px solid rgba(217, 225, 236, .9); border-radius: 20px; background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px rgba(28, 53, 88, .07); backdrop-filter: blur(14px); }
.topbar a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border: 1px solid #e2e7ef; border-radius: 14px; color: #28364c; text-decoration: none; font-size: 14px; font-weight: 850; white-space: nowrap; }
.topbar a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #8c99a9); }
.topbar a.active { border-color: transparent; background: linear-gradient(135deg, var(--accent), #5c87f3); color: #fff; box-shadow: 0 8px 18px rgba(var(--accent-rgb), .24); }
.topbar a.active::before { background: #fff; }
.hero { position: relative; overflow: hidden; min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 28px; padding: 54px 58px; border: 1px solid #e4eaf2; border-radius: 30px; background: radial-gradient(circle at 84% 32%, rgba(var(--accent-rgb), .19), transparent 34%), linear-gradient(135deg, #fff 5%, var(--soft)); box-shadow: 0 15px 42px rgba(28, 53, 88, .07); }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; border: 36px solid rgba(var(--accent-rgb), .07); border-radius: 50%; right: -105px; bottom: -120px; }
.eyebrow { display: inline-flex; padding: 8px 13px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.hero h1 { max-width: 740px; margin: 19px 0 16px; font-size: clamp(36px, 4.2vw, 62px); line-height: 1.08; letter-spacing: -2.8px; }
.hero p { max-width: 690px; margin: 0; color: #516078; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 10px; margin-top: 25px; }
.hero-actions a { padding: 13px 20px; border-radius: 14px; text-decoration: none; font-size: 14px; font-weight: 850; }
.primary { background: var(--accent); color: #fff; box-shadow: 0 9px 22px rgba(var(--accent-rgb), .22); }
.secondary { border: 1px solid #d7dfeb; background: #fff; color: #28364c; }
.home-visual { position: relative; min-height: 270px; }
.paper { position: absolute; left: 10%; top: 5%; width: 62%; height: 79%; padding: 22px; border: 8px solid white; border-radius: 18px; background: #fff; box-shadow: 0 24px 46px rgba(28, 53, 88, .16); transform: rotate(-7deg); }
.paper strong { display: block; color: var(--accent); font-size: 24px; }
.paper-line { height: 8px; margin-top: 14px; border-radius: 10px; background: #dfe7f4; }
.paper-line.short { width: 60%; }
.learn-bubble { position: absolute; right: 4%; bottom: 7%; width: 150px; padding: 19px; border-radius: 22px; background: var(--accent); color: #fff; box-shadow: 0 18px 35px rgba(var(--accent-rgb), .27); transform: rotate(4deg); }
.learn-bubble b { display: block; font-size: 17px; }
.learn-bubble span { display: block; margin-top: 5px; font-size: 12px; opacity: .82; }
.footer { padding: 24px 8px 10px; color: #8994a5; font-size: 12px; text-align: center; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: auto 1fr 1fr; }
  .brand { padding: 10px; }
  .topbar { top: 8px; }
}

@media (max-width: 820px) {
  .shell { padding: 12px; }
  .side { grid-template-columns: 1fr; }
  .side-card:not(:first-of-type) { display: none; }
  .topbar { position: static; display: flex; overflow-x: auto; }
  .topbar a { min-width: 108px; }
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .home-visual { min-height: 230px; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; }
  .home-visual { display: none; }
}
