* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #1e293b;
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #ffffff;
    color: #111111;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: underline;
    z-index: 10000;
}

.skip-link:focus {
    left: 0;
}

header {
    background-color: #0f172a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
}

nav a:hover {
    color: white;
}

.btn-nav {
    background-color: #4da6ff;
    color: #111;
    padding: 8px 16px;
    border-radius: 4px;
}

.hero {
    background-color: #1e293b;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

.hero h1 {
    font-size: 2.3rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 2rem auto;
}

.btn-primary {
    background-color: #1d4ed8;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1a43b8;
}

.features {
    padding: 4rem 5%;
    text-align: center;
}

.features h2, .benefits-section h2 {
    margin-bottom: 2.5rem;
    color: #0f172a;
}

.benefits-section {
    padding: 2rem 5% 4rem 5%;
    text-align: center;
    background-color: #ffffff;
}

.feature-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #f4f6f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 300px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.benefits-section .card {
    background: #ffffff;
}

.card h3 {
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.contact {
    background-color: #e2e8f0;
    padding: 4rem 5%;
    text-align: center;
}

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

.contact p {
    margin-bottom: 1.5rem;
    color: #475569;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #cbd5e1;
}

.contact input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}
/* ==========================================================================
   Responsive breakpoint tiers
   Mirrors the standard _breakpoints.scss ranges so every page shares one
   set of media queries instead of ad-hoc per-page widths:
     xlarge  1281px - 1680px
     large    981px - 1280px
     medium   737px -  980px
     small    481px -  736px
     xsmall     up to 480px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout container
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --------------------------------------------------------------------------
   Fluid grid (html-grid conventions: .row + .col-* on a 12 column basis)
   -------------------------------------------------------------------------- */

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.row > * {
    flex: 0 1 auto;
    min-width: 0;
}

/*
 * Column width is its 12ths of the row, minus its proportional share of the
 * gutters: gap * (12 - cols) / 12. Written this way the deductions across any
 * combination of columns in one row sum to exactly the gutters between them,
 * so mixed rows (col-8 + col-4) line up the same as uniform ones.
 */
.col-12 { flex-basis: 100%; }
.col-8  { flex-basis: calc(66.6667% - 0.6667rem); }
.col-6  { flex-basis: calc(50% - 1rem); }
.col-4  { flex-basis: calc(33.3333% - 1.3333rem); }
.col-3  { flex-basis: calc(25% - 1.5rem); }

/* Cards carry a fixed width by default; inside a grid the column governs. */
.row > .card {
    width: auto;
}

/* Media never overflows its column on small screens. */
img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Global navigation
   -------------------------------------------------------------------------- */

header {
    position: relative;
    flex-wrap: wrap;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Specificity kept above the per-page `header nav a` rules. */
header .nav-menu a {
    display: inline-block;
    margin: 0;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
}

header .nav-menu a:hover,
header .nav-menu a:focus {
    color: #ffffff;
}

/* Current page marker, set with aria-current="page" on the active link. */
header .nav-menu a[aria-current="page"] {
    color: #ffffff;
    box-shadow: inset 0 -2px 0 0 #4da6ff;
}

header .nav-menu .btn-nav,
header .nav-menu a[aria-current="page"].btn-nav {
    background-color: #4da6ff;
    color: #111111;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: none;
}

/* Hamburger toggle: hidden until the menu collapses. */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: 1px solid #475569;
    border-radius: 4px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] {
    border-color: #4da6ff;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: #4da6ff;
}

/* Screen-reader-only helper for the toggle's accessible name. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tablet and below (medium and down): collapse into the toggle. */
@media screen and (max-width: 980px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 500;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 5% 1.25rem 5%;
        background-color: #0f172a;
        border-top: 1px solid #1e293b;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li + li {
        border-top: 1px solid #1e293b;
    }

    header .nav-menu a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1.05rem;
    }

    header .nav-menu .btn-nav {
        margin-top: 1rem;
        padding: 0.9rem 1rem;
        text-align: center;
    }

    .nav-menu li + li:has(.btn-nav) {
        border-top: 0;
    }

    /* Two-up columns once three across becomes cramped. */
    .col-4,
    .col-3 {
        flex-basis: calc(50% - 1rem);
    }

    .col-8 {
        flex-basis: 100%;
    }
}

/* Phones (small and down): single column everywhere. */
@media screen and (max-width: 736px) {
    .row {
        gap: 1.5rem;
    }

    .col-3,
    .col-4,
    .col-6,
    .col-8 {
        flex-basis: 100%;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .features,
    .contact {
        padding: 2.5rem 5%;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    header {
        padding: 1rem 1.25rem;
    }

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