:root {
  color-scheme: light;
  font-family: "Inter", "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2024;
  background: #faf9f6;
  font-synthesis: none;
  --ink: #1d2024;
  --paper: #faf9f6;
  --line: #e9e6de;
  --muted: #636065;
  --accent: #ff825f;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, input, select { min-width: 0; }
button:disabled { cursor: wait; opacity: .68; }
:focus-visible { outline: 3px solid #db5937; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: calc(100% - 72px); max-width: 1216px; margin-inline: auto; }

.topbar { border-bottom: 1px solid #efede5; }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; gap: 24px; }
.brand { font-size: 24px; font-weight: 800; letter-spacing: -.065em; display: inline-flex; align-items: center; width: fit-content; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; margin-right: 9px; border-radius: 10px;
  color: #231b1b; background: var(--accent);
}
.brand-dot { color: #c74e2c; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .925rem; font-weight: 650; }
.main-nav a, .footer a:last-child { color: #59575c; }
.main-nav a:hover, .footer a:last-child:hover { color: #ac3e21; }
.language {
  justify-self: end; display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  color: #454349; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 11px; position: relative;
}
.language svg { pointer-events: none; }
.language select {
  color: var(--ink); appearance: none; border: 0; background: transparent; padding: 9px 23px 9px 28px;
  font-weight: 650; font-size: .875rem; grid-column: 1 / -1; grid-row: 1; position: relative;
}
.language svg:first-child { grid-column: 1; grid-row: 1; }
.language svg:last-of-type { grid-column: 3; grid-row: 1; }
.language:focus-within { outline: 2px solid #db5937; outline-offset: 3px; }
.language select:focus-visible { outline: none; }

.hero {
  margin-top: 35px; position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 463px; gap: clamp(28px, 5vw, 76px);
  padding: clamp(37px, 5.5vw, 72px); background: #1b1e23; color: #faf8f3; border-radius: 27px;
}
.hero::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1; inset: 0;
  background: radial-gradient(ellipse at 103% -6%, #594039 0%, #302926 27%, transparent 59%),
              radial-gradient(ellipse at -22% 100%, #392927 0%, transparent 53%);
}
.orbits {
  position: absolute; z-index: -1; pointer-events: none; width: 860px; height: 860px; border-radius: 50%;
  top: -340px; right: -365px; border: 1px solid #ffd0b532;
  box-shadow: 0 0 0 24px #0000, 0 0 0 25px #ffd0b51f, 0 0 0 53px #0000, 0 0 0 54px #ffd0b51a,
    0 0 0 84px #0000, 0 0 0 85px #ffd0b516, 0 0 0 119px #0000, 0 0 0 120px #ffd0b512,
    0 0 0 156px #0000, 0 0 0 157px #ffd0b510, 0 0 0 196px #0000, 0 0 0 197px #ffd0b50d;
}
.hero-copy { min-width: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; min-height: 29px; padding: 3px 0; margin-bottom: 15px;
  color: #f5a48c; font-size: .75rem; font-weight: 800; letter-spacing: .16em;
}
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: #ff825f; box-shadow: 0 0 0 4px #ff825f25; margin-inline: 4px 1px; }
.hero h1 { font-weight: 800; font-size: clamp(2.75rem, 5.2vw, 4.55rem); letter-spacing: -.075em; line-height: 1.015; text-wrap: balance; }
.hero h1 em { color: var(--accent); font-style: normal; display: block; }
.hero-copy p { line-height: 1.6; font-size: 1.0625rem; color: #dbd6d3; max-width: 410px; margin-top: 23px; }
.hero-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.hero-sources .source-icon { width: 35px; height: 35px; border-radius: 9px; background: #ffffff0d; border: 1px solid #ffffff24; color: #eee6e2; }
.source-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; color: var(--source); background: var(--tint); border-radius: 12px; }

.downloader { border-radius: 20px; color: var(--ink); background: #fff; padding: 27px; min-width: 0; box-shadow: 0 18px 45px #0f0c0c63, 0 1px 0 #ffffff83 inset; }
.tool-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; min-width: 0; }
.tool-heading h2 { font-size: clamp(1.15rem, 2vw, 1.42rem); letter-spacing: -.05em; line-height: 1.18; }
.tool-icon { flex: none; width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: #fff0e9; color: #b74225; }
.file-format { margin-left: auto; color: #62606a; background: #f5f4f1; border: 1px solid #eeece8; border-radius: 6px; font-size: .75rem; letter-spacing: .05em; font-weight: 800; padding: 4px 7px; }
#video-form label, .format-label { display: block; font-size: .9rem; font-weight: 740; margin-bottom: 8px; }
.url-field {
  display: flex; align-items: center; min-height: 54px; gap: 11px; padding: 5px 6px 5px 12px;
  border: 1px solid #e4e0d8; background: #fbfaf8; border-radius: 10px; color: #77747b;
}
.url-field:focus-within { border-color: #db5937; box-shadow: 0 0 0 2px #f2c3b4; }
.url-field > svg { flex: none; }
.url-field input { flex: 1; width: 100%; border: 0; background: transparent; color: var(--ink); outline: none; padding: 8px 0; font-size: .9375rem; }
.url-field input::placeholder { color: #74717a; }
.paste-button {
  display: inline-flex; align-items: center; flex: none; gap: 5px; min-height: 36px; padding: 6px 9px;
  color: #403c42; border: 1px solid #e9e6e1; background: #fff; border-radius: 7px; font-size: .8125rem; font-weight: 680;
}
.paste-button:hover { background: #fff0e9; border-color: #f2c3b4; }
.primary {
  margin-top: 13px; min-height: 51px; width: 100%; border: 0; border-radius: 10px; background: var(--accent); color: #231b1b;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800;
  box-shadow: 0 2px 1px #83311825; transition: background .16s ease;
}
.primary:hover { background: #ff987c; }
.tool-note { display: flex; gap: 9px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.tool-note span, .tool-note button { display: inline-flex; align-items: center; gap: 5px; color: #67646a; font-size: .8125rem; line-height: 1.3; }
.tool-note button { min-height: 32px; border: 0; padding: 0; background: transparent; color: #9e381e; font-weight: 730; }
.tool-note button:hover, .original:hover { text-decoration: underline; }
.message { margin-top: 13px; padding: 10px 12px; border-radius: 8px; background: #f4f3ef; color: #514b49; font-size: .9rem; line-height: 1.5; }
.message[data-tone="error"] { background: #fff0ea; color: #922e19; }
.mismatch-link { font-weight: 750; text-decoration: underline; }
.result { margin-top: 17px; padding: 14px; background: #faf9f6; border: 1px solid #ebe8e0; border-radius: 10px; }
.result-status { color: #226d4a; font-weight: 750; font-size: .875rem; margin-bottom: 4px; }
.result h3 { font-size: 1.0625rem; line-height: 1.32; overflow-wrap: anywhere; }
.result-help { color: var(--muted); margin: 5px 0 12px; font-size: .875rem; line-height: 1.4; }
.result-row { display: flex; gap: 8px; }
.quality-select, .result-download { border-radius: 7px; min-height: 43px; padding: 9px 11px; font-size: .9rem; font-weight: 680; }
.quality-select { flex: 1; color: var(--ink); background: #fff; border: 1px solid #dcd7ce; }
.result-download { display: grid; place-items: center; border: 0; background: var(--ink); color: #fff; }
.result-download:hover { background: #39383b; }
.result-action { display: inline-grid; margin-top: 4px; }
.original { display: inline-block; font-size: .875rem; color: #943a22; margin-top: 10px; font-weight: 650; }

.section { margin-block: 43px; scroll-margin-top: 16px; }
.section-title { margin-bottom: 17px; }
.section-title h2 { font-size: clamp(1.52rem, 2.65vw, 2rem); font-weight: 800; letter-spacing: -.052em; }
.section-title p { margin-top: 5px; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.guide-entry { display: inline-flex; margin-top: 10px; color: #91351a; font-weight: 720; text-decoration: underline; text-underline-offset: 3px; }
.platforms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.platform-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; min-width: 0; min-height: 87px;
  padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .16s ease, transform .16s ease; box-shadow: 0 2px 4px #26170706;
}
.platform-card .source-icon { width: 40px; height: 40px; border-radius: 10px; }
.platform-card:hover { border-color: #e39479; transform: translateY(-2px); }
.platform-card.current { border-color: #e39479; background: #fff7f2; }
.platform-card strong, .platform-card small { display: block; }
.platform-card strong { font-size: .96rem; letter-spacing: -.02em; margin-bottom: 4px; }
.platform-card small { font-size: .8rem; color: #656168; line-height: 1.35; }
.card-chevron { display: grid; color: #847d7b; }
.instructions { border-top: 1px solid var(--line); padding-top: 32px; }
.instructions ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.instructions li { display: flex; gap: 12px; align-items: flex-start; }
.step-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 11px; background: #f9e9e0; color: #a83d22; }
.instructions h3 { font-size: 1.0625rem; font-weight: 750; margin-bottom: 3px; }
.instructions p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 31px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; font-weight: 680; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; }
.faq details[open] svg { transform: rotate(180deg); }
.faq details p { line-height: 1.6; color: var(--muted); padding-bottom: 16px; max-width: 630px; }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; }
.footer .brand { font-size: 20px; }
.footer .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.footer p, .footer a:last-child { font-size: .875rem; color: #635f65; }

@media (max-width: 1040px) {
  .platforms { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
  .platform-card { grid-template-columns: auto 1fr; }
  .card-chevron { display: none; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding: 32px; gap: 26px; min-height: 0; }
  .downloader { padding: 21px; }
}
@media (max-width: 660px) {
  .topbar-inner { min-height: 62px; display: flex; justify-content: space-between; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; margin-top: 20px; padding: 27px 20px 22px; border-radius: 21px; }
  .hero-copy { padding-inline: 4px; }
  .hero h1 { font-size: clamp(2.55rem, 9vw, 4rem); }
  .hero-copy p { margin-top: 14px; font-size: 1rem; }
  .hero-sources { margin-top: 18px; }
  .downloader { border-radius: 15px; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .platform-card { min-height: 75px; padding: 9px; }
  .section { margin-block: 34px; }
  .instructions ol, .faq { grid-template-columns: 1fr; gap: 17px; }
  .faq .section-title { margin-bottom: 0; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 24px); }
  .hero { padding-inline: 14px; }
  .downloader { padding-inline: 14px; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
