:root {
  --blue: #0b86ef;
  --blue-dark: #075db8;
  --cyan: #1dc8e9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5edf6;
  --surface: #fff;
  --soft: #f5f9ff;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, summary { cursor: pointer; }
button { border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; color: #fff; }
.nav-wrap { width: min(var(--max), calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: var(--blue); background: #fff; font-size: 22px; line-height: 1; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.desktop-nav > a { opacity: .88; transition: opacity .2s; }
.desktop-nav > a:hover { opacity: 1; }
.language-picker { position: relative; }
.language-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; color: #fff; background: transparent; font-size: 14px; }
.language-trigger > span:first-child { font-size: 20px; line-height: 1; }
.chevron { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.language-menu { position: absolute; top: calc(100% + 9px); right: -12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; width: 220px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(15, 23, 42, .2); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px); transition: .18s ease; }
.language-picker:hover .language-menu, .language-picker:focus-within .language-menu, .language-picker.open .language-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.language-menu button, .mobile-language-list button { padding: 8px 9px; border-radius: 8px; color: var(--ink); background: transparent; font-size: 12px; text-align: left; }
.language-menu button:hover, .language-menu button.active, .mobile-language-list button:hover, .mobile-language-list button.active { color: var(--blue); background: #edf7ff; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 8px; border-radius: 9px; background: rgba(255,255,255,.12); }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 5px; background: #fff; }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; min-height: 470px; color: #fff; background: linear-gradient(121deg, #0759b5 0%, #0b86ef 48%, #1dc8e9 100%); }
.hero::after { position: absolute; inset: 0; content: ""; opacity: .22; background-image: radial-gradient(rgba(255,255,255,.38) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.hero-orb { position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.hero-orb-one { width: 420px; height: 420px; right: -120px; bottom: -260px; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 78px rgba(255,255,255,.025); }
.hero-orb-two { width: 180px; height: 180px; left: 7%; top: 180px; opacity: .22; }
.hero-content { position: relative; z-index: 1; width: min(800px, calc(100% - 40px)); margin: auto; padding: 142px 0 76px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9f6ff; box-shadow: 0 0 0 4px rgba(185,246,255,.14); }
.hero h1 { margin: 23px 0 17px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 em { color: #d7faff; font-style: normal; }
.hero p { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.86); font-size: 18px; }
.hero-benefits { display: flex; justify-content: center; gap: 30px; margin-top: 28px; color: rgba(255,255,255,.93); font-size: 13px; font-weight: 600; }
.hero-benefits > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-benefits b { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 11px; }

.downloader-section { position: relative; z-index: 5; padding: 0 20px 42px; background: var(--soft); }
.downloader-card { width: min(1000px, 100%); margin: 0 auto; padding: 30px 34px 22px; border: 1px solid rgba(9, 112, 210, .13); border-radius: 18px; background: #fff; box-shadow: 0 22px 50px rgba(6, 82, 153, .13); transform: translateY(-42px); }
.input-row { display: flex; align-items: center; gap: 10px; }
.input-shell { position: relative; flex: 1; }
.input-icon { position: absolute; left: 16px; top: 50%; color: var(--blue); font-size: 19px; transform: translateY(-52%) rotate(-45deg); }
.input-shell input { width: 100%; height: 58px; padding: 0 45px 0 45px; border: 1px solid #d8e3ef; border-radius: 11px; outline: 0; color: var(--ink); background: #fbfdff; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-shell input:focus { border-color: #55aef5; background: #fff; box-shadow: 0 0 0 4px rgba(11,134,239,.12); }
.input-shell input::placeholder { color: #94a3b8; }
.clear-button { position: absolute; display: none; right: 11px; top: 50%; width: 28px; height: 28px; padding: 0; border-radius: 50%; color: #64748b; background: #edf2f7; font-size: 21px; line-height: 1; transform: translateY(-50%); }
.input-shell.has-value .clear-button { display: block; }
.paste-button, .submit-button { display: inline-flex; height: 58px; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-weight: 750; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.paste-button { min-width: 90px; padding: 0 17px; color: var(--blue-dark); background: #eaf5ff; }
.paste-button:hover { background: #d9edff; }
.submit-button { min-width: 148px; padding: 0 22px; color: #fff; background: var(--blue); box-shadow: 0 9px 18px rgba(11,134,239,.22); }
.submit-button:hover { background: var(--blue-dark); box-shadow: 0 12px 24px rgba(11,134,239,.3); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .75; transform: none; }
.submit-arrow { font-size: 19px; font-weight: 400; }
.submit-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.loading .submit-spinner { display: block; }
.submit-button.loading .submit-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.terms { margin: 13px 0 0; color: #94a3b8; font-size: 12px; text-align: center; }
.terms a { color: var(--blue); text-decoration: underline; }
.result-region:empty { display: none; }
.result-region { margin-top: 22px; }
.result-loading, .result-error { padding: 16px; border-radius: 11px; text-align: center; }
.result-loading { color: var(--blue-dark); background: #f0f8ff; }
.result-error { color: #b42318; background: #fff3f1; }
.result-warning { margin: 12px 0 0; padding: 10px 13px; border-radius: 9px; color: #7a5b00; background: #fff9e8; font-size: 13px; text-align: center; }
.result-error strong, .result-error p { display: block; }
.result-error p { margin: 4px 0 0; font-size: 13px; }
.result-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.result-media { position: relative; min-height: 190px; overflow: hidden; background: #dbeafe; }
.result-thumb { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.result-placeholder { display: grid; width: 100%; height: 100%; min-height: 190px; place-items: center; color: #fff; background: linear-gradient(135deg, #075db8, #1dc8e9); font-size: 58px; }
.preview-button { position: absolute; left: 50%; top: 50%; display: grid; width: 48px; height: 48px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(15,23,42,.55); font-size: 18px; transform: translate(-50%, -50%); }
.preview-button:hover { background: rgba(11,134,239,.9); }
.result-body { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 21px 23px 20px; }
.result-platform { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-title { overflow: hidden; margin: 5px 0 4px; color: var(--ink); font-size: 18px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.result-author { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.result-actions { display: flex; align-items: stretch; gap: 0; margin-top: 19px; }
.download-main, .quality-trigger { min-height: 42px; font-size: 13px; font-weight: 750; }
.download-main { min-width: 112px; padding: 0 17px; border-radius: 8px 0 0 8px; color: #fff; background: var(--blue); }
.download-main:hover { background: var(--blue-dark); }
.quality-picker { position: relative; }
.quality-trigger { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.28); border-radius: 0 8px 8px 0; color: #fff; background: var(--blue-dark); }
.quality-trigger::after { content: ""; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.quality-picker.open .quality-trigger::after { transform: translateY(2px) rotate(225deg); }
.quality-list { position: absolute; z-index: 6; right: 0; bottom: calc(100% + 8px); display: none; width: 190px; max-height: 260px; overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 15px 35px rgba(15,23,42,.18); }
.quality-picker.open .quality-list { display: grid; gap: 2px; }
.quality-option { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: space-between; padding: 0 9px; border-radius: 7px; color: var(--ink); background: transparent; font-size: 12px; text-align: left; }
.quality-option:hover, .quality-option.selected { color: var(--blue); background: #edf7ff; }
.quality-option small { color: var(--muted); }

.trust-strip { position: relative; z-index: 6; display: flex; width: min(var(--max), calc(100% - 40px)); align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 0 0 48px; color: var(--muted); font-size: 13px; }
.trust-strip > div:first-child { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip strong { color: var(--ink); font-size: 15px; }
.trust-items { display: flex; gap: 24px; }
.trust-items span { display: inline-flex; align-items: center; gap: 6px; }
.trust-items b { color: var(--blue); }

.content-section, .faq-section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 80px 0; }
.section-heading { max-width: 690px; margin: 0 auto 39px; text-align: center; }
.section-kicker { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
h2 { margin: 10px 0 13px; color: var(--ink); font-size: clamp(29px, 3.5vw, 43px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 235px; padding: 26px 25px 23px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(15,23,42,.04); }
.step-card:hover { border-color: #b7dcfa; box-shadow: 0 12px 32px rgba(11,134,239,.09); }
.step-number { position: absolute; top: 24px; right: 23px; color: #c8e8ff; font-size: 20px; font-weight: 850; }
.step-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 25px; border-radius: 12px; color: var(--blue); background: #eaf5ff; font-size: 22px; }
.step-card h3 { margin: 0 0 7px; font-size: 18px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

.feature-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); align-items: center; gap: 80px; padding: 100px max(20px, calc((100% - var(--max)) / 2)); background: var(--soft); }
.feature-copy { max-width: 530px; }
.feature-copy h2 { margin-top: 11px; }
.feature-copy > p { color: var(--muted); }
.feature-list { display: grid; gap: 13px; margin: 25px 0 0; padding: 0; list-style: none; color: #334155; font-size: 14px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.feature-list b { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 12px; }
.feature-visual { display: flex; justify-content: center; }
.visual-window { width: min(100%, 400px); padding: 15px; border: 1px solid #d9e8f6; border-radius: 19px; background: #fff; box-shadow: 0 20px 50px rgba(11,91,166,.14); transform: rotate(2deg); }
.visual-top { display: flex; gap: 5px; padding: 0 2px 13px; }
.visual-top span { width: 7px; height: 7px; border-radius: 50%; background: #d9e8f6; }
.visual-post { display: flex; align-items: center; gap: 9px; padding: 12px; border-radius: 10px 10px 0 0; background: #f7fbff; }
.visual-avatar { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 14px; }
.visual-post i { display: block; width: 120px; height: 6px; margin: 5px 0; border-radius: 9px; background: #d7e7f5; }
.visual-post i + i { width: 78px; }
.visual-media { display: grid; height: 180px; place-items: center; color: #fff; background: linear-gradient(135deg, #1776c7, #6be5ee); font-size: 35px; }
.visual-buttons { display: flex; gap: 7px; padding: 13px 4px 2px; }
.visual-buttons span { flex: 1; padding: 9px 5px; border-radius: 7px; color: var(--blue); background: #eaf5ff; font-size: 11px; font-weight: 750; text-align: center; }
.visual-buttons span:last-child { color: #fff; background: var(--blue); }
.visual-buttons b { color: var(--muted); font-weight: 500; }

.faq-section { padding-top: 100px; padding-bottom: 105px; }
.faq-list { max-width: 850px; margin: auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 12px; color: var(--ink); font-size: 16px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 25px; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { max-width: 760px; margin: -4px 0 23px; padding: 0 45px 0 12px; color: var(--muted); font-size: 14px; }

footer { color: #c7d7e9; background: #0d2037; }
.footer-inner { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: 43px 0 30px; text-align: center; }
.footer-brand { justify-content: center; }
.footer-inner p { margin: 15px 0 22px; color: #8fa8c1; font-size: 13px; }
.footer-links { display: flex; justify-content: center; gap: 23px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-inner small { display: block; padding-top: 20px; color: #6f8aa4; font-size: 12px; }

.preview-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(5, 18, 34, .78); }
.preview-modal[hidden] { display: none; }
.preview-dialog { position: relative; width: min(100%, 520px); padding: 24px; border-radius: 16px; color: #fff; background: #0d2037; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.preview-dialog strong { display: block; max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-dialog video { display: block; width: 100%; max-height: 70vh; margin-top: 17px; background: #000; }
.preview-close { position: absolute; right: 11px; top: 7px; width: 32px; height: 32px; color: #fff; background: transparent; font-size: 26px; }

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: 10px 0 14px; border-bottom: 1px solid rgba(255,255,255,.15); background: rgba(7,89,181,.96); }
  .mobile-nav.open { display: block; }
  .mobile-nav:not(.open) { display: none; }
  .mobile-nav > a { display: block; padding: 10px 0; font-size: 14px; font-weight: 650; }
  .mobile-language-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
  .mobile-language-list button { color: #d9efff; }
  .mobile-language-list button:hover, .mobile-language-list button.active { color: #fff; background: rgba(255,255,255,.12); }
  .input-row { flex-wrap: wrap; }
  .input-shell { flex: 1 1 calc(100% - 100px); }
  .paste-button { flex: 0 0 90px; }
  .submit-button { flex: 1 1 100%; }
  .submit-arrow { margin-left: auto; }
  .trust-strip { display: block; text-align: center; }
  .trust-items { justify-content: center; margin-top: 13px; }
  .feature-section { grid-template-columns: 1fr; gap: 42px; padding-top: 75px; padding-bottom: 75px; }
  .feature-copy { max-width: 690px; margin: auto; }
}

@media (max-width: 600px) {
  .nav-wrap, .mobile-nav { width: calc(100% - 28px); }
  .brand { font-size: 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { min-height: 500px; }
  .hero-content { width: calc(100% - 28px); padding-top: 130px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 15px; }
  .hero-benefits { flex-wrap: wrap; gap: 10px 17px; font-size: 12px; }
  .downloader-section { padding: 0 12px; }
  .downloader-card { padding: 18px 15px 15px; border-radius: 14px; }
  .input-shell { flex-basis: 100%; }
  .paste-button { flex: 1; }
  .submit-button { flex: 2; }
  .result-card { grid-template-columns: 1fr; }
  .result-media { min-height: 220px; }
  .result-thumb { min-height: 220px; }
  .result-title { white-space: normal; }
  .quality-list { right: auto; left: 0; }
  .trust-strip, .content-section, .faq-section { width: calc(100% - 28px); }
  .trust-items { flex-wrap: wrap; gap: 8px 16px; }
  .content-section, .faq-section { padding: 60px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .feature-section { padding-right: 14px; padding-left: 14px; }
  .visual-media { height: 150px; }
  .faq-list summary { min-height: 62px; padding-right: 3px; padding-left: 3px; font-size: 14px; }
  .faq-list p { padding-right: 3px; padding-left: 3px; }
  .footer-inner { width: calc(100% - 28px); }
  .footer-links { flex-wrap: wrap; gap: 10px 17px; }
}

[dir="rtl"] .language-menu { right: auto; left: -12px; }
[dir="rtl"] .language-menu button, [dir="rtl"] .mobile-language-list button { text-align: right; }
[dir="rtl"] .input-icon { right: 16px; left: auto; }
[dir="rtl"] .input-shell input { padding-right: 45px; padding-left: 45px; }
[dir="rtl"] .clear-button { right: auto; left: 11px; }
[dir="rtl"] .result-actions { direction: ltr; }
[dir="rtl"] .quality-option { direction: rtl; text-align: right; }
[dir="rtl"] .quality-list { right: auto; left: 0; }
[dir="rtl"] .faq-list p { padding-right: 12px; padding-left: 45px; }

@media (max-width: 600px) {
  [dir="rtl"] .faq-list p { padding-right: 3px; padding-left: 3px; }
}
