:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-raised: #0d1020;
  --panel: rgba(16, 20, 39, .86);
  --panel-solid: #111529;
  --panel-soft: #151a31;
  --line: rgba(168, 183, 224, .14);
  --line-strong: rgba(167, 124, 255, .34);
  --text: #f5f5fb;
  --muted: #b7bdd3;
  --muted-strong: #c7cada;
  --muted-soft: #aab2ca;
  --violet: #a87cff;
  --violet-bright: #c19dff;
  --cyan: #5ce2e7;
  --danger: #ff7f98;
  --success: #6fe7ae;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(115, 72, 196, .22), transparent 42rem),
    linear-gradient(180deg, #080a15 0, var(--bg) 36rem, #080a16 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  content: "";
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient {
  position: absolute;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
  pointer-events: none;
}

.ambient-one {
  top: 20rem;
  left: -22rem;
  background: var(--violet);
}

.ambient-two {
  top: 42rem;
  right: -24rem;
  background: var(--cyan);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  filter: drop-shadow(0 7px 18px rgba(168, 124, 255, .24));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.24rem;
  font-weight: 760;
  letter-spacing: -.035em;
}

.brand-copy strong span {
  color: var(--cyan);
}

.brand-copy small {
  margin-top: 6px;
  color: #a3aac4;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: #aeb3ca;
}

.language-picker:focus-within {
  border-color: rgba(92, 226, 231, .55);
  box-shadow: 0 0 0 3px rgba(92, 226, 231, .08);
}

.language-picker svg {
  width: 15px;
}

.language-picker select {
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
}

.language-picker option {
  background: var(--panel-solid);
  color: var(--text);
}

.nav-link {
  padding: 9px 13px;
  border-radius: 9px;
  color: #aeb3ca;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, .05);
  color: white;
}

.nav-api {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.nav-api span {
  margin-left: 3px;
  color: var(--cyan);
}

main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 86px 0 56px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: #aaa2c8;
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .19em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(168, 124, 255, .16);
  border-radius: 99px;
  background: rgba(168, 124, 255, .055);
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 810px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7.8vw, 5.8rem);
  font-weight: 760;
  letter-spacing: -.068em;
  line-height: .96;
}

h1 span {
  background: linear-gradient(100deg, var(--violet-bright) 15%, #8c9cff 52%, var(--cyan) 90%);
  background-clip: text;
  color: transparent;
}

h1 .hero-line {
  background: none;
  color: var(--text);
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.analyzer-shell {
  position: relative;
  width: min(850px, 100%);
  padding: 10px;
  border: 1px solid rgba(174, 150, 232, .18);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(24, 28, 52, .82), rgba(11, 14, 28, .92));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .04);
  text-align: left;
}

.analyzer-shell::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(168, 124, 255, .3), transparent 30%, transparent 70%, rgba(92, 226, 231, .16));
  content: "";
  filter: blur(11px);
  opacity: .5;
}

#analyze-form {
  padding: 15px 15px 11px;
}

#analyze-form > label {
  display: block;
  margin: 0 0 9px 2px;
  color: #c7cada;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.url-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 67px;
  padding: 7px;
  border: 1px solid rgba(185, 193, 224, .19);
  border-radius: 16px;
  background: #090c19;
  transition: border-color .2s, box-shadow .2s;
}

.url-control:focus-within {
  border-color: rgba(168, 124, 255, .6);
  box-shadow: 0 0 0 4px rgba(168, 124, 255, .1);
}

.link-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--muted-soft);
}

.link-icon svg {
  width: 22px;
}

#media-url {
  min-width: 0;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 1rem;
}

#media-url::placeholder {
  color: #9da6c1;
}

.paste-button {
  margin-right: 7px;
  padding: 9px 11px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 650;
}

.paste-button:hover,
.paste-button:focus-visible {
  background: rgba(255, 255, 255, .05);
  color: #d8dbea;
}

.primary-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  color: #0a0913;
  cursor: pointer;
  font-weight: 760;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.primary-button {
  min-width: 132px;
  height: 51px;
  padding: 0 19px;
  background: linear-gradient(115deg, var(--violet-bright), #8f7bff);
  box-shadow: 0 10px 25px rgba(142, 102, 231, .22);
}

.primary-button svg {
  width: 18px;
  stroke-width: 2.2;
}

.primary-button:hover,
.download-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(142, 102, 231, .34);
}

.primary-button:disabled,
.download-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.input-help,
.field-error {
  margin: 11px 3px 0;
  font-size: .74rem;
}

