/* ==========================================================================
   CanHost Marketing Site - Custom Stylesheet
   Works alongside Bootstrap 5.3 CDN
   Premium design system - Vercel/Linear energy
   ========================================================================== */


/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* Brand colours */
    --ch-blue: #00AEEF;
    --ch-blue-hover: #0095CC;
    --ch-blue-light: #E6F7FE;
    --ch-blue-glow: rgba(0, 174, 239, 0.15);
    --ch-amber: #E8991C;
    --ch-amber-hover: #D18517;
    --ch-amber-light: #FEF3E2;
    --ch-grey: #6D6E71;
    --ch-grey-light: #FAFAFA;
    --ch-dark: #0A0A1A;
    --ch-dark-mid: #12122A;
    --ch-white: #FFFFFF;

    /* Text */
    --ch-text: #1A1A2E;
    --ch-text-muted: #6B7280;
    --ch-text-subtle: #9CA3AF;

    /* UI */
    --ch-border: #E5E7EB;
    --ch-border-subtle: #F0F0F0;
    --ch-success: #10B981;
    --ch-warning: #F59E0B;
    --ch-danger: #EF4444;

    /* Spacing */
    --ch-section-padding: 6rem 0;
    --ch-section-padding-sm: 4rem 0;

    /* Radius */
    --ch-radius-btn: 0.5rem;
    --ch-radius-card: 1rem;
    --ch-radius-input: 0.5rem;

    /* Transitions */
    --ch-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ch-transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --ch-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --ch-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --ch-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --ch-shadow-glow: 0 0 40px rgba(0, 174, 239, 0.12);
}


/* ==========================================================================
   2. Base / Typography
   ========================================================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ch-text);
    background-color: var(--ch-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ch-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--ch-blue);
    text-decoration: none;
    transition: color var(--ch-transition);
}

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

small,
.text-small {
    font-size: 0.875rem;
}


/* ==========================================================================
   3. Utility Classes
   ========================================================================== */

.text-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.text-ch-blue { color: var(--ch-blue) !important; }
.text-ch-grey { color: var(--ch-grey) !important; }
.text-ch-dark { color: var(--ch-dark) !important; }
.text-ch-muted { color: var(--ch-text-muted) !important; }
.text-ch-success { color: var(--ch-success) !important; }
.text-ch-warning { color: var(--ch-warning) !important; }
.text-ch-danger { color: var(--ch-danger) !important; }
.text-ch-amber { color: var(--ch-amber) !important; }
.bg-ch-blue-light { background-color: var(--ch-blue-light) !important; }
.bg-ch-grey-light { background-color: var(--ch-grey-light) !important; }
.bg-ch-amber-light { background-color: var(--ch-amber-light) !important; }


