/* ============================================================
   format_srt.css
   SRT / VTT subtitle translation landing page.
   Pure CSS — no Tailwind processing required.
   Color scheme: Violet-purple (cinema / media).
   ============================================================ */

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

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

/* ── Background orbs ────────────────────────────────────── */
.srt-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
.srt-orb--violet { width: 580px; height: 580px; top: 5%;   left: 0;    background: rgba(124,58,237,0.10); animation: srtOrbA 14s ease-in-out infinite; }
.srt-orb--purple { width: 400px; height: 400px; bottom: 0; right: 5%;  background: rgba(168,85,247,0.07); animation: srtOrbB 17s ease-in-out infinite; }
.srt-orb--indigo { width: 300px; height: 300px; top: 40%;  left: 55%;  background: rgba(99,102,241,0.06); animation: srtOrbA 11s ease-in-out infinite 2s; }
@keyframes srtOrbA { 0%,100% { transform: translate(0,0); }  50% { transform: translate(25px,-25px); } }
@keyframes srtOrbB { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-20px,18px); } }

/* ── Gradient text ──────────────────────────────────────── */
.srt-gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Format badges ──────────────────────────────────────── */
.srt-format-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
}

/* ── Trust pills ────────────────────────────────────────── */
.srt-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 ────────────────────────────────────────────── */
.srt-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;
}
.srt-btn--primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 0 30px rgba(124,58,237,0.4);
}
.srt-btn--primary:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 0 48px rgba(124,58,237,0.6);
    transform: translateY(-2px);
}
.srt-btn--secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.15);
}
.srt-btn--secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.25);
    color: white;
}
.srt-btn--cta {
    background: white;
    color: #3b0764;
    font-weight: 700;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
}
.srt-btn--cta:hover {
    background: #f5f3ff;
    box-shadow: 0 0 60px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.srt-btn--cta-ghost {
    background: transparent;
    color: #c4b5fd;
    border: 1px solid rgba(196,181,253,0.3);
    padding: 16px 36px;
    font-size: 16px;
}
.srt-btn--cta-ghost:hover {
    background: rgba(196,181,253,0.08);
    border-color: rgba(196,181,253,0.5);
}

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

/* ═════════════════════════════════════════════════════
   VIDEO PLAYER WINDOW
═════════════════════════════════════════════════════ */
.srt-player {
    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(124,58,237,0.14);
    transform: perspective(1200px) rotateY(-2deg);
    transition: transform 0.6s ease;
    background: #050812;
}
.srt-hero-visual:hover .srt-player { transform: perspective(1200px) rotateY(-0.3deg); }

/* ── Video area ─────────────────────────────────────────── */
.srt-video-area {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #050812;
}

.srt-video-scene {
    position: absolute;
    inset: 0;
}
.srt-video-scene svg { width: 100%; height: 100%; display: block; }

/* Film grain overlay */
.srt-video-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Vignette overlay */
.srt-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(5,8,18,0.7) 100%);
    pointer-events: none;
}

/* ── Subtitle card ──────────────────────────────────────── */
.srt-subtitle-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 14px 12px;
}

.srt-subtitle-inner {
    background: rgba(5,8,18,0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 8px;
    padding: 8px 12px 10px;
}

.srt-subtitle-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.srt-subtitle-idx {
    font-size: 9px;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    color: #7c3aed;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 3px;
    padding: 1px 5px;
    line-height: 1.4;
}

.srt-subtitle-ts {
    font-size: 9px;
    font-family: ui-monospace, monospace;
    color: #a78bfa;
    letter-spacing: 0.02em;
    flex: 1;
}

.srt-ts-lock {
    font-size: 8px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
}

.srt-subtitle-text {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.45;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* Shimmer animation on subtitle text */
.srt-subtitle-text-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    padding: 2px 4px;
    transition: background 0.3s ease;
}
.srt-subtitle-text-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(124,58,237,0.3) 40%,
        rgba(168,85,247,0.4) 50%,
        rgba(124,58,237,0.3) 60%,
        transparent 100%
    );
    transform: translateX(-110%);
    pointer-events: none;
}
.srt-subtitle-text-wrap--translating {
    background: rgba(124,58,237,0.06);
}
.srt-subtitle-text-wrap--translating::after {
    animation: srtShimmer 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes srtShimmer {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
}
.srt-subtitle-text-wrap--done {
    animation: srtDoneFade 0.6s ease forwards;
}
@keyframes srtDoneFade {
    0%   { background: rgba(124,58,237,0.1); }
    100% { background: transparent; }
}

/* Blinking cursor */
.srt-typing-cursor::after {
    content: '|';
    color: #a78bfa;
    animation: srtBlink 0.65s step-end infinite;
}
@keyframes srtBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Player controls ────────────────────────────────────── */
.srt-controls {
    background: #0a0d1a;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0 12px 8px;
}

.srt-timeline-wrap { padding: 8px 0 4px; }
.srt-timeline {
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    position: relative;
    cursor: default;
}
.srt-timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.srt-timeline-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167,139,250,0.6);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.srt-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.srt-ctrl-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    cursor: default;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    line-height: 1;
}
.srt-ctrl-btn:hover { color: rgba(255,255,255,0.8); }
.srt-time {
    font-size: 10px;
    font-family: ui-monospace, monospace;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}
