/* ===== AIthentica Studio – PDF Übersetzer =====
   Design-System: aithentica-studio.pages.dev
   Midnight #0F172A · Coral #FF6F61 · Parchment #F9F8F6 · Silver #334155
   Fonts: Playfair Display (headings) · Inter (body)
*/

:root {
    --midnight: #0F172A;
    --coral: #FF6F61;
    --coral-dark: #EE6C4D;
    --parchment: #F9F8F6;
    --silver: #334155;
    --surface: rgba(255, 255, 255, 0.02);
    --border: rgba(51, 65, 85, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--midnight);
    color: var(--parchment);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.center-text { text-align: center; }

/* ===== HEADER ===== */
.header {
    padding: 18px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

.header-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo {
    height: 44px; width: auto;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 8px rgba(255,111,97,0.5));
    transition: filter 0.3s;
}
.header-logo:hover {
    filter: brightness(1.3) contrast(1.1) drop-shadow(0 0 12px rgba(255,111,97,0.7));
}

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav > a { color: var(--parchment); text-decoration: none; opacity: 0.7; transition: opacity 0.2s; font-size: 0.9rem; }
.header-nav > a:hover { opacity: 1; }

.btn-login {
    background: transparent; border: 1px solid var(--silver); color: var(--parchment);
    padding: 8px 20px; border-radius: 100px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.btn-login:hover { border-color: var(--coral); color: var(--coral); }

.btn-cta-nav {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: var(--midnight);
    padding: 8px 20px; border-radius: 100px; font-weight: 700; font-size: 0.85rem;
    text-decoration: none; transition: transform 0.2s;
}
.btn-cta-nav:hover { transform: scale(1.03); }

/* Lang Switcher */
.lang-switcher { position: relative; }
.lang-btn {
    background: transparent; border: 1px solid var(--silver); color: var(--parchment);
    padding: 6px 12px; border-radius: 100px; cursor: pointer; display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--coral); }
.lang-btn i { font-size: 0.6rem; opacity: 0.5; }
.lang-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #1e293b; border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); min-width: 150px; z-index: 50;
}
.lang-dropdown.open { display: block; }
.lang-option {
    display: block; width: 100%; padding: 10px 16px; border: none; background: transparent;
    color: var(--parchment); font-size: 0.85rem; text-align: left; cursor: pointer;
    transition: background 0.15s; font-family: 'Inter', sans-serif;
}
.lang-option:hover { background: rgba(255,111,97,0.1); }
.lang-option.active { color: var(--coral); font-weight: 600; }

.mobile-menu-btn {
    display: none; background: transparent; border: 1px solid var(--silver); color: var(--parchment);
    width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 160px 0 80px;
}

.hero-badge {
    display: inline-block; padding: 6px 18px; border-radius: 100px;
    background: rgba(255,111,97,0.1); border: 1px solid rgba(255,111,97,0.3);
    color: var(--coral); font-size: 0.85rem; font-weight: 600; margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    color: var(--coral);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.15rem; max-width: 600px; margin: 0 auto 36px;
    opacity: 0.7; font-weight: 300;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-trust { font-size: 0.85rem; opacity: 0.45; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-app { padding: 60px 0 80px; }

.section-header { text-align: center; margin-bottom: 50px; }

.overline {
    display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--coral); margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.section-header h2 span, .section-title span, .section-title em {
    color: var(--coral);
    font-style: italic;
}

/* ===== HOW IT WORKS ===== */
.how-grid {
    display: flex; align-items: flex-start; justify-content: center; gap: 12px;
}

.how-step {
    text-align: center; max-width: 260px; padding: 24px;
}

.how-number {
    font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
    color: var(--coral); opacity: 0.3; margin-bottom: 8px;
}

.how-icon {
    width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px;
    background: rgba(255,111,97,0.1); border: 1px solid rgba(255,111,97,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--coral);
}

.how-step h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 8px; }
.how-step p { opacity: 0.65; font-size: 0.9rem; }
.how-arrow { color: var(--coral); opacity: 0.3; font-size: 1.2rem; padding-top: 60px; }

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}

.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
    padding: 36px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--coral); transform: translateY(-4px); }