/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn-ch-primary {
    background-color: var(--ch-blue);
    border: 1.5px solid var(--ch-blue);
    color: #fff;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ch-radius-btn);
    transition: all var(--ch-transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.btn-ch-primary:hover,
.btn-ch-primary:focus {
    background-color: var(--ch-blue-hover);
    border-color: var(--ch-blue-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.3);
    text-decoration: none;
}

.btn-ch-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-ch-secondary {
    background-color: transparent;
    border: 1.5px solid var(--ch-border);
    color: var(--ch-text);
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ch-radius-btn);
    transition: all var(--ch-transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.btn-ch-secondary:hover,
.btn-ch-secondary:focus {
    border-color: var(--ch-blue);
    color: var(--ch-blue);
    text-decoration: none;
}

/* Ghost button - for dark backgrounds */
.btn-ch-ghost {
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ch-radius-btn);
    transition: all var(--ch-transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.btn-ch-ghost:hover,
.btn-ch-ghost:focus {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

/* Button sizes */
.btn-ch-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-ch-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Amber variant */
.btn-ch-amber {
    background-color: var(--ch-amber);
    border: 1.5px solid var(--ch-amber);
    color: #fff;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--ch-radius-btn);
    transition: all var(--ch-transition);
    cursor: pointer;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.btn-ch-amber:hover,
.btn-ch-amber:focus {
    background-color: var(--ch-amber-hover);
    border-color: var(--ch-amber-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 153, 28, 0.3);
    text-decoration: none;
}


/* ==========================================================================
   5. Navbar
   ========================================================================== */

.ch-navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ch-border-subtle);
    padding: 0.75rem 0;
    transition: all var(--ch-transition);
    z-index: 1030;
}

.ch-navbar.scrolled {
    box-shadow: var(--ch-shadow-sm);
    border-bottom-color: transparent;
}

.ch-navbar .navbar-brand img {
    height: 48px;
    width: auto;
}

.ch-navbar .nav-link {
    color: var(--ch-text);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    transition: color var(--ch-transition);
}

.ch-navbar .nav-link:hover,
.ch-navbar .nav-link:focus {
    color: var(--ch-blue);
}

.ch-navbar .nav-link.active {
    color: var(--ch-blue);
}

.ch-navbar .btn-ch-primary {
    padding: 0.375rem 1.25rem;
    font-size: 0.875rem;
}


/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.ch-hero {
    background-color: var(--ch-dark);
    color: var(--ch-white);
    padding: 10rem 0 7rem;
    position: relative;
    overflow: hidden;
}

/* Subtle grid pattern */
.ch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.ch-hero h1 {
    color: var(--ch-white);
    margin-bottom: 1.25rem;
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ch-hero-overline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ch-blue);
    margin-bottom: 1.25rem;
}

.ch-hero-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.ch-hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin-bottom: 2rem;
}

/* Hero decoration - ascending bars echoing the logo motif */
.ch-hero-decoration {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
}

.ch-hero-bar {
    width: 70px;
    border-radius: 0.75rem 0.75rem 0 0;
}

.ch-hero-bar-1 {
    height: 35%;
    background: linear-gradient(180deg, var(--ch-grey) 0%, rgba(109, 110, 113, 0.3) 100%);
    opacity: 0.35;
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.ch-hero-bar-2 {
    height: 75%;
    background: linear-gradient(180deg, var(--ch-blue) 0%, rgba(0, 174, 239, 0.2) 100%);
    opacity: 0.4;
}

.ch-hero-bar-3 {
    height: 55%;
    background: linear-gradient(180deg, var(--ch-blue) 0%, rgba(0, 174, 239, 0.15) 100%);
    opacity: 0.3;
    border-radius: 50% 0 0 0 / 40% 0 0 0;
}

/* Hero SVG visual */
.ch-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 340px;
}

.ch-hero-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(0, 174, 239, 0.1));
}

/* Pulsing server status dots */
@keyframes heroPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.ch-hero-pulse {
    animation: heroPulse 2.5s ease-in-out infinite;
}

/* Floating data nodes */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ch-hero-float {
    animation: heroFloat 4s ease-in-out infinite;
}

/* Radial glow */
.ch-hero::after {
    content: '';
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Motorsport hero variant */
.ch-hero-dark {
    background-color: var(--ch-dark);
    color: var(--ch-white);
}

.ch-hero-dark h1 { color: var(--ch-white); }
.ch-hero-dark .lead { color: rgba(255, 255, 255, 0.55); }


/* ==========================================================================
   7. Section Styles
   ========================================================================== */

.ch-section {
    padding: var(--ch-section-padding);
}

.ch-section-alt {
    padding: var(--ch-section-padding);
    background-color: var(--ch-grey-light);
}

.ch-section-dark {
    padding: var(--ch-section-padding);
    background-color: var(--ch-dark);
    color: var(--ch-white);
}

.ch-section-dark h2,
.ch-section-dark h3,
.ch-section-dark h4 {
    color: var(--ch-white);
}

.ch-section-dark p {
    color: rgba(255, 255, 255, 0.65);
}

.ch-section-dark a { color: var(--ch-blue); }
.ch-section-dark a:hover { color: var(--ch-blue-hover); }

.ch-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.ch-section-header p {
    color: var(--ch-text-muted);
    font-size: 1.125rem;
}


/* ==========================================================================
   8. Cards
   ========================================================================== */

.card-ch {
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-card);
    padding: 1.75rem;
    background: var(--ch-white);
    transition: all var(--ch-transition);
    height: 100%;
}

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

.card-ch h3 { margin-bottom: 0.75rem; }
.card-ch p { color: var(--ch-text-muted); }