.input-help {
  color: #a3aac4;
}

.field-error {
  color: var(--danger);
}

.analysis-status {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 13px;
  margin: 4px;
  padding: 19px 20px 22px;
  border: 1px solid rgba(168, 124, 255, .18);
  border-radius: 17px;
  background: rgba(10, 13, 27, .72);
}

.analysis-status.failed {
  border-color: rgba(255, 127, 152, .3);
}

.analysis-status.failed .orbit-loader,
.analysis-status.failed .indeterminate {
  display: none;
}

.analysis-status.failed .status-copy {
  grid-column: 1 / -2;
}

.analysis-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: .72rem;
}

.status-cancel {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  color: #b7bdd2;
  cursor: pointer;
  font: inherit;
}

.analysis-details {
  grid-column: 1 / -1;
  color: var(--muted-soft);
  font-size: .7rem;
}

.analysis-details summary {
  cursor: pointer;
}

.analysis-details pre {
  margin: 9px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, .2);
  color: #aeb5cc;
  font: .68rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.orbit-loader {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(168, 124, 255, .24);
  border-radius: 50%;
}

.orbit-loader::after,
.orbit-loader span {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit-loader::after {
  inset: 12px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px rgba(168, 124, 255, .7);
}

.orbit-loader span {
  top: -3px;
  left: 17px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform-origin: 4px 24px;
  animation: orbit 1.25s linear infinite;
}

@keyframes orbit { to { transform: rotate(360deg); } }

.status-copy {
  display: flex;
  flex-direction: column;
}

.status-copy strong {
  font-size: .92rem;
}

.status-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .75rem;
}

.indeterminate {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
}

.indeterminate i {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  animation: progress 1.35s ease-in-out infinite;
}

.indeterminate.determinate i {
  width: var(--analysis-progress, 0%);
  animation: none;
  transition: width .25s ease;
}

@keyframes progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(390%); }
}

.trust-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 570;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-line svg {
  width: 14px;
  color: var(--muted-strong);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(111, 231, 174, .65);
}

.result-section {
  padding: 54px 0 82px;
  animation: reveal .45s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-kicker {
  color: var(--violet-bright);
}

.section-heading h2,
.how-section h2 {
  margin: 7px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  color: #9299b6;
  cursor: pointer;
  font-size: .77rem;
  font-weight: 650;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, .04);
  color: white;
}

.ghost-button svg {
  width: 16px;
}

.media-card,
.action-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(19, 23, 43, .94), rgba(11, 14, 28, .95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .025);
}

.media-card {
  display: grid;
  grid-template-columns: 265px 1fr;
  gap: 25px;
  padding: 14px;
  border-radius: var(--radius);
}

.thumbnail-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 14px;
  background: #070914;
}

.thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-wrap.thumbnail-unavailable::after {
  position: absolute;
  inset: 0;
  display: grid;
  background:
    radial-gradient(circle at center, rgba(168, 124, 255, .16), transparent 45%),
    #090c19;
  color: var(--muted-soft);
  content: "Preview unavailable";
  font-size: .7rem;
  letter-spacing: .04em;
  place-items: center;
}

.duration-badge,
.orientation-badge {
  position: absolute;
  bottom: 9px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(5, 7, 14, .82);
  backdrop-filter: blur(7px);
  color: white;
  font-size: .65rem;
  font-weight: 700;
}

.duration-badge { right: 9px; }
.orientation-badge { left: 9px; text-transform: capitalize; }

.media-info {
  align-self: center;
  min-width: 0;
  padding-right: 18px;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}

.platform-badge {
  padding: 4px 8px;
  border: 1px solid rgba(92, 226, 231, .19);
  border-radius: 6px;
  background: rgba(92, 226, 231, .075);
  color: var(--cyan);
  font-size: .65rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.uploader-name {
  overflow: hidden;
  color: var(--muted-soft);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-info h3 {
  overflow: hidden;
  margin-bottom: 22px;
  font-size: 1.25rem;
  font-weight: 690;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-facts {
  display: flex;
  gap: 43px;
}

.media-facts span {
  display: flex;
  flex-direction: column;
}

.media-facts small {
  margin-bottom: 3px;
  color: var(--muted-soft);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .1em;
}

.media-facts strong {
  color: #cdd0df;
  font-size: .79rem;
  font-weight: 620;
  text-transform: capitalize;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin-top: 16px;
}

.action-card {
  display: flex;
  flex-direction: column;
  min-height: 342px;
  padding: 25px;
  border-radius: var(--radius);
}

.action-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 21px;
}

.action-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  place-items: center;
}

.action-icon.violet {
  background: rgba(168, 124, 255, .1);
  color: var(--violet-bright);
}

.action-icon.cyan {
  background: rgba(92, 226, 231, .09);
  color: var(--cyan);
}

.action-icon svg { width: 21px; }

.action-heading h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  letter-spacing: -.015em;
}

