:root {
  color-scheme: dark;
  --bg:#08101E;
  --card-a:#101935;
  --card-b:#070C1D;
  --accent:#2ED3FF;
  --accent-hi:#7DE6FF;
  --blue:#3D6BFF;
  --violet:#9B5CFF;
  --grad:linear-gradient(90deg,#1FD6FF 0%,#3D6BFF 55%,#9B5CFF 100%);
  --grad-btn:linear-gradient(90deg,#2EDCFF,#4C86FF);
  --text:#EEF1F8;
  --muted:#AEB6CC;
  --ink:#050814;
  --line:rgba(46,211,255,.18);
  --line-strong:rgba(46,211,255,.38);
  --gutter: clamp(16px,4vw,56px);
  --body: "Noto Sans SC","Microsoft YaHei",Arial,sans-serif;
  --display: "Cinzel",Georgia,"Noto Serif SC","Songti SC",serif;
  --label: "Orbitron","Noto Sans SC",sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 94px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 4px; }
::selection { background: #2864a2; color: white; }
h1,h2,h3,p,ul,ol { margin: 0; }
h1,h2,h3 { text-wrap: balance; }
h1,h2 { font-family: var(--display); }
html:lang(zh) h1,html:lang(zh) h2,html:lang(zh) h3 { font-family: "Noto Serif SC","Songti SC",SimSun,serif; }
.wrap { width: min(1328px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only,.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 8px 16px; background: var(--accent-hi); color: var(--ink); }

/* Brand and navigation */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(7,14,28,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-row,.header-actions,.brand,.main-nav,.language-switch { display: flex; align-items: center; }
.header-row { min-height: 76px; justify-content: space-between; gap: clamp(12px,2vw,34px); }
.brand { flex: none; width: fit-content; gap: 11px; }
.wordmark { font: 700 27px/1 var(--display); letter-spacing: -.055em; }
.brand-mark { display: inline-block; position: relative; width: 34px; height: 28px; margin-top: 2px; flex: none; }
.brand-mark::before,.brand-mark::after { content: ""; position: absolute; left: 1px; right: 1px; }
.brand-mark::before { top: 9px; bottom: 0; background: linear-gradient(120deg,#38defb,#4890ff 66%,#9364ff); border-radius: 2px 2px 5px 5px; }
.brand-mark::after { top: 1px; height: 7px; border-radius: 3px 3px 1px 1px; background: repeating-linear-gradient(130deg,transparent 0 6px,#101733 6px 9px,transparent 9px 14px),linear-gradient(90deg,#61e5ff,#8b7eff); transform: rotate(-11deg); transform-origin: left bottom; }
.brand-mark i { position: absolute; top: 13px; left: 14px; width: 0; height: 0; border-left: 8px solid #0a1730; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.main-nav { gap: clamp(18px,2.55vw,38px); }
.main-nav a { color: #c3cadb; font-size: 14px; font-weight: 500; padding-block: 11px; white-space: nowrap; }
.main-nav a:hover,.main-nav a[aria-current] { color: var(--accent-hi); }
.header-actions { gap: clamp(10px,1.6vw,24px); }
.language-switch { padding: 3px; border: 1px solid #29354b; border-radius: 9px; background: #0b1323; }
.language-switch button { background: transparent; border: 0; border-radius: 5px; padding: 4px 9px; font: 600 11px/1.5 var(--body); color: #a7b1c7; min-height: 24px; }
.language-switch button[aria-pressed="true"] { background: #123449; color: var(--accent-hi); box-shadow: inset 0 0 0 1px #215268; }
.btn,.copy-button,.plan-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 650; }
.btn { border-radius: 999px; min-height: 48px; padding: 11px 23px; border: 1px solid transparent; font-size: 15px; line-height: 1.45; text-align: center; }
.btn-primary { color: var(--ink); background: var(--grad-btn); box-shadow: 0 4px 23px #12b4ee20; }
.btn-primary:hover { box-shadow: 0 2px 24px #2ed3ff40; filter: brightness(1.08); }
.btn-secondary { color: #e0e7f4; border-color: #35415a; background: #0d1728; }
.btn-secondary:hover { border-color: var(--line-strong); background: #122035; }
.btn .icon { width: 17px; height: 17px; stroke-width: 2; }
.btn-secondary .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.menu-toggle { display: none; }

/* Flat film stock and a masked drafting grid */
.hero,.generator-page { position: relative; isolation: isolate; }
.hero { background: radial-gradient(ellipse at 85% 25%,#22224c8c,transparent 55%),linear-gradient(112deg,#080f1d 10%,#0a1429 62%,#101631); border-bottom: 1px solid var(--line); }
.hero-scenery { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(#6c7dbb13 1px,transparent 1px),linear-gradient(90deg,#6c7dbb13 1px,transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg,#0002,#000b 45%,#000 90%); }
.film-strip { --film-color: #778bff42; position: absolute; width: max(740px,65vw); height: 104px; transform: rotate(-27deg); border-block: 1px solid var(--film-color); background: linear-gradient(90deg,#454bbd0a,#535ac314); }
.film-strip::before { content: ""; position: absolute; inset: 4px 0; background: repeating-linear-gradient(90deg,var(--film-color) 0 8px,transparent 8px 20px) left top / 100% 5px no-repeat,repeating-linear-gradient(90deg,var(--film-color) 0 8px,transparent 8px 20px) left bottom / 100% 5px no-repeat; }
.film-strip::after { content: ""; position: absolute; inset: 15px 0; border-block: 1px solid var(--film-color); background: repeating-linear-gradient(90deg,var(--film-color) 0 2px,transparent 2px 102px); }
.film-front { right: -7%; top: 29%; mask-image: linear-gradient(90deg,transparent,#0009 21%,#000 100%); }
.film-back { --film-color: #627dc026; width: 580px; height: 72px; right: -21%; top: 78%; mask-image: linear-gradient(90deg,transparent,#000 55%); }
.registration { position: absolute; width: 12px; height: 12px; background: linear-gradient(#719bdc74,#719bdc74) center/1px 100% no-repeat,linear-gradient(#719bdc74,#719bdc74) center/100% 1px no-repeat; }
.registration-a { top: 10%; right: 6%; }.registration-b { bottom: 10%; left: 53%; }
.hero-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(32px,4vw,64px); align-items: center; padding-block: clamp(40px,3.4vw,58px); }
.hero-copy { min-width: 0; }
.eyebrow-pill,.price-badge { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: var(--accent-hi); border: 1px solid #2b698253; border-radius: 999px; background: #102a3b9c; font: 600 10px/1.4 var(--label); letter-spacing: .09em; text-transform: uppercase; padding: 7px 12px; }
html:lang(zh) .eyebrow-pill,html:lang(zh) .price-badge { font-size: 12px; }
.eyebrow-pill .icon,.price-badge .icon { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(50px,5.25vw,80px); line-height: 1.17; font-weight: 800; letter-spacing: -.052em; margin: 21px 0 16px; }
.hero h1 span { display: block; width: fit-content; }
html:lang(zh) .hero h1 { letter-spacing: -.045em; line-height: 1.25; }
html:lang(ms) .hero h1 { font-size: clamp(42px,4.1vw,63px); }
.gradient-text { color: var(--accent-hi); background: var(--grad); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 39em; font-size: clamp(15px,1.22vw,18px); line-height: 1.9; color: var(--muted); }
html:lang(zh) .hero-sub { max-width: 34em; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.trust-list { list-style: none; padding: 0; margin-top: 25px; display: flex; flex-wrap: wrap; gap: 9px 18px; }
.trust-list li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #b2bdd2; }
.trust-list .icon { width: 14px; height: 14px; color: #68b7d2; }

/* The sample studio is drawn with CSS, including the platform and tool marks. */
.preview-stage { width: 100%; max-width: 545px; justify-self: center; position: relative; scroll-margin-block-start: 16px; }
.studio-window { position: relative; overflow: hidden; border: 1px solid #485377; border-radius: 17px; background: linear-gradient(118deg,#141e35,#0e152b 72%,#151932); box-shadow: 0 20px 52px #02061163,0 0 46px #3d6bff10; }
.studio-bar,.studio-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-bar { min-height: 44px; padding: 8px 19px; border-bottom: 1px solid #7891ca28; background: linear-gradient(105deg,#1b2841,#1c233e); font-size: 12px; }
.window-title { display: flex; align-items: center; gap: 13px; color: #cfdbec; font-weight: 550; }
.window-dots { display: inline-flex; gap: 5px; padding-right: 13px; border-right: 1px solid #ffffff25; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #fd8a98; }
.window-dots i:nth-child(2) { background: #f5c675; }.window-dots i:nth-child(3) { background: #6ad6b0; }
.preview-live { color: #a1ccb9; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.preview-live i { width: 6px; height: 6px; border-radius: 50%; background: #67dca5; box-shadow: 0 0 7px #67dca533; }
.studio-content { padding: 18px 20px; }
.platforms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 4px; border: 1px solid #62719730; border-radius: 9px; background: #080f20; }
.platform-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 32px; padding: 4px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #9faac2; font: 600 12px/1.4 var(--body); }
.platform-button[aria-pressed="true"] { border-color: #32637b; color: #e0f7ff; background: #153447; }
.platform-button:hover { color: #fff; }
.platform-mark { font: bold 17px/1 Arial,sans-serif; display: inline-grid; place-items: center; width: 16px; height: 16px; }
.mark-tt { font-size: 23px; line-height: .75; text-shadow: -1px 0 #2ed3ff,1px 1px #e9577e; }
.mark-fb { border-radius: 50%; background: currentColor; font-size: 0; }.mark-fb::after { content: "f"; align-self: end; font: bold 16px/.9 Arial,sans-serif; color: #111b2c; }
.sample-context { display: flex; align-items: center; gap: 9px; color: #a9b9d3; font-size: 11px; margin-block: 14px 12px; }
.mode-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; background: #193145; color: #91d7e7; border-radius: 4px; }
.context-dot { opacity: .5; }.tiny-bag { position: relative; width: 10px; height: 9px; border: 1px solid currentColor; border-radius: 2px; margin-top: 2px; }
.tiny-bag::before { content: ""; position: absolute; width: 4px; height: 3px; top: -4px; left: 1px; border: 1px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.sample-script { display: grid; gap: 8px; }
.script-segment { --segment: #60d9ef; position: relative; padding: 8px 12px 9px 14px; border-radius: 5px; background: linear-gradient(90deg,#172a3c,#152136); }
.script-segment::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; width: 2px; border-radius: 2px; background: var(--segment); }
.segment-2 { --segment: #b29aff; background: linear-gradient(90deg,#24243e,#1a2036); }
.segment-3 { --segment: #7caaeb; background: linear-gradient(90deg,#1b2840,#182137); }
.segment-label { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--segment); }
.segment-label b { font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.segment-time { color: #a2aec4; font: 10px/1.4 ui-monospace,Consolas,monospace; }
.script-segment p { margin-top: 3px; color: #dde4ef; font-size: 13px; line-height: 1.6; }
.studio-footer { border-top: 1px solid #68739530; padding: 9px 20px; background: #0a122280; }
.sample-language,.copy-button { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.sample-language { color: #a9b5ca; }
.copy-button { border: 1px solid #39506c; border-radius: 6px; padding: 5px 10px; background: #17253b; color: #d1e1f5; font-weight: 500; min-height: 29px; }
.copy-button:hover { border-color: #72aac3; }.tiny-copy { width: 10px; height: 11px; border: 1px solid currentColor; border-radius: 2px; box-shadow: -3px -3px 0 -1px #17253b,-3px -3px 0 0 currentColor; margin: 2px 0 0 2px; }
.tiny-globe { position: relative; width: 13px; height: 13px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(currentColor,currentColor) center/100% 1px no-repeat; }
.tiny-globe::after { content: ""; position: absolute; inset: -1px 2px; border-radius: 50%; border: 1px solid currentColor; }
.copy-dialog { width: min(440px,90vw); color: var(--text); background: var(--card-a); border: 1px solid var(--line-strong); border-radius: 16px; padding: 24px; }
.copy-dialog::backdrop { background: #020713bc; }
.copy-dialog textarea { display: block; width: 100%; height: 12em; margin: 14px 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 10px; }

/* Home sections */
.section { padding-block: clamp(55px,5.1vw,82px); }
.section-head { text-align: center; margin-bottom: 32px; }
.section-label { color: var(--accent-hi); display: flex; justify-content: center; align-items: center; gap: 12px; font: 600 10px/1.5 var(--label); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 9px; }
html:lang(zh) .section-label { font-size: 12px; letter-spacing: .17em; }
.section-label::before,.section-label::after { content: ""; width: 27px; height: 1px; background: linear-gradient(90deg,transparent,#3ecce4); }
.section-label::after { transform: rotate(180deg); }
h2 { font-size: clamp(29px,3.05vw,44px); font-weight: 700; line-height: 1.28; letter-spacing: -.035em; }
.steps p,.card p,.faq-list p,.cta-panel p,.gen-sub { color: var(--muted); }
.features-section { padding-top: clamp(42px,3.4vw,56px); background: radial-gradient(ellipse at 40% 85%,#101c321f,transparent 65%),#090f1e; }
.feature-grid,.price-grid,.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(120deg,var(--card-a),var(--card-b)); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 4px 24px #0f9cbd12; }
.feature-card { padding: clamp(22px,2.1vw,31px); }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--icon-line); border-radius: 11px; background: var(--icon-bg); color: var(--icon-color); margin-bottom: 17px; }
.feature-icon .icon { width: 23px; height: 23px; }
.tone-cyan { --icon-color: #54dcf6; --icon-bg: #103044; --icon-line: #205066; }
.tone-purple { --icon-color: #b698ff; --icon-bg: #292342; --icon-line: #493868; }
.tone-blue { --icon-color: #82a0ff; --icon-bg: #1a294b; --icon-line: #324674; }
h3 { font-size: clamp(18px,1.47vw,22px); line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
.card p,.steps p,.faq-list p { font-size: 14px; line-height: 1.85; }
.feature-card p,.steps p { margin-top: 8px; }
.band-section { background: #0b1425; border-block: 1px solid #748ea51b; }
.steps { list-style: none; padding: 0; gap: clamp(20px,4vw,60px); }
.steps li { position: relative; }
.step-number { display: inline-block; position: relative; z-index: 1; font: 600 31px/1.15 var(--label); letter-spacing: -.06em; color: var(--accent-hi); padding-right: 14px; background: #0b1425; margin-bottom: 15px; }
.steps li::before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,#3187a0,#28354d); }
.pricing-section .section-head { margin-bottom: clamp(24px,3vw,40px); }
.price-badge { margin-bottom: 12px; border-color: var(--line-strong); text-transform: none; font-size: 12px; }
.price-intro { color: var(--muted); margin-top: 8px; }
.price-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(20px,2.1vw,32px); }
.price-card.is-featured {
  border-color: transparent;
  background: linear-gradient(135deg,#11283c,var(--card-a) 42%,var(--card-b)) padding-box,
              linear-gradient(135deg,var(--accent-hi),var(--blue) 50%,var(--violet)) border-box;
  box-shadow: 0 0 22px #2ed3ff18, 0 0 34px #9b5cff14;
}
.plan-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.plan-tag,.plan-soon { display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.5 var(--label); }
.plan-tag { color: #d5c3ff; background: #9b5cff15; border: 1px solid #9b5cff59; }
.is-featured .plan-tag { color: var(--accent-hi); background: #2ed3ff12; border-color: var(--line-strong); }
.plan-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; margin-top: 18px; }
.plan-amount strong { color: var(--text); font: 700 clamp(34px,3.3vw,48px)/1.1 var(--body); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan-period,.price-card .plan-monthly { font-size: 13px; color: var(--muted); }
.price-card .plan-monthly { margin-top: 5px; }
.plan-features { display: grid; gap: 10px; list-style: none; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 20px 0 24px; font-size: 14px; line-height: 1.55; }
.plan-features li { position: relative; padding-inline-start: 24px; }
.plan-features li::before { content: ""; position: absolute; left: 3px; top: .32em; width: 6px; height: 10px; border: solid var(--accent-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-features .plan-upcoming { color: var(--muted); opacity: .85; }
.plan-features .plan-upcoming::before { left: 0; top: .38em; width: 11px; height: 11px; border: 1px dashed currentColor; border-radius: 50%; transform: none; }
.plan-soon { display: block; margin: 5px 0 0; padding: 1px 7px; border: 1px dashed #8996b1; font-size: 10px; }
.pricing-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 20px; }
@media (max-width: 860px) {
  .price-grid { grid-template-columns: minmax(0,1fr); }
}
.faq-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 8%; align-items: start; }
.faq-layout .section-head { text-align: left; }.faq-layout .section-label { justify-content: flex-start; }.faq-layout .section-label::before { display: none; }
.faq-list details { border-bottom: 1px solid #28394b; }.faq-list details:first-child { border-top: 1px solid #28394b; }
.faq-list summary { padding: 17px 2px; list-style: none; cursor: pointer; display: flex; gap: 15px; align-items: center; justify-content: space-between; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-indicator { display: inline-block; width: 13px; height: 13px; flex: none; background: linear-gradient(var(--accent-hi),var(--accent-hi)) center/100% 1px no-repeat,linear-gradient(var(--accent-hi),var(--accent-hi)) center/1px 100% no-repeat; }
details[open] .faq-indicator { background-size: 100% 1px,0 0; }.faq-list p { max-width: 58ch; margin: -3px 25px 17px 2px; }
.cta-section { padding-block: clamp(45px,4.8vw,72px); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line-strong); border-radius: 19px; padding: clamp(28px,3.7vw,56px); background: radial-gradient(ellipse at 100% 0,#39366860,transparent 70%),linear-gradient(105deg,#102a40,#0e1a32 50%,#1a1b3b); }
.cta-panel h2 { font-size: clamp(27px,2.6vw,38px); }.cta-panel p { margin-top: 9px; }.cta-panel .btn { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); background: #080e1a; }
.footer-row { padding-block: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand,.footer-notes { display: flex; align-items: center; gap: 18px; }
.footer-brand .wordmark { font-size: 21px; }.footer-brand .brand-mark { scale: .86; margin-right: -5px; }
.footer-notes { align-items: flex-end; flex-direction: column; gap: 2px; font-size: 12px; color: #c3cedd; }
.site-footer small { font-size: 11px; color: #9aa9c0; }
/* Script studio */
.generator-page { background: radial-gradient(ellipse at 81% 5%,#23224988,transparent 42%),linear-gradient(130deg,#0b1527,var(--bg) 58%); padding-bottom: 36px; }
.gen-wrap { max-width: 1256px; }
.gen-intro { position: relative; isolation: isolate; padding: 34px 0 30px; }
.intro-copy { position: relative; z-index: 1; width: min(70%,710px); }
.gen-kicker { display: flex; align-items: center; gap: 9px; color: var(--accent-hi); font: 600 10px/1.6 var(--label); text-transform: uppercase; letter-spacing: .15em; }
.gen-kicker > span:first-child { width: 22px; height: 2px; background: var(--accent); }
.gen-intro h1 { font-size: clamp(38px,4.1vw,58px); line-height: 1.18; letter-spacing: -.045em; margin: 6px 0 8px; }
.gen-title-accent { color: #88bfff; background: linear-gradient(105deg,var(--accent-hi),#81acff 60%,#b299ff); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gen-sub { font-size: 15px; line-height: 1.65; }
.intro-art { position: absolute; inset: 0 0 0 auto; width: 36%; overflow: hidden; pointer-events: none; background-image: linear-gradient(#6487c014 1px,transparent 1px),linear-gradient(90deg,#6487c014 1px,transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg,transparent,#000 22%,#000 85%,transparent); }
.gen-film { position: absolute; display: flex; gap: 8px; top: 20%; left: 17%; width: 83%; padding: 12px 8px; border-block: 1px solid #7891c061; transform: rotate(-11deg); background: linear-gradient(104deg,#15374eaa,#302b4eaa); }
.gen-film::before,.gen-film::after { content: ""; position: absolute; inset: 2px 0 auto; height: 4px; background: repeating-linear-gradient(90deg,transparent 0 5px,#85a6d253 5px 12px,transparent 12px 18px); }
.gen-film::after { top: auto; bottom: 2px; }
.gen-film span { flex: 1; min-width: 0; display: grid; place-items: center; height: clamp(40px,4vw,58px); border: 1px solid #7597c64a; border-radius: 2px; color: #7293bd; background: #0d192ac7; }
.gen-film span:nth-child(2) { color: #9083cb; }.gen-film span:nth-child(3) { color: #a18bcf; }
.gen-film .icon { width: 31px; height: 31px; stroke-width: 1.15; }
.gen-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 20px; }
.gen-panel { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(126deg,#121e33,var(--card-b) 140%); overflow: clip; }
.gen-panel-head { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px 22px; border-bottom: 1px solid #7192bd26; background: linear-gradient(100deg,#16263c80,#161e3480); }
.panel-icon { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 8px; background: #123347; color: #74d6eb; border: 1px solid #28566d; }
.panel-icon .icon { width: 17px; height: 17px; }
.gen-panel-head h2 { font: 650 19px/1.3 var(--body); letter-spacing: -.025em; }
.generator-page .gen-panel-head h2:lang(zh),.generator-page .gen-tips h2:lang(zh) { font-family: var(--body); }
.gen-panel form,.result-inner { padding: 20px 22px; }
.generator-page fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.brief-fields { display: grid; gap: 17px; }
.gen-field { display: block; min-width: 0; color: #d6deed; font-size: 13px; font-weight: 600; line-height: 1.5; }
.gen-field > span:first-child,.gen-field legend { display: block; padding: 0; margin-bottom: 7px; }
.mode-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 4px; background: #091224; border: 1px solid #2a3950; border-radius: 9px; }
.mode-tabs label,.mood-chips label { position: relative; cursor: pointer; min-width: 0; }
.mode-tabs input,.mood-chips input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.mode-tabs label > span { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 3px; font-size: 13px; color: #abb8cf; border: 1px solid transparent; border-radius: 6px; }
.mode-tabs .icon { width: 16px; height: 16px; }
.mode-tabs b { font-weight: 550; }
.mode-tabs input:checked + span,.mood-chips input:checked + span { color: #9ce9fc; background: #123349; border-color: #31748c; }
.mode-tabs input:focus-visible + span,.mood-chips input:focus-visible + span { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.mode-tabs label:hover span,.mood-chips label:hover span { color: var(--text); }
.gen-field :where(input:not([type="radio"]),textarea,select) { width: 100%; min-width: 0; min-height: 41px; padding: 9px 12px; font: 400 13px/1.55 var(--body); color: var(--text); background: #0a1325; border: 1px solid #304059; border-radius: 7px; }
.gen-field :is(input,textarea)::placeholder { opacity: 1; color: #8e9cb4; }
.gen-field :is(input,textarea,select):focus-visible { outline: 2px solid #65d4f3; outline-offset: 1px; }
.gen-field :is(input,textarea)[aria-invalid="true"] { border-color: #ef9d9f; }
.gen-field textarea { display: block; resize: vertical; min-height: 58px; }
.gen-input-icon,.gen-select { position: relative; display: block; }
.gen-input-icon .icon,.gen-select .icon { position: absolute; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8da4c1; pointer-events: none; }
.gen-input-icon .icon { left: 12px; }.gen-field .gen-input-icon input { padding-left: 36px; }
.gen-field select { appearance: none; cursor: pointer; padding-right: 30px; }.gen-select .icon { right: 11px; width: 14px; }
.or-divider { display: flex; align-items: center; gap: 9px; margin: 7px 0; color: #91a0b9; font-size: 10px; line-height: 1.3; }
.or-divider::before,.or-divider::after { content: ""; height: 1px; background: #7385a128; flex: 1; }
.mood-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-chips label > span { display: block; padding: 5px 11px; border: 1px solid #344359; border-radius: 999px; font-size: 12px; font-weight: 500; color: #b8c4d7; }
.gen-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.gen-settings { grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); }
.gen-details { border-block: 1px solid #6f88af2d; }
.gen-details summary { display: flex; align-items: center; gap: 9px; list-style: none; padding: 11px 1px; font-size: 13px; font-weight: 550; cursor: pointer; }
.gen-details summary::-webkit-details-marker { display: none; }
.gen-details small { color: #9daec6; font-weight: 400; font-size: 11px; }
.gen-details summary .icon { width: 15px; height: 15px; margin-left: auto; color: #a3b3cc; }
.gen-details[open] summary .icon { transform: rotate(180deg); }
.gen-detail-fields { display: grid; gap: 12px; padding-bottom: 15px; }
.gen-error { margin-top: 7px; color: #ffb0b6; font-size: 13px; }
.gen-error:empty { display: none; }
.gen-generate { width: 100%; margin-top: 16px; min-height: 46px; border-radius: 8px; border: 0; color: #081425; background: linear-gradient(100deg,#58ddf5,#81b0ff 58%,#b59bff); }
.gen-generate:hover { filter: brightness(1.08); }
.gen-generate:disabled { opacity: .7; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 9px; color: #a4b3cb; font-size: 11px; text-align: center; }
.privacy-note .icon { width: 13px; height: 13px; color: #87b5c4; }
.result-panel { display: flex; flex-direction: column; align-self: stretch; background: linear-gradient(145deg,#141d33,#101929 72%,#161a30); }
.result-panel .panel-icon { color: #b2a2f3; background: #282440; border-color: #494066; }
.result-state { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 8px; border: 1px solid #52617d70; border-radius: 20px; font: 500 10px/1.5 var(--label); color: #b3bfd2; }
.result-state::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: #8797ad; }
.result-panel[data-state="ready"] .result-state::before { background: #86dfab; }
.result-panel[data-state="loading"] .result-state::before { background: var(--accent-hi); }
.result-inner { flex: 1; display: flex; flex-direction: column; }
.result-meta,.result-meta > span { display: flex; align-items: center; }
.result-meta { gap: 10px; flex-wrap: wrap; margin-bottom: 13px; font-size: 12px; color: #b8c5da; }
.result-meta > span { gap: 6px; }
.result-meta > span + span { border-left: 1px solid #41516c; padding-left: 10px; }
.result-meta .icon { width: 14px; height: 14px; color: #8fa6c3; }
.result-canvas { flex: 1; min-width: 0; display: grid; position: relative; border: 1px dashed #415574; border-radius: 9px; background: radial-gradient(ellipse at 51% 42%,#22274670,transparent 60%),radial-gradient(#7894ba29 .8px,transparent .9px) 0 0 / 14px 14px,#0b1425; }
.canvas-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 18px 52px; min-height: 330px; text-align: center; }
.script-art { display: block; max-width: 72%; height: auto; margin-bottom: 7px; }
.canvas-state h3 { font: 600 19px/1.45 var(--body); letter-spacing: -.025em; color: #e0e7f2; }
.canvas-state p { max-width: 33ch; margin-top: 6px; font-size: 13px; line-height: 1.7; color: #9daec7; }
.gen-spinner { width: 32px; height: 32px; margin: 22px 0; border: 2px solid #3d4965; border-top-color: var(--accent-hi); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .gen-spinner { animation: gen-spin .8s linear infinite; } @keyframes gen-spin { to { transform: rotate(360deg); } } }
.result-tools { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; }
.gen-action { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #3a4963; border-radius: 7px; color: #d0dbea; background: #182439; font-size: 12px; font-weight: 550; }
.gen-action:hover:enabled { border-color: var(--accent-hi); }
.gen-action:disabled { color: #8795ab; border-color: #2b3950; background: #141f32; }
.gen-action .icon { width: 14px; height: 14px; }
.copy-all:enabled { background: #163346; color: #a8e7f5; border-color: #315d74; }
.result-panel[data-state="ready"] .result-canvas { background: #0b1526; border-style: solid; border-color: #2d405b; }
#result-output { padding: 16px; min-width: 0; overflow-wrap: anywhere; }
#sample-notice { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #735632; border-radius: 6px; background: #332920; }
.sample-badge { font-size: 12px; color: #ffcd89; }
#fallback-reason { color: #e1cbb0; font-size: 12px; margin-top: 4px; }#fallback-reason:empty { display: none; }
.output-block + .output-block { margin-top: 13px; padding-top: 13px; border-top: 1px solid #283950; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.block-head h3 { font: 600 12px/1.5 var(--label); color: var(--accent-hi); }
.block-head button { flex-shrink: 0; padding: 4px 8px; }
.output-block p { font-size: 14px; line-height: 1.75; white-space: pre-wrap; color: #dce4f0; }
.gen-tips { display: flex; align-items: center; gap: 24px; margin-top: 20px; padding: 17px 22px; border: 1px solid #294057; border-radius: 11px; background: linear-gradient(105deg,#102337,#111b2c 75%); }
.gen-tips h2 { display: flex; align-items: center; gap: 8px; flex: none; color: #cde6f6; font: 600 14px/1.5 var(--body); letter-spacing: 0; }
.gen-tips h2 .icon { width: 18px; height: 18px; color: #7bd5ea; }
.gen-tips ul { display: flex; flex: 1; list-style: none; padding: 0; }
.gen-tips li { flex: 1; border-left: 1px solid #334459; padding-inline: 15px; color: #b0bfd3; font-size: 12px; }
@media (max-width: 1000px) {
  .gen-panel-head { padding-inline: 17px; }.gen-panel form,.result-inner { padding: 16px; }
  .gen-workspace,.gen-tips { gap: 14px; }.gen-tips li { padding-inline: 10px; }
}
@media (max-width: 860px) {
  .gen-workspace { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .gen-wrap { max-width: 710px; }.gen-intro { padding-block: 25px; }
  .gen-tips { align-items: flex-start; }.gen-tips ul { flex-direction: column; gap: 5px; }
  .result-panel { scroll-margin-top: 12px; }.canvas-state { min-height: 285px; padding: 20px 16px 30px; }
}
@media (max-width: 540px) {
  .gen-intro { padding-block: 21px 19px; }.intro-copy { width: 100%; }
  .gen-intro h1 { font-size: 37px; }.gen-sub { font-size: 13px; max-width: 38ch; }
  .intro-art { width: 28%; height: 63px; opacity: .7; }.gen-film { width: 180%; left: 6%; padding-block: 8px; }.gen-film span { height: 22px; }.gen-film .icon { width: 17px; height: 17px; }
  .gen-panel-head { min-height: 55px; }.gen-panel-head h2 { font-size: 17px; }
  .brief-fields { gap: 15px; }.gen-field :is(input:not([type="radio"]),select,textarea) { font-size: 16px; }
  .gen-pair { gap: 9px; }.gen-field select { padding-left: 8px; }
  .mood-chips label > span { padding: 8px 11px; }.gen-action { min-height: 44px; }
  .gen-tips { flex-direction: column; gap: 8px; margin-top: 16px; padding: 16px; }
  .gen-tips li { padding-left: 12px; }.generator-page { padding-bottom: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; }
  .reveal-visible { animation: appear .45s ease-out both; }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 1100px) {
  .header-row { min-height: 68px; }.wordmark { font-size: 24px; }
  .main-nav { gap: 17px; }.main-nav a { font-size: 13px; }
  .header-actions { gap: 10px; }.hero-layout { gap: 28px; }
  .trust-list { gap: 8px 12px; }.feature-grid,.price-grid { gap: 14px; }
  .studio-content { padding: 15px; }.studio-footer { padding-inline: 15px; }
}
@media (min-width: 761px) and (max-width: 940px) {
  .header-row,.header-actions { gap: 8px; }.wordmark { font-size: 21px; }.brand { gap: 6px; }
  .main-nav { gap: 12px; }.main-nav a { font-size: 12px; }.language-switch button { padding-inline: 6px; }
  .hero-layout { gap: 22px; }
  .hero h1 { font-size: 5.3vw; }.hero-sub { font-size: 15px; }
  .hero .btn { padding-inline: 14px; font-size: 13px; }.trust-list li { font-size: 11px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .header-row { min-height: 62px; gap: 8px; }.brand { gap: 7px; }.wordmark { font-size: 22px; }
  .brand-mark { width: 29px; height: 26px; }.brand-mark i { left: 12px; top: 12px; }
  .header-actions { gap: 8px; }.language-switch { padding: 2px; }.language-switch button { padding: 4px 7px; }
  .menu-toggle { width: 34px; height: 36px; border: 0; background: transparent; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 4px; }.menu-toggle span { width: 19px; height: 1.5px; background: var(--text); border-radius: 1px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { visibility: hidden; }.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5.5px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; display: none; padding: 12px var(--gutter) 18px; border-bottom: 1px solid var(--line); background: #0a1325; box-shadow: 0 12px 18px #03061040; }.main-nav.is-open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }.main-nav a { padding: 10px 14px; border-radius: 7px; background: #121d32; }
  .hero-layout { grid-template-columns: minmax(0,1fr); gap: 33px; padding-block: 38px 40px; }
  .hero-copy { width: 100%; max-width: 570px; margin-inline: auto; }
  .hero h1 { font-size: clamp(43px,8.2vw,62px); margin-block: 16px 12px; }
  html:lang(ms) .hero h1 { font-size: clamp(35px,7.6vw,53px); }
  .hero-sub { font-size: 15px; line-height: 1.8; }.button-row { margin-top: 21px; }.trust-list { margin-top: 18px; }
  .preview-stage { max-width: 570px; }.film-front { right: -200px; top: 60%; }.film-back { right: -230px; top: 90%; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-card { padding: 21px; }.section-head { margin-bottom: 24px; }
  .faq-layout { grid-template-columns: minmax(0,1fr); gap: 0; }.faq-layout .section-head { text-align: center; }.faq-layout .section-label { justify-content: center; }.faq-layout .section-label::before { display: block; }
  .cta-panel { flex-direction: column; align-items: flex-start; }.steps { gap: 20px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 7px; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: clamp(40px,10.7vw,55px); }
  .hero .btn { padding: 11px 17px; font-size: 14px; min-height: 45px; }.button-row { gap: 9px; }
  .trust-list { gap: 7px 12px; }.trust-list li { font-size: 11px; gap: 4px; }.trust-list .icon { width: 12px; height: 12px; }
  .studio-bar { padding-inline: 14px; }.studio-content { padding: 13px; }.studio-footer { padding: 9px 13px; }
  .section { padding-block: 43px; }.feature-grid,.steps { grid-template-columns: minmax(0,1fr); }
  .feature-card { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 4px 14px; padding: 20px; }
  .feature-card .feature-icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; }.feature-card p { margin: 0; }
  .steps { gap: 23px; }.steps li { padding-left: 58px; }.step-number { position: absolute; left: 0; top: 0; padding: 0; }.steps li::before { display: none; }.steps p { margin-top: 4px; }
  .footer-row { align-items: flex-start; gap: 15px; }.footer-notes { max-width: 52%; text-align: right; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 20px; }.header-actions { gap: 5px; }.language-switch button { padding-inline: 5px; }.menu-toggle { width: 27px; }
}
@media (max-width: 355px) {
  .header-row .wordmark { font-size: 17px; }.header-row .brand { gap: 4px; }.language-switch button { padding-inline: 4px; }
  .header-row .brand-mark { width: 24px; }
}

/* Sessions, member forms and account details */
[hidden] { display: none !important; }
.session-nav { display: flex; align-items: center; gap: 12px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.main-nav .signup-link { padding: 7px 17px; border-radius: 999px; color: var(--ink); background: var(--grad-btn); font-weight: 650; }
.email-chip { max-width: clamp(86px,10vw,156px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--muted); background: #101b2e; font-size: 11px; }
.nav-logout { padding: 7px 0; background: transparent; border: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.nav-logout:hover,.auth-switch a:hover { color: var(--accent-hi); }
.session-notice:not(:empty),.checkout-note:not(:empty),.payment-banner { padding: 10px 16px; border: 1px solid #81683c; border-radius: 9px; background: #29251e; color: #f2d7a6; font-size: 14px; }
.session-notice:not(:empty) { margin-block: 12px; }
.checkout-note:not(:empty) { width: fit-content; margin: 0 auto 20px; text-align: center; }
.plan-form { margin-top: auto; }
.plan-form .plan-button { width: 100%; }
.btn:disabled { opacity: .6; }
.checkout-error:not(:empty),.auth-card .gen-error:not(:empty) { margin-top: 8px; color: #ffc1bd; font-size: 14px; }
.price-card:target { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.member-page { min-height: calc(100svh - 160px); background: radial-gradient(ellipse at 85% 0,#22254a66,transparent 58%),var(--bg); }
.auth-page { display: grid; place-items: center; padding: clamp(32px,7vh,84px) var(--gutter); }
.auth-card { width: min(100%,456px); padding: clamp(24px,3vw,38px); }
.member-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--accent-hi); background: #103044; }
.member-page h1 { font-size: clamp(30px,3vw,44px); line-height: 1.15; }
.auth-intro { margin: 10px 0 24px; font-size: 14px; }
#auth-form { display: grid; gap: 16px; }
#auth-form input { min-height: 44px; font-size: 16px; }
#auth-form .gen-error:empty { display: none; }
.password-row { display: flex; align-items: stretch; margin-top: 7px; }
.password-row input { flex: 1; border-radius: 7px 0 0 7px; }
#password-toggle { padding-inline: 12px; border: 1px solid #304059; border-inline-start: 0; border-radius: 0 7px 7px 0; background: #142237; color: var(--accent-hi); }
.forgot-link,#password-hint { display: inline-block; margin-top: 7px; font-size: 12px; color: var(--muted); font-weight: 400; }
.auth-switch { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.auth-switch a { margin-inline-start: 4px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.account-page { padding-top: clamp(28px,4vw,58px); }
.account-heading,.access-line,.account-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-heading { justify-content: space-between; margin-bottom: 18px; }
.payment-banner { margin-bottom: 16px; }
.payment-banner[data-outcome="1"] { color: #a2edcb; background: #102d27; border-color: #2b6154; }
.account-summary { display: grid; align-items: center; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; padding: clamp(22px,3vw,40px); }
.member-label { color: var(--accent-hi); font: 600 11px/1.6 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.account-details h2 { margin: 6px 0 12px; overflow-wrap: anywhere; font: 600 clamp(20px,2vw,28px)/1.3 var(--body); }
.account-actions { margin-top: 20px; }
.access-badge { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; color: var(--accent-hi); background: #102d40; font: 600 12px/1.6 var(--label); }
.access-badge[data-access="paid"] { border-color: #31644f; color: #a2edcb; background: #102d27; }
.access-badge[data-access="expired"] { border-color: #865b4c; color: #f4c4ae; background: #302323; }
#access-detail { font-size: 14px; }
.usage-panel { padding: 18px 22px; border: 1px solid var(--line); background: #0b1527; border-radius: 12px; }
.usage-panel strong { display: block; margin: 8px 0; font-size: 20px; font-variant-numeric: tabular-nums; }
#usage-bar { display: block; appearance: none; width: 100%; height: 8px; overflow: hidden; border: none; border-radius: 8px; background: #22324a; }
#usage-bar::-webkit-progress-bar { background: #22324a; }
#usage-bar::-webkit-progress-value { background: var(--grad); border-radius: 8px; }
#usage-bar::-moz-progress-bar { background: var(--grad); border-radius: 8px; }
#result-action { margin-top: 14px; }
.quota-line:not(:empty) { margin-top: 12px; color: var(--accent-hi); font-size: 13px; font-variant-numeric: tabular-nums; }

@media (min-width: 761px) and (max-width: 1100px) {
  .main-nav { justify-content: center; flex-wrap: wrap; gap: 2px 14px; padding-block: 4px; }
  .main-nav a { padding-block: 5px; }
  .session-nav { gap: 8px; padding-inline-start: 10px; }
}
@media (max-width: 760px) {
  .session-nav { grid-column: 1 / -1; min-width: 0; flex-wrap: wrap; gap: 8px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
  .main-nav .session-nav a,.nav-logout { padding: 8px 14px; }
  .session-nav .email-chip { max-width: min(35vw,160px); }
  .account-summary { grid-template-columns: minmax(0,1fr); gap: 18px; }
}