/* Premium card - with gradient top accent */
.card-ch-premium {
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-card);
    padding: 2.5rem;
    background: var(--ch-white);
    position: relative;
    overflow: hidden;
    transition: all var(--ch-transition);
    display: flex;
    flex-direction: column;
}

.card-ch-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--ch-shadow-lg);
    border-color: var(--ch-blue-glow);
}

.card-ch-premium-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ch-blue), rgba(0, 174, 239, 0.3));
}

.card-ch-premium-accent-alt {
    background: linear-gradient(90deg, rgba(0, 174, 239, 0.3), var(--ch-blue));
}

.card-ch-premium p {
    color: var(--ch-text-muted);
    line-height: 1.7;
}

/* Feature list inside premium cards */
.ch-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--ch-text);
}

.ch-feature-list li .bi {
    color: var(--ch-blue);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}


/* ==========================================================================
   9. Feature Icons
   ========================================================================== */

.ch-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: var(--ch-blue-light);
    color: var(--ch-blue);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ch-icon-circle-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

.ch-icon-circle-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.75rem;
    border-radius: 0.875rem;
}


/* ==========================================================================
   10. Trust Signals Bar
   ========================================================================== */

.ch-trust-bar {
    background-color: var(--ch-grey-light);
    padding: 3rem 0;
    text-align: center;
}

.ch-trust-stat,
.ch-stat {
    padding: 1.5rem;
}

.ch-trust-stat .stat-value,
.ch-stat .ch-stat-number,
.ch-stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ch-text);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ch-trust-stat .stat-label,
.ch-stat .ch-stat-label,
.ch-stat-label {
    font-size: 0.8125rem;
    color: var(--ch-text-muted);
    display: block;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ch-mono-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ch-blue);
    margin-bottom: 0.75rem;
}


/* ==========================================================================
   11. Pricing Cards
   ========================================================================== */

.ch-pricing-card {
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-card);
    padding: 2.5rem 2rem;
    background: var(--ch-white);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--ch-transition);
}

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

.ch-pricing-card .pricing-tier {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ch-text-muted);
    margin-bottom: 0.75rem;
}

.ch-pricing-card .pricing-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ch-text);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.ch-pricing-card .pricing-period {
    font-size: 0.875rem;
    color: var(--ch-text-muted);
    margin-bottom: 2rem;
}

.ch-pricing-card .pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    flex-grow: 1;
}

.ch-pricing-card .pricing-features li {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--ch-border-subtle);
    font-size: 0.9375rem;
    color: var(--ch-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ch-pricing-card .pricing-features li:last-child {
    border-bottom: none;
}

.ch-pricing-card .pricing-features li .bi {
    color: var(--ch-success);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.ch-pricing-card .btn {
    width: 100%;
}

/* Featured pricing card */
.ch-pricing-featured {
    border-color: var(--ch-blue);
    border-width: 2px;
    position: relative;
    box-shadow: var(--ch-shadow-glow);
}

.ch-pricing-featured .pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--ch-blue);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 1rem;
    border-radius: 50rem;
    white-space: nowrap;
}

.ch-pricing-featured .pricing-tier {
    color: var(--ch-blue);
}


/* ==========================================================================
   12. CTA Banner
   ========================================================================== */

.ch-cta-banner {
    background: linear-gradient(135deg, var(--ch-dark) 0%, var(--ch-dark-mid) 50%, var(--ch-dark) 100%);
    color: var(--ch-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ch-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.ch-cta-banner h2 {
    color: var(--ch-white);
    margin-bottom: 0.75rem;
}

.ch-cta-banner p {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}


/* ==========================================================================
   13. Footer
   ========================================================================== */

.ch-footer {
    background-color: var(--ch-dark);
    color: rgba(255, 255, 255, 0.55);
    padding: 5rem 0 0;
}

.ch-footer h4,
.ch-footer h5 {
    color: var(--ch-white);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.ch-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-footer ul li {
    margin-bottom: 0.625rem;
}

.ch-footer ul li a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    transition: color var(--ch-transition);
}

.ch-footer ul li a:hover {
    color: var(--ch-white);
}

.ch-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.8125rem;
}

.ch-footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.ch-footer-bottom a:hover {
    color: var(--ch-white);
}

.ch-footer-family {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.75rem;
}

.ch-footer-family a {
    color: rgba(255, 255, 255, 0.4);
}

.ch-footer-family a:hover {
    color: var(--ch-amber);
}

.ch-footer-powered {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
}

.ch-footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.ch-footer-social a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    transition: color var(--ch-transition);
}

