:root {
  --bg: #08090a;
  --bg-deep: #010102;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --surface: #0f1011;
  --surface-2: #191a1b;
  --text: #f7f8f8;
  --muted: #d0d6e0;
  --subtle: #8a8f98;
  --quiet: #62666d;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --brand: #7170ff;
  --brand-2: #5e6ad2;
  --brand-glow: rgba(113, 112, 255, 0.35);
  --green: #10b981;
  --red: #ff4778;
  --radius: 22px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(113,112,255,.20), transparent 31%),
    radial-gradient(circle at 80% 16%, rgba(16,185,129,.10), transparent 28%),
    radial-gradient(circle at 50% 75%, rgba(113,112,255,.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "cv01", "ss03";
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.section-shell { width: min(1180px, calc(100vw - 34px)); margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100vw - 34px));
  margin: 0 auto;
  backdrop-filter: blur(18px);
}
.nav::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 71px;
  height: 1px;
  background: var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.03em; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(113,112,255,.25), rgba(255,255,255,.04));
  box-shadow: 0 0 38px rgba(113,112,255,.16);
}
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 510; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 590;
}

.hero {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 54px;
  align-items: center;
  padding: 86px 0 78px;
}
.eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  font-size: 12px;
  font-weight: 590;
  letter-spacing: -0.01em;
}
.pulse-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 18px var(--green); }
h1, h2, h3, p { margin: 0; }
h1 {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: .93;
  letter-spacing: -0.065em;
  font-weight: 590;
}
.hero-text {
  margin-top: 24px;
  max-width: 640px;
  color: var(--subtle);
  font-size: 19px;
  line-height: 1.65;
  letter-spacing: -0.02em;
}
.hero-actions { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 650;
  transition: transform .2s ease, opacity .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 54px var(--brand-glow), inset 0 1px rgba(255,255,255,.28);
}
.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.button.wide { width: 100%; margin-top: 18px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.trust-row span {
  font-family: var(--mono);
  color: var(--quiet);
  font-size: 12px;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}

.hero-visual { position: relative; min-height: 560px; }
.phone-frame {
  position: relative;
  width: min(430px, 100%);
  height: 560px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 30px 120px rgba(0,0,0,.5), 0 0 120px rgba(113,112,255,.12);
  overflow: hidden;
}
.phone-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 31px;
  border: 1px solid rgba(255,255,255,.055);
  background: radial-gradient(circle at 50% 0%, rgba(113,112,255,.22), transparent 30%), #07080a;
}
.video-card {
  position: absolute;
  width: 178px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.video-card p { position: absolute; left: 16px; bottom: 16px; color: white; line-height: 1.2; font-weight: 650; letter-spacing: -0.04em; }
.video-card.before { left: 34px; top: 70px; transform: rotate(-6deg); filter: blur(.35px); opacity: .84; }
.video-card.after { right: 34px; top: 140px; transform: rotate(5deg); box-shadow: 0 0 70px rgba(113,112,255,.25); }
.tag { font-family: var(--mono); font-size: 10px; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; position: relative; z-index: 2; }
.tag.danger { background: rgba(255,71,120,.16); color: #ff8aaa; }
.tag.success { background: rgba(16,185,129,.16); color: #6ee7b7; }
.blur-lines, .sharp-grid { position: absolute; inset: 0; }
.blur-lines { background: repeating-linear-gradient(115deg, rgba(255,255,255,.12) 0 9px, transparent 9px 20px), linear-gradient(135deg, #242032, #0f1011); filter: blur(2px); }
.sharp-grid { background: linear-gradient(135deg, rgba(113,112,255,.35), rgba(16,185,129,.12)), repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 1px, transparent 1px 22px), #111319; }
.upload-panel {
  position: absolute;
  left: 44px; right: 44px; bottom: 62px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15,16,17,.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.mini-title { color: var(--text); font-weight: 650; margin-bottom: 12px; }
.mini-row { display: flex; justify-content: space-between; color: var(--subtle); font-size: 13px; margin: 8px 0; }
.mini-row strong { color: var(--text); }
.mini-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 12px; }
.mini-progress i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--brand), var(--green)); border-radius: inherit; }

.optimizer { padding: 72px 0; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 32px; display: grid; justify-items: center; gap: 15px; }
.section-heading h2, .how-copy h2, .tips h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.055em; font-weight: 590; }
.section-heading p, .how-copy p { color: var(--subtle); font-size: 17px; line-height: 1.65; }
.app-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 18px; align-items: start; }
.uploader-card, .settings-card, .feature-card, .terminal-card, .tips {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 24px 80px rgba(0,0,0,.24);
}
.uploader-card, .settings-card { padding: 18px; }
.drop-zone {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.17);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0, rgba(113,112,255,.18), transparent 35%), rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background-color: rgba(113,112,255,.06); transform: translateY(-1px); }
.drop-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: rgba(113,112,255,.16); color: white; font-size: 40px; box-shadow: 0 0 54px rgba(113,112,255,.25); }
.drop-zone h3 { font-size: 26px; letter-spacing: -0.04em; }
.drop-zone p { color: var(--subtle); }
.file-meta { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.preview-wrap { margin-top: 16px; }
video { width: 100%; max-height: 390px; border-radius: 18px; background: black; border: 1px solid var(--line); }
.settings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.settings-header h3 { font-size: 22px; letter-spacing: -0.04em; }
.status-pill { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; background: rgba(255,255,255,.03); }
.preset-list { display: grid; gap: 10px; }
.preset {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.preset.active { border-color: rgba(113,112,255,.65); background: rgba(113,112,255,.11); box-shadow: 0 0 48px rgba(113,112,255,.10); }
.preset strong { display: block; font-size: 15px; margin-bottom: 4px; }
.preset small { color: var(--subtle); }
.preset em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.option-grid label { display: grid; gap: 7px; color: var(--subtle); font-size: 12px; font-weight: 590; }
select {
  width: 100%;
  color: var(--text);
  background: #111216;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}
.progress-wrap { margin-top: 16px; }
.progress-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.progress { height: 10px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--green)); border-radius: inherit; transition: width .2s ease; }
.download { width: 100%; margin-top: 14px; background: rgba(16,185,129,.14); color: #b8f7da; border: 1px solid rgba(16,185,129,.35); }
.log-box { max-height: 160px; overflow: auto; margin: 14px 0 0; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--quiet); background: rgba(0,0,0,.22); font: 11px/1.45 var(--mono); white-space: pre-wrap; }
.hidden { display: none !important; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 48px 0 72px; }
.feature-card { padding: 24px; min-height: 220px; }
.card-kicker { font-family: var(--mono); color: var(--brand); font-size: 12px; }
.feature-card h3 { margin-top: 42px; font-size: 24px; letter-spacing: -0.04em; }
.feature-card p { margin-top: 12px; color: var(--subtle); line-height: 1.65; }

.how { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: center; padding: 54px 0 80px; }
.terminal-card { padding: 18px; min-height: 260px; display: grid; align-content: center; }
.terminal-top { display: flex; align-items: center; gap: 8px; color: var(--quiet); font-size: 12px; margin-bottom: 20px; }
.terminal-top span { width: 10px; height: 10px; border-radius: 50%; background: #3a3b40; }
.terminal-top strong { margin-left: auto; font-family: var(--mono); font-weight: 400; }
.terminal-card code { font-family: var(--mono); display: block; color: #b8f7da; font-size: 16px; line-height: 1.8; }
.how-copy { display: grid; gap: 16px; }

.tips { padding: 30px; margin-bottom: 60px; }
.tips h2 { margin-bottom: 22px; }
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tips-grid div { padding: 16px; border: 1px solid var(--line-soft); border-radius: 16px; color: var(--subtle); background: rgba(255,255,255,.025); line-height: 1.45; }
.tips-grid strong { color: var(--text); }
.footer { display: flex; justify-content: space-between; color: var(--quiet); padding: 28px 0 42px; border-top: 1px solid var(--line-soft); font-size: 13px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .app-grid, .how { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 500px; }
  .phone-frame { margin: 0 auto; }
  .cards, .tips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section-shell, .nav { width: min(100vw - 22px, 1180px); }
  h1 { font-size: 46px; }
  .phone-frame { height: 500px; border-radius: 30px; }
  .video-card { width: 158px; height: 235px; }
  .video-card.before { left: 22px; }
  .video-card.after { right: 22px; }
  .upload-panel { left: 24px; right: 24px; }
  .option-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; }
}
