:root {
    --ink: #111510;
    --muted: #667066;
    --line: #dce7dd;
    --paper: #f7faf6;
    --mint: #eefff3;
    --green: #164a31;
    --acid: #d9ff43;
    --blue: #173fa7;
    --cream: #fffaf0;
    --white: #ffffff;
    --shadow: 0 28px 70px rgba(22, 47, 31, .12);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 15px;
}

* { box-sizing: border-box; }

html { background: var(--mint); }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--mint);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, label[for], input[type="color"] { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(23, 63, 167, .22); outline-offset: 2px; }
img { display: block; max-width: 100%; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 248px;
    display: flex;
    flex-direction: column;
    padding: 27px 18px 18px;
    background: #102d21;
    color: #eaffef;
    border-right: 1px solid rgba(255,255,255,.08);
}

.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 7px; font: 800 21px/1 "Manrope", sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 27px; height: 27px; display: flex; gap: 2px; align-items: end; transform: skew(-5deg); }
.brand-mark span { display: block; width: 7px; background: var(--acid); border-radius: 7px 7px 3px 3px; }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 24px; }
.brand-mark span:nth-child(3) { height: 19px; }

.new-creative { margin: 28px 0 22px; height: 47px; border: 0; border-radius: 13px; background: var(--acid); color: #132117; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; transition: .2s ease; }
.new-creative:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(217, 255, 67, .18); }
.button-icon { font-size: 22px; font-weight: 400; line-height: 1; }

