:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --bg: #0d1118;
  --surface: #141a24;
  --line: #29313f;
  --text: #eff0f8;
  --muted: #8d98ad;
  --accent: #b7a5ff;
  --mint: #8dddc6;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: #201b34;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}
.brand-dot {
  color: var(--accent);
  margin-left: -10px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 27px;
}
.storage-pill {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #a7b5ca;
  font-size: 10px;
}
.storage-pill svg {
  width: 14px;
  height: 14px;
  color: #9a8fbd;
}
.about-link {
  font-size: 11px;
  color: #9aa7bd;
}
.about-link span {
  margin-left: 8px;
  color: var(--accent);
  font-size: 16px;
}
main {
  max-width: 1240px;
  padding: 0 40px;
  margin: 0 auto;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 45px 0 44px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #9b92b5;
  font-weight: 650;
}
.tiny-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--mint);
  display: inline-block;
  flex-shrink: 0;
}
.hero h1 {
  font-size: 55px;
  font-weight: 550;
  letter-spacing: -2.6px;
  line-height: 1.16;
  margin: 20px 0;
}
.hero h1 > span {
  color: #c3b4ff;
}
.hero p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.language-art {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 40px 40px;
  min-width: 350px;
}
.language-tile {
  width: 114px;
  height: 132px;
  border: 1px solid #3b3551;
  border-radius: 15px;
  padding: 16px 18px;
  background: #1c1b2c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 35px #0002;
}
.language-tile small {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #7f7999;
}
.language-tile strong {
  font-size: 41px;
  font-weight: 500;
  color: #c3b4ff;
  letter-spacing: -1px;
}
.language-tile > span {
  font-size: 10px;
  color: #9c92b8;
}
.english-tile {
  transform: rotate(-9deg) translateY(-3px);
}
.arabic-tile {
  transform: rotate(8deg) translateY(10px);
  background: #182922;
  border-color: #304e41;
}
.arabic-tile strong {
  color: #a0ddc0;
  font-size: 46px;
  font-weight: 500;
}
.arabic-tile small,
.arabic-tile > span {
  color: #7ba28d;
}
.language-arrow {
  font-size: 32px;
  color: #8d82ae;
}
.art-caption {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #566176;
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 24px;
}
.translator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 27px;
  min-width: 0;
}
.card-heading,
.card-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-heading {
  justify-content: space-between;
}
.step-chip {
  display: grid;
  place-items: center;
  font-size: 9px;
  background: #2b253f;
  border: 1px solid #453958;
  color: #bfadf5;
  width: 25px;
  height: 25px;
  border-radius: 6px;
}
h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0;
}
.file-type {
  color: #7b849c;
  font-size: 9px;
  letter-spacing: 1px;
  border: 1px solid #343b4b;
  border-radius: 4px;
  padding: 4px 6px;
}
.section-description {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 13px 0 23px;
}
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 33px 16px;
  background: #111620;
  border: 1px dashed #464057;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
}
.drop-zone:hover,
.drop-zone.dragging,
.drop-zone:focus-within {
  border-color: var(--accent);
  background: #1c1b2b;
}
.upload-icon {
  width: 43px;
  height: 45px;
  border-radius: 12px;
  border: 1px solid #453a5d;
  background: #2a233c;
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 5px;
}
.upload-icon svg {
  width: 21px;
  height: 21px;
}
.drop-zone strong {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.2px;
}
.drop-zone > span:not(.upload-icon) {
  font-size: 11px;
  color: #8590a5;
}
.drop-zone b {
  color: #c1b0f3;
  font-weight: 500;
}
.drop-zone small {
  font-size: 9px;
  color: #616e84;
  margin-top: 8px;
}
.selected-file {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 14px;
  border: 1px solid #3d3553;
  background: #1d1b2c;
  border-radius: 8px;
}
.selected-icon {
  display: grid;
  place-items: center;
  border: 1px solid #4d4068;
  background: #312741;
  border-radius: 8px;
  width: 35px;
  height: 39px;
  color: #c4b1f4;
}
.selected-icon svg {
  width: 18px;
  height: 18px;
}
.selected-file > div {
  min-width: 0;
  flex: 1;
}
.selected-file strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.selected-file small {
  font-size: 9px;
  color: #7f88a2;
  display: block;
  margin-top: 5px;
  line-height: 1.7;
}
.text-button {
  background: none;
  border: 0;
  color: #c3b1fb;
  font-size: 10px;
  padding: 5px;
  white-space: nowrap;
}
.file-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0 20px;
}
.file-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #79869d;
}
.file-settings select {
  background: #111620;
  color: #a8b1c5;
  border: 1px solid #343e4e;
  border-radius: 5px;
  font-size: 9px;
  padding: 7px 5px;
  max-width: 160px;
}
.timing-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #7d8da3;
}
.timing-note svg {
  width: 12px;
  height: 12px;
}
.translation-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 23px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
}
.language-direction {
  display: flex;
  align-items: center;
  gap: 15px;
}
.language-direction > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #b8c0d1;
}
.language-direction > svg {
  width: 14px;
  height: 14px;
  color: #5f6c83;
}
.language-code {
  width: 24px;
  height: 23px;
  display: grid;
  place-items: center;
  font-size: 8px;
  border-radius: 5px;
  background: #262c3c;
  color: #a6b4ce;
  border: 1px solid #364052;
}
.arabic-code {
  color: #c5b2fa;
  background: #2e2542;
  border-color: #49375e;
  font-size: 17px;
}
.connection-status {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8ca99c;
  white-space: nowrap;
}
.connection-status.offline {
  color: #c6ab7e;
}
.connection-status.offline .tiny-dot {
  background: #c6ab7e;
}
.consent {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.8;
  color: #8e9ab0;
  margin: 19px 0 16px;
  cursor: pointer;
}
.consent input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin: 2px 0 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  min-height: 43px;
  border: 1px solid transparent;
}
.primary {
  background: var(--accent);
  color: #211930;
  border-color: #c2b1ff;
}
.primary:hover:not(:disabled) {
  filter: brightness(1.07);
}
.button svg {
  width: 16px;
  height: 16px;
}
#translate {
  width: 100%;
  justify-content: flex-start;
}
#translate .button-arrow {
  margin-left: auto;
}
.privacy-caption {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 9px;
  color: #66778d;
  line-height: 1.8;
  margin-top: 13px;
}
.privacy-caption svg {
  width: 12px;
  height: 12px;
  margin-top: 2px;
}
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.details-card,
.preview-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 23px;
  background: #121822;
}
.small-heading {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7c899f;
  margin-bottom: 23px;
}
.status-light {
  width: 4px;
  height: 4px;
  display: inline-block;
  background: var(--accent);
  border-radius: 50%;
}
.feature {
  display: flex;
  gap: 12px;
  margin-bottom: 23px;
}
.feature:last-child {
  margin-bottom: 0;
}
.feature-icon {
  width: 28px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #30394c;
  border-radius: 7px;
  color: #a29bc6;
  background: #1d2331;
  flex-shrink: 0;
}
.feature-icon svg {
  width: 14px;
  height: 14px;
}
h3 {
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 7px;
  color: #c8cedd;
}
.feature p {
  font-size: 10px;
  color: #7c8aa2;
  line-height: 1.9;
  margin: 0;
}
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.preview-heading h2 {
  font-size: 12px;
  font-weight: 500;
}
.preview-heading > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #6f7d94;
}
.preview-block {
  padding: 18px 0 0;
}
.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 7px;
  color: #7b8aa5;
  letter-spacing: 1px;
  line-height: 1.7;
}
.preview-meta > span:last-child {
  letter-spacing: 0;
  color: #596a83;
  font-size: 7px;
}
.preview-block p {
  font-size: 12px;
  color: #bec8d8;
  line-height: 1.8;
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 150px;
  overflow: auto;
}
.arabic-preview {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.arabic-preview p {
  font-size: 17px;
  color: #c5b3fb;
  line-height: 2;
}
.preview-meta .preview-line {
  color: #77698e;
  font-size: 6px;
  letter-spacing: 1px;
}
.tab-note {
  font-size: 9px;
  line-height: 1.9;
  color: #5f7089;
  margin: 0 3px;
}
.notice {
  font-size: 11px;
  line-height: 1.8;
  color: #d2bd9b;
  padding: 12px 14px;
  background: #2b261f;
  border: 1px solid #514535;
  border-radius: 7px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.notice.error {
  color: #eda7b4;
  background: #2d202b;
  border-color: #613b4c;
}
#retry-config {
  margin-top: 10px;
}
.progress-panel {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 22px;
}
.progress-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.progress-panel strong {
  font-size: 12px;
  font-weight: 550;
}
progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  background: #2c3044;
  border-radius: 4px;
  overflow: hidden;
  accent-color: var(--accent);
  margin: 15px 0 10px;
}
progress::-webkit-progress-bar {
  background: #2c3044;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.progress-details {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #7d8ba6;
  font-size: 9px;
}
.result-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  border: 1px solid #3a5c4c;
  background: #152820;
  border-radius: 9px;
  padding: 21px;
  margin-top: 23px;
}
.result-check {
  width: 33px;
  height: 33px;
  border: 1px solid #496b55;
  border-radius: 9px;
  background: #233e30;
  color: var(--mint);
  display: grid;
  place-items: center;
}
.result-panel > div {
  flex: 1;
  min-width: 150px;
}
.result-panel h2 {
  font-size: 15px;
  color: #d9efe2;
  line-height: 1.6;
}
.result-panel p {
  font-size: 10px;
  line-height: 1.8;
  color: #83a493;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.result-panel > .button {
  width: 100%;
  background: #96d9b6;
  border-color: #a6e1c2;
  margin-top: 3px;
  font-size: 11px;
}
.result-panel > small {
  display: block;
  width: 100%;
  font-size: 8px;
  color: #6d917d;
  text-align: center;
  line-height: 1.7;
}
.how-it-works {
  border-top: 1px solid #242c3a;
  margin: 46px 0 0;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 35px;
  align-items: center;
}
.how-it-works .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
}
.how-it-works h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.6px;
  margin-top: 14px;
}
.how-it-works ol {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-it-works li {
  display: flex;
  gap: 10px;
  flex: 1;
  align-items: flex-start;
}
.how-it-works li > span {
  font-size: 9px;
  color: #6c5e92;
  border: 1px solid #393044;
  background: #201c2c;
  border-radius: 5px;
  padding: 5px;
}
.how-it-works h3 {
  font-size: 10px;
  margin: 4px 0 9px;
  color: #b7bfd0;
}
.how-it-works p {
  font-size: 9px;
  color: #6b7c94;
  line-height: 1.9;
  margin: 0;
}
footer {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #242c3a;
  padding: 23px 0 28px;
  color: #697a92;
  font-size: 9px;
}
.footer-brand {
  font-size: 22px;
  color: #c3cada;
  letter-spacing: -1px;
  font-weight: 650;
}
.footer-brand span {
  color: var(--accent);
}
footer > small {
  margin-left: auto;
  font-size: 8px;
  color: #53637a;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 65px;
    padding-bottom: 50px;
  }
  .hero h1 {
    font-size: 64px;
  }
}
@media (max-width: 1000px) {
  .header {
    padding: 25px 28px;
  }
  main {
    padding: 0 28px;
  }
  .hero {
    gap: 20px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero p {
    font-size: 12px;
  }
  .language-art {
    min-width: 270px;
    gap: 12px;
    padding: 20px 17px 35px;
  }
  .language-tile {
    width: 94px;
    height: 116px;
    padding: 14px;
  }
  .language-tile strong {
    font-size: 35px;
  }
  .arabic-tile strong {
    font-size: 41px;
  }
  .language-arrow {
    font-size: 25px;
  }
  .art-caption {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .app-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .translator-card {
    padding: 23px;
  }
  .details-card,
  .preview-card {
    padding: 19px;
  }
  .file-settings {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
  .translation-options {
    gap: 9px;
  }
  .language-direction {
    gap: 9px;
  }
  .language-direction > span {
    font-size: 10px;
  }
  .connection-status {
    font-size: 8px;
    gap: 5px;
  }
  .how-it-works {
    grid-template-columns: 1fr 2.5fr;
    gap: 25px;
  }
  .how-it-works ol {
    gap: 16px;
  }
  .how-it-works li {
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 740px) {
  .header {
    padding: 23px 20px;
  }
  .brand {
    font-size: 28px;
  }
  .brand-mark {
    width: 32px;
    height: 35px;
    font-size: 26px;
    border-radius: 9px;
  }
  .header-right {
    gap: 0;
  }
  .about-link {
    display: none;
  }
  .storage-pill {
    font-size: 9px;
  }
  .storage-pill svg {
    width: 12px;
    height: 12px;
  }
  main {
    padding: 0 18px;
  }
  .hero {
    padding: 31px 2px 32px;
    gap: 0;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
    margin: 17px 0;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.9;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .language-art {
    display: none;
  }
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .translator-card {
    padding: 21px 17px;
  }
  .card-heading h2 {
    font-size: 15px;
  }
  .section-description {
    font-size: 10px;
    margin: 13px 0 19px;
  }
  .drop-zone {
    padding: 29px 12px;
  }
  .drop-zone strong {
    font-size: 13px;
  }
  .drop-zone > span:not(.upload-icon) {
    font-size: 10px;
  }
  .drop-zone small {
    font-size: 8px;
  }
  .translation-options {
    padding-top: 20px;
    margin-top: 20px;
  }
  .language-direction {
    gap: 12px;
  }
  .language-direction > span {
    font-size: 10px;
  }
  .connection-status {
    font-size: 8px;
  }
  .language-code {
    width: 22px;
    height: 22px;
  }
  .consent {
    font-size: 9px;
    margin: 17px 0 14px;
  }
  .button {
    font-size: 11px;
    min-height: 43px;
  }
  .privacy-caption {
    font-size: 8px;
    gap: 5px;
  }
  .side-column {
    gap: 17px;
  }
  .details-card {
    padding: 22px;
  }
  .small-heading {
    font-size: 8px;
  }
  .feature h3 {
    font-size: 12px;
  }
  .feature p {
    font-size: 11px;
  }
  .preview-card {
    padding: 22px;
  }
  .preview-heading h2 {
    font-size: 13px;
  }
  .preview-block p {
    font-size: 13px;
  }
  .arabic-preview p {
    font-size: 19px;
  }
  .preview-meta,
  .preview-meta > span:last-child {
    font-size: 8px;
  }
  .preview-heading > span {
    font-size: 8px;
  }
  .tab-note {
    font-size: 9px;
  }
  .selected-file {
    gap: 9px;
    padding: 14px 11px;
  }
  .selected-file strong {
    font-size: 11px;
  }
  .selected-file small {
    font-size: 8px;
  }
  .text-button {
    font-size: 9px;
  }
  .file-settings {
    margin-top: 12px;
  }
  .file-settings label {
    font-size: 9px;
  }
  .timing-note {
    font-size: 8px;
  }
  .progress-panel strong {
    font-size: 11px;
  }
  .progress-details {
    font-size: 8px;
  }
  .result-panel {
    padding: 17px 14px;
    gap: 11px;
  }
  .result-panel h2 {
    font-size: 14px;
  }
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 33px;
    padding: 29px 2px;
  }
  .how-it-works h2 {
    font-size: 24px;
  }
  .how-it-works h2 br {
    display: none;
  }
  .how-it-works ol {
    flex-direction: column;
    gap: 20px;
  }
  .how-it-works li {
    flex-direction: row;
    gap: 12px;
  }
  .how-it-works h3 {
    font-size: 12px;
    margin-top: 3px;
  }
  .how-it-works p {
    font-size: 10px;
  }
  .how-it-works li > span {
    padding: 6px;
    font-size: 9px;
  }
  footer {
    gap: 13px;
    font-size: 8px;
    flex-wrap: wrap;
    padding: 20px 2px;
  }
  footer > small {
    font-size: 7px;
    margin-left: auto;
    line-height: 1.8;
  }
  .footer-brand {
    font-size: 20px;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 38px;
  }
  .translation-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .connection-status {
    align-self: flex-end;
  }
  .result-panel > div {
    min-width: 130px;
  }
  .storage-pill {
    font-size: 8px;
    gap: 5px;
  }
  footer > small {
    width: 100%;
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
