:root {
    --primary-navy: #001f3f;
    --primary-blue: #0074D9;
    --pale-blue: #E6F2FF;
    --white: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #F8F9FA;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: clip;
}

img, svg, video {
    max-width: 100%;
}

pre {
    max-width: 100%;
    overflow-x: auto;
}

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

/* Header & Responsive Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 8px 20px;
    gap: 18px;
    flex-wrap: nowrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-navy);
    flex-shrink: 0;
}

.logo img {
    max-width: 100%;
    width: auto;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-navy);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s, border-color 0.15s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background-color: #f2f7fd;
    border-color: var(--primary-blue);
}

.nav-toggle-bars {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: background-color 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px 13px;
}

nav a {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    white-space: nowrap;
    font-size: 0.89rem;
}

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

@media (min-width: 1121px) and (max-width: 1220px) {
    .header-container {
        gap: 12px;
    }
    nav ul {
        gap: 8px 10px;
    }
    nav a {
        font-size: 0.84rem;
    }
}

@media (max-width: 1120px) {
    .header-container {
        flex-wrap: nowrap;
        min-height: 64px;
        padding: 8px 16px;
    }
    .logo img {
        height: 36px !important;
        width: auto;
    }
    .nav-toggle {
        display: inline-flex;
    }
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid #e6eef7;
        border-bottom: 1px solid #cfdbe8;
        box-shadow: 0 14px 32px rgba(0, 31, 63, 0.14);
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        padding: 6px 20px 16px;
        z-index: 120;
    }
    header.nav-open nav,
    .nav-toggle[aria-expanded="true"] + nav {
        display: block;
    }
    header nav ul {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }
    header nav li {
        border-bottom: 1px solid #eef3f8;
    }
    header nav li:last-child {
        border-bottom: none;
    }
    header nav a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 10px 4px;
        font-size: 1rem;
        font-weight: 600;
        white-space: normal;
    }
}

/* Hero Section */
.hero {
    background-color: var(--pale-blue);
    padding: 80px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Hero Diagram */
.hero-diagram {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.diagram-box {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-width: 100%;
}

.diagram-node {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    height: 92px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.center-node {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.diagram-line {
    width: 40px;
    height: 4px;
    background-color: #ccc;
}

/* Products & Features Sections */
.products,
.features {
    padding: 60px 0;
    background-color: var(--white);
}

.products h2,
.features h2 {
    text-align: center;
    color: var(--primary-navy);
    margin-bottom: 32px;
    font-size: 2rem;
    line-height: 1.2;
}

.features > .container > p {
    color: #4b5563;
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.product-grid,
.features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 28px;
}

.product-card,
.features .card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e5eaf0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover,
.features .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.product-card h3,
.features .card h3 {
    color: var(--primary-navy);
    margin-bottom: 14px;
}

.product-card p,
.features .card p {
    margin-bottom: 18px;
    color: #4b5563;
}

.product-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.product-card a.cta-button-gold {
    color: #0f172a;
}

.product-card a.cta-button {
    color: var(--white);
}

/* How It Works & Accessory */
.how-it-works, .accessory-entry {
    padding: 60px 0;
    text-align: center;
}

.how-it-works {
    background-color: var(--pale-blue);
}

.accessory-entry {
    background-color: var(--white);
}

.how-it-works h2, .accessory-entry h2 {
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.how-it-works p, .accessory-entry p {
    max-width: 800px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 10px;
}

/* CTA & Value Prop: Quit Spending Big on AI */
.cost-savings-cta {
    background: linear-gradient(135deg, #001f3f 0%, #083358 100%);
    color: #ffffff;
    padding: 70px 0;
    text-align: center;
}

.cost-savings-cta h2 {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.cost-savings-cta .tagline {
    font-size: 1.25rem;
    color: #93c5fd;
    max-width: 820px;
    margin: 0 auto 35px auto;
    line-height: 1.5;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.comp-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px;
}

.comp-card.highlight {
    background: rgba(0, 116, 217, 0.18);
    border: 2px solid #0074D9;
    box-shadow: 0 8px 24px rgba(0, 116, 217, 0.25);
}

.comp-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.comp-card.highlight h3 {
    color: #38bdf8;
}

/* Light-surface .comp-card (when placed inside white .products sections) */
.products .comp-card {
    background: var(--bg-light);
    border: 1px solid #d5e0ec;
    color: var(--text-dark);
}

.products .comp-card h3 {
    color: var(--primary-navy);
}

.products .comp-card li {
    border-bottom-color: #e2e8f0;
    color: var(--text-dark);
}

.products .comp-card.highlight {
    background: #eef6ff;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 8px 24px rgba(0, 116, 217, 0.1);
}

.products .comp-card.highlight h3 {
    color: var(--primary-navy);
}

.comp-card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.comp-card li {
    padding: 8px 0;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-card li:last-child {
    border-bottom: none;
}

.comp-card .bad {
    color: #f87171;
    font-weight: 600;
}

.comp-card .good {
    color: #4ade80;
    font-weight: 600;
}

.cta-action-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button-gold {
    display: inline-block;
    background-color: #f59e0b;
    color: #0f172a;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button-gold:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 26px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    transition: background-color 0.2s;
}

.cta-button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.category-title {
    color: #0074D9;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid #58a6ff;
    padding-left: 0.75rem;
}

.section-desc {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.textlink {
    color: #005bb5;
    text-decoration: none;
    font-weight: 500;
}

.textlink:hover {
    text-decoration: underline;
}

/* Field Guides / Insights dark section text light color */
.insight-section h2, .insight-section .card h3 { color: #ffffff; }
.insight-section .section-desc, .insight-section .card p { color: #eef2f8; }
.insight-section .textlink { color: #58a6ff; }

/* Contact section email & subtitle contrast on light background */
.contact-section p a,
.contact-section p[style*="58a6ff"] {
    color: #005bb5 !important;
    overflow-wrap: anywhere;
}

.contact-section p[style*="8b949e"] {
    color: #4b5563 !important;
}

/* Mobile & Tablet Responsive Layout */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 44px 0 !important;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6.4vw, 2.3rem);
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 22px;
    }

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

    .hero-diagram {
        width: 100%;
    }

    .hero-diagram .diagram-box {
        flex-direction: column;
        width: 100% !important;
        max-width: 400px;
        padding: 20px !important;
    }

    .diagram-line {
        width: 4px;
        height: 32px;
    }

    .products,
    .features,
    .how-it-works,
    .accessory-entry,
    .cost-savings-cta {
        padding: 44px 0;
    }

    .products h2,
    .features h2,
    .how-it-works h2,
    .accessory-entry h2 {
        font-size: clamp(1.55rem, 5.5vw, 1.9rem);
        margin-bottom: 24px;
    }

    .cost-savings-cta h2 {
        font-size: clamp(1.6rem, 5.8vw, 2.15rem);
    }

    .cost-savings-cta .tagline {
        font-size: 1.05rem;
        margin-bottom: 26px;
    }

    .product-grid,
    .features .grid,
    .comparison-grid {
        gap: 20px;
    }

    .product-card,
    .features .card,
    .comp-card {
        padding: 22px 18px;
    }

    .category-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 540px) {
    .hero-buttons,
    .cta-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons a,
    .cta-action-group a,
    .cta-button,
    .cta-button-gold,
    .cta-button-outline {
        width: 100%;
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .product-card .cta-button-gold,
    .product-card .cta-button {
        width: 100%;
    }
}