.action-heading p {
  margin: 0;
  color: var(--muted-soft);
  font-size: .7rem;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.format-option {
  position: relative;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(185, 193, 224, .13);
  border-radius: 11px;
  background: rgba(6, 8, 18, .5);
  color: #a5abc1;
  cursor: pointer;
  text-align: left;
  transition: border .18s, background .18s, transform .18s;
}

.format-option:hover {
  border-color: rgba(168, 124, 255, .38);
  transform: translateY(-1px);
}

.format-option[aria-checked="true"] {
  border-color: rgba(168, 124, 255, .72);
  background: linear-gradient(145deg, rgba(168, 124, 255, .15), rgba(92, 226, 231, .045));
  box-shadow: inset 0 0 0 1px rgba(168, 124, 255, .13);
  color: white;
}

.format-option strong,
.format-option span {
  display: block;
}

.format-option strong {
  overflow: hidden;
  font-size: .79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.format-option span {
  margin-top: 3px;
  color: var(--muted-soft);
  font-size: .62rem;
}

.recommended-tag {
  position: absolute;
  top: -7px;
  right: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--violet);
  color: #0b0912 !important;
  font-size: .48rem !important;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.no-formats {
  grid-column: 1 / -1;
  padding: 19px;
  border: 1px dashed rgba(255, 127, 152, .2);
  border-radius: 11px;
  color: #d7a0ad;
  font-size: .75rem;
  line-height: 1.55;
}

.download-button {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  background: linear-gradient(115deg, var(--violet-bright), #9380ff);
  font-size: .8rem;
}

.download-button.secondary {
  border: 1px solid rgba(92, 226, 231, .28);
  background: rgba(92, 226, 231, .09);
  box-shadow: none;
  color: var(--cyan);
}

.download-button.secondary:hover:not(:disabled) {
  background: rgba(92, 226, 231, .15);
  box-shadow: 0 10px 25px rgba(92, 226, 231, .08);
}

.download-button svg { width: 17px; }

.audio-format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid rgba(92, 226, 231, .2);
  border-radius: 12px;
  background: rgba(92, 226, 231, .055);
}

.audio-format-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp3-pill {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(92, 226, 231, .15);
  color: var(--cyan);
  font-size: .59rem;
  font-weight: 800;
}

.audio-format-row strong {
  font-size: .75rem;
  font-weight: 630;
}

.check-mark {
  display: grid;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--cyan);
  color: #091013;
  font-size: .7rem;
  font-weight: 900;
  place-items: center;
}

.processing-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 15px 4px 22px;
  color: var(--muted-soft);
  font-size: .66rem;
  line-height: 1.5;
}

.processing-note svg {
  flex: 0 0 auto;
  width: 13px;
  margin-top: 1px;
}

.rights-confirmation {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  max-width: 700px;
  margin: 19px auto 0;
  color: #858ca5;
  cursor: pointer;
  font-size: .71rem;
  line-height: 1.5;
  text-align: center;
}

.rights-confirmation input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-checkbox {
  display: grid;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid #4e5571;
  border-radius: 4px;
  place-items: center;
  transition: background .2s, border .2s;
}

.custom-checkbox svg {
  width: 13px;
  opacity: 0;
  stroke-width: 2.5;
}

.rights-confirmation input:checked + .custom-checkbox {
  border-color: var(--violet);
  background: var(--violet);
  color: #0b0913;
}

.rights-confirmation input:checked + .custom-checkbox svg { opacity: 1; }
.rights-confirmation input:focus-visible + .custom-checkbox { box-shadow: 0 0 0 4px rgba(168, 124, 255, .16); }

.how-section {
  padding: 85px 0 110px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  text-align: center;
}

.how-section h2 {
  margin-bottom: 55px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
}

