/* ============================================================
   format_xml.css
   XML file translation landing page.
   Pure CSS — no Tailwind processing required.
   Color scheme: Orange (#f97316).
   ============================================================ */

/* ── Scroll reveal ──────────────────────────────────────── */
.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; }

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

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

/* ── Background orbs ────────────────────────────────────── */
.xml-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.xml-orb--a { width: 580px; height: 580px; top: 5%;   left: 0;    background: rgba(249,115,22,0.08); animation: xmlOrbA 14s ease-in-out infinite; }
.xml-orb--b { width: 420px; height: 420px; bottom: 0; right: 5%;  background: rgba(234,88,12,0.06);  animation: xmlOrbB 17s ease-in-out infinite; }
.xml-orb--c { width: 320px; height: 320px; top: 40%;  left: 55%;  background: rgba(251,146,60,0.05); animation: xmlOrbA 11s ease-in-out infinite 2s; }
@keyframes xmlOrbA { 0%,100% { transform: translate(0,0); }  50% { transform: translate(25px,-25px); } }
@keyframes xmlOrbB { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-20px,18px); } }

/* ── Gradient text ──────────────────────────────────────── */
.xml-gradient-text {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Format badges ──────────────────────────────────────── */
.xml-format-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    background: rgba(249,115,22,0.10);
    border: 1px solid rgba(249,115,22,0.28);
    color: #f97316;
}

/* ── Trust pills ────────────────────────────────────────── */
.xml-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;
}

/* ── Buttons ────────────────────────────────────────────── */
.xml-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;
}
.xml-btn--primary {
    background: linear-gradient(135deg, #f97316, #c2410c);
    color: white;
    box-shadow: 0 0 30px rgba(249,115,22,0.35);
}
.xml-btn--primary:hover {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 0 48px rgba(249,115,22,0.55);
    transform: translateY(-2px);
}
.xml-btn--secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}
.xml-btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.xml-btn--cta {
    background: white;
    color: #7c2d12;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.xml-btn--cta:hover {
    background: #fff7ed;
    box-shadow: 0 0 60px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.xml-btn--cta-ghost {
    background: transparent;
    color: #fdba74;
    border: 1px solid rgba(253,186,116,0.3);
    padding: 16px 36px;
    font-size: 16px;
}
.xml-btn--cta-ghost:hover {
    background: rgba(253,186,116,0.08);
    border-color: rgba(253,186,116,0.5);
}

/* ── Floating badges ────────────────────────────────────── */
.xml-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);
}
.xml-float--tr { top: -12px; right: -12px; animation: xmlFloat 4s ease-in-out infinite; }
.xml-float--bl { bottom: 24px; left: -20px; animation: xmlFloat 4.5s ease-in-out infinite 1.5s; }
@keyframes xmlFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ═════════════════════════════════════════════════════
   CODE EDITOR WIDGET
═════════════════════════════════════════════════════ */
.xml-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(249,115,22,0.12);
    transform: perspective(1200px) rotateY(-2deg);
    transition: transform 0.6s ease;
    background: #0d1117;
}
.xml-hero-visual:hover .xml-editor { transform: perspective(1200px) rotateY(-0.3deg); }

