/* ============================================
   TransformThisPDF - Styles
   Color Palette: Red (#DC2626) & White
   Font: Inter
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --red-50: #FEF2F2;
    --red-100: #FEE2E2;
    --red-200: #FECACA;
    --red-300: #FCA5A5;
    --red-400: #F87171;
    --red-500: #EF4444;
    --red-600: #DC2626;
    --red-700: #B91C1C;
    --red-800: #991B1B;
    --red-900: #7F1D1D;
    --red-950: #450A0A;

    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-red: 0 4px 14px rgba(220, 38, 38, 0.3);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input {
    font-family: inherit;
    font-size: inherit;
}

/* ===== UTILITY ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-600);
    color: white;
    padding: 8px 24px;
    border-radius: var(--radius-md);
    z-index: 10000;
    transition: top var(--transition);
}

.skip-nav:focus {
    top: 10px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--red-600), var(--red-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-600), var(--red-700));
    color: white;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--red-600);
    border: 2px solid var(--red-200);
}

.btn-outline:hover {
    background: var(--red-50);
    border-color: var(--red-400);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.logo-accent {
    color: var(--red-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--red-600);
    background: var(--red-50);
}

.nav-link.active {
    color: var(--red-600);
    background: var(--red-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}

.lang-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 100;
    overflow: hidden;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: background var(--transition);
}

.lang-option:hover {
    background: var(--red-50);
    color: var(--red-600);
}

.lang-option.active {
    background: var(--red-50);
    color: var(--red-600);
    font-weight: 600;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, var(--red-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--red-100);
    color: var(--red-700);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-illustration {
    position: relative;
    width: 360px;
    height: 400px;
}

.hero-pdf-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

.hero-pdf-visual svg {
    width: 200px;
    height: auto;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border: 1px solid var(--gray-100);
}

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card .card-icon svg {
    width: 20px;
    height: 20px;
}

.merge-icon { background: var(--red-100); color: var(--red-600); }
.merge-icon svg { stroke: var(--red-600); }
.split-icon { background: #FEF3C7; color: #D97706; }
.split-icon svg { stroke: #D97706; }
.compress-icon { background: #DBEAFE; color: #2563EB; }
.compress-icon svg { stroke: #2563EB; }

.card-1 { top: 20px; left: 10px; animation-delay: 0s; }
.card-2 { top: 140px; right: 0; animation-delay: -2s; }
.card-3 { bottom: 40px; left: 30px; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ===== AD CONTAINERS ===== */
.ad-container {
    margin: 32px auto;
}

