:root {
  --bg: #07111f;
  --panel: rgba(13, 27, 42, 0.94);
  --panel-strong: rgba(17, 35, 52, 0.97);
  --panel-dark: rgba(2, 6, 23, 0.42);
  --stroke: rgba(148, 163, 184, 0.18);
  --stroke-strong: rgba(148, 163, 184, 0.30);
  --text: #ffffff;
  --muted: rgba(226, 232, 240, 0.68);
  --accent: #2dd4bf;
  --accent-light: #5eead4;
  --accent-dark: #042f2e;
  --blue: #60a5fa;
  --warning: #fbbf24;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.30);
  --shadow-large: 0 22px 70px rgba(0, 0, 0, 0.44);
  --wrap: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(45, 212, 191, 0.10), transparent 30%),
    linear-gradient(145deg, #07111f 0%, #0a1727 55%, #07111f 100%);
  font-family: Inter, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: rgba(45, 212, 191, 0.28); }
.wrap { width: min(calc(100% - 32px), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: #fff; color: #07111f; font-weight: 800; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.header {
  position: sticky;
  z-index: 100;
  top: 12px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(13, 27, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; padding: 7px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(45, 212, 191, 0.10); }
.logo svg { width: 28px; height: 28px; display: block; }
.brand-text { min-width: 0; display: grid; line-height: 1.1; }
.brand-text strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(90deg, #f8fafc 0%, #5eead4 72%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.brand-text small { margin-top: 5px; color: rgba(226, 232, 240, 0.64); font-size: 11px; }

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nav-link { padding: 9px 12px; border: 1px solid transparent; border-radius: 9px; color: rgba(226, 232, 240, 0.72); font-size: 13px; font-weight: 750; }
.nav-link:hover, .nav-link.active { border-color: var(--stroke); background: rgba(255,255,255,0.04); color: #fff; }
.nav-link.active { color: var(--accent-light); }
.menu-button { width: 42px; height: 42px; display: none; place-content: center; gap: 4px; border: 1px solid var(--stroke); border-radius: 9px; background: var(--panel-dark); color: #fff; cursor: pointer; }
.menu-button > span { width: 19px; height: 2px; display: block; border-radius: 3px; background: currentColor; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 850; line-height: 1.2; cursor: pointer; transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, .menu-button:focus-visible { outline: 3px solid rgba(94, 234, 212, 0.40); outline-offset: 3px; }
.btn-primary { color: var(--accent-dark); background: var(--accent); box-shadow: 0 10px 28px rgba(45, 212, 191, 0.14); }
.btn-primary:hover { background: var(--accent-light); }
.btn-dark { border-color: var(--stroke); background: rgba(255,255,255,0.045); color: #fff; }
.btn-dark:hover { border-color: rgba(45, 212, 191, 0.34); background: rgba(45, 212, 191, 0.06); }
.btn-small { min-height: 38px; padding: 8px 11px; font-size: 12px; }
.btn-block { width: 100%; justify-content: space-between; }

.main { padding-top: 18px; padding-bottom: 28px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr); gap: 16px; align-items: start; }
.main-column, .side-column { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.side-column { position: sticky; top: 106px; }
.card { overflow: hidden; border: 1px solid var(--stroke); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.card:hover { border-color: rgba(45, 212, 191, 0.34); box-shadow: var(--shadow), 0 0 0 1px rgba(45, 212, 191, 0.08); }
.hero-card { border-left: 4px solid var(--accent); background: var(--panel-strong); }

.hero-head { min-height: 260px; display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; padding: 34px; background: radial-gradient(circle at 90% 15%, rgba(45, 212, 191, 0.10), transparent 36%); }
.hero-head > div:first-child { max-width: 760px; }
.status-badge { width: fit-content; display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid rgba(45, 212, 191, 0.25); border-radius: 999px; background: rgba(45, 212, 191, 0.10); font-size: 11px; font-weight: 800; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.10); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.1; }
h1 { margin: 18px 0 13px; font-size: clamp(38px, 5vw, 65px); letter-spacing: -0.05em; }
h1 span { color: var(--accent-light); }
.hero-head p { max-width: 710px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.hero-actions { flex: 0 0 auto; }

.app-workspace { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; gap: 12px; align-items: center; margin: 0 34px; padding: 18px; border: 1px solid rgba(148,163,184,0.16); border-radius: 12px; background: rgba(2,6,23,0.32); }
.mode-switch { display: inline-flex; gap: 5px; padding: 5px; border: 1px solid var(--stroke); border-radius: 10px; background: rgba(2,6,23,0.42); }
.mode-switch span { padding: 9px 12px; border-radius: 7px; font-size: 12px; font-weight: 850; }
.mode-switch .active { background: var(--accent-light); color: var(--accent-dark); }
.url-control { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid rgba(148,163,184,0.22); border-radius: 10px; background: rgba(2,6,23,0.52); }
.link-icon { color: var(--accent); font-weight: 900; }
.placeholder { color: rgba(226,232,240,0.46); font-size: 13px; }
.demo-button { pointer-events: none; }
.hero-bottom { display: flex; justify-content: space-between; gap: 14px; padding: 16px 34px 24px; color: rgba(226,232,240,0.52); font-size: 11px; }
.connection-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--stroke); border-radius: 999px; background: rgba(255,255,255,0.035); color: rgba(226,232,240,0.80); font-weight: 800; }
.connection-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.card-head { display: flex; align-items: center; gap: 11px; padding: 18px; border-bottom: 1px solid rgba(148,163,184,0.10); }
.card-head h2 { margin: 0; font-size: 17px; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.mini-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(45,212,191,0.08); color: var(--accent); font-size: 17px; font-weight: 900; }
.preview-body { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr); gap: 22px; padding: 20px; }
.video-preview { position: relative; min-height: 265px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--stroke); border-radius: 12px; background: radial-gradient(circle at 70% 26%, rgba(45,212,191,0.30), transparent 35%), linear-gradient(145deg, #123345, #07111f); }
.video-preview::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(45,212,191,0.20); border-radius: 50%; }
.play { position: relative; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-dark); font-size: 20px; box-shadow: 0 12px 36px rgba(45,212,191,0.22); }
.quality { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 5px 9px; border: 1px solid var(--stroke); border-radius: 7px; background: rgba(2,6,23,0.78); color: var(--accent-light); font-size: 11px; font-weight: 900; }
.preview-info { display: flex; flex-direction: column; justify-content: center; }
.source-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 0.12em; }
.source-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.preview-info h3 { margin: 11px 0 8px; font-size: 25px; }
.preview-info > p { color: var(--muted); font-size: 13px; }
.format-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 18px; }
.format-list span { padding: 6px 9px; border: 1px solid var(--stroke); border-radius: 7px; background: rgba(255,255,255,0.035); color: rgba(226,232,240,0.82); font-size: 10px; font-weight: 800; }
.download-progress { padding: 14px; border: 1px solid rgba(45,212,191,0.20); border-radius: 10px; background: rgba(45,212,191,0.035); }
.download-progress > div { display: flex; justify-content: space-between; font-size: 11px; }
.download-progress b { color: var(--accent-light); }
.download-progress > span { height: 6px; display: block; overflow: hidden; margin: 10px 0 8px; border-radius: 99px; background: rgba(148,163,184,0.18); }
.download-progress > span i { width: 72%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--blue)); }
.download-progress small { color: rgba(226,232,240,0.52); font-size: 9px; }