/* ── Title bar ──────────────────────────────────────────── */
.xml-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;
}
.xml-dots { display: flex; gap: 5px; flex-shrink: 0; }
.xml-dots span { width: 10px; height: 10px; border-radius: 50%; }
.xml-dots span:nth-child(1) { background: #ef4444; }
.xml-dots span:nth-child(2) { background: #f59e0b; }
.xml-dots span:nth-child(3) { background: #22c55e; }

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

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

.xml-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;
}
.xml-status--translating { background: rgba(245,158,11,0.18); color: #fbbf24; }
.xml-status--complete    { background: rgba(249,115,22,0.18); color: #f97316; }

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

.xml-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
}
.xml-line--indent  { padding-left: 24px; }
.xml-line--dim     { color: #6e7681; }

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

.xml-str--translating {
    background: rgba(249,115,22,0.10);
    border-left: 2px solid #f97316;
    padding-left: 4px;
    border-radius: 2px;
}
.xml-str--done { color: #f97316; }

.xml-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;
}
.xml-check.visible {
    opacity: 1;
    transform: scale(1);
}

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

/* ── Download bar ───────────────────────────────────────── */
.xml-download-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #1a0a00;
    border-top: 1px solid rgba(249,115,22,0.18);
}
.xml-download-bar.visible {
    display: flex;
    animation: xmlSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes xmlSlideUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.xml-download-bar__filename { font-size: 11px; color: #f97316; font-weight: 500; font-family: ui-monospace, monospace; }
.xml-download-bar__btn {
    font-size: 11px;
    font-weight: 700;
    color: #7c2d12;
    background: #fdba74;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    animation: xmlDlPulse 1.8s ease-out 0.5s infinite;
}
.xml-download-bar__btn:hover { background: #f97316; color: white; }
@keyframes xmlDlPulse {
    0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(249,115,22,0); }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

/* ═════════════════════════════════════════════════════
   SECTION BADGES
═════════════════════════════════════════════════════ */
.xml-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(249,115,22,0.10);
    border: 1px solid rgba(249,115,22,0.28);
    color: #f97316;
}
.xml-badge-section--teal  { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.3); color: #2dd4bf; }
.xml-badge-section--green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }

/* ═════════════════════════════════════════════════════
   STEP CARDS
═════════════════════════════════════════════════════ */
.xml-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;
}
.xml-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    border-color: rgba(249,115,22,0.28);
}
.xml-step-card--offset { margin-top: 28px; }
@media (max-width: 1023px) { .xml-step-card--offset { margin-top: 0; } }

.xml-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;
}
.xml-step-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.xml-step-icon--orange { background: rgba(249,115,22,0.18); border: 1px solid rgba(249,115,22,0.35); color: #f97316; }
.xml-step-icon--amber  { background: rgba(245,158,11,0.18);  border: 1px solid rgba(245,158,11,0.35);  color: #fbbf24; }
.xml-step-icon--blue   { background: rgba(59,130,246,0.18);  border: 1px solid rgba(59,130,246,0.35);  color: #60a5fa; }

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

/* ═════════════════════════════════════════════════════
   PRESERVED GRID
═════════════════════════════════════════════════════ */
.xml-preserve-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .xml-preserve-grid { grid-template-columns: repeat(3, 1fr); } }

.xml-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;
}
.xml-preserve-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249,115,22,0.28);
    box-shadow: 0 16px 32px rgba(249,115,22,0.07);
}
.xml-preserve-icon  { font-size: 26px; margin-bottom: 10px; line-height: 1; color: #f97316; }
.xml-preserve-label { font-size: 12px; font-weight: 700; color: white; margin-bottom: 4px; }
.xml-preserve-sub   { font-size: 11px; color: #64748b; line-height: 1.45; }

/* ═════════════════════════════════════════════════════
   USE CASE CARDS
═════════════════════════════════════════════════════ */
.xml-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;
}
.xml-uc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249,115,22,0.22);
    box-shadow: 0 20px 40px rgba(249,115,22,0.07);
}
.xml-uc-emoji { font-size: 32px; margin-bottom: 16px; line-height: 1; }
.xml-uc-title { font-size: 17px; font-weight: 700; color: white; margin-bottom: 8px; }
.xml-uc-desc  { font-size: 13px; color: #94a3b8; line-height: 1.65; margin-bottom: 16px; }
.xml-uc-file  {
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: #f97316;
    background: rgba(249,115,22,0.07);
    border: 1px solid rgba(249,115,22,0.18);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* ═════════════════════════════════════════════════════
   ENGINE CARDS
═════════════════════════════════════════════════════ */
.xml-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;
}
.xml-engine-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.xml-engine-logo {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.xml-engine-logo--claude { background: rgba(251,146,60,0.2);   border: 1px solid rgba(251,146,60,0.3);  color: #fdba74; }
.xml-engine-logo--openai { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #e2e8f0; }
.xml-engine-logo--deepl  { background: rgba(59,130,246,0.15);  border: 1px solid rgba(59,130,246,0.3);  color: #93c5fd; }
.xml-engine-logo--google { background: rgba(239,68,68,0.12);   border: 1px solid rgba(239,68,68,0.25);  color: #fca5a5; }

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

/* ═════════════════════════════════════════════════════
   FAQ
═════════════════════════════════════════════════════ */
.xml-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;
}
.xml-faq[data-open="true"] { border-color: rgba(249,115,22,0.32); }

.xml-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;
}
.xml-faq__q:hover { background: rgba(255,255,255,0.03); }
.xml-faq__chevron { flex-shrink: 0; color: #64748b; transition: transform 0.3s ease; }
.xml-faq__a { padding: 0 24px 20px; font-size: 14px; line-height: 1.75; color: #94a3b8; }

/* ═════════════════════════════════════════════════════
   BEFORE / AFTER CODE BLOCK
═════════════════════════════════════════════════════ */
.xml-code-block {
    background: rgba(13,17,23,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.xml-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;
}
.xml-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;
}