/* ============================================
   DEMAND SENSING HERO
   — Built to match SydAI HOME_PAGE_MASTER_MERGED_v8 palette
   — Mobile-first, fully responsive (360px → 1920px+)
   ============================================ */

/* Design tokens — pulled from styles.css (:root) */
:root {
    /* Brand palette */
    --ds-navy:        #0b1f33;
    --ds-navy-2:      #1d3a66;
    --ds-navy-3:      #0a2e5d;
    --ds-navy-ink:    #10263d;
    --ds-sky:         #4a86b8;
    --ds-sky-2:       #6b9dc6;
    --ds-sky-3:       #8fb4d3;
    --ds-slate:       #5b748f;

    /* Neutrals */
    --ds-bg:          #f7f9fc;
    --ds-bg-2:        #eef2f7;
    --ds-card:        #ffffff;
    --ds-text:        #10263d;      /* near-black for tagline */
    --ds-ink:         #0b1220;      /* deepest black */
    --ds-muted:       #5f7086;
    --ds-line:        rgba(11, 31, 51, 0.08);

    /* Effects */
    --ds-shadow-sm:   0 8px 18px rgba(15, 23, 42, 0.06);
    --ds-shadow:      0 18px 50px rgba(2, 12, 24, 0.10);
    --ds-shadow-lg:   0 28px 70px rgba(2, 12, 24, 0.18);

    /* Radius */
    --ds-radius-sm:   14px;
    --ds-radius:      22px;
    --ds-radius-lg:   28px;
    --ds-radius-pill: 999px;
}

/* Base reset (scoped to keep page-safe) */
.ds-hero,
.ds-hero *,
.ds-hero *::before,
.ds-hero *::after {
    box-sizing: border-box;
}

/* ============================================
   SECTION WRAPPER
   ============================================ */
.ds-hero {
    position: relative;
    width: 100%;
    padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px);
    background:
        radial-gradient(circle at 12% 18%, rgba(74, 134, 184, 0.10), transparent 42%),
        radial-gradient(circle at 92% 88%, rgba(107, 157, 198, 0.08), transparent 38%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ds-text);
    overflow: hidden;
}

.ds-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

/* ============================================
   LEFT — CONTENT
   ============================================ */
.ds-hero-content {
    position: relative;
    z-index: 2;
}

/* Eyebrow pill */
.ds-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(74, 134, 184, 0.18);
    border-radius: var(--ds-radius-pill);
    color: var(--ds-navy-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 12px rgba(18, 62, 124, 0.05);
}
.ds-hero-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ds-sky);
    box-shadow: 0 0 0 4px rgba(74, 134, 184, 0.18);
    animation: ds-pulse 2.2s ease-in-out infinite;
}
@keyframes ds-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(74, 134, 184, 0.18); }
    50%      { box-shadow: 0 0 0 7px rgba(74, 134, 184, 0.05); }
}

/* TAGLINE — STRONG BLACK with BLUE ACCENT */
.ds-hero-title {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ds-ink);              /* strong black */
    font-weight: 800;
}
.ds-hero-accent {
    background: linear-gradient(90deg, #1d3a66 0%, #4a86b8 50%, #6b9dc6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    position: relative;
}
.ds-hero-br-desktop { display: inline; }

/* Lead paragraph */
.ds-hero-lead {
    margin: 0 0 32px;
    max-width: 560px;
    color: var(--ds-muted);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
}

/* CTA actions */
.ds-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--ds-radius-pill);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    border: 1.5px solid transparent;
    min-height: 48px;
}
.ds-btn-primary {
    background: linear-gradient(135deg, #1d3a66 0%, #0a2e5d 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 31, 51, 0.22);
}
.ds-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(11, 31, 51, 0.32);
    background: linear-gradient(135deg, #4a86b8 0%, #1d3a66 100%);
}
.ds-btn-primary svg { transition: transform 0.25s ease; }
.ds-btn-primary:hover svg { transform: translateX(3px); }

.ds-btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ds-navy-2);
    border-color: rgba(74, 134, 184, 0.28);
    backdrop-filter: blur(6px);
}
.ds-btn-ghost:hover {
    background: #fff;
    border-color: var(--ds-sky);
    transform: translateY(-2px);
    box-shadow: var(--ds-shadow-sm);
}