.card-body { padding: 18px; }
.card-body > p { color: var(--muted); font-size: 12px; }
.card-body .btn + .btn { margin-top: 9px; }
.store-status { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--accent-light); font-size: 13px; }
.quick-list { display: grid; gap: 1px; background: rgba(148,163,184,0.10); }
.quick-list > div { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 15px 18px; background: var(--panel); }
.quick-list > div:hover { background: rgba(45,212,191,0.045); }
.quick-list > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: rgba(45,212,191,0.10); color: var(--accent); font-size: 9px; font-weight: 900; }
.quick-list p { display: grid; gap: 2px; margin: 0; }
.quick-list strong { font-size: 12px; }
.quick-list small { color: var(--muted); font-size: 10px; }

.feature-board { margin-top: 16px; padding: 24px; }
.board-heading { margin-bottom: 18px; }
.board-heading h2 { margin: 7px 0 6px; font-size: 28px; }
.board-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.section-index { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-grid article { padding: 20px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(2,6,23,0.28); }
.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid rgba(45,212,191,0.25); border-radius: 9px; background: rgba(45,212,191,0.10); color: var(--accent); font-weight: 900; }
.feature-grid h3 { margin-bottom: 8px; font-size: 16px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; }

.warning-card { display: grid; grid-template-columns: 62px 1fr; gap: 22px; align-items: center; margin-top: 16px; padding: 24px; border-color: rgba(251,191,36,0.24); background: linear-gradient(110deg, rgba(251,191,36,0.07), var(--panel)); }
.warning-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 11px; background: rgba(251,191,36,0.12); color: var(--warning); font-size: 26px; font-weight: 900; }
.section-index.warning { color: var(--warning); }
.warning-card h2 { margin: 7px 0 7px; font-size: 22px; }
.warning-card p { margin: 0; color: rgba(226,232,240,0.66); font-size: 12px; }
.responsible-note { padding: 24px 18px 4px; color: rgba(226,232,240,0.48); font-size: 10px; text-align: center; }