.ad-placeholder {
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.ad-banner-top .ad-placeholder,
.ad-banner-middle .ad-placeholder,
.ad-banner-articles .ad-placeholder,
.ad-banner-bottom .ad-placeholder {
    min-height: 90px;
}

/* ===== SECTIONS COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: var(--red-100);
    color: var(--red-700);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.badge-merge { background: var(--red-100); color: var(--red-700); }
.badge-split { background: #FEF3C7; color: #92400E; }
.badge-compress { background: #DBEAFE; color: #1E40AF; }

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== TOOLS OVERVIEW ===== */
.tools-overview {
    padding: 80px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-card {
    background: white;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
    display: block;
}

.tool-card:hover {
    border-color: var(--red-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tool-icon svg {
    width: 28px;
    height: 28px;
}

.tool-icon-merge { background: var(--red-100); }
.tool-icon-merge svg { stroke: var(--red-600); }
.tool-icon-split { background: #FEF3C7; }
.tool-icon-split svg { stroke: #D97706; }
.tool-icon-compress { background: #DBEAFE; }
.tool-icon-compress svg { stroke: #2563EB; }

.tool-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tool-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red-600);
}

/* ===== TOOL SECTIONS ===== */
.tool-section {
    padding: 80px 0;
}

.tool-section-alt {
    background: var(--gray-50);
}

.tool-workspace {
    max-width: 700px;
    margin: 0 auto;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--red-200);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    background: var(--red-50);
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--red-400);
    background: var(--red-100);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-icon {
    margin: 0 auto 16px;
    width: 64px;
    height: 64px;
}

.upload-icon svg {
    width: 64px;
    height: 64px;
}

.upload-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.upload-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

/* File List */
.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all var(--transition);
    cursor: grab;
}

.file-item:hover {
    border-color: var(--red-200);
    box-shadow: var(--shadow-sm);
}

.file-item.dragging {
    opacity: 0.5;
    border-color: var(--red-400);
}

.file-item-icon {
    width: 36px;
    height: 36px;
    background: var(--red-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--red-600);
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.file-item-drag {
    color: var(--gray-300);
    cursor: grab;
    flex-shrink: 0;
}

.file-item-remove {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
    flex-shrink: 0;
}

.file-item-remove:hover {
    background: var(--red-100);
    color: var(--red-600);
}

/* Tool Actions */
.tool-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Progress Bar */
.progress-bar {
    margin-top: 24px;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-500), var(--red-600));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red-600);
}

/* Result Area */
.result-area {
    margin-top: 24px;
    text-align: center;
}

.result-success {
    padding: 32px;
    background: #F0FDF4;
    border: 2px solid #BBF7D0;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.result-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #166534;
}

/* Split Options */
.split-options {
    margin-top: 24px;
}

.split-info {
    padding: 16px;
    background: var(--red-50);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.split-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-content {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.radio-card input:checked + .radio-content {
    border-color: var(--red-400);
    background: var(--red-50);
}

.radio-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.radio-content p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.range-input {
    margin-top: 12px;
}

.range-input label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.input-field:focus {
    border-color: var(--red-400);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Compress Options */
.compress-info {
    padding: 16px;
    background: var(--red-50);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 80px 0;
    background: var(--gray-50);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-xl);
    position: relative;
    border: 1px solid var(--gray-100);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--red-600);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--red-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 16px;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--red-600);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== ARTICLES ===== */
.articles-section {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.article-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-image {
    height: 180px;
    overflow: hidden;
}

.article-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--red-50);
    color: var(--red-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content > p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-expanded {
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    margin-top: 12px;
}

.article-expanded h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 16px 0 8px;
}

.article-expanded h4:first-child {
    margin-top: 0;
}

.article-expanded p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 8px;
}

.article-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red-600);
    transition: color var(--transition);
    padding: 0;
}

.article-read-more:hover {
    color: var(--red-700);
}

/* ===== FEATURES ===== */
.features-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--red-50) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--red-200);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--red-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--red-600);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item[open] {
    border-color: var(--red-200);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--red-500);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-item[open] .faq-question {
    color: var(--red-600);
}

.faq-answer {
    padding: 0 20px 18px;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 16px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--red-400);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-langs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-lang-btn {
    font-size: 0.8rem;
    color: var(--gray-500);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.footer-lang-btn:hover {
    color: var(--red-400);
    background: var(--gray-800);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--red-600);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--red-700);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .tools-grid,
    .steps-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 1000;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 100px 0 40px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        margin: 0 auto 24px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        width: 280px;
        height: 300px;
    }

    /* Grids */
    .tools-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .split-mode {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section-title {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-langs {
        justify-content: center;
    }

    /* Upload */
    .upload-zone {
        padding: 32px 20px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .floating-card {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .floating-card .card-icon {
        width: 32px;
        height: 32px;
    }

    .tool-actions {
        flex-direction: column;
    }

    .tool-actions .btn {
        width: 100%;
    }

    .ad-placeholder {
        min-height: 60px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header, .footer, .ad-container, .scroll-top, .upload-zone, .tool-actions {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .section-title {
        font-size: 18pt;
    }
}

/* ===== DARK MODE PREFERENCE (optional enhancement) ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