.feature-icon {
    width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255,111,97,0.1); display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 1.3rem; color: var(--coral);
}

.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { opacity: 0.65; font-size: 0.9rem; }

/* ===== PRICING ===== */
.pricing-toggle {
    display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 50px;
}

.switch { position: relative; display: inline-block; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--silver); transition: .3s; border-radius: 28px;
}
.slider:before {
    position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px;
    background-color: var(--parchment); transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--coral); }
input:checked + .slider:before { transform: translateX(24px); }

.discount-badge {
    color: var(--coral); background: rgba(255,111,97,0.1);
    padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600;
    border: 1px solid rgba(255,111,97,0.3);
}

.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}

.price-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
    padding: 36px; transition: all 0.3s; position: relative;
}
.price-card.featured {
    border-color: var(--coral); transform: scale(1.03);
    box-shadow: 0 0 40px rgba(255,111,97,0.1);
}

.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: var(--midnight);
    padding: 4px 18px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
    white-space: nowrap;
}

.price-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 4px; }
.price-desc { opacity: 0.6; font-size: 0.85rem; margin-bottom: 20px; }

.price {
    font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700;
    margin-bottom: 24px;
}
.price small { font-size: 0.9rem; opacity: 0.5; font-family: 'Inter', sans-serif; }

.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
    padding: 8px 0; opacity: 0.8; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: "✓"; color: var(--coral); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; cursor: pointer; }

.faq-question {
    font-size: 1.05rem; font-weight: 600; display: flex; justify-content: space-between;
    align-items: center; gap: 16px;
}
.faq-question::after {
    content: "+"; color: var(--coral); font-size: 1.5rem; flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    opacity: 0.7; font-size: 0.9rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; padding-top: 14px; }

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,111,97,0.03) 100%);
}
.cta-section .section-title { margin-bottom: 12px; }

/* ===== APP SECTION ===== */
.step-indicators {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 40px;
}
.step-indicator {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0.35; transition: all 0.4s;
}
.step-indicator.active { opacity: 1; }
.step-indicator.completed { opacity: 1; }

.step-circle {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--silver);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem; transition: all 0.4s;
}
.step-indicator.active .step-circle {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    border-color: transparent; color: var(--midnight);
    box-shadow: 0 0 20px rgba(255,111,97,0.35);
}
.step-indicator.completed .step-circle {
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-color: transparent; color: white;
}
.step-label { font-size: 0.75rem; font-weight: 500; opacity: 0.6; white-space: nowrap; }
.step-indicator.active .step-label { opacity: 1; }
.step-line { width: 50px; height: 2px; background: var(--silver); margin-bottom: 22px; transition: 0.4s; }
.step-line.completed { background: linear-gradient(90deg, #22c55e, var(--coral)); }

.step-section { animation: fadeIn 0.5s ease; }
.step-content-narrow { max-width: 620px; margin: 0 auto; }
.step-content-wide { max-width: 880px; margin: 0 auto; }

/* Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255,111,97,0.3); border-radius: 24px;
    padding: 48px 24px; text-align: center; cursor: pointer;
    transition: all 0.3s; background: var(--surface);
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--coral); background: rgba(255,111,97,0.04); transform: scale(1.01);
}
.drop-zone.dragover { border-style: solid; box-shadow: 0 0 30px rgba(255,111,97,0.12); }

.drop-zone-icon {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px;
    background: rgba(255,111,97,0.1); border: 1px solid rgba(255,111,97,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--coral); transition: transform 0.3s;
}
.drop-zone:hover .drop-zone-icon { transform: scale(1.1); }
.drop-zone h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 6px; }
.drop-zone p { opacity: 0.55; font-size: 0.9rem; margin-bottom: 14px; }
.drop-zone-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; background: rgba(255,255,255,0.04);
    border-radius: 100px; font-size: 0.8rem; opacity: 0.6;
}
.drop-zone-badge i { color: #ef4444; }

/* File Card */
.file-card { margin-top: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.file-card-row { display: flex; align-items: center; gap: 14px; }
.file-icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #ef4444; flex-shrink: 0;
}
.file-details { flex: 1; min-width: 0; }
.file-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; opacity: 0.5; margin-top: 2px; }

.btn-icon {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: transparent; color: var(--parchment); opacity: 0.5; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.btn-icon-danger:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #ef4444; opacity: 1; }

/* Progress */
.progress-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.progress-header { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 6px; opacity: 0.75; }
.progress-value { color: var(--coral); font-weight: 600; }
.progress-track { height: 5px; background: var(--silver); border-radius: 100px; overflow: hidden; }
.progress-track.large { height: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--coral), var(--coral-dark)); border-radius: 100px; transition: width 0.4s; }
.progress-fill.animated { background: linear-gradient(90deg, var(--coral), var(--coral-dark), var(--coral)); background-size: 200% 100%; animation: shimmer 2s linear infinite; }