.foot { padding-bottom: 24px; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(13,27,42,0.76); box-shadow: var(--shadow); }
.foot-grid strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 16px; }
.foot-grid p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.foot-links a { padding: 8px 11px; border: 1px solid var(--stroke); border-radius: 999px; background: rgba(255,255,255,0.035); color: rgba(226,232,240,0.82); font-size: 11px; }
.foot-links a:hover { border-color: rgba(45,212,191,0.32); color: #fff; }
.copyright { padding: 16px 4px 0; color: rgba(226,232,240,0.42); font-size: 10px; text-align: center; }

/* Content pages */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr); gap: 16px; align-items: start; }
.page-column { display: flex; flex-direction: column; gap: 16px; }
.page-hero { padding: 30px; border-left: 4px solid var(--accent); }
.page-hero h1 { margin: 14px 0 10px; font-size: clamp(35px, 5vw, 58px); }
.page-hero p { max-width: 760px; margin-bottom: 0; color: var(--muted); }
.page-side { position: sticky; top: 106px; }
.side-links { display: grid; gap: 8px; padding: 16px; }
.side-links a { padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 9px; background: rgba(255,255,255,0.03); color: var(--muted); font-size: 12px; font-weight: 700; }
.side-links a:hover { border-color: rgba(45,212,191,0.30); color: #fff; }
.policy-card { scroll-margin-top: 108px; padding: 24px; }
.policy-card h2 { margin: 8px 0 12px; font-size: 24px; }
.policy-card p, .policy-card li { color: var(--muted); font-size: 13px; }
.policy-card p:last-child { margin-bottom: 0; }
.policy-card ul { display: grid; gap: 7px; padding-left: 18px; }
.policy-card li::marker { color: var(--accent); }
.note { padding: 14px; border: 1px solid rgba(45,212,191,0.20); border-radius: 10px; background: rgba(45,212,191,0.05); }
.note strong { color: var(--accent-light); }

.contact-grid { display: grid; grid-template-columns: minmax(280px, 0.55fr) minmax(520px, 1.45fr); gap: 16px; align-items: start; }
.support-stack { display: flex; flex-direction: column; gap: 16px; }
.support-card { padding: 22px; }
.support-card h2 { margin: 11px 0 8px; font-size: 23px; }
.support-card > p { color: var(--muted); font-size: 12px; }
.check-list { display: grid; gap: 8px; margin-top: 18px; }
.check-list div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--stroke); border-radius: 9px; background: rgba(2,6,23,0.28); }
.check-list span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(45,212,191,0.10); color: var(--accent); font-size: 9px; font-weight: 900; }
.check-list p { display: grid; gap: 2px; margin: 0; font-size: 11px; }
.check-list small { color: var(--muted); font-size: 9px; }
.security-card { border-color: rgba(251,191,36,0.22); }
.security-card .section-index { color: var(--warning); }
.form-card .card-head { border-bottom-color: var(--stroke); }
.iframe-wrap { overflow: hidden; margin: 14px; border: 1px solid var(--stroke); border-radius: 12px; background: #fff; }
.iframe-wrap iframe { width: 100%; max-width: 850px; display: block; margin: 0 auto; border: 0; background: #fff; }

.not-found { min-height: calc(100vh - 118px); display: grid; place-items: center; }
.not-found-card { max-width: 650px; padding: 50px; text-align: center; }
.not-found-card b { display: block; color: var(--accent); font: 700 82px/1 "Space Grotesk", sans-serif; }
.not-found-card h1 { margin: 10px 0; }
.not-found-card p { color: var(--muted); }

@media (max-width: 1050px) {
  .dashboard-grid, .page-grid, .contact-grid { grid-template-columns: 1fr; }
  .side-column, .page-side { position: static; }
  .hero-head { align-items: flex-start; flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 20px), var(--wrap)); }
  .header { top: 6px; margin-top: 6px; border-radius: 13px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 9px; }
  .menu-button { display: grid; }
  .nav { position: absolute; top: calc(100% + 7px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(13,27,42,0.98); box-shadow: var(--shadow-large); }
  .nav.open { display: flex; }
  .nav-link, .nav .btn { width: 100%; justify-content: flex-start; }
  .hero-head { min-height: 0; padding: 25px 20px; }
  h1 { font-size: clamp(37px, 12vw, 55px); }
  .hero-actions, .hero-actions .btn { width: 100%; }
  .app-workspace { grid-template-columns: 1fr; margin-inline: 20px; }
  .mode-switch { width: fit-content; }
  .hero-bottom { align-items: flex-start; flex-direction: column; padding-inline: 20px; }
  .preview-body { grid-template-columns: 1fr; padding: 14px; }
  .video-preview { min-height: 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-board { padding: 18px; }
  .warning-card { grid-template-columns: 1fr; }
  .foot-grid { align-items: flex-start; flex-direction: column; border-radius: 13px; }
  .foot-links { justify-content: flex-start; }
  .page-hero, .policy-card, .support-card { padding: 20px; }
  .iframe-wrap { margin: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
