@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    --bg-color: #0b0f19;
    --surface-color: #111827;
    --surface-hover: #1f2937;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #c5a059;
    --accent-hover: #d1b375;
    --border-color: #374151;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; color: #ffffff; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #ffffff; font-family: 'Inter', sans-serif; }
p { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; }

.subtitle { display: block; margin-bottom: 2rem; max-width: 700px; }
.subtitle a { color: var(--accent); text-decoration: none; }
.subtitle a:hover { text-decoration: underline; }
.highlight { color: var(--accent); font-style: italic; }

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(11, 15, 25, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; letter-spacing: 2px; color: #fff; }
.logo span { color: var(--accent); }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 2px;
}

.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    color: #0b0f19;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1.5rem;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    line-height: 1.4;
    text-align: center;
}
.btn-primary:hover { background-color: var(--accent-hover); }

.btn-login {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 0.6rem 1.5rem !important;
    border-radius: 2px;
    transition: all 0.3s;
}
.btn-login:hover { background: var(--accent); color: #0b0f19 !important; }

/* Hero */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0 5%;
    padding-top: 80px;
    background-image: linear-gradient(to right, rgba(11, 15, 25, 1) 40%, rgba(11, 15, 25, 0)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}
.hero-content { max-width: 55%; }

/* Sections */
.services { padding: 8rem 5%; background-color: #0d1321; }
.blog-section, .a2a-section, .contacts-section { padding: 8rem 5%; }

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

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

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

.article { display: flex; flex-direction: column; gap: 1rem; }
.badge {
    align-self: flex-start;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article a, .a2a-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: auto;
}
.article a:hover { color: var(--accent-hover); }

/* A2A */
.a2a-section { background-color: #0d1321; }
.a2a-endpoints { margin-top: 2rem; max-width: 700px; }
.a2a-endpoints ul { list-style: none; margin-top: 1rem; }
.a2a-endpoints li { margin-bottom: 0.5rem; color: var(--text-muted); }
.a2a-endpoints code { background: var(--bg-color); padding: 0.2rem 0.5rem; border-radius: 2px; font-size: 0.85rem; color: var(--accent); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag { background: var(--bg-color); border: 1px solid var(--border-color); padding: 0.2rem 0.6rem; font-size: 0.75rem; border-radius: 2px; color: var(--text-muted); }

/* Contacts */
.contacts-section a { color: var(--accent); }

/* Messages */
.loading-msg, .empty-msg, .error-msg { color: var(--text-muted); font-style: italic; }
.error-msg { color: #f87171; }

/* Footer */
footer { padding: 4rem 5%; text-align: center; border-top: 1px solid var(--border-color); background-color: var(--surface-color); }
.footer-content p { font-size: 0.85rem; margin-top: 0.5rem; letter-spacing: 1px; text-transform: uppercase; color: var(--border-color); }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(11, 15, 25, 0.9); }
.modal-content {
    margin: 10% auto;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.close { position: absolute; right: 25px; top: 20px; font-size: 24px; cursor: pointer; color: var(--text-muted); z-index: 1001; }
.close:hover { color: white; }
.reader-body { white-space: pre-wrap; line-height: 1.6; margin-top: 1rem; color: var(--text-main); }

/* Dashboard */
.dashboard-page { padding-top: 100px; }
.dashboard-container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.header-panel { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-actions .btn-primary { margin-top: 0; padding: 0.7rem 1.5rem; font-size: 0.8rem; }
.header-actions .btn-primary:disabled { opacity: 0.5; cursor: wait; }
.leads-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.lead-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lead-info a { color: var(--accent); }
.contact-warning { color: var(--warning); font-size: 0.95rem; }
.lead-approved { opacity: 0.5; }
.lead-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--text-main); }
.btn-approve {
    background: var(--success);
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
}
.btn-approve:hover { background: #059669; }
.btn-approve:disabled { opacity: 0.5; cursor: not-allowed; }
.empty-state h3 { margin-bottom: 1rem; }

/* Trust bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 2.5rem 5%;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 1.5rem; color: var(--accent); font-family: 'Playfair Display', serif; }
.trust-item span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-btn { margin-top: 1.5rem; padding: 1rem 2rem; }

/* Pages */
.page-hero { padding: 8rem 5% 4rem; max-width: 1200px; margin: 0 auto; }
.page-intro { margin-bottom: 2.5rem; }
.page-intro .subtitle { margin-bottom: 0; }
.content-section { margin-top: 3rem; }
.content-section > h2 { margin-bottom: 1.5rem; }
.prose { max-width: 100%; margin-bottom: 2rem; }
.prose h2, .prose h4 { margin-top: 1.5rem; font-size: 1.35rem; border: none; display: block; color: #fff; }
.prose h4 { font-size: 1rem; margin-top: 1.25rem; }
.prose .lead { font-size: 1.2rem; color: var(--text-main); line-height: 1.7; }
.lead strong { color: #fff; }

.method-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.method-step { text-align: center; padding: 1.5rem; }
.step-num {
    display: inline-block;
    width: 2rem; height: 2rem; line-height: 2rem;
    background: var(--accent); color: #0b0f19;
    border-radius: 50%; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.75rem;
}
.method-step strong { display: block; color: #fff; margin-bottom: 0.5rem; }
.method-step p { font-size: 0.9rem; }

.two-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pull-quote { border-left: 3px solid var(--accent); margin: 2rem 0; }
.pull-quote p { font-size: 1.15rem; color: var(--text-main); font-style: italic; }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.cta-row .btn-primary, .cta-row .btn-secondary { margin-top: 0; }

.price-tag { color: var(--accent); font-size: 1.1rem; margin: 0.5rem 0 1rem; }
.limits-list li::before { content: "✕ "; color: #f87171; }
.need-card h3 { color: var(--accent); font-size: 1.1rem; }
.need-card em { font-size: 0.9rem; color: var(--text-muted); }

.numbered-list { margin: 1rem 0 0 1.2rem; color: var(--text-muted); }
.numbered-list li { padding: 0.4rem 0; }

.table-wrap { overflow-x: auto; padding: 1.5rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.compare-table th { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.compare-table td { color: var(--text-muted); }
.limits-box { border-color: var(--border-color); background: var(--bg-color); }
.limits-box h2, .limits-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    border: none;
    display: block;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.dd-levels { align-items: stretch; }

/* Offers */
.offer-toc {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center;
    margin-bottom: 2.5rem;
}
.toc-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    flex-shrink: 0;
}
.toc-links {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.toc-links a {
    color: var(--text-main);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.toc-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(197, 160, 89, 0.08);
}

.content-section .section-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    border: none;
    display: block;
    padding-bottom: 0;
    letter-spacing: -0.01em;
}
.section-header { margin-bottom: 1.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-desc { color: var(--text-muted); max-width: 600px; font-size: 1rem; }

.three-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.offer-card, .pricing-card.offer-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.offer-card.featured, .pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.15);
}
.card-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    width: 100%;
}
.card-actions .btn-primary,
.card-actions .btn-secondary,
.offer-card > .btn-primary,
.offer-card > .btn-secondary,
.pricing-card > .btn-primary,
.pricing-card > .btn-secondary {
    margin-top: 0;
    width: 100%;
    display: block;
}
.offer-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.offer-card h3 a { color: inherit; text-decoration: none; }
.offer-card h3 a:hover { color: var(--accent); }
.offer-card .feature-list { flex-grow: 1; }

.vertical-card .phase-note {
    display: block; margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted);
    font-style: italic;
}

.contact-form select {
    background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-main);
    padding: 0.8rem; border-radius: 2px; font-family: inherit; font-size: 1rem;
}
.contact-form select:focus { outline: none; border-color: var(--accent); }

.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li { padding: 0.4rem 0; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.feature-list li::before { content: "→ "; color: var(--accent); }

/* FAQ */
.faq-section { padding: 8rem 5%; }
.faq-list { max-width: 800px; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.faq-item summary { cursor: pointer; font-weight: 600; color: #fff; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 1rem; }

/* Contact */
.contact-grid { align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-form input, .contact-form textarea {
    background: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-main);
    padding: 0.8rem; border-radius: 2px; font-family: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn-primary { margin-top: 0; width: 100%; }
.form-status { font-size: 0.9rem; margin-top: 0.5rem; color: var(--accent); }

/* Footer */
.site-footer, footer .footer-nav {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-nav a:hover { color: var(--accent); }
.navbar .logo { text-decoration: none; color: inherit; }

/* Pricing */
.pricing-grid { margin-top: 2rem; }
.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.15);
}
.pricing-card .feature-list { flex-grow: 1; }
.price { font-size: 2.5rem; color: var(--accent); font-family: 'Playfair Display', serif; margin: 1rem 0; }
.price span { font-size: 1rem; color: var(--text-muted); }
.pricing-card .btn-primary, .pricing-card .btn-secondary { margin-top: auto; text-align: center; }
.need-badge { color: var(--accent); font-weight: 600; }

/* A2A page */
.a2a-meta { margin-bottom: 1rem; }
.code-panel { padding: 1.5rem 2rem; }
.endpoint-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
    padding: 0.75rem 0; border-bottom: 1px solid var(--border-color);
}
.endpoint-row:last-child { border-bottom: none; }
.endpoint-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); min-width: 120px;
}
.endpoint-url {
    background: var(--bg-color); padding: 0.35rem 0.75rem; border-radius: 2px;
    font-size: 0.85rem; color: var(--accent); flex: 1;
}
.btn-sm { padding: 0.45rem 1rem !important; font-size: 0.75rem !important; margin-top: 0 !important; }
.code-block {
    background: var(--bg-color); padding: 1.25rem; border-radius: 2px;
    overflow-x: auto; margin: 0; font-size: 0.8rem; line-height: 1.6;
    color: var(--text-muted); border: 1px solid var(--border-color);
}
.code-block code { font-family: ui-monospace, 'Cascadia Code', monospace; white-space: pre; }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11, 15, 25, 0.98);
        padding: 1.5rem 5%;
        border-bottom: 1px solid var(--border-color);
        gap: 1rem;
    }
    .nav-links.open { display: flex; }
    .hero { padding-top: 120px; }
    .hero-content { max-width: 100%; }
    h1 { font-size: 2.5rem; }
    .lead-card { flex-direction: column; align-items: flex-start; }
}
