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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
    background: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #4A55A2;
    color: #fff;
    border-color: #4A55A2;
}

.btn-primary:hover {
    background: #3a4592;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 162, 0.3);
}

.btn-outline {
    background: transparent;
    color: #4A55A2;
    border-color: #4A55A2;
}

.btn-outline:hover {
    background: #4A55A2;
    color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

.btn-nav {
    background: #4A55A2;
    color: #fff;
    padding: 10px 24px;
    font-size: 14px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
}

.logo span {
    color: #4A55A2;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4A55A2;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
}

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

.badge {
    display: inline-block;
    background: #e8ebff;
    color: #4A55A2;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

.highlight {
    color: #4A55A2;
}

.hero-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 32px;
    max-width: 520px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat strong {
    display: block;
    font-size: 28px;
    color: #4A55A2;
}

.stat span {
    font-size: 13px;
    color: #888;
}

/* ===== CODE WINDOW ===== */
.code-window {
    background: #1e1e2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.code-header {
    background: #2a2a3e;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-title {
    margin-left: 12px;
    color: #888;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

.code-window pre {
    padding: 20px;
    margin: 0;
}

.code-window code {
    color: #a6e3a1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-response {
    border-top: 1px solid #333;
}

.response-label {
    display: block;
    padding: 10px 20px 0;
    color: #27c93f;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
}

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

.feature-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    border-color: #4A55A2;
    box-shadow: 0 10px 40px rgba(74, 85, 162, 0.1);
    transform: translateY(-4px);
}

.feature-card.featured {
    border-color: #4A55A2;
    box-shadow: 0 10px 40px rgba(74, 85, 162, 0.15);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #4A55A2;
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-blue { background: #e8ebff; color: #4A55A2; }
.icon-green { background: #e6f9ed; color: #22c55e; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-orange { background: #fff3e0; color: #f97316; }

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    margin-bottom: 16px;
    font-size: 15px;
}

.feature-list {
    margin-bottom: 20px;
}

.feature-list li {
    padding: 4px 0;
    font-size: 14px;
    color: #555;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.endpoint-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    margin-right: 6px;
    margin-top: 4px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 100px 0;
    background: #f8f9ff;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #4A55A2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step p {
    color: #666;
    font-size: 15px;
}

.step-arrow {
    font-size: 32px;
    color: #ccc;
    margin-top: -40px;
}

/* ===== FORMATS ===== */
.formats {
    padding: 100px 0;
}

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

.format-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    transition: all 0.3s;
}

.format-card:hover {
    border-color: #4A55A2;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.format-icon {
    font-size: 32px;
    font-weight: 800;
    color: #4A55A2;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.format-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.format-card p {
    color: #666;
    font-size: 15px;
}

/* ===== PRICING ===== */
.pricing {
    padding: 100px 0;
    background: #f8f9ff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.pricing-single {
    display: flex;
    justify-content: center;
}

.pricing-single .price-card {
    max-width: 440px;
    width: 100%;
}

.price-note {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.price-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.price-featured {
    border: 2px solid #4A55A2;
    box-shadow: 0 15px 50px rgba(74, 85, 162, 0.15);
    transform: scale(1.05);
}

.price-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #4A55A2;
    color: #fff;
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.price-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.price {
    margin-bottom: 8px;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
}

.amount {
    font-size: 56px;
    font-weight: 800;
    color: #1a1a2e;
}

.period {
    font-size: 16px;
    color: #888;
}

.price-desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

.price-features {
    text-align: left;
    margin-bottom: 32px;
}

.price-features li {
    padding: 8px 0;
    font-size: 15px;
    color: #444;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.price-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4A55A2;
    font-weight: bold;
}

/* ===== DOCS TABLE ===== */
.docs {
    padding: 100px 0;
}

.docs-table-wrapper {
    overflow-x: auto;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.docs-table thead {
    background: #1e1e2e;
    color: #fff;
}

.docs-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.docs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.docs-table tbody tr:hover {
    background: #f8f9ff;
}

.docs-table code {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #4A55A2;
}

.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.method.post {
    background: #e8ebff;
    color: #4A55A2;
}

.method.get {
    background: #e6f9ed;
    color: #22c55e;
}

/* ===== BENEFITS ===== */
.benefits {
    padding: 80px 0;
    background: #1e1e2e;
    color: #fff;
}

.benefits .section-header h2 {
    color: #fff;
}

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

.benefit {
    padding: 24px;
    border: 1px solid #333;
    border-radius: 12px;
    transition: all 0.3s;
}

.benefit:hover {
    border-color: #4A55A2;
    background: rgba(74, 85, 162, 0.1);
}

.benefit strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit p {
    color: #aaa;
    font-size: 14px;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #4A55A2 0%, #3a4592 100%);
    color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.contact .btn-primary {
    background: #fff;
    color: #4A55A2;
    border-color: #fff;
}

.contact .btn-primary:hover {
    background: #f0f0f0;
}

.contact .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.contact .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 12px;
    color: #888;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #888;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4A55A2;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 13px;
    color: #666;
}

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

    .hero h1 {
        font-size: 36px;
    }

    .hero-code {
        display: none;
    }

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

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

    .price-featured {
        transform: none;
    }

    .price-featured:hover {
        transform: translateY(-4px);
    }

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

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

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .btn-nav {
        display: none;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

/* ===== REPORT SHOWCASE ===== */
.report-showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0fdf4 100%);
}

.report-showcase-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.report-showcase-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1E293B;
    margin: 16px 0 12px;
    line-height: 1.2;
}

.report-showcase-desc {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 32px;
    line-height: 1.7;
}

.report-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.report-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.report-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.report-feature-item strong {
    display: block;
    font-size: 14px;
    color: #1E293B;
    margin-bottom: 2px;
}

.report-feature-item span {
    font-size: 13px;
    color: #64748B;
    line-height: 1.4;
}

.report-showcase-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Report Preview Card */
.report-preview-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.report-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #10B981);
}

.report-preview-header {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 24px;
}

.report-preview-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.report-score-number {
    font-size: 56px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1;
}

.report-score-label {
    font-size: 20px;
    color: #94A3B8;
    font-weight: 500;
}

.report-score-bar {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.report-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.report-score-tag {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.report-preview-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #F1F5F9;
}

.report-preview-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 13px;
    color: #64748B;
}

.report-preview-footer {
    text-align: center;
    font-size: 11px;
    color: #CBD5E1;
    margin-top: 20px;
    letter-spacing: 0.5px;
}

/* ===== TABLET (768px) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Report Showcase */
    .report-showcase {
        padding: 48px 0;
    }
    .report-showcase-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .report-showcase-text h2 {
        font-size: 26px;
    }
    .report-showcase-desc {
        font-size: 14px;
    }
    .report-showcase-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .report-preview-card {
        padding: 24px 20px;
    }
    .report-score-number {
        font-size: 42px;
    }

    /* Sections */
    .section-header h2 {
        font-size: 24px;
    }
    .section-header p {
        font-size: 14px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .feature-card {
        padding: 24px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        gap: 16px;
    }

    /* Docs table */
    .docs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .docs-table {
        min-width: 500px;
    }

    /* Formats */
    .formats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* How it works */
    .steps {
        flex-direction: column;
        gap: 24px;
    }
    .step-arrow {
        display: none;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-links {
        text-align: center;
    }
}

/* ===== MOBILE (480px) ===== */
@media (max-width: 480px) {
    /* Navbar */
    .navbar {
        padding: 0;
    }
    .nav-container {
        padding: 12px 16px;
        height: 56px;
    }
    .nav-container > div[style] {
        display: none !important;
    }
    .logo {
        font-size: 20px;
    }

    /* Hero */
    .hero {
        padding: 80px 0 40px;
    }
    .hero h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    .hero-description {
        font-size: 14px;
    }
    .hero-buttons {
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 12px !important;
        font-size: 14px !important;
    }
    .hero-stats {
        gap: 12px;
    }
    .hero-stats .stat strong {
        font-size: 20px;
    }

    /* Report Showcase */
    .report-showcase {
        padding: 32px 0;
    }
    .report-showcase-text h2 {
        font-size: 22px;
    }
    .report-features-list {
        gap: 14px;
        margin-bottom: 24px;
    }
    .report-feature-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .report-feature-item strong {
        font-size: 13px;
    }
    .report-feature-item span {
        font-size: 12px;
    }
    .report-score-number {
        font-size: 36px;
    }
    .report-score-label {
        font-size: 16px;
    }

    /* Features */
    .features {
        padding: 40px 0;
    }
    .feature-card {
        padding: 20px;
    }
    .feature-card h3 {
        font-size: 16px;
    }
    .feature-card p {
        font-size: 13px;
    }
    .feature-list li {
        font-size: 12px;
    }
    .endpoint-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Formats */
    .formats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Pricing */
    .price-card {
        padding: 24px;
    }
    .price .amount {
        font-size: 40px;
    }
    .price-features li {
        font-size: 13px;
    }

    /* How it works */
    .how-it-works {
        padding: 40px 0;
    }
    .step h3 {
        font-size: 16px;
    }
    .step p {
        font-size: 13px;
    }

    /* Docs */
    .docs {
        padding: 40px 0;
    }

    /* Contact */
    .contact h2 {
        font-size: 22px;
    }
    .contact p {
        font-size: 14px;
    }
    .contact-buttons {
        gap: 10px;
    }
    .contact-buttons .btn {
        width: 100%;
        text-align: center;
        font-size: 14px !important;
    }

    /* General sections */
    section {
        padding: 40px 0;
    }
    .badge {
        font-size: 12px;
        padding: 4px 12px;
    }
}
