:root {
  --bg: #f6f6f7;
  --text: #363636;
  --muted: #363636;
  --primary-red: #ff4238;
  --primary-red-dark: #ea342b;
  --panel-dark: #2f2f31;
  --soft-border: #e8e8ea;
  --card-bg: #ffffff;
  --done: #43b8ff;
  --warn: #ffb020;
  --shadow-soft: 0 12px 36px rgba(18, 20, 24, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ececef;
}

.navbar {
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
  font-weight: 800;
  font-size: 1.45rem;
}

.brand:hover {
  color: #222;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-size: 1rem;
}

.nav-link {
  color: #4f5560;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-red);
}

.btn-nav {
  border-radius: 10px;
  padding: 10px 18px;
}

.hero-section,
.state-section,
.section-space {
  padding: 64px 0 80px;
}

.section-muted {
  background: #f1f3f6;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff1ef;
      color: black;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid #ffd5d0;
  margin-bottom: 18px;
}

.hero-title,
.state-title,
.section-title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.08;
  color: var(--primary-red);
  font-weight: 300;
}

.hero-subtitle,
.state-subtitle,
.section-subtitle {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  color: #596170;
  font-weight: 300;
}

.upload-panel {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.upload-panel-top {
  background:
    linear-gradient(rgba(45,45,47,.95), rgba(45,45,47,.95)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 12px,
      rgba(255,255,255,.02) 12px,
      rgba(255,255,255,.02) 24px
    );
  padding: 42px 46px;
}

.btn-upload {
  min-width: 280px;
  min-height: 68px;
  border: 0;
  border-radius: 12px;
  font-size: 1.45rem;
  font-weight: 700;
  background: var(--primary-red);
  box-shadow: none;
}

.btn-upload:hover {
  background: var(--primary-red-dark);
}

.cloud-buttons .btn-icon {
  min-width: 66px;
  min-height: 66px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-red);
  color: #fff;
  font-size: 1.15rem;
  opacity: .75;
}

.upload-help {
  color: rgba(255,255,255,.63);
  font-size: .98rem;
  max-width: 650px;
}

.format-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.format-pill {
  min-width: 150px;
  padding: 18px 24px;
  border-radius: 12px;
  background: #111214;
  color: #fff;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.format-arrow {
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
}

.drop-zone {
  background: #fff;
  border: 2px dashed #d8d8dd;
  padding: 30px;
  cursor: pointer;
  transition: .2s ease;
}

.drop-zone:hover {
  background: #fff7f6;
}

.drop-zone.border-danger,
.drop-zone.dragover {
  border-color: var(--primary-red) !important;
  background: #fff1ef !important;
}

.drop-zone-inner {
  min-height: 128px;
  display: grid;
  place-items: center;
  text-align: center;
}

.drop-zone-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.drop-zone-text {
  color: var(--muted);
  margin-top: 6px;
  max-width: 760px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
  font-weight: 600;
  color: #4e5561;
}

.status-card,
.feature-card,
.step-card,
.content-card,
.cta-box {
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.status-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
}

.status-card-footer {
  padding: 20px 32px 26px;
  text-align: center;
  color: #7d8590;
  border-top: 1px solid #f1f2f4;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f4f7f9;
  font-weight: 700;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.code-icon {
  color: #68a9b2;
}

.image-icon {
  color: #9a73e6;
}

.file-name {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-word;
}

.status-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.status-warn {
  color: var(--warn);
}

.status-done {
  color: var(--done);
}

.btn-cancel,
.btn-download {
  min-width: 160px;
  min-height: 52px;
  border-radius: 10px;
}

.btn-download {
  background: #40b4e8;
  border-color: #40b4e8;
}

.btn-download:hover {
  background: #2aa9e1;
  border-color: #2aa9e1;
}

.processing-progress {
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  background: #eceef2;
}

.processing-progress .progress-bar {
  font-size: .85rem;
  font-weight: 700;
}

.result-grid {
  display: grid;
  gap: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.btn-reset {
  min-width: 360px;
  min-height: 62px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e4e8;
  font-weight: 700;
}

.btn-reset:hover {
  background: #fafafb;
}

.section-head {
  margin-bottom: 20px;
}

.feature-card,
.step-card,
.content-card {
  padding: 28px;
  height: 100%;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff1ef;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3,
.step-card h3,
.content-card h2,
.cta-box h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  font-weight: 600;
  color: #2f3540;
}

.feature-card p,
.step-card p,
.content-card p,
.cta-box p,
.seo-text p {
  color: #646c77;
  margin-bottom: 16px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.seo-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #646c77;
}

.seo-list li + li {
  margin-top: 8px;
}

.cta-box {
  padding: 40px 28px;
}

.btn-cta {
 min-width: 260px;
    min-height: 58px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.seo-text {
  max-width: 1040px;
  margin: 0 auto;
}

.faq-accordion .accordion-item {
  border: 1px solid #e8ebef;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  padding: 20px 22px;
}

.faq-accordion .accordion-body {
  color: #68707b;
  line-height: 1.8;
}

.site-footer {
  background: #111317;
  color: #c2c7d0;
  padding: 34px 0;
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-text {
  max-width: 640px;
  color: #aab2be;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #aab2be;
  text-decoration: none;
}

.footer-links a:hover {
  color: #aab2be;
}

@media (max-width: 991.98px) {
  .upload-panel-top {
    padding: 28px 24px;
  }

  .format-box {
    justify-content: flex-start;
  }

  .format-pill {
    min-width: 120px;
    font-size: 2.2rem;
  }

  .status-card-main,
  .result-item,
  .footer-box {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cancel,
  .btn-download,
  .btn-reset,
  .btn-upload {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-section,
  .state-section,
  .section-space {
    padding: 40px 0 52px;
  }

  .cloud-buttons {
    width: 100%;
  }

  .cloud-buttons .btn-icon {
    flex: 1;
  }

  .feature-card,
  .step-card,
  .content-card,
  .cta-box,
  .status-card-main,
  .status-card-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .format-pill {
    min-width: 100px;
    font-size: 1.8rem;
    padding: 14px 16px;
  }

  .format-arrow {
    font-size: 1.5rem;
  }
}
.lang-dropdown .lang-toggle {
  min-width: 132px;
  border-radius: 10px;
  border: 1px solid #e3e6ea;
  background: #fff;
  font-weight: 600;
  color: #3f4652;
  padding: 10px 14px;
}

.lang-dropdown .lang-toggle:hover,
.lang-dropdown .lang-toggle:focus {
  background: #fff7f6;
  border-color: #ffd1cb;
  color: var(--primary-red);
}

.lang-menu {
  min-width: 220px;
  border: 1px solid #ececef;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(18, 20, 24, 0.08);
}

.lang-menu .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 500;
}

.lang-menu .dropdown-item:hover {
  background: #fff1ef;
  color: var(--primary-red);
}

.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active {
  background: #fff1ef;
  color: var(--primary-red);
}