:root {
  --ink: #221e2e;
  --muted: #766f83;
  --subtle: #a49eaf;
  --line: #e9e4ee;
  --surface: #ffffff;
  --surface-soft: #fbfaff;
  --purple: #6d46d9;
  --purple-dark: #5330b9;
  --purple-soft: #f0ecff;
  --purple-wash: #f8f6ff;
  --lavender: #cfc5f8;
  --green: #2e9b70;
  --shadow: 0 20px 60px rgba(45, 31, 77, 0.09);
  --shadow-soft: 0 8px 30px rgba(56, 42, 87, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #faf9fc;
  font-family: "DM Sans", "Noto Sans Myanmar", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-shell { max-width: 1480px; margin: 0 auto; padding: 0 32px; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(233, 228, 238, 0.8); }
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 10px; background: var(--purple); transform: rotate(-8deg); box-shadow: 0 7px 16px rgba(109, 70, 217, .22); }
.brand-mark span { width: 3px; display: block; border-radius: 5px; background: white; }
.brand-mark span:nth-child(1) { height: 9px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 12px; opacity: .8; }
.brand-copy { display: flex; gap: 3px; align-items: baseline; font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; font-size: 18px; }
.brand-copy small { color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.local-badge, .output-live { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46, 155, 112, .1); }
.language-switcher { padding: 3px; display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.language-button { border: 0; border-radius: 7px; padding: 6px 9px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.language-button.is-active { color: var(--purple-dark); background: var(--purple-soft); }

main { padding: 57px 0 75px; }
.hero-section { display: flex; align-items: center; justify-content: space-between; min-height: 198px; padding: 0 6%; }
.eyebrow, .section-kicker { margin: 0; color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { display: block; width: 22px; height: 1px; background: var(--purple); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", "Noto Sans Myanmar", sans-serif; }
h1 { max-width: 590px; margin: 16px 0 15px; font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -.065em; }
.hero-description { max-width: 530px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.hero-link { color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-link:hover { color: var(--purple); }
.hero-orbit { position: relative; flex: 0 0 220px; width: 220px; height: 180px; margin-right: 5%; }
.orbit-ring { position: absolute; border: 1px solid var(--lavender); border-radius: 50%; transform: rotate(-23deg); }
.ring-one { width: 175px; height: 92px; top: 45px; left: 16px; }
.ring-two { width: 150px; height: 150px; top: 17px; left: 32px; opacity: .45; }
.orbit-core { position: absolute; top: 63px; left: 91px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; color: white; background: linear-gradient(145deg, #8b6af0, var(--purple)); box-shadow: 0 14px 30px rgba(109, 70, 217, .27); transform: rotate(10deg); }
.orbit-core span { font-size: 22px; transform: rotate(-10deg); }
.orbit-label { position: absolute; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.8); box-shadow: var(--shadow-soft); font-family: "Space Grotesk", sans-serif; font-size: 10px; }
.label-one { top: 31px; right: 4px; transform: rotate(9deg); }
.label-two { bottom: 26px; left: 2px; transform: rotate(-8deg); }

.panel-lift { margin: 0 6%; }
.mode-panel { display: flex; align-items: center; gap: 36px; padding: 17px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); box-shadow: var(--shadow-soft); }
.mode-intro { width: 168px; flex-shrink: 0; }
.muted-text, .field-heading > span, .field-heading > div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.mode-options { display: flex; flex: 1; gap: 10px; }
.mode-option { position: relative; display: flex; align-items: center; gap: 12px; flex: 1; min-height: 58px; padding: 9px 13px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); background: var(--surface-soft); text-align: left; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.mode-option:hover { transform: translateY(-2px); border-color: var(--lavender); }
.mode-option.is-active { border-color: #b8a8f0; background: var(--purple-wash); }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { font-size: 13px; }
.mode-option small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.mode-arrow { margin-left: auto; color: var(--purple); font-size: 18px; opacity: .8; }
.mode-icon { position: relative; display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; color: var(--purple); background: var(--purple-soft); }
.image-icon span { display: block; width: 15px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.image-icon span:before { content: ""; position: absolute; width: 3px; height: 3px; top: 2px; right: 2px; border-radius: 50%; background: currentColor; }
.image-icon span:after { content: ""; position: absolute; bottom: 2px; left: 2px; width: 8px; height: 5px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: skewY(-33deg) rotate(13deg); }
.video-icon span:first-child { width: 14px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.video-icon span:last-child { position: absolute; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid currentColor; }

.surprise-panel { position: relative; margin-top: 29px; padding: 26px 28px 28px; overflow: hidden; border: 1px solid #ded5fb; border-radius: var(--radius-lg); background: linear-gradient(120deg, #fbfaff 0%, #f4efff 52%, #fcfbff 100%); box-shadow: 0 16px 42px rgba(109,70,217,.08); }
.surprise-panel:before, .surprise-panel:after { content: ""; position: absolute; border: 1px solid rgba(176,157,239,.38); border-radius: 50%; pointer-events: none; }
.surprise-panel:before { width: 230px; height: 230px; right: -113px; top: -144px; }
.surprise-panel:after { width: 160px; height: 160px; left: -90px; bottom: -107px; }
.surprise-panel-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.surprise-heading-copy h2 { margin-bottom: 7px; }
.surprise-description { max-width: 570px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.surprise-empty { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-top: 20px; padding: 14px 16px; border: 1px dashed #cfc3f2; border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.55); font-size: 12px; }
.surprise-empty-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 8px; color: white; background: var(--purple); font-size: 13px; box-shadow: 0 5px 12px rgba(109,70,217,.2); }
.surprise-result { position: relative; z-index: 1; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(207,197,248,.65); }
.idea-card-head { display: flex; justify-content: space-between; gap: 18px; }
.idea-category { display: inline-flex; padding: 5px 8px; border-radius: 6px; color: var(--purple-dark); background: rgba(255,255,255,.75); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.idea-card-head h3 { margin: 11px 0 5px; font-size: 25px; letter-spacing: -.05em; }
.idea-mood { margin: 0; color: var(--muted); font-size: 12px; font-style: italic; }
.idea-sparkle { color: var(--purple); font-size: 28px; }
.idea-detail-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 20px; }
.idea-detail { min-width: 0; padding: 11px 12px; border: 1px solid rgba(207,197,248,.66); border-radius: 10px; background: rgba(255,255,255,.64); }
.idea-detail span, .idea-detail strong { display: block; }
.idea-detail span { color: var(--subtle); font-size: 10px; }
.idea-detail strong { margin-top: 5px; color: var(--ink); font-size: 11px; line-height: 1.4; }
.surprise-ratio-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.surprise-ratios { display: flex; gap: 5px; }
.surprise-ratio { min-width: 52px; padding: 7px 9px; border: 1px solid rgba(207,197,248,.85); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.7); font-size: 11px; }
.surprise-ratio:hover, .surprise-ratio.is-selected { border-color: #aa96ee; color: var(--purple-dark); background: var(--purple-soft); font-weight: 700; }
.surprise-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.surprise-prompt-card, .surprise-negative-card { min-width: 0; padding: 16px; border: 1px solid rgba(207,197,248,.7); border-radius: 13px; background: rgba(255,255,255,.82); box-shadow: 0 8px 24px rgba(76,57,128,.05); }
.video-surprise-card { background: rgba(248,246,255,.9); }
.surprise-prompt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prompt-type-label, .surprise-prompt-meta { display: block; }
.prompt-type-label { color: var(--ink); font-size: 12px; font-weight: 700; }
.surprise-prompt-meta { margin-top: 4px; color: var(--subtle); font-size: 10px; }
.surprise-prompt-card p, .surprise-negative-card p { margin: 16px 0 0; color: #514a5c; font-size: 12px; line-height: 1.7; }
.surprise-negative-card { margin-top: 12px; background: rgba(255,255,255,.64); }
.surprise-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 17px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 34px; margin: 50px 6% 0; }
.builder-column, .output-column { min-width: 0; }
.section-heading, .output-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.045em; }
.step-count { color: var(--subtle); font-family: "Space Grotesk", sans-serif; font-size: 11px; letter-spacing: .08em; }
.category-wrap { margin-bottom: 24px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-heading label { color: var(--ink); font-size: 13px; font-weight: 700; }
.category-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.category-chip, .segment { border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 11px; transition: all .18s ease; }
.category-chip { padding: 9px 11px; }
.category-chip:hover, .category-chip.is-selected { color: var(--purple-dark); border-color: #b9aaf0; background: var(--purple-soft); }
.control-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.control-card + .control-card { margin-top: 13px; }
.field-heading-spaced { margin-bottom: 17px; }
.required-note, .video-pill { color: var(--subtle); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.video-pill { padding: 4px 6px; border-radius: 5px; color: var(--purple); background: var(--purple-soft); font-weight: 700; }
.input-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
.input-field { display: block; min-width: 0; }
.input-field > span { display: block; margin: 0 0 7px 2px; color: var(--muted); font-size: 11px; }
.input-field input { width: 100%; padding: 12px 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--ink); background: var(--surface-soft); font-size: 12px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.input-field input::placeholder { color: #aaa4b1; }
.input-field input:focus { border-color: #a994ee; background: white; box-shadow: 0 0 0 3px rgba(109,70,217,.09); }
.span-two { grid-column: span 2; }
.option-row { display: flex; gap: 22px; margin-top: 23px; }
.option-block { flex: 1; min-width: 0; }
.segmented-control { display: flex; gap: 5px; margin-top: 11px; }
.segment { flex: 1; min-width: 0; padding: 9px 8px; }
.segment:hover, .segment.is-selected { border-color: #b9aaf0; color: var(--purple-dark); background: var(--purple-soft); font-weight: 700; }
.action-row { display: flex; align-items: center; gap: 13px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 0 15px; border: 0; border-radius: 10px; font-size: 12px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { margin-left: auto; color: white; background: var(--purple); box-shadow: 0 10px 20px rgba(109,70,217,.22); }
.button-primary:hover { background: var(--purple-dark); box-shadow: 0 13px 24px rgba(109,70,217,.28); }
.button-secondary { color: var(--purple-dark); border: 1px solid #dcd4fb; background: var(--purple-soft); }
.button-secondary:hover { background: #e8e1ff; }
.button-surprise { border: 1px solid #c6b7f3; color: var(--purple-dark); background: linear-gradient(135deg, #f1ecff, #e5ddff); box-shadow: 0 8px 18px rgba(109,70,217,.12); }
.button-surprise:hover { border-color: #a994ee; background: linear-gradient(135deg, #e8e0ff, #dcd1ff); box-shadow: 0 11px 22px rgba(109,70,217,.18); }
.sparkle-icon { font-size: 15px; }
.text-button { padding: 8px 3px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.text-button:hover { color: var(--purple); }

.output-column { padding-left: 6px; }
.output-header { align-items: flex-end; }
.output-live { color: var(--green); font-size: 11px; }
.feedback { margin: -7px 0 13px; padding: 10px 12px; border-radius: 9px; font-size: 12px; line-height: 1.4; }
.feedback.success { color: #19734e; background: #e9f8f0; }
.feedback.error { color: #a23f4d; background: #fff0f2; }
.empty-state { position: relative; min-height: 496px; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 45px 28px; overflow: hidden; border: 1px dashed #d8d0e1; border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.93), rgba(247,244,255,.85)); text-align: center; }
.empty-state:before, .empty-state:after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(207,197,248,.55); }
.empty-state:before { width: 310px; height: 310px; top: -155px; right: -140px; }
.empty-state:after { width: 220px; height: 220px; bottom: -130px; left: -125px; }
.empty-visual { position: relative; width: 115px; height: 115px; margin-bottom: 21px; }
.empty-orb { position: absolute; top: 25px; left: 28px; display: grid; place-items: center; width: 61px; height: 61px; border: 1px solid #c7baf4; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(109,70,217,.12); }
.empty-orb:before { content: ""; width: 32px; height: 32px; border-radius: 13px; background: linear-gradient(145deg, #b8a8f0, var(--purple)); transform: rotate(45deg); }
.empty-orb span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.empty-star { position: absolute; color: var(--purple); }
.star-a { top: 10px; left: 8px; font-size: 17px; }
.star-b { right: 10px; bottom: 17px; color: #a99be7; font-size: 22px; }
.empty-state h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.04em; }
.empty-state p { max-width: 295px; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.empty-tip, .result-note { display: inline-flex; gap: 7px; align-items: center; color: var(--subtle); font-size: 11px; }
.tip-icon { color: var(--purple); font-size: 16px; }
.result-stack { display: flex; flex-direction: column; gap: 13px; }
.result-card { padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.prompt-card { border-color: #d9d0f9; box-shadow: 0 15px 35px rgba(109,70,217,.09); }
.result-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.result-label, .result-meta { display: block; }
.result-label { color: var(--ink); font-size: 13px; font-weight: 700; }
.result-meta { margin-top: 4px; color: var(--subtle); font-size: 10px; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--purple-dark); background: white; font-size: 11px; font-weight: 700; }
.copy-button:hover { border-color: #b9aaf0; background: var(--purple-soft); }
.copy-icon { position: relative; display: inline-block; width: 11px; height: 11px; border: 1.3px solid currentColor; border-radius: 2px; }
.copy-icon:before { content: ""; position: absolute; top: -4px; left: 3px; width: 7px; height: 8px; border: 1.3px solid currentColor; border-radius: 2px; background: white; }
.prompt-output { margin: 18px 0 2px; color: #4b4556; font-size: 13px; line-height: 1.78; }
.negative-card { background: #fcfbfd; }
.negative-output { width: 100%; min-height: 76px; resize: vertical; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--muted); background: white; font-size: 12px; line-height: 1.6; }
.negative-output:focus { border-color: #a994ee; box-shadow: 0 0 0 3px rgba(109,70,217,.09); }
.result-note { padding: 1px 5px; }
.result-note-icon { color: var(--purple); font-size: 15px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 23px 0 28px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
.footer-brand { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.footer a:hover { color: var(--purple); }

@media (max-width: 980px) {
  .app-shell { padding: 0 22px; }
  .hero-section, .panel-lift, .workspace { margin-left: 2%; margin-right: 2%; }
  .workspace { grid-template-columns: 1fr; gap: 42px; }
  .output-column { padding-left: 0; }
  .empty-state { min-height: 330px; }
  .idea-detail-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  .app-shell { padding: 0 15px; }
  .topbar { height: 72px; }
  .local-badge { display: none; }
  main { padding-top: 33px; }
  .hero-section { min-height: 0; display: block; padding: 0 2%; }
  h1 { max-width: 350px; font-size: 45px; }
  .hero-description { font-size: 13px; }
  .hero-orbit { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mode-panel { display: block; margin-top: 31px; padding: 15px; }
  .mode-intro { width: auto; margin-bottom: 13px; }
  .mode-options { gap: 7px; }
  .mode-option { min-height: 71px; padding: 8px; gap: 8px; }
  .mode-option strong { font-size: 11px; }
  .mode-option small { font-size: 9px; }
  .mode-icon { width: 26px; height: 26px; flex-basis: 26px; transform: scale(.85); }
  .mode-arrow { display: none; }
  .workspace { margin-top: 35px; margin-left: 2%; margin-right: 2%; }
  .surprise-panel { margin-top: 24px; padding: 20px 15px; }
  .surprise-panel-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .surprise-panel-head .button { width: 100%; }
  .idea-card-head h3 { font-size: 21px; }
  .idea-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .surprise-ratio-bar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .surprise-ratios, .surprise-ratio { width: 100%; }
  .surprise-ratio { flex: 1; }
  .surprise-prompt-grid { grid-template-columns: 1fr; }
  .surprise-actions { flex-direction: column; }
  .surprise-actions .button { width: 100%; }
  .section-heading, .output-header { margin-bottom: 19px; }
  h2 { font-size: 23px; }
  .control-card { padding: 15px; }
  .option-row { display: block; }
  .duration-block { margin-top: 19px; }
  .action-row { flex-wrap: wrap; gap: 9px; }
  .hero-actions .button-surprise { order: -1; }
  .action-row .button-surprise { order: 1; }
  .action-row .button-secondary { order: 2; }
  .action-row .text-button { order: 3; margin-left: 6px; }
  .action-row .button-primary { order: 4; width: 100%; margin-left: 0; }
  .empty-state { min-height: 360px; padding: 34px 20px; }
  .footer { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-brand { width: 100%; }
}

body[data-language="my"] h1 { letter-spacing: -.04em; }
body[data-language="my"] .brand-copy { letter-spacing: -.02em; }