/* Language */
.language-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 6px; opacity: 0.85; }
.form-group label i { margin-right: 4px; }

input[type="text"], input[type="password"], select {
    width: 100%; padding: 11px 14px; background-color: #1e293b;
    border: 1px solid var(--silver); border-radius: 10px; color: var(--parchment);
    font-size: 0.9rem; font-family: 'Inter', sans-serif; outline: none;
    transition: all 0.2s; appearance: none; -webkit-appearance: none;
}
input::placeholder { color: rgba(255,255,255,0.3); }
input:focus, select:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,111,97,0.08); }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F9F8F6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    background-color: #1e293b; padding-right: 36px; cursor: pointer;
}
select option { background-color: #1e293b; color: var(--parchment); padding: 8px; }
select option:checked { background-color: var(--coral); color: var(--midnight); }

/* Card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header-left { display: flex; align-items: center; gap: 12px; }
.card-header h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.card-subtitle { font-size: 0.8rem; opacity: 0.5; margin-top: 2px; }
.card-body { padding: 18px 22px; }
.icon-box { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,111,97,0.1); display: flex; align-items: center; justify-content: center; color: var(--coral); }
.timer { font-family: monospace; font-size: 0.9rem; opacity: 0.5; }

.preview-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.preview-pane { padding: 18px 22px; }
.preview-pane:first-child { border-right: 1px solid var(--border); }
.preview-pane h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.55; margin-bottom: 10px; }
.preview-pane h4 i { margin-right: 5px; }
.preview-text { font-size: 0.8rem; line-height: 1.6; max-height: 200px; overflow-y: auto; opacity: 0.75; }

/* Step 3 */
.success-icon {
    width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px;
    background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: #22c55e;
}
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 8px; }
.sub-text { opacity: 0.55; margin-bottom: 28px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; }
.stat-value.coral { color: var(--coral); }
.stat-label { font-size: 0.75rem; opacity: 0.45; margin-top: 2px; }

.preview-card {
    padding: 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; margin-bottom: 20px;
}
.preview-card h4 { font-size: 0.8rem; font-weight: 600; opacity: 0.6; margin-bottom: 10px; }
.preview-card h4 i { margin-right: 5px; }
.page-preview-container { display: flex; justify-content: center; overflow: hidden; border-radius: 10px; background: #1e293b; }

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    border: none; color: var(--midnight); padding: 14px 32px; border-radius: 100px;
    font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
    font-family: 'Inter', sans-serif; white-space: nowrap; text-decoration: none;
    display: inline-block; text-align: center;
}
.btn-primary:hover { transform: scale(1.03); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary i { margin-right: 6px; }

.btn-secondary {
    background: transparent; border: 1px solid var(--silver); color: var(--parchment);
    padding: 14px 32px; border-radius: 100px; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
    text-decoration: none; display: inline-block; text-align: center;
}
.btn-secondary:hover { border-color: var(--parchment); }
.btn-secondary i { margin-right: 6px; }

.btn-large { padding: 16px 40px; font-size: 1rem; }
.full-width { width: 100%; }
.center-action { text-align: center; margin-top: 20px; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
    padding: 12px 18px; border-radius: 14px; backdrop-filter: blur(20px);
    display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 500;
    min-width: 260px; max-width: 380px; animation: toastIn 0.4s; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.toast.success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.toast.error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.toast.info { background: rgba(255,111,97,0.15); border: 1px solid rgba(255,111,97,0.3); color: #FFB4AB; }
.toast.warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.footer p { opacity: 0.45; font-size: 0.85rem; }
.footer-links { margin-top: 14px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--parchment); text-decoration: none; opacity: 0.45; font-size: 0.8rem; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }

.footer-langs { margin-top: 14px; display: flex; justify-content: center; gap: 8px; }
.footer-langs button {
    background: transparent; border: 1px solid var(--border); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all 0.2s;
}
.footer-langs button:hover { border-color: var(--coral); transform: scale(1.1); }

/* ===== SCROLLBAR ===== */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 10px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 10px rgba(255,111,97,0.2); } 50% { box-shadow: 0 0 22px rgba(255,111,97,0.45); } }
.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }

