:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --gradient-main: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

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

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: background 0.3s;
}

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

.btn-primary.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trust-badges i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* Code Window */
.code-window {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.window-header {
    background: #0f172a;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #22c55e;
}

.window-body {
    padding: 1.5rem;
}

.window-body pre {
    font-family: 'JetBrains Mono', monospace;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.key {
    color: #60a5fa;
}

.string {
    color: #a5f3fc;
}

/* Features */
.features {
    padding: 100px 0;
    background: #0b1120;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Playground */
.playground {
    padding: 100px 0;
}

.playground-interface {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: 600px;
}

.editor-pane,
.action-pane {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pane-header {
    background: #0f172a;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#jsonInput {
    flex: 1;
    background: #1e293b;
    border: none;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    padding: 1.5rem;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}

.control-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.status-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.hidden {
    display: none;
}

.btn-success {
    background: #10b981;
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    display: block;
}

/* Docs */
.docs {
    padding: 100px 0;
    background: #0b1120;
}

.docs-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0f172a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.method {
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.post {
    background: #10b981;
    color: #064e3b;
}

.url {
    color: var(--text-main);
    word-break: break-all;
    overflow-wrap: break-word;
}

.endpoint-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.code-block {
    background: #0f172a;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* Pricing */
.pricing {
    padding: 100px 0;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

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

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.features-list i {
    color: var(--primary);
}

.micro-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: #020617;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.creator {
    margin-top: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal h2 {
    margin-bottom: 0.5rem;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.key-display {
    background: #0f172a;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border: 1px solid var(--primary);
}

.key-display code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
}

.key-display i {
    cursor: pointer;
    color: var(--text-muted);
}

.key-display i:hover {
    color: white;
}

.small-note {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Navbar */
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .trust-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Sections Padding */
    .features,
    .playground,
    .docs,
    .pricing,
    .inspiration {
        padding: 60px 0;
    }

    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Playground */
    .playground-interface {
        grid-template-columns: 1fr;
        height: auto;
    }

    .editor-pane {
        height: 400px;
    }

    .action-pane {
        height: auto;
        min-height: 300px;
    }

    /* Docs */
    .docs-container {
        padding: 1.5rem;
    }

    .endpoint {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .link-group {
        text-align: center;
    }

    /* Modals */
    .modal-content {
        width: 90%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content.large {
        width: 95%;
        height: 90vh;
    }
}

/* Smooth Scroll & Animations */
html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Large Modal Styles */
.modal-content.large {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-body-scroll {
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 1rem;
}

.modal-body-scroll h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.modal-body-scroll h3:first-child {
    margin-top: 0;
}

.modal-body-scroll p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Scrollbar for modal */
.modal-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.code-block.hidden {
    display: none;
}

.code-block.active {
    display: block;
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 0;
    background: #0b1120;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header i {
    transition: transform 0.3s;
    color: var(--text-muted);
}

.accordion-header.active i {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-body p {
    padding: 1.5rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Inspiration Section */
.inspiration {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f172a);
    position: relative;
}

.inspiration-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.inspiration-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.inspiration h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 2.5rem;
}

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

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    text-align: left;
}

.author-info .name {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info .role {
    display: block;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    .inspiration-content {
        padding: 2rem;
    }

    .story-text {
        font-size: 1.1rem;
    }
}