/* Proof stats */
.ds-hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ds-hero-proof li {
    padding: 16px 18px;
    background: var(--ds-card);
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    box-shadow: var(--ds-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ds-hero-proof li:hover {
    transform: translateY(-3px);
    box-shadow: var(--ds-shadow);
    border-color: rgba(74, 134, 184, 0.28);
}
.ds-hero-proof strong {
    display: block;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    color: var(--ds-navy-2);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 4px;
}
.ds-hero-proof span {
    color: var(--ds-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ============================================
   RIGHT — VISUAL
   ============================================ */
.ds-hero-visual {
    position: relative;
    z-index: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}

.ds-hero-visual-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(74, 134, 184, 0.18), transparent 55%),
        linear-gradient(180deg, #0e2a4d 0%, #08203f 70%, #061a32 100%);
    box-shadow:
        0 30px 70px rgba(2, 12, 24, 0.28),
        0 0 0 1px rgba(74, 134, 184, 0.12) inset;
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
    transition: transform 0.6s cubic-bezier(0.18, 0.88, 0.24, 1);
}
.ds-hero-visual-frame:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.ds-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.96;
}

/* Floating signal chips */
.ds-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--ds-radius-pill);
    color: var(--ds-navy-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(2, 12, 24, 0.22);
    white-space: nowrap;
    z-index: 2;
}
.ds-chip-1 { top: 8%;  left: -4%;  animation: ds-float 5.5s ease-in-out infinite; }
.ds-chip-2 { bottom: 18%; right: -6%; animation: ds-float 6.5s ease-in-out infinite 0.6s; }
.ds-chip-3 { bottom: 6%; left: 8%;  animation: ds-float 5.8s ease-in-out infinite 1.2s; }

.ds-chip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ds-chip-dot-green { background: #1f8b4c; box-shadow: 0 0 0 3px rgba(31, 139, 76, 0.18); }
.ds-chip-dot-blue  { background: #4a86b8; box-shadow: 0 0 0 3px rgba(74, 134, 184, 0.20); }
.ds-chip-dot-amber { background: #c77e08; box-shadow: 0 0 0 3px rgba(199, 126, 8, 0.18); }

@keyframes ds-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Decorative blobs */
.ds-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}
.ds-hero-blob-1 {
    width: 280px; height: 280px;
    top: -40px; right: -40px;
    background: rgba(74, 134, 184, 0.22);
}
.ds-hero-blob-2 {
    width: 220px; height: 220px;
    bottom: -50px; left: -30px;
    background: rgba(29, 58, 102, 0.18);
}

/* ============================================
   RESPONSIVE — TABLET (≤960px)
   ============================================ */
@media (max-width: 960px) {
    .ds-hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: left;
    }
    .ds-hero-visual {
        max-width: 480px;
        margin: 0 auto;
        order: 2;            /* image below content on mobile */
    }
    .ds-hero-content {
        order: 1;
    }
    .ds-hero-br-desktop { display: none; }
    .ds-hero-title {
        font-size: clamp(1.9rem, 5vw, 2.6rem);
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤640px)
   ============================================ */
@media (max-width: 640px) {
    .ds-hero {
        padding: 48px 18px 56px;
    }
    .ds-hero-container {
        gap: 36px;
    }
    .ds-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.2rem);
        line-height: 1.12;
    }
    .ds-hero-lead {
        font-size: 0.98rem;
        margin-bottom: 26px;
    }
    .ds-hero-actions {
        gap: 10px;
        margin-bottom: 32px;
    }
    .ds-btn {
        flex: 1 1 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.94rem;
    }
    .ds-hero-proof {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .ds-hero-proof li:nth-child(3) {
        grid-column: 1 / -1;
    }
    .ds-hero-proof strong { font-size: 1.4rem; }
    .ds-hero-proof span   { font-size: 0.78rem; }

    .ds-chip { font-size: 0.7rem; padding: 8px 11px; }
    .ds-chip-1 { left: 0%; top: 4%; }
    .ds-chip-2 { right: 0%; bottom: 14%; }
    .ds-chip-3 { left: 4%; bottom: 4%; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤400px)
   ============================================ */
@media (max-width: 400px) {
    .ds-hero-title {
        font-size: 1.65rem;
    }
    .ds-hero-eyebrow { font-size: 0.72rem; }
    .ds-hero-proof { grid-template-columns: 1fr; }
    .ds-hero-proof li:nth-child(3) { grid-column: auto; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .ds-hero-eyebrow-dot,
    .ds-chip-1, .ds-chip-2, .ds-chip-3 {
        animation: none;
    }
    .ds-hero-visual-frame,
    .ds-btn, .ds-hero-proof li {
        transition: none;
    }
}

.ds-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(74, 134, 184, 0.55),
        0 0 0 5px rgba(11, 31, 51, 0.85);
}