.ch-footer-social a:hover {
    color: var(--ch-white);
}


/* ==========================================================================
   14. Contact Form
   ========================================================================== */

.ch-form .form-label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--ch-text);
    margin-bottom: 0.375rem;
}

.ch-form .form-control,
.ch-form .form-select {
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-input);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--ch-text);
    transition: all var(--ch-transition);
    background-color: var(--ch-grey-light);
}

.ch-form .form-control:focus,
.ch-form .form-select:focus {
    border-color: var(--ch-blue);
    box-shadow: 0 0 0 3px var(--ch-blue-glow);
    outline: none;
    background-color: var(--ch-white);
}

.ch-form .form-control::placeholder {
    color: var(--ch-text-subtle);
}

.ch-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.ch-form .invalid-feedback {
    font-size: 0.8125rem;
    color: var(--ch-danger);
}

.ch-form .form-control.is-invalid,
.ch-form .form-select.is-invalid {
    border-color: var(--ch-danger);
}

.ch-form .form-control.is-invalid:focus,
.ch-form .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}


/* ==========================================================================
   15. FAQ / Accordion
   ========================================================================== */

.ch-accordion .accordion-item {
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-card) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.ch-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ch-text);
    background-color: var(--ch-white);
    padding: 1.25rem 1.5rem;
    box-shadow: none;
    transition: color var(--ch-transition);
}

.ch-accordion .accordion-button:not(.collapsed) {
    color: var(--ch-blue);
    background-color: var(--ch-white);
    box-shadow: none;
}

.ch-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--ch-border);
}

.ch-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236D6E71'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform var(--ch-transition);
}

.ch-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300AEEF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.ch-accordion .accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--ch-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}


/* ==========================================================================
   16. Reveal Animation (IntersectionObserver)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   17. Motorsport Page Specific
   ========================================================================== */

.ch-motorsport-hero {
    background-color: var(--ch-dark);
    color: var(--ch-white);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.ch-motorsport-hero h1 { color: var(--ch-white); }

.ch-motorsport-hero .lead {
    color: rgba(255, 255, 255, 0.55);
    max-width: 640px;
    margin-bottom: 2rem;
}

.ch-motorsport-hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 174, 239, 0.06) 100%);
    pointer-events: none;
}

/* Motorsport badge */
.ch-badge-race {
    display: inline-block;
    background-color: rgba(0, 174, 239, 0.12);
    color: var(--ch-blue);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    border-radius: 50rem;
    margin-bottom: 1.25rem;
}

.ch-badge-race-amber {
    display: inline-block;
    background-color: var(--ch-amber-light);
    color: var(--ch-amber);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    border-radius: 50rem;
    margin-bottom: 1.25rem;
}

/* Showcase link card */
.ch-showcase-card {
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-card);
    padding: 2rem;
    background: var(--ch-white);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all var(--ch-transition);
}

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

/* Founding member callout */
.ch-founding-callout {
    border: 2px solid var(--ch-amber);
    border-radius: var(--ch-radius-card);
    padding: 2.5rem;
    background: var(--ch-amber-light);
    text-align: center;
}

.ch-founding-callout h3 {
    color: var(--ch-amber);
}


/* ==========================================================================
   17b. Motorsport Homepage Promo Block
   ========================================================================== */

.ch-motorsport-promo {
    padding: 1.5rem;
    background-color: var(--ch-grey-light);
}

.ch-motorsport-promo-inner {
    background: linear-gradient(135deg, #0D0D22 0%, var(--ch-dark) 40%, #1A0F05 100%);
    color: var(--ch-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

/* Diagonal amber accent stripe */
.ch-motorsport-promo-inner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(232, 153, 28, 0.06) 50%, rgba(232, 153, 28, 0.12) 100%);
    pointer-events: none;
}

/* Subtle chequered hint */
.ch-motorsport-promo-inner::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--ch-amber) 0px,
        var(--ch-amber) 12px,
        transparent 12px,
        transparent 24px
    );
    opacity: 0.6;
    pointer-events: none;
}

