:root {
  --ink: #f4f5ff;
  --muted: #a6a8bd;
  --paper: #070812;
  --paper-deep: #0c0e1c;
  --card: #101222;
  --card-soft: #15182b;
  --line: rgba(180, 185, 255, 0.14);
  --purple: #7667ff;
  --purple-bright: #9a90ff;
  --cyan: #55e7ff;
  --green: #3ee69a;
  --red: #ff8d9d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.glow { position: fixed; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .28; }
.glow-one { width: 420px; height: 420px; top: -180px; right: -80px; background: #5d4dff; }
.glow-two { width: 360px; height: 360px; top: 540px; left: -250px; background: #03bfe4; opacity: .11; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 38px; min-height: 76px; padding: 12px max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: rgba(7, 8, 18, .78); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand-heavy { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: white; font-size: 11px; background: linear-gradient(135deg, var(--purple), var(--cyan)); box-shadow: 0 7px 22px rgba(118, 103, 255, .35); }
.topbar-links { display: flex; gap: 24px; align-items: center; }
.topbar-links a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .15s; }
.topbar-links a:hover, .topbar-links a.active { color: var(--ink); }
.privacy-chip { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #9ff4cd; font-size: 12px; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; padding-top: 88px; padding-bottom: 68px; }
.eyebrow, .section-index, .mini-label { display: block; color: var(--cyan); font-family: "DM Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 27px; height: 1px; background: var(--cyan); }
.hero h1 { margin: 18px 0 16px; font-family: "Space Grotesk", sans-serif; font-size: clamp(42px, 6vw, 70px); line-height: 1.03; letter-spacing: -.06em; }
.hero h1 span { color: var(--purple-bright); }
.hero-lead { max-width: 610px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 27px; color: #c4c6d6; font-size: 12.5px; }
.hero-notes strong { margin-right: 6px; color: var(--purple-bright); font-family: "DM Mono", monospace; font-size: 11px; }
.hero-card { min-height: 400px; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(24, 27, 50, .98), rgba(11, 13, 27, .98)); box-shadow: var(--shadow); }
.hero-card-top, .hero-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.hero-status { color: var(--green); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.hero-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero-orbit { position: relative; display: grid; place-items: center; height: 285px; }
.orbit-ring { position: absolute; border: 1px solid rgba(118, 103, 255, .26); border-radius: 50%; transform: rotate(-25deg); }
.ring-one { width: 206px; height: 115px; }
.ring-two { width: 260px; height: 160px; border-color: rgba(85, 231, 255, .18); transform: rotate(46deg); }
.orbit-square { position: absolute; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255,255,255,.04); font-family: "DM Mono", monospace; font-size: 10px; }
.square-one { top: 52px; right: 26px; transform: rotate(8deg); }
.square-two { bottom: 45px; left: 22px; color: var(--cyan); transform: rotate(-8deg); }
.orbit-center { display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid rgba(118, 103, 255, .55); border-radius: 27px; color: var(--cyan); background: rgba(118, 103, 255, .14); box-shadow: 0 0 70px rgba(118, 103, 255, .2); transform: rotate(-8deg); }
.orbit-center svg { width: 34px; transform: rotate(8deg); }
.hero-card-bottom { padding-top: 15px; border-top: 1px solid var(--line); }
.hero-card-bottom div { display: flex; flex-direction: column; }
.hero-card-bottom strong { font-family: "Space Grotesk", sans-serif; font-size: 23px; }
.hero-card-bottom span { color: var(--muted); font-size: 11px; }

.optimizer-section { padding-bottom: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.section-heading h2, .process-heading h2, .result-header h2 { margin: 8px 0 0; font-family: "Space Grotesk", sans-serif; font-size: 28px; letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; }
.workspace-card, .process-card, .result-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(18, 21, 40, .98), rgba(12, 14, 29, .98)); box-shadow: var(--shadow); }
.workspace-card { padding: 22px; }
.dropzone { display: flex; flex-direction: column; align-items: center; padding: 62px 22px; border: 1.5px dashed rgba(143, 137, 255, .38); border-radius: 18px; text-align: center; background: rgba(118, 103, 255, .045); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--cyan); background: rgba(85, 231, 255, .06); transform: translateY(-1px); outline: none; }
.drop-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 13px; border: 1px solid rgba(85, 231, 255, .27); border-radius: 17px; color: var(--cyan); background: rgba(85, 231, 255, .08); }
.drop-icon svg { width: 28px; }
.drop-title { font-size: 18px; font-weight: 700; }
.drop-subtitle { margin: 4px 0 16px; color: var(--muted); font-size: 13px; }
.drop-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 22px; color: #aeb2c9; font-size: 11.5px; }
.check-icon { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 4px; border-radius: 50%; color: var(--green); background: rgba(62, 230, 154, .13); font-style: normal; font-size: 10px; }
.file-layout, .result-layout { display: grid; grid-template-columns: minmax(250px, .9fr) 1.1fr; gap: 24px; }
.file-settings { min-width: 0; }
.video-frame { position: relative; overflow: hidden; min-height: 260px; border: 1px solid var(--line); border-radius: 15px; background: #05060e; }
.video-frame video { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: contain; }
.video-tag { position: absolute; top: 12px; left: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: #d9d9e6; background: rgba(5, 6, 14, .75); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.output-tag { color: var(--green); border-color: rgba(62, 230, 154, .35); }
.file-header, .settings-title-row { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.file-header h3 { max-width: 360px; margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.icon-button svg { width: 17px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.metric { padding: 10px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.metric span { display: block; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .06em; }
.metric strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.settings-block { padding-top: 3px; }
.settings-title-row h4 { margin: 6px 0 0; font-size: 15px; }
.target-badge { padding: 5px 8px; border: 1px solid rgba(62, 230, 154, .32); border-radius: 6px; color: var(--green); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; }
.method-grid { display: grid; gap: 8px; margin-top: 14px; }
.method-option { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s; }
.method-option:hover, .method-option.selected { border-color: rgba(118, 103, 255, .7); background: rgba(118, 103, 255, .09); }
.method-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark { flex: 0 0 auto; width: 14px; height: 14px; border: 1px solid #777c9f; border-radius: 50%; }
.method-option.selected .radio-mark { border: 4px solid var(--purple-bright); }
.method-copy { display: flex; flex-direction: column; gap: 1px; }
.method-copy strong { font-size: 13px; }
.method-copy small { color: var(--muted); font-size: 11px; }
.method-recommended { margin-left: auto; color: var(--cyan); font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .06em; }
.settings-note, .honesty-note { color: var(--muted); font-size: 12px; }
.settings-note { margin-top: 10px; }
.size-warning { margin: 12px 0 0; color: #ffd48a; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .4; }
.button svg { width: 17px; height: 17px; }
.button-dark { padding: 12px 19px; color: white; background: #1c2034; border: 1px solid var(--line); }
.button-dark:hover { background: #262b46; }
.button-primary { padding: 14px 20px; color: #fff; background: linear-gradient(100deg, var(--purple), #9c69ff); box-shadow: 0 9px 28px rgba(118, 103, 255, .28); }
.optimize-button { width: 100%; margin-top: 17px; }
.button-arrow { margin-left: auto; font-size: 19px; font-weight: 400; }
.button-outline { padding: 12px 18px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.button-outline:hover { border-color: rgba(180,185,255,.35); background: rgba(255,255,255,.08); }
.honesty-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 2px 0; }
.note-mark { display: grid; flex: 0 0 auto; place-items: center; width: 17px; height: 17px; border: 1px solid rgba(85,231,255,.35); border-radius: 50%; color: var(--cyan); font-family: serif; font-size: 12px; }

.process-section, .result-section, .info-section, .faq-section { padding-top: 48px; }
.process-card, .result-card { padding: 25px; }
.process-heading, .result-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.process-percent { color: var(--cyan); font-family: "DM Mono", monospace; font-size: 30px; }
.progress-track { height: 9px; margin-top: 26px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan)); transition: width .25s ease; }
.process-status { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.spinner { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.17); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.process-log { height: 135px; margin-top: 17px; padding: 13px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(0,0,0,.25); font-family: "DM Mono", monospace; font-size: 10px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cancel-button { margin-top: 16px; }
.success-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #06150e; background: var(--green); font-weight: 900; box-shadow: 0 8px 20px rgba(62,230,154,.2); }
.result-title-wrap { display: flex; align-items: center; gap: 12px; }
.result-pill { padding: 6px 9px; border: 1px solid rgba(62,230,154,.3); border-radius: 7px; color: var(--green); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .08em; }
.result-layout { margin-top: 25px; }
.result-video-frame { min-height: 270px; }
.result-details { display: flex; flex-direction: column; justify-content: center; }
.result-file strong { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.size-comparison { display: flex; align-items: center; gap: 19px; margin-top: 24px; }
.size-comparison div:not(.comparison-arrow) { display: flex; flex-direction: column; }
.size-comparison span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; }
.size-comparison strong { font-size: 18px; }
.after strong { color: var(--green); }
.comparison-arrow { color: var(--muted); font-size: 22px; }
.result-message { color: var(--muted); font-size: 13px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.result-actions .button-primary { flex: 1; min-width: 190px; }
.share-note { margin: 15px 2px 0; color: var(--muted); font-size: 12px; }
.share-note strong { color: var(--ink); }

.info-heading { margin-bottom: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card { min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16,18,34,.75); }
.info-card-purple { background: linear-gradient(145deg, rgba(118,103,255,.2), rgba(16,18,34,.75)); }
.info-number { color: var(--purple-bright); font-family: "DM Mono", monospace; font-size: 10px; }
.info-icon { display: grid; place-items: center; width: 34px; height: 34px; margin: 22px 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--cyan); font-size: 19px; }
.info-card h3 { margin: 0 0 7px; font-size: 16px; }
.info-card p { margin: 0; color: var(--muted); font-size: 13px; }
.faq-heading { margin-bottom: 22px; }
.faq-heading h2 { margin: 8px 0 0; font-family: "Space Grotesk", sans-serif; font-size: 28px; letter-spacing: -.04em; }
.faq-list details { margin-bottom: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(16,18,34,.72); }
.faq-list summary { display: flex; justify-content: space-between; gap: 15px; padding: 17px 19px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--muted); font-size: 19px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 19px 18px; color: var(--muted); font-size: 13px; }
code { color: var(--cyan); font-family: "DM Mono", monospace; font-size: 11px; }
.footer { display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: end; margin-top: 75px; padding-top: 28px; padding-bottom: 42px; border-top: 1px solid var(--line); }
.footer p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-small { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 800px) { .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 58px; } .hero-card { min-height: 330px; } .hero-orbit { height: 220px; } .file-layout, .result-layout { grid-template-columns: 1fr; } .video-frame, .video-frame video { min-height: 230px; } }
@media (max-width: 620px) { .shell { width: min(100% - 28px, 1160px); } .topbar { gap: 14px; min-height: 64px; padding: 10px 14px; } .topbar-links { gap: 13px; } .topbar-links a { font-size: 12px; } .privacy-chip { font-size: 0; } .privacy-chip .live-dot { width: 8px; height: 8px; } .hero h1 { font-size: 43px; } .hero-lead { font-size: 15px; } .hero-notes { gap: 11px; font-size: 11px; } .workspace-card, .process-card, .result-card { padding: 15px; } .dropzone { padding: 40px 14px; } .metrics { gap: 6px; } .metric { padding: 9px 6px; } .metric strong { font-size: 11px; } .method-recommended { display: none; } .section-heading { align-items: start; flex-direction: column; } .section-heading h2, .process-heading h2, .result-header h2, .faq-heading h2 { font-size: 24px; } .process-heading, .result-header { align-items: start; } .process-percent { font-size: 23px; } .result-pill { display: none; } .info-grid { grid-template-columns: 1fr; } .footer { grid-template-columns: 1fr; } .footer-links { flex-direction: column; gap: 7px; } }
