:root {
    --primary-color: #0A2740;
    --accent-color: #00C9A7;
    --bg-color: #F8F9FA;
    --text-color: #212529;
    --light-gray: #E9ECEF;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #153a5d 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230A2740"/><path d="M10 10 L90 90 M90 10 L10 90" stroke="%23ffffff" stroke-width="0.5" opacity="0.05"/></svg>');
    opacity: 0.05;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}
.cta-button:hover {
    background: #00b392;
    transform: translateY(-2px);
}
.cta-button.secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.cta-button.secondary:hover {
    background: rgba(0,201,167,0.1);
}

/* Features */
.features, .how-it-works, .pricing, .code-samples, .faq, .cta-section {
    padding: 4rem 1rem;
}
.features h2, .how-it-works h2, .pricing h2, .code-samples h2, .faq h2, .cta-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    position: relative;
}
.features h2::after, .how-it-works h2::after, .pricing h2::after, .code-samples h2::after, .faq h2::after, .cta-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}
.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.feature-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}
.feature-card p {
    color: #555;
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works .steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.how-it-works .step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}
.how-it-works .steps > li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.how-it-works .steps h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: var(--primary-color);
}

/* Pricing */
.pricing-cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid var(--light-gray);
    transition: all 0.2s;
}
.pricing-card.recommended {
    border-color: var(--accent-color);
    transform: scale(1.03);
    z-index: 2;
}
.pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.pricing-card .period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.pricing-card ul {
    text-align: left;
    margin: 0 auto 1.5rem;
    max-width: 200px;
    padding-left: 1.2rem;
}
.pricing-card li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.pricing-card li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
}

/* Code Samples */
.code-samples {
    background: var(--light-gray);
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tablink {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}
.tablink.active, .tablink:hover {
    background: var(--white);
    color: var(--primary-color);
}
.tabcontent {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.tabcontent pre {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.9rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-question {
    background: var(--light-gray);
    padding: 1rem 1.5rem;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: "▾";
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
    padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem 1.5rem;
}
.faq-answer p {
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--white);
}
.cta-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}
#signup-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}
#signup-form input[type="email"] {
    flex: 1 1 250px;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
}
#signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
}
#signup-form button {
    flex: 0 0 auto;
    padding: 0.9rem 2rem;
}
.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2.5rem 1rem 1.5rem;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--white);
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.footer-social a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--white);
}
.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .features h2, .how-it-works h2, .pricing h2, .code-samples h2, .faq h2, .cta-section h2 { font-size: 1.6rem; }
    .cta-button { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    #signup-form { flex-direction: column; align-items: stretch; }
    #signup-form input[type="email"] { width: 100%; }
    #signup-form button { width: 100%; margin-top: 0.5rem; }
}