/* ===== AUTH MODAL ===== */
.auth-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    z-index: 500; display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}
.auth-modal-overlay.hidden { display: none !important; }

.auth-modal {
    background: #1e293b; border: 1px solid var(--border); border-radius: 24px;
    padding: 40px 36px; max-width: 420px; width: 90%; position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.auth-modal-close {
    position: absolute; top: 16px; right: 16px; background: transparent;
    border: none; color: var(--parchment); opacity: 0.4; cursor: pointer;
    font-size: 1.1rem; transition: opacity 0.2s;
}
.auth-modal-close:hover { opacity: 1; }

.auth-modal-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
    background: rgba(255,111,97,0.1); border: 1px solid rgba(255,111,97,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--coral);
}

.auth-modal h3 {
    font-family: 'Playfair Display', serif; font-size: 1.5rem;
    text-align: center; margin-bottom: 8px;
}

.auth-modal-desc {
    text-align: center; opacity: 0.6; font-size: 0.85rem; margin-bottom: 24px;
}

.auth-input-group {
    display: flex; gap: 8px;
}

.auth-input-group input {
    flex: 1; padding: 13px 16px; background: var(--midnight); border: 1px solid var(--silver);
    border-radius: 12px; color: var(--parchment); font-size: 0.95rem;
    font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s;
}
.auth-input-group input:focus { border-color: var(--coral); }

.auth-submit-btn {
    width: 48px; height: 48px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    color: var(--midnight); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s; flex-shrink: 0;
}
.auth-submit-btn:hover { transform: scale(1.05); }
.auth-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-error {
    color: #ef4444; font-size: 0.8rem; margin-top: 8px; text-align: center; min-height: 1.2em;
}

.auth-divider {
    text-align: center; margin: 20px 0; position: relative;
}
.auth-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: var(--border);
}
.auth-divider span {
    background: #1e293b; padding: 0 16px; position: relative;
    font-size: 0.8rem; opacity: 0.4;
}

.auth-modal-footer {
    text-align: center; font-size: 0.85rem; opacity: 0.6;
}
.auth-modal-footer a { color: var(--coral); text-decoration: none; font-weight: 600; }
.auth-modal-footer a:hover { text-decoration: underline; }

/* ===== USAGE BADGE ===== */
.usage-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    font-size: 0.8rem; font-weight: 500; white-space: nowrap;
}

.usage-plan {
    padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.usage-plan.free { background: rgba(255,255,255,0.1); color: var(--parchment); }
.usage-plan.pro { background: rgba(255,111,97,0.2); color: var(--coral); border: 1px solid rgba(255,111,97,0.3); }

.btn-login.logged-in {
    border-color: var(--coral); color: var(--coral); font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-nav > a, .btn-login { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

    .hero { padding: 130px 0 60px; }
    .hero h1 { font-size: 2.2rem; }

    .how-grid { flex-direction: column; align-items: center; }
    .how-arrow { display: none; }

    .features-grid { grid-template-columns: 1fr; }

    .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
    .price-card.featured { transform: none; }
    .pricing-toggle { flex-wrap: wrap; gap: 10px; }

    .preview-grid { grid-template-columns: 1fr; }
    .preview-pane:first-child { border-right: none; border-bottom: 1px solid var(--border); }

    .language-grid { grid-template-columns: 1fr; }

    .stats-grid { gap: 8px; }
    .stat-value { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .step-indicators { gap: 4px; }
    .step-line { width: 20px; }
    .step-label { font-size: 0.6rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-large { padding: 14px 28px; }
}
