/* ==========================================================================
   Global Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #0A47B8;
    --primary-hover: #083790;
    --secondary-bg: #EFF4FF;
    --text-main: #1F2937;
    --text-light: #4B5563;
    --bg-main: #FFFFFF;
    --bg-alt: #F9FAFB;
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-light); margin-bottom: 15px; }
a { text-decoration: none; color: var(--primary-color); transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

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

.cta-section {
    background-color: var(--secondary-bg);
    text-align: center;
    border-radius: 24px;
    margin: 40px 24px 80px;
    padding: 80px 20px;
}

.cta-section h2 { margin-bottom: 20px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

/* Hamburger checkbox - hidden */
.nav-toggle {
    display: none;
}

/* Hamburger icon label - hidden on desktop */
.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Animate hamburger to X when checked */
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
}

.logo img {
    height: 32px;
    width: auto;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
    order: 3;
    margin-left: auto;
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--primary-color);
}

.nav-cta {
    margin-left: auto;
    white-space: nowrap;
    padding: 8px 20px !important;
    font-size: 0.9rem;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
    background-color: var(--secondary-bg);
}

.badge {
    display: inline-block;
    background-color: var(--secondary-bg);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
}

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

.hero-content p {
    font-size: 1.15rem;
    max-width: 500px;
}

.hero-image img {
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

.card img {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat p {
    font-weight: 500;
    color: var(--text-main);
}

/* ==========================================================================
   Roadmap Timeline
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 3px solid var(--border-color);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-main);
}

.timeline-item h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-item h3 .badge {
    margin: 0;
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* ==========================================================================
   Forms (Contact Page)
   ========================================================================== */
form label {
    font-weight: 600;
    color: var(--text-main);
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px var(--secondary-bg);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #0f172a;
    padding: 70px 0 40px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.footer-brand {
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: inline-flex;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.6;
    margin: 0;
}

.footer-divider {
    border: none;
    border-top: 1px solid #1e293b;
    margin: 48px 0 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p,
.footer-bottom a {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: #fff; }

footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Utility Classes (replaces inline styles)
   ========================================================================== */
.text-center { text-align: center; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }
.font-lg { font-size: 1.1rem; }
.font-xl { font-size: 2rem; }
.stars { font-size: 2rem; margin-bottom: 10px; }

/* ==========================================================================
   Active Navigation Link
   ========================================================================== */
nav a[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   FAQ Accordion (details/summary)
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    list-style: none;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section-title:first-child { margin-top: 0; }

/* ==========================================================================
   Pricing Comparison Table
   ========================================================================== */
.pricing-table-wrap {
    overflow-x: auto;
    margin-top: 60px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 540px;
}

/* Sticky feature-name column on mobile */
.pricing-table th:first-child,
.pricing-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-main);
    position: sticky;
    left: 0;
    background: var(--bg-main);
    z-index: 1;
    min-width: 160px;
}

.pricing-table th,
.pricing-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

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

/* Header row */
.pricing-table thead tr {
    border-bottom: 2px solid var(--border-color);
}

.pricing-table thead th {
    background-color: var(--bg-alt);
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 20px 18px;
    white-space: nowrap;
}

.pricing-table thead th:first-child {
    background-color: var(--bg-alt);
    border-radius: 16px 0 0 0;
}

.pricing-table thead th:last-child {
    border-radius: 0 16px 0 0;
}

.pricing-table thead th small {
    display: block;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 3px;
}

/* Highlighted Professional column */
.pricing-table thead th.highlight {
    background-color: var(--secondary-bg);
    color: var(--primary-color);
    border-top: 3px solid var(--primary-color);
}

.pricing-table thead th.highlight small { color: var(--primary-color); opacity: 0.75; }

.pricing-table td.highlight-col {
    background-color: #f8f9ff;
}

/* Hover rows */
.pricing-table tbody tr:hover td { background-color: var(--bg-alt); }
.pricing-table tbody tr:hover td.highlight-col { background-color: #eff4ff; }

/* Sticky col must follow hover bg */
.pricing-table tbody tr:hover td:first-child { background-color: var(--bg-alt); }

/* Check / dash */
.pricing-table .check {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}
.pricing-table .dash { color: #d1d5db; font-size: 1.1rem; }

/* Category divider rows */
.pricing-table .category-row td {
    background-color: #f1f5f9;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-light);
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table .category-row td:first-child {
    background-color: #f1f5f9;
}

/* ==========================================================================
   Disabled / Coming Soon Button
   ========================================================================== */
.btn-disabled {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    background-color: var(--bg-alt);
    color: var(--text-light);
    border: 2px solid var(--border-color);
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   Footer Columns
   ========================================================================== */
.footer-body {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 40px;
    align-items: start;
}

.footer-columns {
    display: contents;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-input::placeholder {
    color: #9ca3af;
}

textarea.form-input {
    resize: vertical;
    min-height: 130px;
}

.form-status {
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 22px;
}

.form-status.success { color: #16a34a; }
.form-status.error   { color: #dc2626; }

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 20px auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* Show hamburger icon */
    .nav-toggle-label {
        display: flex !important;
        flex-shrink: 0;
        order: 2;
        margin-left: auto;
    }

    /* Logo takes available space */
    .logo {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

    /* Hide nav by default on mobile */
    nav {
        display: none !important;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        margin-top: 10px;
        margin-left: 0;
    }

    nav a {
        display: block;
        padding: 12px 10px 12px 0;
        border-bottom: 1px solid var(--bg-alt);
        text-align: right;
    }

    /* Show nav when hamburger is checked */
    .nav-toggle:checked ~ nav {
        display: flex !important;
    }

    .nav-cta {
        margin-left: 0;
    }

    .cta-section {
        margin: 40px 10px;
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    /* Prevent iOS zoom on form inputs */
    form input,
    form textarea,
    form select {
        font-size: 16px;
    }
}
/* Blog page utilities */
.blog-featured-title { font-size: 1.8rem; margin-bottom: 20px; }
.blog-featured-desc  { max-width: 600px; margin: 0 auto 30px auto; }
.blog-read-more      { font-weight: 600; }
.blog-tag-label      { margin: 0; color: var(--primary-color); }
.hero-actions-center { justify-content: center; }

/* Footer responsive */
@media (max-width: 900px) {
    .footer-body {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .footer-body {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* Pricing table: shrink padding on mobile */
    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
        font-size: 0.82rem;
    }
    .pricing-table thead th {
        padding: 16px 10px;
    }
    .pricing-table th:first-child,
    .pricing-table td:first-child {
        min-width: 120px;
        font-size: 0.82rem;
    }
}
