/* ============================================================
   format_ios.css
   iOS .strings file translation landing page.
   Pure CSS — no Tailwind processing required.
   Color scheme: #a855f7.
   ============================================================ */

.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; }

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

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

.ios-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.ios-orb--a { width: 580px; height: 580px; top: 5%;   left: 0;    background: rgba(168,85,247,0.08); animation: iosOrbA 14s ease-in-out infinite; }
.ios-orb--b { width: 420px; height: 420px; bottom: 0; right: 5%;  background: rgba(168,85,247,0.06); animation: iosOrbB 17s ease-in-out infinite; }
.ios-orb--c { width: 320px; height: 320px; top: 40%;  left: 55%;  background: rgba(168,85,247,0.05); animation: iosOrbA 11s ease-in-out infinite 2s; }
@keyframes iosOrbA { 0%,100% { transform: translate(0,0); }  50% { transform: translate(25px,-25px); } }
@keyframes iosOrbB { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-20px,18px); } }

.ios-gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ios-format-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    background: rgba(168,85,247,0.10);
    border: 1px solid rgba(168,85,247,0.28);
    color: #a855f7;
}

.ios-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;
}

.ios-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;
}
.ios-btn--primary {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    color: white;
    box-shadow: 0 0 30px rgba(168,85,247,0.35);
}
.ios-btn--primary:hover {
    background: linear-gradient(135deg, #d8b4fe, #a855f7);
    box-shadow: 0 0 48px rgba(168,85,247,0.55);
    transform: translateY(-2px);
}
.ios-btn--secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}
.ios-btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.ios-btn--cta {
    background: white;
    color: #581c87;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.ios-btn--cta:hover {
    background: #f8faff;
    box-shadow: 0 0 60px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.ios-btn--cta-ghost {
    background: transparent;
    color: #d8b4fe;
    border: 1px solid rgba(168,85,247,0.3);
    padding: 16px 36px;
    font-size: 16px;
}
.ios-btn--cta-ghost:hover {
    background: rgba(168,85,247,0.08);
    border-color: rgba(168,85,247,0.5);
}

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

.ios-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(168,85,247,0.12);
    transform: perspective(1200px) rotateY(-2deg);
    transition: transform 0.6s ease;
    background: #0d1117;
}
.ios-hero-visual:hover .ios-editor { transform: perspective(1200px) rotateY(-0.3deg); }

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

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

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

.ios-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;
}
.ios-status--translating { background: rgba(245,158,11,0.18); color: #fbbf24; }
.ios-status--complete    { background: rgba(168,85,247,0.18); color: #a855f7; }

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

.ios-line        { display: flex; align-items: baseline; gap: 0; flex-wrap: wrap; }
.ios-line--indent { padding-left: 24px; }
.ios-line--indent2 { padding-left: 48px; }
.ios-key   { color: #79c0ff; }
.ios-str   { color: #e6edf3; transition: opacity 0.2s ease; }
.ios-punct { color: #6e7681; }
.ios-comment { color: #6e7681; font-style: italic; }

.ios-str--translating {
    background: rgba(168,85,247,0.10);
    border-left: 2px solid #a855f7;
    padding-left: 4px;
    border-radius: 2px;
}
.ios-str--done { color: #a855f7; }

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

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

.ios-download-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #0a0416;
    border-top: 1px solid rgba(168,85,247,0.18);
}
.ios-download-bar.visible {
    display: flex;
    animation: iosSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes iosSlideUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.ios-download-bar__filename { font-size: 11px; color: #a855f7; font-weight: 500; font-family: ui-monospace, monospace; }
.ios-download-bar__btn {
    font-size: 11px;
    font-weight: 700;
    color: #581c87;
    background: #d8b4fe;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    animation: iosDlPulse 1.8s ease-out 0.5s infinite;
}
.ios-download-bar__btn:hover { background: #a855f7; color: white; }
@keyframes iosDlPulse {
    0%   { box-shadow: 0 0 0 0 rgba(168,85,247,0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(168,85,247,0); }
    100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); }
}

.ios-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(168,85,247,0.10);
    border: 1px solid rgba(168,85,247,0.28);
    color: #a855f7;
}
.ios-badge-section--teal  { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.3); color: #2dd4bf; }
.ios-badge-section--green { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }

.ios-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;
}
.ios-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    border-color: rgba(168,85,247,0.28);
}
.ios-step-card--offset { margin-top: 28px; }
@media (max-width: 1023px) { .ios-step-card--offset { margin-top: 0; } }

.ios-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;
}
.ios-step-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.ios-step-icon--violet { background: rgba(168,85,247,0.18); border: 1px solid rgba(168,85,247,0.35); color: #c084fc; }
.ios-step-icon--purple { background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.35); color: #a78bfa; }
.ios-step-icon--blue { background: rgba(59,130,246,0.18); border: 1px solid rgba(59,130,246,0.35); color: #60a5fa; }

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

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

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

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

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

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

.ios-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;
}
.ios-faq[data-open="true"] { border-color: rgba(168,85,247,0.32); }

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

.ios-code-block {
    background: rgba(13,17,23,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}
.ios-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;
}
.ios-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;
}
