:root {
      --bg: #07111f;
      --bg2: #0a1b2b;
      --card: #101d30;
      --card2: #0e1a2b;
      --line: rgba(255,255,255,.12);
      --text: #f6f9ff;
      --muted: #a8b8cc;
      --muted2: #7f91aa;
      --blue: #55a5ff;
      --blue2: #7cc8ff;
      --cyan: #46e3b7;
      --shadow: 0 22px 60px rgba(0,0,0,.35);
      --radius: 24px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
      background:
        radial-gradient(circle at 10% 0%, rgba(85,165,255,.22), transparent 34%),
        radial-gradient(circle at 92% 92%, rgba(70,227,183,.13), transparent 35%),
        linear-gradient(180deg, #07111f 0%, #07111f 55%, #061521 100%);
      line-height: 1.58;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }

    .page {
      width: min(1040px, calc(100% - 28px));
      margin: 0 auto;
      padding: 22px 0 50px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 4px 0 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      font-weight: 950;
      letter-spacing: -.04em;
    }

    .brand-dot {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--blue), var(--cyan));
      box-shadow: 0 0 22px rgba(85,165,255,.86);
    }

    .home-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.04);
      color: #d7e6fa;
      font-weight: 850;
      font-size: 14px;
      white-space: nowrap;
    }

    .promo {
      margin: 0 auto 24px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 18px;
      background: rgba(16,29,48,.92);
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 78px 1fr auto;
      gap: 14px;
      align-items: center;
    }

    .promo img {
      width: 78px;
      height: 78px;
      border-radius: 14px;
      object-fit: cover;
      background: #142238;
      border: 1px solid rgba(255,255,255,.08);
    }

    .promo-title {
      display: block;
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.04em;
      margin-bottom: 4px;
    }

    .promo-desc {
      display: block;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .promo-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 18px;
      border-radius: 14px;
      background: linear-gradient(135deg, #4199ff, #71cfff);
      color: #06111f;
      font-weight: 950;
      white-space: nowrap;
      box-shadow: 0 12px 28px rgba(85,165,255,.3);
    }

    .hero {
      padding: 34px 0 22px;
    }

    .hero h1 {
      margin: 0 0 12px;
      font-size: clamp(42px, 8vw, 72px);
      line-height: 1.02;
      letter-spacing: -.075em;
    }

    .hero p {
      margin: 0;
      color: var(--muted);
      font-size: 18px;
      font-weight: 700;
      word-break: keep-all;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 18px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.04);
      color: #d7e6fa;
      font-size: 13px;
      font-weight: 800;
    }

    .app-grid {
      display: grid;
      grid-template-columns: 1.12fr .88fr;
      gap: 20px;
      align-items: start;
      margin-top: 10px;
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(16,29,48,.82);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .panel-head {
      padding: 19px 20px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.025);
    }

    .panel-head h2 {
      margin: 0;
      font-size: 21px;
      letter-spacing: -.04em;
    }

    .panel-body {
      padding: 20px;
    }

    .step {
      padding: 0 0 22px;
      margin-bottom: 22px;
      border-bottom: 1px solid rgba(255,255,255,.09);
    }

    .step:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }

    .step-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 13px;
      font-weight: 950;
      letter-spacing: -.035em;
    }

    .step-no {
      width: 25px;
      height: 25px;
      display: inline-grid;
      place-items: center;
      border-radius: 50%;
      color: #bfe3ff;
      background: rgba(85,165,255,.16);
      font-size: 13px;
      flex: 0 0 auto;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .chip {
      appearance: none;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      background: rgba(255,255,255,.045);
      color: #e5effd;
      padding: 10px 13px;
      font-size: 14px;
      font-weight: 850;
      cursor: pointer;
      transition: transform .15s ease, border-color .15s ease, background .15s ease;
    }

    .chip:hover {
      transform: translateY(-1px);
      border-color: rgba(85,165,255,.55);
    }

    .chip.active {
      color: #06111f;
      background: linear-gradient(135deg, var(--blue), var(--blue2));
      border-color: transparent;
      box-shadow: 0 10px 24px rgba(85,165,255,.28);
    }

    .result-card {
      padding: 22px;
      position: sticky;
      top: 18px;
    }

    .status {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(70,227,183,.11);
      color: #9df2dc;
      font-size: 13px;
      font-weight: 950;
      margin-bottom: 16px;
    }

    .result-title {
      margin: 0 0 14px;
      font-size: 28px;
      line-height: 1.22;
      letter-spacing: -.055em;
      word-break: keep-all;
    }

    .query-preview {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid rgba(85,165,255,.28);
      background: rgba(85,165,255,.08);
      color: #f1f8ff;
      font-size: 20px;
      font-weight: 950;
      line-height: 1.45;
      letter-spacing: -.04em;
      word-break: keep-all;
      margin-bottom: 10px;
    }

    .selected-preview {
      color: var(--muted);
      font-size: 13px;
      font-weight: 750;
      margin: 0 0 14px;
      line-height: 1.55;
      word-break: keep-all;
    }

    .result-copy {
      color: #cfe0f7;
      font-size: 15px;
      font-weight: 700;
      margin: 0 0 16px;
      word-break: keep-all;
    }

    .recommend-buttons {
      display: grid;
      gap: 10px;
    }

    .rec-btn,
    .empty {
      width: 100%;
      min-height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-radius: 16px;
      padding: 14px 16px;
      border: 1px solid rgba(85,165,255,.24);
      background: rgba(85,165,255,.1);
      color: var(--text);
      font-weight: 950;
      letter-spacing: -.03em;
    }

    .rec-btn span:last-child {
      color: var(--blue2);
    }

    .empty {
      justify-content: center;
      color: var(--muted);
      border-style: dashed;
      background: rgba(255,255,255,.035);
      text-align: center;
    }

    .seo-box {
      width: 100%;
      margin: 32px auto 0;
      padding: 20px;
      border-radius: 20px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.04);
      color: #becbe0;
      font-size: 14px;
      word-break: keep-all;
    }

    .seo-box strong { color: var(--text); }

    .footer {
      width: min(1040px, calc(100% - 28px));
      margin: 36px auto 0;
      padding: 26px 0 8px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .footer a {
      color: #dce8fa;
      font-weight: 900;
    }

    @media (max-width: 860px) {
      .page { width: min(720px, calc(100% - 22px)); padding-top: 14px; }
      .app-grid { grid-template-columns: 1fr; }
      .result-card { position: static; }
      .footer { width: min(720px, calc(100% - 22px)); display: block; }
      .footer a { display: inline-block; margin-top: 8px; }
    }

    @media (max-width: 560px) {
      .topbar { align-items: flex-start; }
      .brand { font-size: 20px; }
      .promo {
        grid-template-columns: 70px 1fr;
      }
      .promo img {
        width: 70px;
        height: 70px;
      }
      .promo-btn {
        grid-column: 1 / -1;
        min-height: 44px;
      }
      .hero h1 { font-size: 34px; }
      .hero p { font-size: 16px; }
      .panel-body { padding: 16px; }
      .result-title { font-size: 25px; }
      .query-preview { font-size: 18px; }
      .chip { padding: 10px 12px; }
    }