.srt-ctrl-lang {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}
.srt-ctrl-lang.visible { opacity: 1; }

.srt-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.06);
    color: rgba(255,255,255,0.35);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.srt-status--translating { background: rgba(245,158,11,0.18); color: #fbbf24; }
.srt-status--complete    { background: rgba(124,58,237,0.22); color: #a78bfa; }

/* ── Progress / subtitle counter ───────────────────────── */
.srt-progress-bar {
    padding: 6px 12px 5px;
    background: #0d1020;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.srt-progress-track { height: 3px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; }
.srt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.srt-progress-labels { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.srt-progress-text { font-size: 10px; color: #64748b; }
.srt-progress-pct  { font-size: 10px; font-weight: 700; color: #8b5cf6; font-family: ui-monospace, monospace; }

/* Download bar */
.srt-download-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #0d0620;
    border-top: 1px solid rgba(124,58,237,0.2);
}
.srt-download-bar.visible {
    display: flex;
    animation: srtSlideUp 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes srtSlideUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.srt-download-bar__filename { font-size: 11px; color: #a78bfa; font-weight: 500; }
.srt-download-bar__btn {
    font-size: 11px;
    font-weight: 700;
    color: #3b0764;
    background: #c4b5fd;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    animation: srtDlPulse 1.8s ease-out 0.5s infinite;
}
.srt-download-bar__btn:hover { background: #a78bfa; }
@keyframes srtDlPulse {
    0%   { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
    100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
}

/* ═════════════════════════════════════════════════════
   SECTION BADGES
═════════════════════════════════════════════════════ */
.srt-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(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.3);
    color: #a78bfa;
}
.srt-badge-section--green  { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }
.srt-badge-section--amber  { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #fbbf24; }

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

.srt-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;
}
.srt-step-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.srt-step-icon--violet { background: rgba(124,58,237,0.2);  border: 1px solid rgba(124,58,237,0.4);  color: #a78bfa; }
.srt-step-icon--purple { background: rgba(168,85,247,0.2);  border: 1px solid rgba(168,85,247,0.4);  color: #d8b4fe; }
.srt-step-icon--indigo { background: rgba(99,102,241,0.2);  border: 1px solid rgba(99,102,241,0.4);  color: #818cf8; }

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

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

.srt-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;
}
.srt-preserve-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,58,237,0.3);
    box-shadow: 0 16px 32px rgba(124,58,237,0.08);
}
.srt-preserve-icon {
    font-size: 26px;
    margin-bottom: 10px;
    line-height: 1;
    color: #a78bfa;
}
.srt-preserve-label {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.srt-preserve-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.45;
}

/* SRT block preview (the "before" display) */
.srt-block {
    background: rgba(5,8,18,0.7);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.8;
}
.srt-block__idx  { color: #64748b; }
.srt-block__ts   { color: #a78bfa; }
.srt-block__ts em { font-style: normal; color: #22c55e; font-weight: 700; }
.srt-block__text { color: white; font-weight: 500; }
.srt-block__text--translated { color: #c4b5fd; }
.srt-block + .srt-block { margin-top: 8px; }

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

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

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

/* ═════════════════════════════════════════════════════
   FAQ
═════════════════════════════════════════════════════ */
.srt-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;
}
.srt-faq[data-open="true"] { border-color: rgba(124,58,237,0.35); }
.srt-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;
}
.srt-faq__q:hover { background: rgba(255,255,255,0.03); }
.srt-faq__chevron { flex-shrink: 0; color: #64748b; transition: transform 0.3s ease; }
.srt-faq__a { padding: 0 24px 20px; font-size: 14px; line-height: 1.75; color: #94a3b8; }
