/* ============================================================
   format_excel.css
   Excel / CSV translation landing page.
   Pure CSS — no Tailwind processing required.
   ============================================================ */

/* ── Scroll reveal (same pattern as home_business.css) ──── */
.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 ───────────────────────────────────────────────── */
.xls-hero {
    background: linear-gradient(135deg, #030712 0%, #0a1628 50%, #030712 100%);
    min-height: 100vh;
}
.xls-hero-copy {
    opacity: 0;
    transform: translateY(20px);
    animation: xlsCopyIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes xlsCopyIn { to { opacity: 1; transform: translateY(0); } }

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

/* ── Background orbs ────────────────────────────────────── */
.xls-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.xls-orb--green  { width: 550px; height: 550px; top: 5%;  left: 0;   background: rgba(16,185,129,0.11); animation: orbA 14s ease-in-out infinite; }
.xls-orb--blue   { width: 400px; height: 400px; bottom: 0; right: 5%; background: rgba(99,102,241,0.09);  animation: orbB 17s ease-in-out infinite; }
.xls-orb--teal   { width: 300px; height: 300px; top: 40%; left: 55%; background: rgba(20,184,166,0.06);  animation: orbA 11s ease-in-out infinite 2s; }
@keyframes orbA { 0%,100% { transform: translate(0,0); }  50% { transform: translate(25px,-25px); } }
@keyframes orbB { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-20px,18px); } }

/* ── Gradient text ──────────────────────────────────────── */
.xls-gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Format badges (.xlsx, .csv …) ─────────────────────── */
.xls-format-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}

/* ── Trust pills ────────────────────────────────────────── */
.xls-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 ────────────────────────────────────────────── */
.xls-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;
}
.xls-btn--primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 0 30px rgba(16,185,129,0.4);
}
.xls-btn--primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 0 48px rgba(16,185,129,0.6);
    transform: translateY(-2px);
}
.xls-btn--secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}
.xls-btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.xls-btn--cta {
    background: white;
    color: #064e3b;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.xls-btn--cta:hover {
    background: #f0fdf4;
    box-shadow: 0 0 60px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.xls-btn--cta-ghost {
    background: transparent;
    color: #6ee7b7;
    border: 1px solid rgba(110,231,183,0.3);
    padding: 16px 36px;
    font-size: 16px;
}
.xls-btn--cta-ghost:hover {
    background: rgba(110,231,183,0.08);
    border-color: rgba(110,231,183,0.5);
}

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

/* ═════════════════════════════════════════════════════
   EXCEL WINDOW
═════════════════════════════════════════════════════ */
.xls-window {
    background: white;
    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.55),
        0 0 70px rgba(16,185,129,0.12);
    transform: perspective(1200px) rotateY(-2deg);
    transition: transform 0.6s ease;
}
.xls-hero-visual:hover .xls-window { transform: perspective(1200px) rotateY(-0.3deg); }

