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

:root {
    --color-background: hsl(0, 0%, 100%);
    --color-foreground: hsl(215, 25%, 15%);
    --color-primary: hsl(211, 100%, 40%);
    --color-primary-foreground: hsl(0, 0%, 100%);
    --color-primary-light: hsl(211, 100%, 95%);
    --color-primary-dark: hsl(211, 100%, 30%);
    --color-secondary: hsl(210, 100%, 96%);
    --color-muted: hsl(210, 40%, 96%);
    --color-muted-foreground: hsl(215, 16%, 47%);
    --color-border: hsl(214, 32%, 91%);
    --color-accent: hsl(211, 100%, 50%);
    --color-band: #05A6EB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--color-foreground);
    background: var(--color-background);
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-foreground);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-buttons {
    display: none;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-buttons {
        display: flex;
    }
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--color-foreground);
}

.btn-ghost:hover {
    background: var(--color-muted);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-secondary {
    background: var(--color-background);
    color: var(--color-foreground);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

/* Hero */
.hero {
    padding-top: 8rem;
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-background));
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 123, 255, 0.1);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
}

.text-primary {
    color: var(--color-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    margin: 1rem 0;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.stat-divider {
    width: 1px;
    background: var(--color-border);
}

.hero-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }
}

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

/* Grids */
.grid-2 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 123, 255, 0.1);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem;
}

/* Background helpers */
.bg-secondary {
    background: var(--color-secondary) !important;
}

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

.bg-primary {
    background: var(--color-primary);
    color: white;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-muted-foreground);
}

.max-w-3xl {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Accordion */
.accordion {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-trigger:hover {
    background: var(--color-muted);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.chevron {
    transition: transform 0.3s;
}

.accordion-trigger.active .chevron {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: var(--color-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-link {
    color: var(--color-muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--color-primary);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
}

/* Image */
.feature-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Utility */
.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* CTA */
.cta-section {
    background: var(--color-band);
    color: white;
}

.cta-section h2,
.cta-section p {
    color: white;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}

/* ===========================================
   BOOTSTRAP 5-SAFE OVERRIDES FOR CUSTOM DESIGN
   =========================================== */

:root {
    --bs-body-font-family: inherit;
    --bs-body-bg: var(--color-background);
    --bs-body-color: var(--color-foreground);
}

/* Make sure your container stays controlled here.
   If you use Bootstrap .container elsewhere, consider .container-fluid there. */
.container {
    max-width: 1200px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Prevent Bootstrap from overriding your custom-style buttons.
   For Bootstrap-native buttons in other views, add .bootstrap-btn to them. */
.btn:not(.bootstrap-btn) {
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.bootstrap-btn {
    all: revert !important;
}

.btn-primary:not(.bootstrap-btn) {
    background: var(--color-primary) !important;
    color: white !important;
    border: none !important;
}

.btn-primary:not(.bootstrap-btn):hover {
    background: var(--color-primary-dark) !important;
}

.btn-outline:not(.bootstrap-btn) {
    background: transparent !important;
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.btn-outline:not(.bootstrap-btn):hover {
    background: var(--color-primary) !important;
    color: white !important;
}

.btn-ghost:not(.bootstrap-btn) {
    background: transparent !important;
    color: var(--color-foreground) !important;
}

.btn-ghost:not(.bootstrap-btn):hover {
    background: var(--color-muted) !important;
}

.btn-secondary:not(.bootstrap-btn) {
    background: var(--color-background) !important;
    color: var(--color-foreground) !important;
}

/* Ensure your navbar stays custom */
nav {
    all: unset;
    display: block;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

/* nav-container override */
.nav-container {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 64px !important;
}

/* Keep your grids intact */
.grid-2,
.grid-3,
.grid-4,
.hero-grid {
    display: grid !important;
    gap: 2rem !important;
}

.hero-grid {
    gap: 3rem !important;
    align-items: center !important;
}

/* Card hover override */
.card {
    border-radius: 0.75rem !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: none !important;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Footer override */
footer {
    background: var(--color-secondary) !important;
    border-top: 1px solid var(--color-border) !important;
    padding: 3rem 0 1rem !important;
}

.brand-color {
    color: var(--color-band);
}
