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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pro-status {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

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

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

.hero {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.problem {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.cta-button.large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.features, .use-cases, .comparison, .pricing, .faq, .cta-final {
    background: white;
    padding: 3rem 0;
}

.features h3, .comparison h3, .use-cases h3, .pricing h3, .faq h3, .cta-final h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

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

.feature {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: #667eea;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.comparison-table .ok {
    color: #27ae60;
    font-weight: bold;
}

.comparison-table .bad {
    color: #e74c3c;
}

.use-case-list {
    list-style: none;
    max-width: 700px;
    margin: 2rem auto;
}

.use-case-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

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

.plan {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.plan.pro {
    border-color: #667eea;
    background: white;
}

.plan h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.plan ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan li {
    padding: 0.5rem 0;
    color: #666;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.faq-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #666;
}

.cta-final {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-final h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

.app-page {
    background: #f5f5f5;
}

.app-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-left: 1rem;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
}

.sidebar h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.endpoint-box {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #eee;
    display: flex;
    gap: 0.5rem;
}

#endpointUrl {
    flex: 1;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

#endpointUrl:focus {
    outline: none;
}

.sidebar label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.sidebar select, .sidebar input {
    width: 100%;
    padding: 0.4rem;
    margin-top: 0.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
}

.sidebar hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #eee;
}

.app-main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-right: 1rem;
}

.app-main h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.app-main h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.input-section, .results-section {
    margin-bottom: 2rem;
}

.webhooks-list {
    border: 2px solid #eee;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 300px;
}

.webhook-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.webhook-item:hover {
    background: #f9f9f9;
}

.webhook-item.active {
    background: #e8eaf6;
    border-left: 4px solid #667eea;
}

.webhook-timestamp {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
}

.payload-container {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.payload-display {
    padding: 1.5rem;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.placeholder {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.button-small {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.button-small:hover {
    background: rgba(255,255,255,0.3);
}

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

    .sidebar {
        margin-left: 0;
    }

    .app-main {
        margin-right: 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
}