.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label { margin: 0 11px 7px; color: #7fa38e; font: 600 10px/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 44px; border: 0; border-radius: 11px; padding: 0 11px; display: flex; align-items: center; gap: 11px; background: transparent; color: #a9c2b3; text-align: left; font-size: 14px; font-weight: 600; transition: .2s ease; }
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(238,255,243,.11); color: #fff; }
.nav-pill { margin-left: auto; padding: 3px 6px; background: #2e6046; color: var(--acid); border-radius: 5px; font-size: 9px; letter-spacing: .08em; }

.privacy-note { margin-top: auto; padding: 15px 13px; border: 1px solid rgba(217,255,67,.18); border-radius: 15px; background: rgba(217,255,67,.06); display: flex; gap: 10px; align-items: flex-start; }
.privacy-note strong { font-size: 12px; }
.privacy-note p { margin: 4px 0 0; color: #8faa9a; font-size: 11px; line-height: 1.45; }
.privacy-orb { width: 21px; height: 21px; flex: 0 0 auto; border: 1px solid rgba(217,255,67,.55); border-radius: 50%; position: relative; }
.privacy-orb::after { content: ""; position: absolute; inset: 6px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 9px var(--acid); }

.sidebar-footer { margin-top: 13px; padding: 14px 7px 2px; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 35px 1fr 8px; align-items: center; gap: 9px; }
.avatar { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: #244637; color: #fff; font-size: 12px; font-weight: 700; }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer div span { margin-top: 2px; color: #789888; font-size: 10px; }
.sidebar-footer .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #69e999; box-shadow: 0 0 8px #69e999; }

.main-content { min-width: 0; width: calc(100% - 248px); margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 clamp(22px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(22,74,49,.1); background: rgba(238,255,243,.87); backdrop-filter: blur(18px); }
.topbar > div:first-of-type { display: flex; align-items: baseline; gap: 12px; }
.topbar h1 { margin: 0; font: 700 17px/1 "Manrope", sans-serif; }
.topbar-kicker { margin: 0; color: #809086; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.private-badge { display: flex; align-items: center; gap: 6px; padding: 7px 11px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 11px; font-weight: 700; }
.private-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-button, .toolbar-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.8); font-weight: 700; }
.menu-button { display: none; }

.view { display: none; animation: view-in .36s ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#homeView { padding: 24px clamp(22px, 4vw, 60px) 70px; }
.hero-panel { min-height: 500px; overflow: hidden; border-radius: var(--radius-xl); background: var(--cream); border: 1px solid rgba(55,77,61,.1); display: grid; grid-template-columns: 1.05fr .95fr; box-shadow: 0 9px 25px rgba(39,63,46,.05); }
.hero-copy { z-index: 2; padding: clamp(48px, 6vw, 80px); padding-right: 25px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #65756b; font: 700 10px/1 "Manrope", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow i { width: 18px; height: 1px; background: currentColor; }
.hero-copy h2, .simple-heading h2 { margin: 17px 0 20px; font: 700 clamp(40px, 4.7vw, 67px)/.99 "Manrope", sans-serif; letter-spacing: -.06em; }
.hero-copy h2 em, .simple-heading h2 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 560px; margin: 0; color: #59645c; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; gap: 23px; }
.primary-button { min-height: 47px; border: 0; border-radius: 12px; padding: 0 19px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-weight: 700; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button:hover { transform: translateY(-2px); background: #0c3b26; box-shadow: 0 10px 25px rgba(22,74,49,.18); }
.primary-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 700; }
.text-button span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.text-button:hover span { transform: translate(3px, -2px); }
.trust-row { margin-top: 46px; display: flex; gap: 17px; flex-wrap: wrap; color: #6f7c73; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.trust-row span { display: flex; gap: 6px; }
.trust-row b { color: var(--blue); }

.hero-showcase { position: relative; min-height: 500px; background: #dff2e3; isolation: isolate; }
.showcase-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(#839e89 1px, transparent 1px), linear-gradient(90deg,#839e89 1px, transparent 1px); background-size: 55px 55px; mask-image: linear-gradient(to left, #000, transparent 95%); }
.showcase-card { position: absolute; overflow: hidden; border: 7px solid #fff; background: #fff; box-shadow: var(--shadow); }
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }
.card-back { width: 45%; aspect-ratio: .76; right: 4%; top: 9%; transform: rotate(7deg); }
.card-back > span { position: absolute; left: 11px; bottom: 11px; padding: 5px 8px; background: #fff; color: #22352a; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card-front { width: 49%; aspect-ratio: .78; left: 8%; bottom: 5%; transform: rotate(-4deg); }
.showcase-copy { position: absolute; inset: auto 16px 16px; color: #fff; text-shadow: 0 2px 15px rgba(0,0,0,.35); text-transform: uppercase; }
.showcase-copy span { display: block; margin-bottom: 5px; font-size: 8px; letter-spacing: .15em; }
.showcase-copy strong { font: 800 clamp(16px, 1.9vw, 25px)/.95 "Manrope", sans-serif; letter-spacing: -.04em; }
.floating-tag { position: absolute; z-index: 3; padding: 10px 13px; border: 1px solid rgba(20,46,31,.12); border-radius: 999px; background: rgba(255,255,255,.93); box-shadow: 0 10px 30px rgba(25,46,32,.12); font-size: 10px; font-weight: 700; }
.tag-one { top: 14%; left: 3%; }
.tag-one span { color: var(--blue); }
.tag-two { right: 4%; bottom: 8%; }
.tag-two i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #ec4f41; }

.section-heading { margin: 54px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-heading > div { display: flex; align-items: baseline; gap: 12px; }
.section-heading h3 { margin: 0; font: 700 clamp(24px, 2.5vw, 34px)/1 "Manrope", sans-serif; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: #68756c; font-size: 12px; }
.section-index { color: var(--blue); font: 700 10px/1 "Manrope", sans-serif; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool-card { position: relative; min-height: 327px; overflow: hidden; padding: 29px; border: 1px solid rgba(23,58,38,.12); border-radius: var(--radius-lg); text-align: left; transition: transform .25s ease, box-shadow .25s ease; }
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(24,64,39,.11); }
.video-tool { background: #183e2c; color: #fff; }
.image-tool { background: #e7eeff; color: #10192b; }
.tool-number { position: relative; z-index: 2; display: block; margin-bottom: 25px; color: rgba(255,255,255,.56); font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .14em; }
.image-tool .tool-number { color: rgba(20,34,63,.53); }
.tool-title { position: relative; z-index: 2; display: block; font: 700 clamp(30px, 3.1vw, 44px)/.98 "Manrope", sans-serif; letter-spacing: -.05em; }
.tool-description { position: relative; z-index: 2; display: block; max-width: 260px; margin-top: 16px; color: #b5cabc; font-size: 12px; line-height: 1.55; }
.image-tool .tool-description { color: #546173; }
.tool-arrow { position: absolute; z-index: 2; left: 29px; bottom: 28px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 18px; }
.image-tool .tool-arrow { border-color: rgba(20,34,63,.25); }
.tool-visual { position: absolute; right: 0; top: 0; width: 45%; height: 100%; }
.video-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(217,255,67,.23), transparent 60%); }
.mini-phone { position: absolute; z-index: 2; width: 132px; height: 235px; top: 46px; left: 25%; overflow: hidden; border: 5px solid #f4fff6; border-radius: 22px; transform: rotate(5deg); box-shadow: 0 20px 45px rgba(0,0,0,.27); }
.mini-phone img { width: 100%; height: 100%; object-fit: cover; }
.play-triangle, .project-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #173d2b; font-style: normal; font-size: 11px; }
.play-triangle::after { content: "▶"; margin-left: 2px; }
.motion-line { position: absolute; z-index: 1; width: 140px; height: 140px; border: 1px solid rgba(217,255,67,.27); border-radius: 50%; }
.line-one { top: 25px; right: -35px; }
.line-two { bottom: 4px; left: -25px; }
.image-stack { position: absolute; overflow: hidden; border: 5px solid #fff; box-shadow: 0 19px 35px rgba(30,46,79,.17); }
.image-stack img { width: 100%; height: 100%; object-fit: cover; }
.stack-a { width: 145px; height: 210px; right: 9%; top: 33px; transform: rotate(7deg); }
.stack-b { width: 125px; height: 175px; left: -6px; bottom: 15px; transform: rotate(-7deg); }
.recent-heading { margin-top: 60px; }
.text-button.small { font-size: 12px; }
.recent-grid { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: .2s ease; cursor: pointer; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 13px 35px rgba(20,57,34,.09); }
.project-thumb { position: relative; height: 210px; overflow: hidden; background: #e8eee7; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-thumb > span { position: absolute; right: 10px; top: 10px; padding: 5px 7px; border-radius: 6px; background: rgba(15,25,18,.78); color: #fff; font-size: 9px; }
.project-play { width: 40px; height: 40px; }
.project-meta { padding: 14px 15px; display: flex; justify-content: space-between; align-items: center; }
.project-meta strong, .project-meta span { display: block; }
.project-meta strong { font-size: 13px; }
.project-meta span { margin-top: 4px; color: #829087; font-size: 10px; }
.project-meta button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.blank-project { min-height: 275px; border: 1px dashed #a9b9ae; border-radius: 17px; background: rgba(255,255,255,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #526258; }
.blank-project > span { width: 41px; height: 41px; margin-bottom: 13px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 7px 22px rgba(22,74,49,.1); font-size: 23px; }
.blank-project strong { font-size: 12px; }
.blank-project small { margin-top: 4px; color: #88958d; font-size: 10px; }

/* Studio */
.studio-view { padding: 30px clamp(18px, 3vw, 42px) 50px; background: #f5f8f4; min-height: calc(100vh - 76px); }
.studio-intro { max-width: 1450px; margin: 0 auto 25px; display: grid; grid-template-columns: 43px 1fr auto; gap: 15px; align-items: start; }
.back-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.studio-intro h2 { margin: 7px 0 3px; font: 700 29px/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.studio-intro p { margin: 0; color: #78837b; font-size: 12px; }
.mode-switch { padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #e9eee9; display: flex; }
.mode-switch button { min-width: 87px; height: 35px; border: 0; border-radius: 8px; background: transparent; color: #758179; font-size: 11px; font-weight: 700; }
.mode-switch button.active { background: #fff; color: var(--green); box-shadow: 0 3px 10px rgba(32,54,39,.08); }
.studio-layout { max-width: 1450px; margin: 0 auto; display: grid; grid-template-columns: minmax(390px, .87fr) minmax(470px, 1.13fr); gap: 18px; align-items: start; }
.control-panel, .result-panel { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 7px 25px rgba(30,53,37,.045); }
.control-panel { padding: 5px 24px 20px; }
.form-section { padding: 22px 0; border-bottom: 1px solid #e7eee8; }
.form-section-title { margin-bottom: 17px; display: flex; gap: 11px; }
.form-section-title > span { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: #eff5ef; display: grid; place-items: center; color: var(--green); font: 700 9px/1 "Manrope", sans-serif; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font: 700 13px/1.2 "Manrope", sans-serif; }
.form-section-title small { margin-top: 4px; color: #8a958e; font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field > span, .color-row > span { display: block; margin: 0 0 7px 2px; color: #56635a; font-size: 10px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dbe4dd; border-radius: 10px; background: #fafcf9; color: #1b261e; outline: none; transition: border .2s ease, box-shadow .2s ease; }
.field input, .field select { height: 42px; padding: 0 12px; }
.field textarea { resize: vertical; padding: 11px 12px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #769280; box-shadow: 0 0 0 3px rgba(60,112,78,.08); }
.field.full { display: block; position: relative; }
.field.full > small { position: absolute; right: 9px; bottom: 8px; color: #a0aaa3; font-size: 8px; }
.color-row { margin-top: 13px; display: grid; grid-template-columns: 1fr auto auto 31px; gap: 7px; align-items: end; }
.color-control { height: 37px; padding: 4px 8px 4px 4px; border: 1px solid #dbe4dd; border-radius: 9px; display: flex; align-items: center; gap: 6px; }
.color-control input { width: 27px; height: 27px; padding: 0; border: 0; background: transparent; }
.color-control b { color: #576259; font-size: 9px; }
.tiny-button { height: 37px; border: 1px solid #dbe4dd; border-radius: 9px; background: #fff; }
.prompt-chips { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.prompt-chips button { padding: 6px 8px; border: 1px solid #dce5de; border-radius: 999px; background: #fff; color: #718078; font-size: 9px; }
.prompt-chips button:hover { border-color: #8aa293; color: var(--green); }
.upload-zone { height: 67px; padding: 8px; border: 1px dashed #b7c4ba; border-radius: 11px; display: grid; grid-template-columns: 49px 1fr auto; gap: 10px; align-items: center; background: #fbfdfb; }
.upload-zone.dragging { border-color: var(--blue); background: #f1f5ff; }
.upload-zone input { display: none; }
.upload-preview { width: 49px; height: 49px; overflow: hidden; border-radius: 8px; background: #e8eee7; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-zone strong, .upload-zone small { display: block; }
.upload-zone strong { font-size: 10px; }
.upload-zone small { margin-top: 4px; color: #909b93; font-size: 8px; }
.upload-zone > b { padding: 7px 10px; border: 1px solid #d6e0d8; border-radius: 7px; color: var(--green); font-size: 9px; }
.ratio-group { margin-top: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ratio-group button { height: 35px; border: 1px solid #dde6df; border-radius: 9px; background: #fff; color: #728077; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ratio-group button.active { border-color: #5f7b69; background: #f3f8f4; color: var(--green); box-shadow: inset 0 0 0 1px #5f7b69; }
.ratio { display: inline-block; border: 1px solid currentColor; border-radius: 2px; }
.ratio.portrait { width: 8px; height: 10px; }.ratio.story { width: 7px; height: 12px; }.ratio.square { width: 9px; height: 9px; }
.generate-button { width: 100%; height: 51px; margin-top: 18px; padding: 0 15px; border: 0; border-radius: 12px; background: #173f2c; color: #fff; display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; font-weight: 700; font-size: 12px; transition: .2s ease; }
.generate-button:hover { background: #0f3322; transform: translateY(-1px); }
.generate-button:disabled { cursor: wait; opacity: .82; }
.generate-spark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: #163a29; }
.generate-arrow { font-size: 17px; }
.local-note { margin: 10px 0 0; color: #87928b; text-align: center; font-size: 8px; }
.local-note span { color: #289154; }

.result-panel { position: sticky; top: 94px; padding: 14px; }
.result-toolbar { min-height: 37px; margin-bottom: 10px; padding: 0 3px; display: flex; justify-content: space-between; align-items: center; }
.result-toolbar > div:first-child { display: grid; grid-template-columns: 9px auto; align-items: center; column-gap: 6px; }
.result-toolbar strong { font-size: 10px; }.result-toolbar small { grid-column: 2; color: #8e9a92; font-size: 8px; }
.live-dot { width: 7px; height: 7px; grid-row: 1/3; border-radius: 50%; background: #66df8e; box-shadow: 0 0 7px #66df8e; }
.toolbar-button { width: 31px; height: 31px; font-size: 11px; }
.preview-stage { position: relative; min-height: 545px; overflow: hidden; border-radius: 14px; background: #e7eee7; display: grid; place-items: center; }
.creative-preview { --brand-primary: #173fa7; --brand-accent: #d9ff43; position: relative; height: min(510px, 66vh); overflow: hidden; background: var(--brand-primary); color: #fff; box-shadow: 0 17px 42px rgba(20,41,28,.18); isolation: isolate; transition: aspect-ratio .35s ease; }
.creative-preview.ratio-4-5 { aspect-ratio: 4/5; }.creative-preview.ratio-9-16 { aspect-ratio: 9/16; }.creative-preview.ratio-1-1 { aspect-ratio: 1/1; width: min(510px, 82%); height: auto; }
.creative-preview > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview-wash { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(2,10,5,.08), transparent 40%, rgba(5,12,8,.72)); }
.preview-brand { position: absolute; top: 6%; left: 7%; right: 7%; display: flex; justify-content: space-between; align-items: center; }
.preview-brand span { font: 800 13px/1 "Manrope", sans-serif; letter-spacing: .2em; }
.preview-brand i { width: 11px; height: 11px; border: 2px solid var(--brand-accent); border-radius: 50%; }
.preview-copy { position: absolute; left: 7%; right: 7%; bottom: 17%; text-transform: uppercase; }
.preview-copy small { display: block; margin-bottom: 8px; color: var(--brand-accent); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.preview-copy strong { display: block; font: 800 clamp(27px, 3.2vw, 44px)/.89 "Manrope", sans-serif; letter-spacing: -.07em; }
.preview-copy p { margin: 9px 0 0; font-size: 8px; text-transform: none; }
.preview-cta { position: absolute; left: 7%; right: 7%; bottom: 6%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.65); padding-top: 9px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.preview-cta b { font-size: 13px; }
.video-progress { display: none; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.3); }
.video-progress i { display: block; width: 0; height: 100%; background: var(--brand-accent); }
.video-mode .video-progress { display: block; }
.creative-preview.playing > img { animation: kenburns 6s ease-in-out infinite alternate; }
.creative-preview.playing .preview-copy { animation: copy-in 6s ease-in-out infinite; }
.creative-preview.playing .video-progress i { animation: video-progress 6s linear infinite; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.13) translate(-2%, -1%); } }
@keyframes copy-in { 0%,12% { opacity: 0; transform: translateY(20px); } 24%,82% { opacity: 1; transform: none; } 95%,100% { opacity: 0; transform: translateY(-8px); } }
@keyframes video-progress { to { width: 100%; } }
.generation-overlay { position: absolute; z-index: 10; inset: 0; background: rgba(14,38,26,.94); color: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.generation-overlay.visible { display: flex; }
.generation-overlay strong { margin-top: 18px; font: 700 17px/1.2 "Manrope", sans-serif; }
.generation-overlay small { margin-top: 7px; color: #a8c2b1; font-size: 10px; }
.generation-overlay > i { width: 180px; height: 3px; margin-top: 21px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.14); }
.generation-overlay > i b { display: block; width: 0; height: 100%; background: var(--acid); transition: width .5s ease; }
.scan-orb { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(217,255,67,.45); border-radius: 50%; color: var(--acid); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(217,255,67,.14); } }
.scene-strip { padding: 12px 3px 2px; display: flex; gap: 7px; }
.scene-strip[hidden] { display: none; }
.scene-card { width: 76px; padding: 4px; border: 1px solid #dde6df; border-radius: 9px; background: #fff; display: grid; grid-template-columns: 33px 1fr; column-gap: 5px; text-align: left; }
.scene-card.active { border-color: var(--green); }
.scene-card > span { width: 33px; height: 35px; grid-row: 1/3; overflow: hidden; border-radius: 5px; }.scene-card img { width: 100%; height: 100%; object-fit: cover; }
.scene-card b { align-self: end; font-size: 8px; }.scene-card small { color: #8a968e; font-size: 7px; }
.result-actions { padding-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.secondary-button { min-height: 41px; padding: 0 16px; border: 1px solid #d9e3db; border-radius: 10px; background: #fff; color: #476052; font-size: 10px; font-weight: 700; }
.download-button { min-height: 41px; font-size: 10px; gap: 9px; }

/* Simple pages */
.simple-view { min-height: calc(100vh - 76px); padding: clamp(45px, 6vw, 85px) clamp(25px, 7vw, 100px); background: #f7faf6; }
.simple-heading { max-width: 720px; }
.simple-heading h2 { font-size: clamp(40px, 5vw, 64px); }
.simple-heading > p, .row-heading p { max-width: 570px; margin: 0; color: #6f7a73; line-height: 1.6; }
.brandkit-grid { max-width: 1050px; margin-top: 45px; display: grid; grid-template-columns: 1fr .76fr; gap: 25px; align-items: stretch; }
.brandkit-card { padding: 28px; border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 12px 35px rgba(24,57,36,.06); }
.brandkit-card .field { margin-top: 16px; }
.brandkit-header { display: grid; grid-template-columns: 43px 1fr auto; gap: 11px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #e2e9e3; }
.brandkit-header > span { width: 43px; height: 43px; border-radius: 11px; background: var(--green); color: var(--acid); display: grid; place-items: center; font-weight: 800; }
.brandkit-header strong, .brandkit-header small { display: block; }.brandkit-header strong { font-size: 13px; }.brandkit-header small { margin-top: 3px; color: #89958d; font-size: 9px; }
.brandkit-header i { padding: 5px 8px; border-radius: 999px; background: #edfaef; color: #4a765d; font-size: 8px; font-style: normal; }
.kit-colors { margin: 17px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kit-colors label { height: 54px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 35px 1fr; }
.kit-colors input { grid-row: 1/3; width: 35px; height: 35px; padding: 0; border: 0; background: transparent; }
.kit-colors span { color: #89958d; font-size: 8px; }.kit-colors b { font-size: 10px; }
.primary-button.wide { width: 100%; margin-top: 4px; }
.brandkit-poster { position: relative; min-height: 520px; overflow: hidden; border-radius: 21px; background: #143da5; color: #fff; }
.brandkit-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), transparent 40%, rgba(0,0,0,.58)); }
.brandkit-poster img { width: 100%; height: 100%; object-fit: cover; }
.brandkit-poster > div { position: absolute; z-index: 2; inset: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.brandkit-poster span { font: 800 13px/1 "Manrope", sans-serif; letter-spacing: .18em; }.brandkit-poster strong { margin-top: auto; font: 800 48px/.87 "Manrope", sans-serif; letter-spacing: -.07em; }.brandkit-poster p { margin: 9px 0 0; font-size: 10px; }
.row-heading { max-width: 100%; display: flex; justify-content: space-between; align-items: end; }.row-heading h2 { margin-bottom: 8px; }
.filter-row { margin: 35px 0 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.filter-row button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #76837a; font-size: 9px; font-weight: 700; }.filter-row button.active { background: var(--green); border-color: var(--green); color: #fff; }.filter-row span { flex: 1; }.filter-row small { color: #87938b; font-size: 9px; }
.project-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-library .project-card { min-width: 0; }.project-library .project-thumb { height: 290px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; transform: translate(-50%, 20px); min-width: 250px; padding: 11px 15px; border-radius: 11px; background: #102d21; color: #fff; display: flex; align-items: center; gap: 9px; box-shadow: 0 15px 40px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.visible { transform: translate(-50%,0); opacity: 1; }.toast span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--green); font-size: 10px; }.toast p { margin: 0; font-size: 11px; font-weight: 600; }
.sidebar-scrim { display: none; }

@media (max-width: 1120px) {
    .hero-panel { grid-template-columns: 1fr .83fr; }
    .hero-copy { padding: 50px 35px; }
    .hero-copy h2 { font-size: 46px; }
    .studio-layout { grid-template-columns: 400px 1fr; }
    .project-library { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: none; }
    .sidebar-scrim { position: fixed; z-index: 35; inset: 0; background: rgba(8,22,14,.48); backdrop-filter: blur(2px); }
    .sidebar-scrim.visible { display: block; }
    .main-content { width: 100%; margin-left: 0; }
    .menu-button { width: 36px; height: 36px; margin-right: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
    .menu-button span { width: 14px; height: 1px; background: var(--green); }
    .topbar { justify-content: flex-start; }
    .topbar-actions { margin-left: auto; }
    .hero-panel { grid-template-columns: 1fr; }
    .hero-showcase { min-height: 430px; }
    .tool-card { min-height: 310px; }.tool-title { font-size: 34px; }
    .studio-layout { grid-template-columns: 1fr; }.result-panel { position: static; }.preview-stage { min-height: 580px; }
}

@media (max-width: 650px) {
    .topbar { height: 66px; padding: 0 15px; }.topbar-kicker { display: none; }.topbar h1 { font-size: 15px; }.private-badge { padding: 7px 9px; }.icon-button { display: none; }
    #homeView { padding: 13px 13px 45px; }
    .hero-panel { min-height: 0; border-radius: 22px; }
    .hero-copy { padding: 39px 24px 29px; }.hero-copy h2 { font-size: 38px; }.hero-copy > p { font-size: 14px; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }.trust-row { margin-top: 28px; gap: 10px; }
    .hero-showcase { min-height: 350px; }.card-front { width: 53%; left: 9%; }.card-back { width: 47%; right: 5%; }.floating-tag { font-size: 8px; }.tag-one { top: 7%; }
    .section-heading { margin-top: 39px; }.section-heading p { display: none; }.section-heading h3 { font-size: 26px; }
    .tool-grid, .recent-grid { grid-template-columns: 1fr; }.tool-card { min-height: 300px; }.tool-visual { width: 48%; }.recent-grid { gap: 12px; }.project-thumb { height: 250px; }.blank-project { min-height: 150px; }
    .studio-view { padding: 19px 11px 40px; min-height: calc(100vh - 66px); }.studio-intro { grid-template-columns: 39px 1fr; }.studio-intro h2 { font-size: 23px; }.mode-switch { grid-column: 1/3; margin-top: 5px; }.mode-switch button { flex: 1; }.control-panel { padding-left: 16px; padding-right: 16px; }.field-row { grid-template-columns: 1fr; }.color-row { grid-template-columns: 1fr 1fr 31px; }.color-row > span { grid-column: 1/4; }.preview-stage { min-height: 495px; }.creative-preview { height: 455px; }.creative-preview.ratio-1-1 { width: 92%; }.result-actions { justify-content: stretch; }.result-actions button { flex: 1; }
    .simple-view { padding: 40px 16px; min-height: calc(100vh - 66px); }.simple-heading h2 { font-size: 40px; }.brandkit-grid { grid-template-columns: 1fr; }.brandkit-poster { min-height: 460px; }.row-heading { display: block; }.row-heading > button { margin-top: 20px; }.project-library { grid-template-columns: 1fr; }.project-library .project-thumb { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
