:root {
    color-scheme: light;
    --bg: linear-gradient(135deg, #f5f7fa 0%, #e8ecf7 100%);
    --surface: #ffffff;
    --text: #2d3748;
    --muted: #64748b;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #0ea5e9;
    --accent: #eff6ff;
    --accent-blue: #dbeafe;
    --accent-cyan: #cffafe;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.08);
    --shadow-md: 0 8px 24px rgba(59, 130, 246, 0.12);
    --shadow-lg: 0 16px 40px rgba(59, 130, 246, 0.15);
}

html {
    overflow-x: clip;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #f5f7fa;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf7 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -48px;
    z-index: 2000;
    background: #111827;
    color: #ffffff;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.main {
    flex: 1;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.container.narrow {
    width: min(720px, 92vw);
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    position: relative;
    overflow: clip;
}

.logo {
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.hero {
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.hero > .container > * {
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-sm);
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
}

.trust-line {
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
}

.button.primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.hero-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 0;
}

.checklist li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    border-radius: 50%;
    line-height: 1;
}

.section {
    padding: 2.25rem 0;
}

.section.accent {
    background: linear-gradient(135deg, var(--accent-blue) 0%, rgba(207, 250, 254, 0.5) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.section-heading {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-heading h2 {
    color: var(--text);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-heading p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-grid > * {
    flex: 1 1 240px;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-card {
    position: relative;
    padding-top: 2.9rem;
}

.project-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-blue);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-sm);
}

.safety-page {
    padding-top: 3rem;
}

.safety-container {
    max-width: 900px;
}

.safety-heading {
    text-align: left;
    margin-bottom: 1.5rem;
}

.safety-badge {
    margin-bottom: 0.75rem;
}

.safety-card {
    margin-bottom: 1rem;
}

.safety-actions {
    margin-top: 1.5rem;
}

@media (min-width: 721px) {
    .header-content {
        padding: 1.05rem 0;
    }

    .hero {
        padding: 3.25rem 0 2.25rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-actions {
        margin-top: 1.25rem;
        gap: 0.75rem;
    }

    .button {
        padding: 0.82rem 1.35rem;
    }

    .hero-card {
        padding: 1.7rem;
    }

    .checklist li {
        font-size: 1rem;
        margin-bottom: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-heading {
        margin-bottom: 2.1rem;
    }

    .card-grid {
        gap: 1.5rem;
    }

    .card-grid > * {
        flex-basis: 280px;
    }

    .card {
        border-radius: 18px;
        padding: 1.6rem;
    }

    .project-card {
        padding-top: 3.25rem;
    }

    .project-badge {
        top: 1.1rem;
        right: 1.1rem;
    }
}

@media (min-width: 1101px) {
    .header-content {
        padding: 1.25rem 0;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-content {
        gap: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }

    .card-grid {
        gap: 2rem;
    }

    .card-grid > * {
        flex-basis: 320px;
    }

    .card {
        border-radius: 20px;
        padding: 2rem;
    }

    .hero-card {
        padding: 2rem;
    }

    .project-card {
        padding-top: 3.5rem;
    }

    .project-badge {
        top: 1.25rem;
        right: 1.25rem;
    }
}

.project-badge.spark {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

.project-badge.lab {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
}

.bullet-grid {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.bullet-grid li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.bullet-grid li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.callout {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
}

.meta {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-footer {
    color: var(--muted);
    font-size: 0.95rem;
}

.pricing-callout {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.help-text {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--surface);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field textarea {
    resize: vertical;
}

.form-error {
    color: #b42318;
    font-weight: 600;
    margin-top: 0.35rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: auto;
    box-shadow: 0 -4px 12px rgba(59, 130, 246, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    gap: 0.6rem 1.2rem;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    justify-content: center;
    width: min(640px, 100%);
}

.footer-links a {
    color: var(--text);
    display: block;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.footer-copy {
    width: 100%;
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 2rem 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        width: 100%;
    }
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
}

.nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-title {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-close:hover {
    background: var(--accent-blue);
    color: var(--primary);
}

@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        transition: opacity 0.2s ease;
    }

    .mobile-menu-toggle.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .nav-overlay {
        display: block;
    }

    .nav-header {
        display: flex;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(340px, 85vw);
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        touch-action: none;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        touch-action: pan-y;
        transition: transform 0.3s ease;
    }

    .nav a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1rem;
        transition: all 0.2s ease;
    }

    .nav a:hover {
        background: var(--accent-blue);
        padding-left: 2rem;
    }

    .nav a svg {
        flex-shrink: 0;
        opacity: 0.7;
    }

    .nav a.button.primary {
        margin: 1.5rem;
        padding: 1rem 1.5rem;
        border-bottom: none;
        justify-content: center;
        gap: 0.75rem;
        border-radius: 12px;
    }

    .nav a.button.primary:hover {
        padding-left: 1.5rem;
        transform: translateY(-2px);
    }

    .nav a.button.primary svg {
        stroke: white;
    }

    .hero {
        padding-top: 2.5rem;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15.5px;
    }

    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    p {
        font-size: 1rem;
    }

    .lead {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .card {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .card-grid {
        gap: 1rem;
    }

    .card-grid > * {
        flex-basis: 240px;
    }

    .button {
        padding: 0.75rem 1.05rem;
        font-size: 0.96rem;
    }

    .container {
        width: 92vw;
    }

    .meta {
        font-size: 0.8rem;
    }

    .card-footer {
        font-size: 0.8rem;
    }

    .project-card {
        padding-top: 2.9rem !important;
    }

    .project-badge {
        top: 0.85rem;
        right: 0.85rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.55rem;
    }

    .hero-card {
        padding: 1.25rem;
    }

    .checklist li {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .callout {
        font-size: 0.95rem;
    }

    .section-heading h2 {
        font-size: 1.2rem;
    }

    .card h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 15px;
    }

    .container,
    .container.narrow {
        width: min(100%, calc(100vw - 24px));
    }

    .header-content {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.18rem;
    }

    .hero {
        padding: 1.75rem 0 1.1rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .hero-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
        min-height: 46px;
        padding: 0.78rem 1rem;
        font-size: 0.96rem;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
    }

    .badge {
        font-size: 0.72rem;
        padding: 0.38rem 0.72rem;
    }

    .lead,
    .trust-line,
    .section-heading p,
    .card-footer,
    .help-text {
        font-size: 1rem;
    }

    .hero-card,
    .card,
    .pricing-callout {
        padding: 1rem;
        border-radius: 14px;
    }

    .card-grid,
    .bullet-grid,
    .split {
        gap: 0.85rem;
    }

    .project-badge {
        font-size: 0.68rem;
        padding: 0.22rem 0.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .nav {
        width: min(320px, 88vw);
    }

    .nav a {
        font-size: 0.96rem;
        padding: 0.92rem 1.15rem;
    }
}

@media (max-width: 520px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions .button {
        width: 100%;
    }
}
