:root {
  color-scheme: light;
  --ink: #171528;
  --ink-deep: #131222;
  --ink-panel: #211e35;
  --line-dark: #3a354e;
  --paper: #f6f5fa;
  --muted: #575369;
  --lavender: #c4b8ff;
  --focus: #7255d7;
  --display: "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; text-wrap: balance; }
h1, h2 { letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
#main:focus { outline: 0; }
.shell { width: min(100% - 80px, 1280px); margin-inline: auto; }
.section { margin-block: clamp(62px, 9vw, 122px); }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 4; padding: 10px 16px; background: white; color: var(--ink); clip-path: inset(50%); }
.skip:focus { clip-path: none; }
.top, .footer { background: var(--ink-deep); color: #f8f6ff; --focus: var(--lavender); }
.top { border-bottom: 1px solid #ffffff1c; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 75px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; font: 750 23px/1 var(--display); letter-spacing: -.055em; }
.brand img { flex: none; }
.brand-dot { color: var(--lavender); }
.navigation, .top-actions, .locale { display: flex; align-items: center; gap: 24px; }
.navigation a { font-size: .91rem; text-decoration: none; color: #d9d4e9; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current] { color: white; text-decoration: underline; text-underline-offset: 6px; }
.locale { gap: 2px; padding: 3px; border: 1px solid #ffffff24; border-radius: 8px; }
.locale a { display: grid; place-items: center; min-width: 32px; min-height: 28px; text-decoration: none; font-size: .74rem; font-weight: 650; color: #d3cee3; border-radius: 5px; }
.locale a[aria-current], .locale a:hover { background: #403951; color: white; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; text-decoration: none; text-align: center; font-size: .92rem; font-weight: 700; line-height: 1.22; transition: color 180ms, background-color 180ms, border-color 180ms, transform 180ms; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-small { min-height: 40px; padding: 8px 13px; font-size: .84rem; }
.button-primary { background: var(--lavender); color: #20173e; }
.button-primary:hover:not(:disabled) { background: #e0d8ff; }
.button-ghost { border-color: #ffffff35; color: #f2effc; }
.button-ghost:hover:not(:disabled) { background: #ffffff14; border-color: #bcb2de; }
.button-ink { background: #2a2146; color: #fff; }
.button-ink:hover:not(:disabled) { background: #47366d; }
.button-border { border-color: #bdb5d1; color: #2a2146; }
.button-border:hover:not(:disabled) { background: #f0ebff; border-color: #7358ab; }
.arrow { font-size: 1.1em; line-height: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #bfb5e4; font-size: .77rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.signal { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px #b1a0ed26; }
.lede { font-size: clamp(1rem, 1.8vw, 1.14rem); line-height: 1.62; }
.hero {
  color: #faf8ff;
  --focus: var(--lavender);
  background: radial-gradient(ellipse at 66% 55%, #302445 0%, #1e1a32 43%, #131222 78%);
  border-bottom: 1px solid #d2c9ed;
}
.hero-inner { padding-block: clamp(50px, 8vw, 118px) clamp(52px, 7vw, 94px); display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(30px, 4.8vw, 77px); }
.hero h1 { font-size: clamp(3rem, 5.35vw, 5.45rem); margin: 15px 0 20px; letter-spacing: -.068em; }
.hero h1 em { font-style: normal; color: var(--lavender); }
.hero .lede { max-width: 37ch; color: #d6d0e4; }
.hero .actions { margin-top: 27px; }
.hero-copy { animation: enter 400ms ease-out both; }
.hero-visual { min-width: 0; animation: enter 440ms 50ms ease-out both; }
.showcase { display: grid; overflow: hidden; background: #1d1c20; border: 1px solid #776795; border-radius: 14px; box-shadow: 0 20px 55px #0f0a2380, 0 0 0 6px #ded3ff0a; }
.showcase img, .showcase video { grid-area: 1 / 1; width: 100%; height: auto; display: block; aspect-ratio: 12 / 7; object-fit: cover; }
.hero-visual figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; color: #e6ddfb; font-size: .82rem; }
.hero-visual figcaption a { text-decoration: none; }
.hero-visual figcaption a:hover { text-decoration: underline; }
.film-toggle { display: inline-flex; gap: 7px; align-items: center; min-height: 36px; padding: 3px 7px; background: transparent; border: 1px solid transparent; border-radius: 6px; color: #e8dfff; }
.film-toggle:hover { border-color: #ffffff50; }
.film-toggle span { font-size: .75em; }
.workflow h2 { margin-bottom: 25px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin: 0; padding: 0; list-style: none; }
.workflow-item { padding: 23px 24px 25px; border: 1px solid #dfdaeb; border-radius: 13px; background: #fdfbff; }
.workflow-icon { display: grid; place-items: center; width: 38px; height: 36px; border-radius: 8px; background: #eee7fd; color: #5637a2; margin-bottom: 16px; font-size: 1rem; font-weight: 750; }
.workflow-item h3 { margin-bottom: 9px; font-size: 1.19rem; }
.workflow-item p { color: var(--muted); max-width: 38ch; }
.feature { background: #eeebf8; border: 1px solid #dfd8f0; border-radius: 19px; padding: clamp(24px, 5vw, 69px); display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(25px, 7vw, 100px); }
.feature .eyebrow { margin-bottom: 13px; color: #684da5; }
.feature p:not(.eyebrow) { margin-top: 16px; max-width: 48ch; color: #514961; }
.feature .button { margin-top: 23px; }
.folders { min-width: 0; padding: 15px; border: 1px solid #d3cae7; border-radius: 12px; background: #fdfaff; box-shadow: 0 12px 29px #6d538f13; }
.folders-head { display: flex; align-items: center; gap: 12px; padding: 10px 8px 13px; }
.folders ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.folders li { display: grid; align-items: center; grid-template-columns: 20px 1fr auto; gap: 9px; padding: 9px 10px; border-radius: 6px; background: #f4f0fc; color: #463661; font-size: .83rem; }
.folder-file { color: #64567c; font: .75rem Consolas, monospace; white-space: nowrap; }
.folder-icon { width: 17px; height: 12px; border: 1px solid #8766c8; border-radius: 3px; position: relative; background: #e8dcff; }
.folder-icon::before { content: ""; position: absolute; width: 8px; height: 4px; left: -1px; top: -4px; border: 1px solid #8766c8; border-bottom: 0; border-radius: 3px 3px 0 0; background: #e8dcff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: 30px; }
.footer p { margin-top: 8px; color: #c6bfd7; font-size: .88rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 19px; }
.footer nav a { font-size: .85rem; text-decoration: none; color: #e4dcef; }
.footer nav a:hover { text-decoration: underline; }
.cloud-page { padding-top: clamp(45px, 7vw, 91px); }
.cloud-intro { text-align: center; max-width: 700px; margin-inline: auto; animation: enter 400ms ease-out both; }
.cloud-intro .eyebrow { color: #62459f; justify-content: center; }
.cloud-intro h1, .editor-heading h1 { margin-block: 14px; font-size: clamp(3rem, 6.3vw, 5.2rem); }
.cloud-intro .lede { max-width: 53ch; margin-inline: auto; color: var(--muted); }
.pricing { padding-top: clamp(33px, 6vw, 65px); }
.pricing-heading { text-align: center; margin-bottom: 23px; }
.pricing-heading h2 { font-size: clamp(1.42rem, 3vw, 1.9rem); letter-spacing: -.033em; }
.pricing-heading p { margin-top: 8px; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.plan { display: grid; grid-template-rows: auto auto minmax(3em, auto) 1fr auto; align-content: start; min-width: 0; padding: clamp(19px, 3vw, 33px); border: 1px solid #dbd5e8; border-radius: 14px; background: #fff; transition: transform 200ms, border-color 200ms, box-shadow 200ms; }
.plan:hover, .plan:focus-within { border-color: #9a7ed0; box-shadow: 0 12px 32px #56388216; transform: translateY(-3px); }
.plan-accent { background: #f1ebff; border-color: #ac94dc; }
.plan h3 { font-size: 1.25rem; letter-spacing: -.023em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; margin-top: 11px; }
.price strong { font: 750 clamp(2.2rem, 4.7vw, 3.75rem)/1.1 var(--display); letter-spacing: -.065em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price span { color: var(--muted); font-size: .83rem; }
.plan-description { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.plan ul { margin: 15px 0 24px; border-top: 1px solid #dcd3ed; padding: 17px 0 0; list-style: none; display: grid; align-content: start; gap: 8px; font-size: .9rem; }
.plan li { display: grid; grid-template-columns: 13px 1fr; gap: 7px; }
.plan li::before { content: "✓"; color: #6041a5; font-weight: 750; }
.plan .button { width: 100%; }
[data-page="editor"] { background: #181624; color: #f8f5ff; --focus: var(--lavender); }
.editor-page { padding-block: 42px 70px; }
.editor-heading h1 { font-size: clamp(2.65rem, 5vw, 4.4rem); }
.editor-heading .lede { color: #d1cadd; }
.workspace { margin-top: 24px; border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; background: #211e2d; }
.workspace-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding: 12px; background: #211e35; }
.pro-button { min-height: 40px; padding: 7px 9px; border: 1px solid #ffffff27; border-radius: 7px; background: #ffffff05; color: #f4eeff; font-size: .83rem; }
.pro-button:hover { border-color: #aa95e0; background: #ffffff14; }
.pro-button span { margin-left: 3px; padding: 2px 5px; border-radius: 4px; background: #41335c; color: #e9dcff; font-size: .72rem; font-weight: 700; }
.workspace-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 37px; padding: 6px 14px; color: #dad4ea; background: #29243a; border-block: 1px solid #ffffff10; font-size: .84rem; }
.workspace-alert[data-error] { color: #ffb9ae; }
.filmcraft-viewport { position: relative; overflow: hidden; height: clamp(430px, 56vw, 650px); background: #1b1c1f; clip-path: inset(0); }
.filmcraft-viewport iframe { position: absolute; width: 100%; height: calc(100% + 38px); top: -38px; border: 0; }
.filmcraft-viewport[aria-busy="true"] iframe { visibility: hidden; }
.trim-panel { display: grid; grid-template-columns: minmax(170px, .85fr) minmax(200px, 1.1fr) auto; gap: 20px; align-items: center; border-top: 1px solid var(--line-dark); padding: 15px; }
.trim-panel h2 { font-size: 1.12rem; letter-spacing: -.02em; margin-bottom: 5px; }
.trim-panel p { color: #c5bdd8; font-size: .83rem; }
.trim-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trim-field { display: grid; min-width: 0; gap: 4px; }
.trim-field > span { display: flex; justify-content: space-between; gap: 7px; font-size: .86rem; }
.trim-field output, .trim-play output { color: #e5dbff; font-weight: 700; font-variant-numeric: tabular-nums; }
.trim-field input { width: 100%; min-width: 0; margin: 0; accent-color: var(--lavender); min-height: 28px; }
.trim-play { display: grid; gap: 6px; justify-items: start; }
dialog { width: min(calc(100% - 28px), 495px); max-height: calc(100% - 28px); padding: 0; border: 1px solid #d0c2ed; border-radius: 16px; color: var(--ink); background: #fcfaff; box-shadow: 0 24px 85px #0f052958; opacity: 0; transform: translateY(8px) scale(.986); transition: opacity 180ms, transform 180ms, overlay 180ms allow-discrete, display 180ms allow-discrete; --focus: #7255d7; }
dialog[open] { opacity: 1; transform: none; }
dialog::backdrop { background: #100d21b6; opacity: 0; transition: opacity 180ms, display 180ms allow-discrete, overlay 180ms allow-discrete; }
dialog[open]::backdrop { opacity: 1; }
@starting-style {
  dialog[open] { opacity: 0; transform: translateY(8px) scale(.986); }
  dialog[open]::backdrop { opacity: 0; }
}
.dialog-content { position: relative; padding: clamp(22px, 6vw, 36px); }
.dialog-content h2 { font-size: clamp(1.65rem, 5vw, 2.3rem); margin: 9px 24px 13px 0; text-wrap: pretty; }
.dialog-close { position: absolute; top: 10px; right: 11px; width: 39px; height: 39px; border: 0; border-radius: 7px; background: #ece5fa; color: #382559; font-size: 1.5rem; line-height: 1; }
.dialog-content p { color: #574c68; }
.dialog-content .pro-price { margin-top: 15px; color: #34244e; }
.pro-price strong { font-size: 1.6em; }
.dialog-content .fine { margin-block: 5px 18px; font-size: .85rem; }
#invite-form { margin-top: 15px; }
#invite-form label { font-size: .85rem; font-weight: 650; }
.invite-input { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.invite-input input { flex: 1 0 136px; width: 100%; min-width: 0; min-height: 49px; padding: 8px 10px; border: 1px solid #b7a9cd; border-radius: 7px; color: var(--ink); background: white; }
.invite-input input[aria-invalid="true"] { border-color: #a12342; }
#invite-result:not(:empty) { margin: 10px 0; font-size: .91rem; }
.revealed { animation: enter 360ms ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
@media (max-width: 1050px) {
  .shell { width: calc(100% - 56px); }
  .top-inner, .top-actions, .navigation { gap: 15px; }
  .hero-inner { gap: 30px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .top-inner { flex-wrap: wrap; gap: 8px 14px; padding-block: 12px 10px; }
  .navigation { order: 3; width: 100%; padding-top: 6px; border-top: 1px solid #ffffff1e; gap: 20px; }
  .navigation a { padding-block: 4px; }
  .top-actions { gap: 8px; }
  .hero-inner, .feature { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 43px 27px; }
  .hero h1 { margin-block: 12px; font-size: clamp(2.8rem, 9.6vw, 4.6rem); }
  .hero .actions { margin-top: 18px; }
  .workflow-grid { gap: 10px; }
  .workflow-item { padding: 15px; }
  .plans { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
  .plan { grid-template-rows: auto auto auto 1fr auto; }
  .trim-panel { grid-template-columns: 1fr 1fr; gap: 13px; }
  .trim-panel > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .shell { width: calc(100% - 32px); }
  .brand { font-size: 20px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .top-actions { gap: 5px; }
  .top-actions .button { padding-inline: 7px; min-height: 36px; font-size: .72rem; }
  .locale { padding: 2px; }
  .locale a { min-width: 25px; font-size: .7rem; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.65rem); }
  .hero .button { padding-inline: 12px; min-height: 44px; font-size: .86rem; }
  .workflow-grid { grid-template-columns: 1fr; }
  .feature { padding: 19px; }
  .folder-file { font-size: .67rem; }
  .folders { padding: 9px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .editor-page { width: calc(100% - 24px); padding-block: 30px 54px; }
  .workspace-bar, .workspace-alert { padding-inline: 9px; }
  .pro-actions { gap: 6px; }
  .pro-button { font-size: .76rem; padding-inline: 6px; }
  .filmcraft-viewport { height: 504px; }
  .trim-panel { grid-template-columns: 1fr; padding-inline: 10px; }
  .trim-play { display: flex; justify-content: space-between; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .button:hover, .button:active, .plan:hover, .plan:focus-within { transform: none; }
}
