/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    color: #e0e0e8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px;
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 4px;
}
.logo-icon { font-size: 1.2rem; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: #888;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 10px; font-weight: 600;
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
    border: none;
}
.btn-premium {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}
.btn-premium:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.4); }
.btn-primary {
    background: #6366f1; color: #fff; padding: 14px 32px;
    font-size: 1rem; border-radius: 12px;
}
.btn-primary:hover { background: #5558e6; transform: translateY(-1px); }
.btn-premium-large {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; padding: 16px 40px; font-size: 1.1rem;
    border-radius: 12px; display: inline-block; margin-top: 16px;
}
.btn-premium-large:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.4); }

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 60%);
}
.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.15;
    letter-spacing: -1.5px; margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #a78bfa, #f472b6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem; color: #888; max-width: 600px; margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-search {
    position: relative; max-width: 560px; margin: 0 auto 32px;
}
.hero-search input {
    width: 100%; padding: 16px 20px 16px 48px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; font-size: 1rem; color: #fff;
    font-family: inherit; outline: none; transition: all 0.2s;
}
.hero-search input:focus {
    border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.hero-search input::placeholder { color: #555; }
.search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 1.1rem; pointer-events: none;
}
.trust-badges {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.trust-badges span {
    font-size: 0.85rem; color: #666; font-weight: 500;
}

/* ===== TOOL SECTIONS ===== */
.tool-section { padding: 60px 0 20px; }
.section-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.section-icon { font-size: 2rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; }
.section-header p { color: #666; font-size: 0.95rem; margin-top: 2px; }

/* ===== TOOL CARDS ===== */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.tool-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 24px;
    transition: all 0.25s; position: relative; cursor: pointer;
    display: block;
}
.tool-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.tool-icon {
    font-size: 2rem; margin-bottom: 12px; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(99,102,241,0.1); border-radius: 12px;
    font-weight: 700;
}
.tool-card h3 {
    font-size: 1.05rem; font-weight: 600; margin-bottom: 6px;
}
.tool-card p { font-size: 0.85rem; color: #666; line-height: 1.5; }
.tool-badge {
    position: absolute; top: 16px; right: 16px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px; letter-spacing: 0.5px;
}
.tool-badge.free { background: rgba(34,197,94,0.15); color: #22c55e; }
.tool-badge.premium { background: rgba(99,102,241,0.15); color: #818cf8; }

/* ===== PREMIUM CTA ===== */
.premium-cta { padding: 80px 0; text-align: center; }
.premium-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 24px; padding: 60px 40px; max-width: 600px; margin: 0 auto;
}
.premium-card h2 { font-size: 2rem; margin-bottom: 12px; }
.premium-card > p { color: #888; font-size: 1.05rem; margin-bottom: 24px; }
.premium-price { margin-bottom: 24px; }
.price { font-size: 3rem; font-weight: 800; }
.period { font-size: 1.1rem; color: #666; }
.premium-features {
    list-style: none; text-align: left; max-width: 320px; margin: 0 auto;
}
.premium-features li {
    padding: 8px 0; font-size: 0.95rem; color: #aaa;
}

/* ===== SEO CONTENT ===== */
.seo-content { padding: 60px 0 80px; text-align: center; }
.seo-content h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 40px; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px; text-align: left;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: #666; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: #555; font-size: 0.9rem; margin-top: 8px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.footer-links a { display: block; font-size: 0.85rem; color: #555; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 24px; }
.footer-bottom p { font-size: 0.8rem; color: #444; text-align: center; }

/* ===== TOOL PAGE LAYOUT ===== */
.tool-page { padding: 100px 0 60px; min-height: 80vh; }
.tool-page-header { text-align: center; margin-bottom: 40px; }
.tool-page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.tool-page-header p { color: #666; font-size: 1.05rem; }
.tool-workspace {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 40px; max-width: 800px; margin: 0 auto;
}
.drop-zone {
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 16px; padding: 60px 24px;
    text-align: center; cursor: pointer;
    transition: all 0.2s; position: relative;
}
.drop-zone:hover, .drop-zone.dragover {
    border-color: #6366f1;
    background: rgba(99,102,241,0.05);
}
.drop-zone-icon { font-size: 3rem; margin-bottom: 12px; }
.drop-zone h3 { font-size: 1.1rem; margin-bottom: 8px; }
.drop-zone p { color: #555; font-size: 0.85rem; }
.drop-zone input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.file-list { margin-top: 20px; }
.file-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: rgba(255,255,255,0.04);
    border-radius: 10px; margin-bottom: 8px;
}
.file-item-info { display: flex; align-items: center; gap: 12px; }
.file-item-name { font-size: 0.9rem; font-weight: 500; }
.file-item-size { font-size: 0.8rem; color: #555; }
.file-item-remove {
    background: none; border: none; color: #ef4444; cursor: pointer;
    font-size: 1.2rem; padding: 4px 8px; border-radius: 6px;
}
.file-item-remove:hover { background: rgba(239,68,68,0.1); }
.action-bar {
    margin-top: 24px; display: flex; justify-content: center; gap: 12px;
}
.result-area {
    margin-top: 24px; padding: 20px; background: rgba(34,197,94,0.05);
    border: 1px solid rgba(34,197,94,0.2); border-radius: 12px;
    text-align: center; display: none;
}
.result-area.visible { display: block; }
.result-area h3 { color: #22c55e; margin-bottom: 8px; }
.progress-bar {
    width: 100%; height: 6px; background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden; margin-top: 16px; display: none;
}
.progress-bar.visible { display: block; }
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 3px; width: 0; transition: width 0.3s;
}

/* ===== TEXT TOOL LAYOUT ===== */
.text-workspace {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.text-workspace.single { grid-template-columns: 1fr; }
.text-panel { position: relative; }
.text-panel label {
    display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: #888;
}
.text-panel textarea {
    width: 100%; min-height: 300px; padding: 16px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; color: #e0e0e8; font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem; resize: vertical; outline: none; line-height: 1.6;
}
.text-panel textarea:focus { border-color: #6366f1; }
.copy-btn {
    position: absolute; top: 36px; right: 8px;
    background: rgba(255,255,255,0.08); border: none; color: #888;
    padding: 6px 12px; border-radius: 8px; font-size: 0.75rem;
    cursor: pointer; font-weight: 600;
}
.copy-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.options-bar {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
    justify-content: center;
}
.option-group {
    display: flex; align-items: center; gap: 8px;
}
.option-group label { font-size: 0.85rem; color: #888; white-space: nowrap; }
.option-group select, .option-group input[type="number"] {
    padding: 8px 12px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: #e0e0e8; font-family: inherit; font-size: 0.85rem; outline: none;
}
.option-group select:focus, .option-group input[type="number"]:focus {
    border-color: #6366f1;
}

/* ===== QR SPECIFIC ===== */
.qr-preview {
    display: flex; justify-content: center; padding: 32px;
    background: #fff; border-radius: 12px; margin-top: 20px;
}
.qr-options { margin-top: 20px; }

/* ===== AD PLACEHOLDER ===== */
.ad-slot {
    padding: 16px; text-align: center; margin: 24px 0;
    background: rgba(255,255,255,0.02); border-radius: 12px;
    min-height: 90px; display: flex; align-items: center; justify-content: center;
    color: #333; font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .tool-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .text-workspace { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tool-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .trust-badges { flex-direction: column; gap: 8px; }
}