.ch-motorsport-promo-headline {
    color: var(--ch-white);
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.ch-motorsport-promo-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* Right-side stats */
.ch-motorsport-promo-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 2px solid rgba(232, 153, 28, 0.25);
}

.ch-promo-stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ch-amber);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ch-promo-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-top: 0.25rem;
}


/* ==========================================================================
   18. Miscellaneous
   ========================================================================== */

/* Badge styles */
.ch-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1875rem 0.625rem;
    border-radius: 50rem;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.ch-badge-blue {
    background-color: var(--ch-blue-light);
    color: var(--ch-blue);
}

.ch-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--ch-success);
}

/* Link style */
.ch-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--ch-transition);
}

.ch-link:hover {
    gap: 0.5rem;
}

/* Divider */
.ch-divider {
    border: none;
    border-top: 1px solid var(--ch-border);
    margin: 2rem 0;
}

/* Image rounding */
.ch-img-rounded {
    border-radius: var(--ch-radius-card);
}

/* Skip to content (accessibility) */
.ch-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--ch-blue);
    color: #fff;
    font-weight: 600;
}

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


/* ==========================================================================
   19. Responsive - Tablet and Below (768px)
   ========================================================================== */

@media (max-width: 991px) {
    .ch-hero {
        padding: 7rem 0 4rem;
    }

    .ch-hero h1 {
        font-size: 2.5rem;
    }

    .ch-motorsport-promo-headline {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --ch-section-padding: 4rem 0;
        --ch-section-padding-sm: 2.5rem 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Navbar */
    .ch-navbar .nav-link {
        padding: 0.75rem 0;
    }

    .ch-navbar .btn-ch-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Hero */
    .ch-hero {
        padding: 6rem 0 3.5rem;
        text-align: center;
    }

    .ch-hero h1 {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .ch-hero-sub,
    .ch-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .ch-hero::after {
        display: none;
    }

    .ch-hero .btn {
        width: 100%;
        margin-right: 0;
    }

    .ch-hero-overline {
        font-size: 0.75rem;
    }

    /* Motorsport hero */
    .ch-motorsport-hero {
        padding: 6rem 0 3rem;
        text-align: center;
    }

    .ch-motorsport-hero::before {
        display: none;
    }

    .ch-motorsport-hero .lead {
        margin-left: auto;
        margin-right: auto;
    }

    /* Motorsport promo */
    .ch-motorsport-promo {
        padding: 1rem;
    }

    .ch-motorsport-promo-inner {
        padding: 3rem 1.5rem;
        border-radius: 1rem;
        text-align: center;
    }

    .ch-motorsport-promo-headline {
        font-size: 1.75rem;
    }

    .ch-motorsport-promo-sub {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    /* Trust bar */
    .ch-trust-stat,
    .ch-stat {
        padding: 1rem 0.75rem;
    }

    .ch-stat-number {
        font-size: 1.75rem;
    }

    /* Pricing */
    .ch-pricing-card {
        padding: 2rem 1.5rem;
    }

    .ch-pricing-card .pricing-price {
        font-size: 2.25rem;
    }

    /* Premium cards */
    .card-ch-premium {
        padding: 2rem;
    }

    /* CTA banner */
    .ch-cta-banner {
        padding: 3.5rem 0;
    }

    .ch-cta-banner .btn-ch-primary {
        width: 100%;
    }

    /* Footer */
    .ch-footer {
        padding: 3rem 0 0;
        text-align: center;
    }

    .ch-footer ul {
        margin-bottom: 2rem;
    }

    .ch-footer-social {
        justify-content: center;
    }

    /* Cards */
    .card-ch {
        margin-bottom: 1rem;
    }

    /* Showcase card */
    .ch-showcase-card {
        flex-direction: column;
        text-align: center;
    }

    /* Section headers */
    .ch-section-header {
        margin-bottom: 2rem;
    }
}


/* ==========================================================================
   20. Print Styles
   ========================================================================== */

@media print {
    .ch-navbar,
    .ch-footer,
    .ch-cta-banner {
        display: none;
    }

    .ch-hero {
        padding: 1rem 0;
        background: none;
    }

    body {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