/* Title bar */
.xls-titlebar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #1a3d25;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    gap: 0;
}
.xls-dots { display: flex; gap: 5px; }
.xls-dots span { width: 10px; height: 10px; border-radius: 50%; }
.xls-dots span:nth-child(1) { background: #ef4444; }
.xls-dots span:nth-child(2) { background: #f59e0b; }
.xls-dots span:nth-child(3) { background: #22c55e; }

.xls-row-counter {
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}
.xls-row-counter__of { color: rgba(255,255,255,0.3); }

.xls-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.1);
    color: rgba(255,255,255,0.45);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.xls-status--translating { background: rgba(245,158,11,0.2); color: #fbbf24; }
.xls-status--complete    { background: rgba(16,185,129,0.2); color: #34d399; }

/* Grid */
.xls-grid-wrap { overflow-x: auto; max-height: 244px; overflow-y: hidden; }
.xls-grid { width: 100%; border-collapse: collapse; font-size: 11px; table-layout: fixed; }

/* Column headers */
.xls-th {
    padding: 5px 8px;
    text-align: left;
    font-weight: 700;
    font-size: 10px;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}
.xls-th--corner { background: #f1f5f9; width: 28px; min-width: 28px; }
.xls-th--source { background: #eff6ff; color: #1d4ed8; border-bottom-color: #93c5fd; }
.xls-th--target { background: #f0fdf4; color: #15803d; border-bottom-color: #86efac; }

/* Row numbers */
.xls-rn {
    width: 28px;
    min-width: 28px;
    padding: 5px 6px;
    text-align: center;
    font-size: 10px;
    color: #94a3b8;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #f1f5f9;
    user-select: none;
}

/* Cells */
.xls-cell {
    padding: 5px 8px;
    font-size: 11px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xls-cell--source { background: #f8faff; color: #1e40af; font-weight: 500; }
.xls-cell--target { background: #fafafa; color: #94a3b8; }

/* Animation states */
.xls-cell--translating {
    background: #fffbeb !important;
    color: #d97706 !important;
    font-style: italic;
}
.xls-cell--done {
    background: #f0fdf4 !important;
    color: #166534 !important;
    animation: cellIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cellIn {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Row highlight while active */
.xls-row--active .xls-rn { background: #fef3c7; color: #92400e; }

/* Progress bar */
.xls-progress { padding: 7px 12px 6px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.xls-progress__track { height: 4px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.xls-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}
.xls-progress__labels { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.xls-progress__text { font-size: 10px; color: #94a3b8; }
.xls-progress__pct  { font-size: 10px; font-weight: 700; color: #10b981; font-family: ui-monospace, monospace; }

/* Download bar */
.xls-download-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
}
.xls-download-bar.visible {
    display: flex;
    animation: slideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.xls-download-bar__filename { font-size: 11px; color: #166534; font-weight: 500; }
.xls-download-bar__btn {
    font-size: 11px;
    font-weight: 700;
    color: #065f46;
    background: #bbf7d0;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    animation: downloadPulse 1.8s ease-out 0.5s infinite;
}
.xls-download-bar__btn:hover { background: #86efac; }
@keyframes downloadPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ═════════════════════════════════════════════════════
   SECTION BADGES
═════════════════════════════════════════════════════ */
.xls-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(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    color: #a5b4fc;
}
.xls-badge-section--green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }
.xls-badge-section--blue  { background: rgba(59,130,246,0.12);  border-color: rgba(59,130,246,0.3);  color: #60a5fa; }

/* ═════════════════════════════════════════════════════
   HOW IT WORKS — STEP CARDS
═════════════════════════════════════════════════════ */
.xls-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;
}
.xls-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    border-color: rgba(16,185,129,0.3);
}
.xls-step-card--offset { margin-top: 28px; }
@media (max-width: 1023px) { .xls-step-card--offset { margin-top: 0; } }

.xls-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;
}
.xls-step-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.xls-step-icon--indigo { background: rgba(99,102,241,0.2);  border: 1px solid rgba(99,102,241,0.4);  color: #818cf8; }
.xls-step-icon--violet { background: rgba(139,92,246,0.2);  border: 1px solid rgba(139,92,246,0.4);  color: #a78bfa; }
.xls-step-icon--emerald{ background: rgba(16,185,129,0.2);  border: 1px solid rgba(16,185,129,0.4);  color: #34d399; }

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

.xls-lang-chip {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    color: #c4b5fd;
}

/* Output column preview (step 3) */
.xls-output-preview { display: flex; gap: 3px; }
.xls-output-col {
    flex: 1;
    padding: 5px 2px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(16,185,129,0.14);
    border: 1px solid rgba(16,185,129,0.3);
    color: #34d399;
}
.xls-output-col--source {
    background: rgba(59,130,246,0.14);
    border-color: rgba(59,130,246,0.3);
    color: #60a5fa;
    flex: 1.4;
}

/* ═════════════════════════════════════════════════════
   OUTPUT VISUALIZATION
═════════════════════════════════════════════════════ */
.xls-before-after-label {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.xls-before-after-label--before { background: rgba(255,255,255,0.06); color: #64748b; }
.xls-before-after-label--after  { background: rgba(16,185,129,0.15); color: #34d399; }

.xls-output-table-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.xls-output-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #0d1b2e; }
.xls-output-th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.xls-output-th--source     { background: rgba(59,130,246,0.15); color: #60a5fa; }
.xls-output-th--translated { background: rgba(16,185,129,0.12); color: #34d399; }

.xls-output-td {
    padding: 9px 12px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    white-space: nowrap;
}
.xls-output-td--source     { color: #93c5fd; font-weight: 500; }
.xls-output-td--translated { color: #6ee7b7; }
.xls-output-td--dim        { color: rgba(255,255,255,0.2); font-style: italic; }

/* Fact cards */
.xls-fact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.xls-fact-icon  { font-size: 22px; flex-shrink: 0; line-height: 1.4; }
.xls-fact-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.xls-fact-desc  { font-size: 12px; color: #64748b; line-height: 1.55; }

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

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

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

/* ═════════════════════════════════════════════════════
   FAQ
═════════════════════════════════════════════════════ */
.xls-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;
}
.xls-faq[data-open="true"] { border-color: rgba(16,185,129,0.3); }

.xls-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;
}
.xls-faq__q:hover { background: rgba(255,255,255,0.03); }

.xls-faq__chevron { flex-shrink: 0; color: #64748b; transition: transform 0.3s ease; }
.xls-faq__a { padding: 0 24px 20px; font-size: 14px; line-height: 1.75; color: #94a3b8; }