.steps article {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.steps article > b {
  position: absolute;
  top: -18px;
  right: calc(50% - 49px);
  color: rgba(168, 124, 255, .17);
  font-size: 2.3rem;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border: 1px solid rgba(168, 124, 255, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(168, 124, 255, .11), rgba(92, 226, 231, .04));
  color: var(--violet-bright);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  place-items: center;
}

.step-icon svg { width: 25px; }

.steps h3 {
  margin-bottom: 5px;
  font-size: .92rem;
}

.steps p {
  max-width: 190px;
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}

.step-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 124, 255, .25), rgba(92, 226, 231, .14));
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: #959db8;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: #d8dbea;
  font-size: .83rem;
}

.app-version {
  margin-left: 6px;
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.footer-brand span {
  font-size: .61rem;
}

.footer-brand a {
  color: #b0b7ce;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: .68rem;
  text-decoration: none;
}

.footer-links a:hover { color: white; }

footer > p {
  grid-column: 1 / -1;
  margin: -8px 0 0 42px;
  font-size: .59rem;
}

.toast-region {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100% - 40px));
}

.operation-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  padding: 22px;
  background: rgba(4, 5, 12, .74);
  backdrop-filter: blur(12px);
  place-items: center;
}

.operation-dialog {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(168, 124, 255, .28);
  border-radius: 24px;
  background: linear-gradient(145deg, #161a31, #0c0f20);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
  text-align: center;
  animation: reveal .3s ease both;
}

.operation-dialog h2 {
  margin: 9px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -.035em;
}

.operation-dialog p {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.65;
}

.operation-dialog .indeterminate {
  margin-bottom: 18px;
}

.operation-dialog .ghost-button {
  margin: 0 auto;
}

.large-loader {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border: 1px solid rgba(168, 124, 255, .22);
  border-radius: 50%;
  animation: orbit 5s linear infinite;
}

.large-loader::before,
.large-loader::after,
.large-loader span,
.large-loader i {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.large-loader::before {
  inset: 14px;
  border: 1px solid rgba(92, 226, 231, .25);
}

.large-loader::after {
  inset: 25px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 25px rgba(168, 124, 255, .65);
}

.large-loader span {
  top: -4px;
  left: 29px;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.large-loader i {
  right: 5px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  background: var(--violet-bright);
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(18, 22, 40, .97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  color: #d7daea;
  font-size: .75rem;
  animation: toast-in .25s ease both;
}

.toast.error { border-color: rgba(255, 127, 152, .35); }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.toast.error .toast-dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.toast button { padding: 3px; background: transparent; color: #777e98; cursor: pointer; font-size: 1rem; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .site-header { width: min(100% - 32px, 1180px); }
  main { width: min(100% - 32px, 1080px); }
  .hero { padding-top: 65px; }
  .media-card { grid-template-columns: 220px 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 315px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-line { width: 1px; height: 30px; margin: -20px auto; }
  footer { width: min(100% - 32px, 1180px); }
}

@media (max-width: 590px) {
  .site-header { height: 72px; }
  .brand img { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 1.07rem; }
  .brand-copy small { font-size: .51rem; }
  .site-header nav > .nav-link:not(.nav-api) { display: none; }
  .language-picker { height: 34px; padding: 0 6px 0 8px; }
  .language-picker svg { width: 13px; }
  .hero { padding: 54px 0 38px; }
  .eyebrow { margin-bottom: 18px; font-size: .57rem; }
  h1 { margin-bottom: 18px; font-size: clamp(2.72rem, 13.7vw, 4.2rem); }
  .hero-copy { margin-bottom: 30px; font-size: .89rem; }
  .analyzer-shell { padding: 7px; border-radius: 20px; }
  #analyze-form { padding: 10px; }
  .url-control { grid-template-columns: auto minmax(0, 1fr) auto; padding: 6px; }
  .link-icon { width: 38px; }
  .paste-button { display: none; }
  .primary-button { grid-column: 1 / -1; width: 100%; margin-top: 6px; }
  .input-help { padding: 0 3px; line-height: 1.55; }
  .analysis-status { grid-template-columns: 38px 1fr; padding: 16px; }
  .orbit-loader { width: 36px; height: 36px; }
  .orbit-loader span { left: 14px; transform-origin: 4px 21px; }
  .trust-line { gap: 12px 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .media-card { grid-template-columns: 1fr; }
  .thumbnail-wrap { height: auto; aspect-ratio: 16 / 9; }
  .media-info { padding: 5px 7px 10px; }
  .media-info h3 { margin-bottom: 18px; white-space: normal; }
  .media-facts { justify-content: space-between; gap: 12px; }
  .format-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-card { padding: 20px; }
  .rights-confirmation { text-align: left; }
  .how-section { padding: 70px 0 90px; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 13px 18px; }
  footer > p { margin: -6px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
