:root {
  color-scheme: dark;
  /* 팔레트는 실제 앱 UI 값 그대로 (lib/core/design_system/app_colors.dart) */
  --bg: #0b0720;
  --titlebar: #150c2e;
  --ink: #efeaff;
  --muted: #a79ed8;
  --accent: #b0ff4d;
  --accent-strong: #6ea82a;
  --on-accent: #150d36;
  --gold: #ffcb3d;
  --cyan: #45dfff;
  --danger: #ff6b6b;
  --surface: #241757;
  --raised: #2f2066;
  --line: rgb(255 255 255 / 14%);
  --shadow: 0 30px 70px -25px rgb(0 0 0 / 65%);
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* 터미널 창 크롬 — 페이지 전체를 macOS 터미널 창처럼 감싼다 */
.term-window {
  background: var(--bg);
}

@media (min-width: 720px) {
  .term-window {
    max-width: 1120px;
    margin: 24px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 90px -30px rgb(0 0 0 / 65%);
  }
}

.term-titlebar {
  display: none;
}

@media (min-width: 720px) {
  .term-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--titlebar);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.term-dot-red { background: #ff5f57; }
.term-dot-yellow { background: #febc2e; }
.term-dot-green { background: #28c840; }

.term-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.site-header {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-copy .hero-icon {
    margin: 0 0 24px;
  }
  .hero-copy .cta-row {
    justify-content: flex-start;
  }
  .hero-copy p.lead {
    margin: 0 0 28px;
  }
}

.hero img.hero-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero h1::after {
  content: "_";
  color: var(--accent);
  animation: term-blink 1.1s steps(1) infinite;
}

@keyframes term-blink {
  50% { opacity: 0; }
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 640px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* `[ 라벨 ]` 형태 — 실제 앱의 TerminalButton(lib/features/jailbreak/presentation/widgets/terminal_button.dart) 그대로 */
.btn {
  display: inline-block;
  background: transparent;
  padding: 10px 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.15s;
}

.btn::before {
  content: "[ ";
}

.btn::after {
  content: " ]";
}

.btn-primary {
  color: var(--accent);
}

.btn-primary:hover {
  background: rgb(232 178 58 / 12%);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--accent);
  background: rgb(232 178 58 / 8%);
}

section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 8px;
}

section h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

section > p.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.loop-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.loop-step .num {
  display: block;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.loop-step .num::before {
  content: "[";
}

.loop-step .num::after {
  content: "]";
}

.loop-step h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.loop-step p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.feature-card h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.principle strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.principle span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.contact-card a {
  font-size: 18px;
  font-weight: 700;
}

.policy h2 {
  margin-top: 36px;
}

.policy h2:first-of-type {
  margin-top: 0;
}

.policy p,
.policy li {
  color: var(--muted);
  font-size: 15px;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.policy th,
.policy td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.policy th {
  background: var(--surface);
  color: var(--ink);
}

.meta-date {
  color: var(--muted);
  font-size: 13.5px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

footer a {
  color: var(--muted);
}

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb { font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.breadcrumb ol {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  opacity: .7;
}
.breadcrumb li + li::before { content: "/"; opacity: .5; margin-right: 6px; }
.breadcrumb a { color: inherit; }

/* ---- icantsaythat 전용 추가 ---- */

/* 채팅 미리보기 — 실제 스크린샷이 없어 진행 방식만 보여주는 목업 */
.chat-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.chat-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.redacted {
  display: inline-block;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: -1px;
  background: #000;
  color: #000;
  border-radius: 3px;
  padding: 0 2px;
  user-select: none;
}

.chat-mock-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.term-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
}

.log-line {
  margin: 0;
  color: var(--ink);
}

.log-line.is-sys {
  color: var(--muted);
  font-size: 12px;
}

.log-line.is-user {
  color: var(--accent);
}

.prompt {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

.tag {
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
}

.tag-ai {
  color: var(--muted);
  font-weight: 400;
}

.tag-sys {
  color: var(--muted);
  font-weight: 400;
}

.mock-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 20px 0 0;
}

/* 문의·계정 삭제 폼 */
.contact-card-form {
  text-align: left;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.support-form input,
.support-form select,
.support-form textarea {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  width: 100%;
}

.support-form textarea {
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.support-form button {
  justify-self: start;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 10px 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.support-form button::before {
  content: "[ ";
}

.support-form button::after {
  content: " ]";
}

.support-form button:hover {
  background: rgb(232 178 58 / 12%);
}

.support-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#form-status {
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}

#form-status[data-state="ok"] {
  color: var(--accent);
}

#form-status[data-state="error"] {
  color: var(--danger);
}

.form-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
}

/* 언어 전환 */
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}


/* ── AI 주식회사 전용 ───────────────────────────────── */
body {
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgb(120 78 255 / 38%), transparent 70%),
    radial-gradient(ellipse 70% 45% at 88% 108%, rgb(255 122 184 / 14%), transparent 70%);
  background-attachment: fixed;
}

/* 자원 배지 — 앱 헤더의 알약형 칩과 같은 형태 */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(10 6 26 / 50%);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.chip svg { display: block; }
.chip[data-tone="data"] { color: var(--cyan); }
.chip[data-tone="compute"] { color: var(--accent); }
.chip[data-tone="money"] { color: var(--gold); }

/* 성장 단계 타임라인 */
.stage-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 4%);
}
.stage-no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid currentcolor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
}
.stage-name { font-weight: 800; }
.stage-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.stage-lv {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* 수치 강조 */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.lime { color: var(--accent); }
.cyan { color: var(--cyan); }

/* 스크린샷 */
.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
}
.shots img {
  flex: 0 0 auto;
  width: min(240px, 62vw);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
}

/* 지원 폼 */
.support-form { display: grid; gap: 14px; margin-top: 18px; text-align: left; }
.support-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 700; }
.support-form input,
.support-form select,
.support-form textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(10 6 26 / 55%);
  color: var(--ink);
  font: inherit;
}
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus { border-color: var(--accent); outline: none; }
.support-form button {
  justify-self: start;
  padding: 12px 26px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 4px 0 0 var(--accent-strong);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}
.support-form button:active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--accent-strong); }
.support-form button[disabled] { filter: grayscale(0.6) brightness(0.7); cursor: progress; }
.form-note { margin-top: 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.7; text-align: left; }
#form-status { margin: 0; font-size: 0.88rem; font-weight: 700; }
#form-status[data-state="ok"] { color: var(--accent); }
#form-status[data-state="error"] { color: var(--danger); }
