/* ============================================================
   format_android.css
   Android strings.xml translation landing page.
   Pure CSS — no Tailwind processing required.
   Color scheme: Android Green (#3ddc84).
   ============================================================ */

/* ── 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 ───────────────────────────────────────────────── */
.and-hero {
    background: linear-gradient(135deg, #030712 0%, #051a10 50%, #030712 100%);
    min-height: 100vh;
}
.and-hero-copy {
    opacity: 0;
    transform: translateY(20px);
    animation: andCopyIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
@keyframes andCopyIn { to { opacity: 1; transform: translateY(0); } }

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

/* ── Background orbs ────────────────────────────────────── */
.and-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.and-orb--green  { width: 580px; height: 580px; top: 5%;   left: 0;    background: rgba(61,220,132,0.07);  animation: andOrbA 14s ease-in-out infinite; }
.and-orb--teal   { width: 420px; height: 420px; bottom: 0; right: 5%;  background: rgba(20,184,166,0.05);  animation: andOrbB 17s ease-in-out infinite; }
.and-orb--lime   { width: 320px; height: 320px; top: 40%;  left: 55%;  background: rgba(132,204,22,0.04);  animation: andOrbA 11s ease-in-out infinite 2s; }
@keyframes andOrbA { 0%,100% { transform: translate(0,0); }  50% { transform: translate(25px,-25px); } }
@keyframes andOrbB { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-20px,18px); } }

/* ── Gradient text ──────────────────────────────────────── */
.and-gradient-text {
    background: linear-gradient(135deg, #3ddc84 0%, #22c55e 50%, #15803d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── Trust pills ────────────────────────────────────────── */
.and-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 ────────────────────────────────────────────── */
.and-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;
}
.and-btn--primary {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: white;
    box-shadow: 0 0 30px rgba(61,220,132,0.3);
}
.and-btn--primary:hover {
    background: linear-gradient(135deg, #3ddc84, #22c55e);
    box-shadow: 0 0 48px rgba(61,220,132,0.5);
    transform: translateY(-2px);
}
.and-btn--secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}
.and-btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.and-btn--cta {
    background: white;
    color: #052e16;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.and-btn--cta:hover {
    background: #f0fdf4;
    box-shadow: 0 0 60px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.and-btn--cta-ghost {
    background: transparent;
    color: #86efac;
    border: 1px solid rgba(134,239,172,0.3);
    padding: 16px 36px;
    font-size: 16px;
}
.and-btn--cta-ghost:hover {
    background: rgba(134,239,172,0.08);
    border-color: rgba(134,239,172,0.5);
}

/* ── Floating badges ────────────────────────────────────── */
.and-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(3,8,18,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);
}
.and-float--tr { top: -12px; right: -12px; animation: andFloat 4s ease-in-out infinite; }
.and-float--bl { bottom: 24px; left: -20px; animation: andFloat 4.5s ease-in-out infinite 1.5s; }
@keyframes andFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ═════════════════════════════════════════════════════
   XML EDITOR WIDGET
═════════════════════════════════════════════════════ */
.and-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(61,220,132,0.10);
    transform: perspective(1200px) rotateY(-2deg);
    transition: transform 0.6s ease;
    background: #0d1117;
}
.and-hero-visual:hover .and-editor { transform: perspective(1200px) rotateY(-0.3deg); }

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

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

.and-lang-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(61,220,132,0.12);
    border: 1px solid rgba(61,220,132,0.28);
    color: #3ddc84;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}
.and-lang-badge.visible { opacity: 1; }

.and-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;
}
.and-status--translating { background: rgba(245,158,11,0.18); color: #fbbf24; }
.and-status--complete    { background: rgba(61,220,132,0.18);  color: #3ddc84; }

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

.and-line         { display: flex; align-items: baseline; flex-wrap: wrap; }
.and-line--indent { padding-left: 20px; }
.and-line--dim    { opacity: 0.45; }

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

.and-str--translating {
    background: rgba(61,220,132,0.10);
    border-left: 2px solid #3ddc84;
    padding-left: 4px;
    border-radius: 2px;
}
.and-str--done { color: #3ddc84; }

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

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

/* ── Download bar ───────────────────────────────────────── */
.and-download-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #050f08;
    border-top: 1px solid rgba(61,220,132,0.18);
}
.and-download-bar.visible {
    display: flex;
    animation: andSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes andSlideUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.and-download-bar__filename { font-size: 11px; color: #3ddc84; font-weight: 500; font-family: ui-monospace, monospace; }
.and-download-bar__btn {
    font-size: 11px;
    font-weight: 700;
    color: #052e16;
    background: #86efac;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    animation: andDlPulse 1.8s ease-out 0.5s infinite;
}
.and-download-bar__btn:hover { background: #3ddc84; }
@keyframes andDlPulse {
    0%   { box-shadow: 0 0 0 0 rgba(61,220,132,0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(61,220,132,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}

/* ═════════════════════════════════════════════════════
   SECTION BADGES
═════════════════════════════════════════════════════ */
.and-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(61,220,132,0.10);
    border: 1px solid rgba(61,220,132,0.28);
    color: #3ddc84;
}
.and-badge-section--teal { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.3); color: #2dd4bf; }
.and-badge-section--blue { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: #60a5fa; }

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

.and-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;
}
.and-step-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.and-step-icon--green { background: rgba(61,220,132,0.18);  border: 1px solid rgba(61,220,132,0.35);  color: #3ddc84; }
.and-step-icon--teal  { background: rgba(20,184,166,0.18);  border: 1px solid rgba(20,184,166,0.35);  color: #2dd4bf; }
.and-step-icon--blue  { background: rgba(59,130,246,0.18);  border: 1px solid rgba(59,130,246,0.35);  color: #60a5fa; }

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

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

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

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

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

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

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

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

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