/* ============================================
   D-Risk AI Website Styles
   Brand Colors:
   - Primary Red: #C8102E
   - Dark Red (gradient): #76232F
   - Near Black: #212721
   - Dark Charcoal: #333F48
   - Mid Gray: #4B4F54
   - Gray: #5B6770
   - Light Gray: #E5E1E6
   - White: #FFFFFF
   Font: Montserrat
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #212721;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Utilities ---- */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 48px;
}

.text-gradient {
    color: #C8102E;
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.grid .fade-in:nth-child(2), .benefits-grid .fade-in:nth-child(2), .roadmap-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.grid .fade-in:nth-child(3), .benefits-grid .fade-in:nth-child(3), .roadmap-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.grid .fade-in:nth-child(4), .benefits-grid .fade-in:nth-child(4), .roadmap-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.roadmap-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.roadmap-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(33, 39, 33, 0.08);
    padding: 12px 0;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

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

.logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #5B6770;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #C8102E;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #212721;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #C8102E 0%, #76232F 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #212721;
    border: 1px solid #E5E1E6;
}

.btn-secondary:hover {
    border-color: #C8102E;
    color: #C8102E;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
    background: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #C8102E;
    background: rgba(200, 16, 46, 0.06);
    border: 1px solid rgba(200, 16, 46, 0.15);
    border-radius: 100px;
    padding: 8px 18px;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #C8102E;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #212721;
    margin-bottom: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #5B6770;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

img.hero-banner {
    max-width: 900px !important;
    width: 100%;
    margin: 0 auto 48px !important;
    border-radius: 12px;
    display: block;
}

img.section-banner {
    max-width: 80% !important;
    width: 100%;
    margin: 0 auto 48px !important;
    border-radius: 12px;
    display: block;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cards {
    margin-top: 48px;
    text-align: left;
}

.hero-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(200, 16, 46, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Logo Bar ---- */
.logo-bar {
    padding: 40px 0;
    border-top: 1px solid #E5E1E6;
    border-bottom: 1px solid #E5E1E6;
}

.logo-bar-label {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #5B6770;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.logo-bar-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4B4F54;
    opacity: 0.6;
    letter-spacing: 0.02em;
}

/* ---- Section Base ---- */
.section {
    padding: 80px 0;
}

.section-dark {
    background: #212721;
    color: #ffffff;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

.section-dark .section-tag {
    background: rgba(200, 16, 46, 0.15);
    color: #ff4d6a;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #C8102E;
    background: rgba(200, 16, 46, 0.06);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.0625rem;
    color: #5B6770;
    line-height: 1.6;
}

/* ---- Card Grids ---- */
.grid {
    display: grid;
    gap: 20px;
}

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

/* ---- Problem Cards ---- */
.card {
    padding: 32px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-dark {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(200, 16, 46, 0.3);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C8102E 0%, #76232F 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #ffffff;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-dark p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ---- Solution Cards ---- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.solution-card {
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #E5E1E6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C8102E 0%, #76232F 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover {
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 8px 32px rgba(33, 39, 33, 0.06);
    transform: translateY(-2px);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card-wide {
    grid-column: 1 / -1;
}

.solution-number {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #C8102E;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212721;
    margin-bottom: 8px;
}

.solution-card p {
    font-size: 1.0625rem;
    color: #5B6770;
    line-height: 1.6;
}

/* ---- Flow Cards (How it works) ---- */
#how-it-works {
    background: #333F48;
}

.flow-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.flow-card {
    flex: 1;
    padding: 36px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.flow-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(200, 16, 46, 0.3);
}

.flow-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C8102E 0%, #76232F 100%);
    border-radius: 14px;
    margin: 0 auto 20px;
    color: #ffffff;
}

.flow-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.flow-card p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.flow-connector {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ---- Benefits Grid ---- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-card {
    padding: 32px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #E5E1E6;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 8px 32px rgba(33, 39, 33, 0.06);
    transform: translateY(-2px);
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.benefit-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(118, 35, 47, 0.1) 100%);
    border-radius: 10px;
    color: #C8102E;
}

.benefit-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212721;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-list li {
    font-size: 1.0625rem;
    color: #5B6770;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.benefit-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #C8102E;
    border-radius: 50%;
}

/* ---- Claims Section ---- */
.claims-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.claims-content {
    color: #ffffff;
}

.claims-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #ffffff;
}

.claims-content > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 28px;
}

.feature-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.feature-checks svg {
    color: #C8102E;
    flex-shrink: 0;
}

/* Claims Visual Mock */
.claims-visual {
    display: flex;
    justify-content: center;
}

.claims-card-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.claims-mock-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mock-dot.red {
    background: #C8102E;
    box-shadow: 0 0 8px rgba(200, 16, 46, 0.5);
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-row:last-child {
    border-bottom: none;
}

.mock-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.mock-value {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.mock-value.high {
    color: #C8102E;
    background: rgba(200, 16, 46, 0.15);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-value.active {
    color: #34d399;
}

/* ---- Market Cards ---- */
.market-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.market-card {
    padding: 36px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #E5E1E6;
    text-align: center;
    transition: all 0.3s ease;
}

.market-card:hover {
    border-color: rgba(200, 16, 46, 0.2);
    box-shadow: 0 8px 32px rgba(33, 39, 33, 0.06);
    transform: translateY(-2px);
}

.market-step {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C8102E 0%, #76232F 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    margin: 0 auto 20px;
}

.market-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212721;
    margin-bottom: 10px;
}

.market-card p {
    font-size: 1.0625rem;
    color: #5B6770;
    line-height: 1.6;
}

/* ---- Roadmap Grid ---- */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.roadmap-card {
    padding: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.roadmap-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(200, 16, 46, 0.3);
    transform: translateY(-2px);
}

.roadmap-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C8102E 0%, #76232F 100%);
    border-radius: 14px;
    margin-bottom: 20px;
    color: #ffffff;
}

.roadmap-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.roadmap-card p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ---- Quote Section ---- */
.quote-section {
    background: #f8f7f8;
}

.quote-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #E5E1E6;
    box-shadow: 0 4px 24px rgba(33, 39, 33, 0.04);
}

.quote-mark {
    color: #C8102E;
    opacity: 0.15;
    margin-bottom: 20px;
}

blockquote {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333F48;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 24px;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.quote-author strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #212721;
}

.quote-author span {
    display: block;
    font-size: 0.8125rem;
    color: #5B6770;
    font-weight: 500;
}

/* ---- CTA Section ---- */
.section-cta {
    background: linear-gradient(135deg, #212721 0%, #333F48 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.section-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.section-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* ---- Footer ---- */
.footer {
    background: #212721;
    color: #ffffff;
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a,
.footer-col li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #C8102E;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .claims-content h2 {
        font-size: 1.875rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 8px 32px rgba(33, 39, 33, 0.1);
        border-radius: 0 0 16px 16px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .grid-2,
    .solution-grid,
    .benefits-grid,
    .market-cards,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .solution-card-wide {
        grid-column: auto;
    }

    .flow-cards {
        flex-direction: column;
    }

    .flow-connector {
        transform: rotate(90deg);
    }

    .claims-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .logo-bar-items {
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

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

    .btn-lg {
        padding: 14px 24px;
    }
}
