:root {
  --ink: #0c1422;
  --navy: #0b1320;
  --navy-2: #111d2e;
  --paper: #f5f3ee;
  --white: #ffffff;
  --muted: #6f7783;
  --line: #dedbd3;
  --aqua: #54e0c0;
  --aqua-dark: #103f38;
  --gold: #e9ba62;
  --danger: #d35d58;
  --shadow: 0 24px 70px rgba(9, 19, 31, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--aqua); color: var(--navy); border-radius: 10px; font-family: Manrope, sans-serif; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Manrope, sans-serif; font-size: 14px; }
.brand small { margin-top: 1px; color: #82909f; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }

.button { border: 0; border-radius: 10px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, opacity .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button.primary { background: var(--aqua); color: var(--navy); box-shadow: 0 10px 30px rgba(84,224,192,.2); }
.button.gold { background: var(--gold); color: var(--navy); }
.button.ghost { border: 1px solid rgba(255,255,255,.2); color: white; background: transparent; }
.button.success { background: var(--aqua-dark); color: white; }
.button.large { padding: 16px 22px; }
.button.small { padding: 9px 13px; font-size: 12px; }
.button.full { width: 100%; }

.marketing-shell { min-height: 100vh; color: white; background: radial-gradient(circle at 70% 20%, #19384a 0, transparent 32%), linear-gradient(145deg, #08111d 0%, #0d1a2a 62%, #0d2430 100%); }
.marketing-nav { height: 84px; max-width: 1180px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.hero { min-height: 650px; max-width: 1180px; margin: auto; padding: 70px 24px 90px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 75px; align-items: center; }
.eyebrow, .section-kicker { color: var(--aqua); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 18px 0 20px; font: 800 clamp(42px, 5.3vw, 72px)/1.02 Manrope, sans-serif; letter-spacing: -.05em; }
.hero-lead { max-width: 660px; color: #b6c1cc; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.micro { color: #81909f; font-size: 12px; }
.proof-line { display: flex; align-items: center; gap: 14px; margin-top: 46px; color: #9dacba; font-size: 13px; line-height: 1.5; }
.proof-line p { margin: 0; }
.proof-line strong { color: white; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--aqua); color: var(--aqua); font-weight: 800; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 24px; backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.card-top { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); color: #dce5ea; font-weight: 700; }
.live-dot { color: var(--aqua); font-size: 10px; letter-spacing: .12em; }
.live-dot::before { content: ""; width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }
.roadmap { padding: 8px 0; }
.road-step { min-height: 77px; display: grid; grid-template-columns: 38px 1fr 22px; gap: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); color: #8f9cab; }
.road-step b { font-size: 11px; color: #617283; }
.road-step strong, .road-step small { display: block; }
.road-step strong { color: #e8edf1; font-size: 14px; }
.road-step small { margin-top: 5px; font-size: 11px; }
.road-step i { color: var(--aqua); font-style: normal; }
.road-step.active { color: #b6c6cf; }
.road-step.active b { color: var(--aqua); }
.card-progress { padding-top: 15px; }
.card-progress > span { display: block; width: 22%; height: 3px; background: var(--aqua); border-radius: 5px; }
.card-progress p { margin: 10px 0 0; color: #728190; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.finish-section { padding: 85px 24px 105px; color: var(--ink); background: var(--paper); text-align: center; }
.finish-section h2 { margin: 12px 0 44px; font: 800 clamp(30px,4vw,48px)/1.1 Manrope,sans-serif; letter-spacing: -.035em; }
.finish-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: left; }
.finish-grid article { min-height: 210px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.finish-grid article span { color: #a9a59d; font-size: 11px; font-weight: 800; }
.finish-grid h3 { margin: 34px 0 9px; font: 700 17px Manrope,sans-serif; }
.finish-grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,10,17,.77); backdrop-filter: blur(8px); }
.auth-card { position: relative; width: min(460px,100%); padding: 42px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #8b9098; font-size: 26px; cursor: pointer; }
.auth-brand { margin-bottom: 28px; }
.auth-card h2 { margin: 10px 0 8px; font: 800 30px Manrope,sans-serif; letter-spacing: -.03em; }
.auth-card > div > p { color: var(--muted); }
.auth-form { display: grid; gap: 15px; margin-top: 25px; }
.auth-form label, .dynamic-fields label { display: grid; gap: 7px; color: #3a414a; font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #d9d9d6; border-radius: 9px; padding: 12px 13px; color: var(--ink); background: #fbfbf9; outline: 0; transition: border .15s, box-shadow .15s; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #57bba6; box-shadow: 0 0 0 3px rgba(84,224,192,.15); }
.switch-auth { margin: 20px 0 0; text-align: center; font-size: 13px; }
.switch-auth button, .demo-link { border: 0; padding: 0; color: #187965; background: none; font-weight: 700; cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 255px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 255px; padding: 25px 18px; display: flex; flex-direction: column; overflow-y: auto; color: white; background: var(--navy); }
.app-brand { margin: 0 8px 34px; }
.side-label { margin: 0 10px 9px; color: #526273; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.paid-label { margin-top: 24px; color: #8c7348; }
.tool-nav { display: grid; gap: 3px; }
.nav-tool { width: 100%; min-height: 44px; padding: 8px 10px; display: grid; grid-template-columns: 27px 1fr 16px; gap: 8px; align-items: center; border: 0; border-radius: 8px; color: #8d9aaa; background: transparent; text-align: left; cursor: pointer; }
.nav-tool b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #2c3a49; border-radius: 7px; font-size: 9px; }
.nav-tool span { font-size: 12px; font-weight: 600; }
.nav-tool i { font-style: normal; color: #4c5b69; }
.nav-tool:hover, .nav-tool.active { color: white; background: var(--navy-2); }
.nav-tool.active b { border-color: var(--aqua); color: var(--aqua); }
.nav-tool.complete i { color: var(--aqua); }
.nav-tool.locked { opacity: .52; }
.upgrade-card { margin-top: 24px; padding: 17px; border: 1px solid #4a3c26; border-radius: 12px; background: linear-gradient(145deg,#1b2330,#211e18); }
.upgrade-card > span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.upgrade-card strong { display: block; margin-top: 8px; font: 700 13px/1.35 Manrope,sans-serif; }
.upgrade-card p { color: #8f9aa4; font-size: 10px; line-height: 1.5; }
.upgrade-card .upgrade-price { margin: 13px 0 11px; color: #e8d4ad; font-weight: 700; }
.upgrade-card .button { width: 100%; }
.demo-link { width: 100%; margin-top: 10px; color: #9e885f; font-size: 10px; }
.logout-button { margin-top: auto; padding: 18px 10px 0; border: 0; color: #657484; background: none; text-align: left; cursor: pointer; font-size: 11px; }
.workspace { grid-column: 2; min-width: 0; }
.workspace-header { height: 76px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245,243,238,.9); backdrop-filter: blur(10px); }
.workspace-header > div:first-of-type span, .workspace-header small { display: block; }
.workspace-header > div:first-of-type span { font-size: 13px; font-weight: 700; }
.workspace-header small { margin-top: 3px; color: #94948f; font-size: 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.workspace .button.ghost { border-color: #d4d1ca; color: #555c64; }
.mode-badge { padding: 6px 10px; border-radius: 30px; color: #746038; background: #f0e4cc; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.menu-button { display: none; border: 0; background: none; font-size: 20px; }
.progress-wrap { padding: 16px 36px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: #f9f8f5; }
.progress-wrap > div:first-child { min-width: 125px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-wrap span { color: #95948e; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.progress-wrap strong { font-size: 10px; }
.progress-bar { height: 4px; flex: 1; overflow: hidden; background: #e3e1dc; border-radius: 5px; }
.progress-bar span { display: block; width: 0; height: 100%; background: var(--aqua-dark); transition: width .3s; }
.tool-workspace { max-width: 1280px; margin: auto; padding: 52px 44px 80px; }
.tool-intro { max-width: 720px; }
.tool-intro h1 { margin: 10px 0 9px; font: 800 clamp(32px,4vw,48px)/1.08 Manrope,sans-serif; letter-spacing: -.045em; }
.tool-intro > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.outcome-box { margin-top: 24px; padding: 15px 18px; display: flex; align-items: center; gap: 18px; border-left: 3px solid var(--aqua-dark); background: white; }
.outcome-box span { flex: 0 0 auto; color: #8d8d87; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.outcome-box p { margin: 0; font-size: 12px; font-weight: 700; }
.builder-grid { margin-top: 35px; display: grid; grid-template-columns: minmax(320px,.88fr) minmax(380px,1.12fr); gap: 22px; align-items: start; }
.builder-panel, .result-panel { min-height: 500px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 35px rgba(18,23,29,.04); }
.panel-heading, .result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #eceae5; }
.panel-heading span, .result-top span { color: #999994; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.panel-heading h2, .result-top h2 { margin: 5px 0 0; font: 700 16px Manrope,sans-serif; }
.dynamic-fields { display: grid; gap: 17px; padding: 24px 0; }
.generation-note { margin: 12px 8px 0; color: #a19e97; font-size: 10px; line-height: 1.45; text-align: center; }
.result-panel { background: #fbfaf7; }
.result-panel.empty { display: grid; place-items: center; }
.empty-result { max-width: 300px; text-align: center; }
.empty-icon { width: 52px; height: 52px; margin: auto; display: grid; place-items: center; border: 1px solid #d8d4cc; border-radius: 50%; color: #8fa79f; font-size: 20px; }
.empty-result h3 { margin: 18px 0 8px; font: 700 17px Manrope,sans-serif; }
.empty-result p { color: #96938c; font-size: 12px; line-height: 1.55; }
.icon-button { border: 1px solid #d8d5ce; border-radius: 7px; padding: 7px 10px; color: #62666a; background: white; font-size: 10px; font-weight: 700; cursor: pointer; }
.result-summary { color: var(--muted); font-size: 12px; line-height: 1.55; }
.primary-output { width: 100%; min-height: 330px; max-height: 620px; overflow: auto; padding: 20px; border: 1px solid #e3e0d8; border-radius: 9px; color: #222a32; background: white; font: 12px/1.7 "DM Sans",sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; resize: vertical; }
.result-actions { display: flex; gap: 7px; }
.result-fields { margin: 16px 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.result-field { padding: 11px; border-radius: 7px; background: #f1efe9; }
.result-field span, .result-field strong { display: block; }
.result-field span { color: #99958c; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.result-field strong { margin-top: 5px; font-size: 11px; }
.result-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 20px 0; }
.result-lists h3 { font: 700 12px Manrope,sans-serif; }
.result-lists ul { margin: 0; padding-left: 17px; color: #666a6e; font-size: 11px; line-height: 1.55; }
.loader { width: 15px; height: 15px; border: 2px solid rgba(11,19,32,.25); border-top-color: var(--navy); border-radius: 50%; animation: spin .7s linear infinite; }
.completion-upgrade { max-width: 1192px; margin: 0 auto 80px; padding: 42px; border-radius: 20px; color: white; background: radial-gradient(circle at 90% 10%, rgba(84,224,192,.16), transparent 30%), linear-gradient(145deg, #101a29, #172638); box-shadow: 0 24px 65px rgba(9,19,31,.18); }
.completion-upgrade-copy { max-width: 830px; }
.completion-upgrade h2 { margin: 12px 0 14px; font: 800 clamp(30px,4vw,48px)/1.08 Manrope,sans-serif; letter-spacing: -.04em; }
.completion-upgrade-copy > p { margin: 0; color: #b7c2cd; font-size: 15px; line-height: 1.65; }
.completion-upgrade-tools { margin: 32px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.completion-upgrade-tools div { min-height: 108px; padding: 19px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); }
.completion-upgrade-tools span { color: var(--aqua); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.completion-upgrade-tools strong { font: 700 14px/1.35 Manrope,sans-serif; }
.completion-upgrade-close { padding-top: 25px; display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 10px 30px; align-items: center; border-top: 1px solid rgba(255,255,255,.12); }
.completion-upgrade-close > p { margin: 0; color: #b7c2cd; font-size: 13px; line-height: 1.6; }
.completion-price { color: #f1d9aa; font-size: 13px; text-align: right; }
.completion-actions { grid-column: 1 / -1; margin-top: 10px; display: flex; align-items: center; gap: 18px; }
.completion-refresh { border: 0; padding: 8px 0; color: #c7d0d8; background: none; font-size: 12px; font-weight: 700; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: 340px; padding: 13px 16px; border-radius: 9px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 12px; transform: translateY(100px); opacity: 0; transition: .25s; }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: var(--danger); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 45px; }
  .hero-card { max-width: 650px; }
  .finish-grid { grid-template-columns: repeat(2,1fr); }
  .builder-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; z-index: 40; }
  .sidebar.open { transform: none; }
  .workspace { grid-column: 1 / -1; }
  .menu-button { display: block; }
  .workspace-header { padding: 0 20px; }
  .tool-workspace { padding: 38px 22px 60px; }
  .completion-upgrade { margin: 0 22px 60px; }
  .completion-upgrade-tools { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .marketing-nav { height: 70px; }
  .hero { padding: 48px 20px 70px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .proof-line { align-items: flex-start; }
  .finish-grid { grid-template-columns: 1fr; }
  .finish-section { padding: 65px 20px; }
  .auth-card { padding: 34px 24px; }
  .workspace-header .button { display: none; }
  .progress-wrap { padding: 14px 20px; }
  .progress-wrap > div:first-child { min-width: 105px; align-items: flex-start; flex-direction: column; gap: 2px; }
  .builder-panel, .result-panel { padding: 20px; }
  .result-fields, .result-lists { grid-template-columns: 1fr; }
  .completion-upgrade { margin: 0 14px 45px; padding: 26px 20px; border-radius: 15px; }
  .completion-upgrade h2 { font-size: 30px; }
  .completion-upgrade-tools { grid-template-columns: 1fr; gap: 8px; }
  .completion-upgrade-tools div { min-height: 76px; }
  .completion-upgrade-close { grid-template-columns: 1fr; }
  .completion-price { text-align: left; }
  .completion-actions { align-items: stretch; flex-direction: column; gap: 6px; }
  .completion-actions .button { width: 100%; }
}
