/* ============================================================
   format_xlf.css
   XLIFF file translation landing page.
   Pure CSS — no Tailwind processing required.
   Color scheme: Purple (#8b5cf6).
   ============================================================ */

.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.revealed { opacity: 1; transform: translateY(0); }
.reveal-group .reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal-item:nth-child(2) { transition-delay: 0.07s; }
.reveal-group .reveal-item:nth-child(3) { transition-delay: 0.14s; }
.reveal-group .reveal-item:nth-child(4) { transition-delay: 0.21s; }
.reveal-group .reveal-item:nth-child(5) { transition-delay: 0.28s; }
.reveal-group .reveal-item:nth-child(6) { transition-delay: 0.35s; }
.reveal-group .reveal-item:nth-child(7) { transition-delay: 0.42s; }
.reveal-group .reveal-item:nth-child(8) { transition-delay: 0.49s; }

.xlf-hero {
    background: linear-gradient(135deg, #030712 0%, #0f0720 50%, #030712 100%);
    min-height: 100vh;
}
.xlf-hero-copy {
    opacity: 0;
    transform: translateY(20px);
    animation: xlfCopyIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes xlfCopyIn { to { opacity: 1; transform: translateY(0); } }

.xlf-hero-visual {
    position: relative;
    opacity: 0;
    transform: translateX(28px);
    animation: xlfVisualIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
@keyframes xlfVisualIn { to { opacity: 1; transform: translateX(0); } }

.xlf-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.xlf-orb--a { width: 580px; height: 580px; top: 5%;   left: 0;    background: rgba(139,92,246,0.08); animation: xlfOrbA 14s ease-in-out infinite; }
.xlf-orb--b { width: 420px; height: 420px; bottom: 0; right: 5%;  background: rgba(124,58,237,0.06);  animation: xlfOrbB 17s ease-in-out infinite; }
.xlf-orb--c { width: 320px; height: 320px; top: 40%;  left: 55%;  background: rgba(167,139,250,0.05); animation: xlfOrbA 11s ease-in-out infinite 2s; }
@keyframes xlfOrbA { 0%,100% { transform: translate(0,0); }  50% { transform: translate(25px,-25px); } }
@keyframes xlfOrbB { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-20px,18px); } }

.xlf-gradient-text {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xlf-format-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    background: rgba(139,92,246,0.10);
    border: 1px solid rgba(139,92,246,0.28);
    color: #8b5cf6;
}

.xlf-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

.xlf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.xlf-btn--primary {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    box-shadow: 0 0 30px rgba(139,92,246,0.35);
}
.xlf-btn--primary:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 0 48px rgba(139,92,246,0.55);
    transform: translateY(-2px);
}
.xlf-btn--secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}
.xlf-btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.xlf-btn--cta {
    background: white;
    color: #4c1d95;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.xlf-btn--cta:hover {
    background: #f5f3ff;
    box-shadow: 0 0 60px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.xlf-btn--cta-ghost {
    background: transparent;
    color: #c4b5fd;
    border: 1px solid rgba(196,181,253,0.3);
    padding: 16px 36px;
    font-size: 16px;
}
.xlf-btn--cta-ghost:hover {
    background: rgba(196,181,253,0.08);
    border-color: rgba(196,181,253,0.5);
}

.xlf-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(8,18,36,0.88);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.xlf-float--tr { top: -12px; right: -12px; animation: xlfFloat 4s ease-in-out infinite; }
.xlf-float--bl { bottom: 24px; left: -20px; animation: xlfFloat 4.5s ease-in-out infinite 1.5s; }
@keyframes xlfFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.xlf-editor {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 32px 80px rgba(0,0,0,0.6),
        0 0 70px rgba(139,92,246,0.12);
    transform: perspective(1200px) rotateY(-2deg);
    transition: transform 0.6s ease;
    background: #0d1117;
}
.xlf-hero-visual:hover .xlf-editor { transform: perspective(1200px) rotateY(-0.3deg); }

.xlf-titlebar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    gap: 8px;
    min-height: 38px;
}
.xlf-dots { display: flex; gap: 5px; flex-shrink: 0; }
.xlf-dots span { width: 10px; height: 10px; border-radius: 50%; }
.xlf-dots span:nth-child(1) { background: #ef4444; }
.xlf-dots span:nth-child(2) { background: #f59e0b; }
.xlf-dots span:nth-child(3) { background: #22c55e; }

.xlf-filename {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    font-family: ui-monospace, monospace;
    white-space: nowrap;
    flex: 1;
}

.xlf-lang-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.28);
    color: #8b5cf6;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}
.xlf-lang-badge.visible { opacity: 1; }

.xlf-status {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.xlf-status--translating { background: rgba(245,158,11,0.18); color: #fbbf24; }
.xlf-status--complete    { background: rgba(139,92,246,0.18); color: #8b5cf6; }

.xlf-code-area {
    background: #0d1117;
    padding: 14px 16px;
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    font-size: 12.5px;
    line-height: 1.85;
}

.xlf-line        { display: flex; align-items: baseline; gap: 0; flex-wrap: wrap; }
.xlf-line--indent { padding-left: 24px; }
.xlf-line--indent2 { padding-left: 48px; }

.xlf-tag-bracket { color: #6e7681; }
.xlf-tag-name    { color: #7ee787; }
.xlf-attr-name   { color: #79c0ff; }
.xlf-attr-val    { color: #a5d6ff; }
.xlf-str         { color: #e6edf3; transition: opacity 0.2s ease; }

.xlf-str--translating {
    background: rgba(139,92,246,0.10);
    border-left: 2px solid #8b5cf6;
    padding-left: 4px;
    border-radius: 2px;
}
.xlf-str--done { color: #8b5cf6; }

.xlf-check {
    font-size: 9px;
    font-weight: 800;
    color: #22c55e;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 4px;
}
.xlf-check.visible { opacity: 1; transform: scale(1); }

.xlf-progress {
    padding: 7px 14px 6px;
    background: #161b22;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.xlf-progress__track {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.xlf-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.xlf-progress__labels { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.xlf-progress__text { font-size: 10px; color: #64748b; }
.xlf-progress__pct  { font-size: 10px; font-weight: 700; color: #8b5cf6; font-family: ui-monospace, monospace; }

.xlf-download-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #0f0720;
    border-top: 1px solid rgba(139,92,246,0.18);
}
.xlf-download-bar.visible {
    display: flex;
    animation: xlfSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes xlfSlideUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.xlf-download-bar__filename { font-size: 11px; color: #8b5cf6; font-weight: 500; font-family: ui-monospace, monospace; }
.xlf-download-bar__btn {
    font-size: 11px;
    font-weight: 700;
    color: #4c1d95;
    background: #c4b5fd;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    animation: xlfDlPulse 1.8s ease-out 0.5s infinite;
}
.xlf-download-bar__btn:hover { background: #8b5cf6; color: white; }
@keyframes xlfDlPulse {
    0%   { box-shadow: 0 0 0 0 rgba(139,92,246,0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(139,92,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); }
}

.xlf-badge-section {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(139,92,246,0.10);
    border: 1px solid rgba(139,92,246,0.28);
    color: #8b5cf6;
}
.xlf-badge-section--teal  { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.3); color: #2dd4bf; }
.xlf-badge-section--green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }

.xlf-step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.xlf-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    border-color: rgba(139,92,246,0.28);
}
.xlf-step-card--offset { margin-top: 28px; }
@media (max-width: 1023px) { .xlf-step-card--offset { margin-top: 0; } }

.xlf-step-num {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 84px;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    user-select: none;
}
.xlf-step-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.xlf-step-icon--purple { background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.35); color: #8b5cf6; }
.xlf-step-icon--violet { background: rgba(124,58,237,0.18);  border: 1px solid rgba(124,58,237,0.35);  color: #a78bfa; }
.xlf-step-icon--blue   { background: rgba(59,130,246,0.18);  border: 1px solid rgba(59,130,246,0.35);  color: #60a5fa; }

.xlf-step-title { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.xlf-step-desc  { font-size: 13px; line-height: 1.65; color: #94a3b8; }

.xlf-preserve-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .xlf-preserve-grid { grid-template-columns: repeat(3, 1fr); } }

.xlf-preserve-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.xlf-preserve-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139,92,246,0.28);
    box-shadow: 0 16px 32px rgba(139,92,246,0.07);
}
.xlf-preserve-icon  { font-size: 26px; margin-bottom: 10px; line-height: 1; color: #8b5cf6; }
.xlf-preserve-label { font-size: 12px; font-weight: 700; color: white; margin-bottom: 4px; }
.xlf-preserve-sub   { font-size: 11px; color: #64748b; line-height: 1.45; }

.xlf-uc-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.xlf-uc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139,92,246,0.22);
    box-shadow: 0 20px 40px rgba(139,92,246,0.07);
}
.xlf-uc-emoji { font-size: 32px; margin-bottom: 16px; line-height: 1; }
.xlf-uc-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 8px; }
.xlf-uc-desc  { font-size: 13px; color: #94a3b8; line-height: 1.65; margin-bottom: 16px; }
.xlf-uc-file  {
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: #8b5cf6;
    background: rgba(139,92,246,0.07);
    border: 1px solid rgba(139,92,246,0.18);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.xlf-engine-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.xlf-engine-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.xlf-engine-logo {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.xlf-engine-logo--claude { background: rgba(251,146,60,0.2);   border: 1px solid rgba(251,146,60,0.3);  color: #fdba74; }
.xlf-engine-logo--openai { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #e2e8f0; }
.xlf-engine-logo--deepl  { background: rgba(59,130,246,0.15);  border: 1px solid rgba(59,130,246,0.3);  color: #93c5fd; }
.xlf-engine-logo--google { background: rgba(239,68,68,0.12);   border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }

.xlf-engine-name { font-size: 16px; font-weight: 700; color: white; margin-bottom: 4px; }
.xlf-engine-tag  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #64748b; margin-bottom: 12px; }
.xlf-engine-desc { font-size: 12px; color: #94a3b8; line-height: 1.55; }

.xlf-faq {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.xlf-faq[data-open="true"] { border-color: rgba(139,92,246,0.32); }

.xlf-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.xlf-faq__q:hover { background: rgba(255,255,255,0.03); }
.xlf-faq__chevron { flex-shrink: 0; color: #64748b; transition: transform 0.3s ease; }
.xlf-faq__a { padding: 0 24px 20px; font-size: 14px; line-height: 1.75; color: #94a3b8; }

.xlf-code-block {
    background: rgba(13,17,23,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.xlf-code-block__header {
    padding: 10px 16px;
    background: rgba(22,27,34,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-family: ui-monospace, monospace;
}
.xlf-code-block__body {
    padding: 16px;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 12px;
    line-height: 1.8;
    color: #e6edf3;
    white-space: pre;
    overflow-x: auto;
}