:root {
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --danger: #ef4444;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    sticky: top;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.pro-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: bold;
}

/* BUTTONS */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* HERO */
.hero {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}

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

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.code-example {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.arrow {
    font-size: 2rem;
    color: var(--primary);
}

/* SECTIONS */
.problem, .features, .how-it-works, .pricing, .cta {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.problem h2, .features h2, .how-it-works h2, .pricing h2, .cta h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.problem-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.problem-card, .feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3, .problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p, .problem-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    background: var(--primary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.highlighted {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 0;
    text-align: center;
    border-radius: 0.5rem;
}

.cta h2 {
    color: white;
    border: none;
}

.cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* FOOTER */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-note {
    margin-top: 0.5rem;
}

/* APP PAGE */
.app-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem 0;
    flex-grow: 1;
}

.converter-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-section {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.editor-header h3 {
    font-size: 1rem;
}

.editor-controls {
    display: flex;
    gap: 0.5rem;
}

textarea {
    flex-grow: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 200px;
}

textarea::placeholder {
    color: var(--text-muted);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

.status.success {
    color: var(--success);
}

.status.error {
    color: var(--error);
}

.converter-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.format-indicator {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tips-panel, .pro-panel {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.tips-panel h3, .pro-panel h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tips-content {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tips-content p {
    margin-bottom: 0.5rem;
}

.tips-content strong {
    color: var(--primary);
    display: block;
    margin-top: 1rem;
}

.pro-panel p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pro-code-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pro-code-section input {
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text);
    font-size: 0.875rem;
}

.pro-code-section input::placeholder {
    color: var(--text-muted);
}

.pro-code-section input:focus {
    outline: none;
    border-color: var(--primary);
}

.pro-code-section button {
    margin-top: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-visual {
        display: none;
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .pricing-card.highlighted {
        transform: scale(1);
    }

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