/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

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

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

/* Navigation */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

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

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-tool,
.btn-pricing {
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--light-bg);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

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

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

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

.feature-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--secondary-color);
}

/* How It Works */
.how-it-works {
    background: var(--light-bg);
    padding: 5rem 0;
}

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

.step {
    text-align: center;
}

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

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

.step p {
    color: var(--secondary-color);
}

/* CTA Section */
.cta {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta .btn-primary:hover {
    background: var(--light-bg);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Tools Page */
.tools-section {
    padding: 4rem 0;
}

.tools-section.alt-bg {
    background: var(--light-bg);
}

.tools-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tool-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.tool-card p {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.btn-tool {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

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

/* Pricing Page */
.pricing-section {
    padding: 4rem 0;
}

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

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(37, 99, 235, 0.2);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-right: 0.25rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.price-period {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.75rem;
}

.pricing-features li.included::before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.pricing-features li.excluded::before {
    content: "✗";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.pricing-features li.excluded {
    color: var(--secondary-color);
}

.btn-pricing {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 0.875rem;
}

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

/* FAQ Section */
.faq-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.faq-item p {
    color: var(--secondary-color);
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    gap: 1.5rem;
}

.contact-method {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-method h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--secondary-color);
    margin: 0.25rem 0;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 0.875rem;
}

.response-time {
    background: var(--light-bg);
    padding: 3rem 0;
    text-align: center;
}

.response-time h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.response-time p {
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.legal-text h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.legal-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

.highlight-text {
    background: #fef3c7;
    padding: 1rem;
    border-left: 4px solid var(--warning-color);
    border-radius: 4px;
    font-weight: 500;
}

/* Developers Page */
.api-intro {
    padding: 4rem 0;
}

.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.api-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.api-info > p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.api-features {
    display: grid;
    gap: 1.5rem;
}

.api-feature h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.api-feature p {
    color: var(--secondary-color);
}

.api-code-sample {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.api-code-sample h3 {
    color: white;
    margin-bottom: 1rem;
}

.api-code-sample pre {
    overflow-x: auto;
}

.api-code-sample code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.api-endpoints {
    padding: 4rem 0;
    background: var(--light-bg);
}

.api-endpoints h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.endpoint-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.method.get {
    background: #dbeafe;
    color: #1e40af;
}

.method.post {
    background: #dcfce7;
    color: #166534;
}

.path {
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.endpoint-card > p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

details {
    margin-top: 1rem;
}

summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
}

summary:hover {
    text-decoration: underline;
}

.endpoint-details {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 6px;
}

.endpoint-details h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.endpoint-details pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.endpoint-details code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.endpoint-details ul {
    list-style: none;
    padding-left: 0;
}

.endpoint-details li {
    padding: 0.5rem 0;
}

.api-authentication {
    padding: 4rem 0;
}

.api-authentication h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.api-authentication > p {
    margin-bottom: 1.5rem;
}

.api-authentication pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.api-authentication h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.api-authentication ol {
    padding-left: 1.5rem;
}

.api-authentication li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.api-rate-limits {
    background: var(--light-bg);
    padding: 4rem 0;
}

.api-rate-limits h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.rate-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.rate-table th,
.rate-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rate-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.rate-table tr:last-child td {
    border-bottom: none;
}

.api-support {
    padding: 4rem 0;
}

.api-support h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.api-support > p {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

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

.support-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.support-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.support-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

.footer-bottom a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .contact-grid,
    .api-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features h2,
    .how-it-works h2 {
        font-size: 2rem;
    }

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

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

    .legal-text {
        padding: 2rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

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

    .nav-buttons {
        display: none;
    }
}