/* =========================================================================
   WellFlow Premium Design System (Dark Theme, High Aesthetic)
   ========================================================================= */

:root {
    /* Rich Dark Palette */
    --bg-base: #050505;
    --bg-surface: #0a0a0c;
    --bg-glass: rgba(20, 20, 25, 0.4);
    --bg-glass-hover: rgba(30, 30, 38, 0.6);

    /* Neon Gradients & Accents */
    --cyan: #6DD59D;
    --blue: #3F3DFF;
    --pink: #6DD59D;

    --g1-start: var(--cyan);
    --g1-end: var(--blue);
    --g2-start: var(--blue);
    --g2-end: var(--cyan);

    /* Typography Colors */
    --text-primary: #ffffff;
    --text-sec: #a1a1aa;
    --text-muted: #71717a;

    /* Border & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.12);
    --glow-cyan: 0 0 40px rgba(109, 213, 157, 0.25);
    --glow-pink: 0 0 40px rgba(63, 61, 255, 0.25);

    /* Geometry */
    --rad-sm: 8px;
    --rad-md: 16px;
    --rad-lg: 24px;
    --rad-xl: 32px;
    --rad-pill: 9999px;

    /* Utils */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

/* --- Typography Helpers --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-sec);
    font-size: 1.125rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-1 {
    background-image: linear-gradient(135deg, var(--g1-start), var(--g1-end));
}

.gradient-2 {
    background-image: linear-gradient(135deg, var(--g2-start), var(--g2-end));
}

.gradient-1-bg {
    background: linear-gradient(135deg, var(--g1-start), var(--g1-end));
}

.gradient-2-bg {
    background: linear-gradient(135deg, var(--g2-start), var(--g2-end));
}

.gradient-3-bg {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 140px 0;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

/* --- Dynamic Mesh Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-base);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob.color-1 {
    width: 60vw;
    height: 60vw;
    background: var(--blue);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.blob.color-2 {
    width: 50vw;
    height: 50vw;
    background: var(--pink);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
    opacity: 0.3;
}

.blob.color-3 {
    width: 40vw;
    height: 40vw;
    background: var(--cyan);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.2;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* --- UI Components --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    position: relative;
    overflow: hidden;
}

/* Card Glow Effect via Border Pseudo-element */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rad-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rad-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-xl {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
    border: none;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: white;
}

.btn-primary.glow-effect {
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--bg-glass);
    color: white;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-sec);
    border: none;
}

.btn-ghost:hover {
    color: white;
}

/* Badge */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--rad-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 100;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    height: 80px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark.small {
    width: 28px;
    height: 28px;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 36px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 32px;
    border-radius: var(--rad-pill);
    border: 1px solid var(--border-subtle);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Abstract Dashboard Visual */
.hero-visuals {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.abstract-dashboard {
    position: absolute;
    inset: 0;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.1s linear;
}

.glass-mockup {
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--rad-lg);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    height: 50px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.mockup-header .dots {
    display: flex;
    gap: 8px;
}

.mockup-header .dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.mockup-header .dots i:first-child {
    background: var(--pink);
}

.mockup-header .search-bar {
    width: 200px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.mockup-body {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.side-panel {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-skeleton {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.nav-skeleton.active {
    background: linear-gradient(135deg, var(--blue), var(--pink));
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-stats {
    display: flex;
    gap: 20px;
    height: 120px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.circlechart {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px solid var(--border-subtle);
    border-top-color: var(--cyan);
}

.graphline {
    width: 60px;
    height: 40px;
    background: linear-gradient(to top, var(--blue), transparent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 20, 50 35 T 100 10 L 100 50 Z'/%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 20, 50 35 T 100 10 L 100 50 Z'/%3E%3C/svg%3E");
}

.lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.l-short {
    height: 8px;
    width: 40%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.l-long {
    height: 8px;
    width: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.patient-list {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-head {
    width: 30%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 8px;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.list-row .av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.list-row .l-mid {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.list-row .tag {
    width: 40px;
    height: 16px;
    border-radius: 8px;
}

.t-green {
    background: #6DD59D;
}

.t-orange {
    background: #3F3DFF;
}

.t-blue {
    background: #6DD59D;
}

/* Floating Cards Parallax */
.floating-card {
    position: absolute;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    border-radius: var(--rad-md);
}

.f-card-1 {
    top: -20px;
    right: -40px;
}

.f-card-2 {
    bottom: 60px;
    left: -40px;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pink);
}

.card-text h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.card-text span {
    font-size: 0.8rem;
    color: var(--text-sec);
}


/* Marquee / Infinite Scroll */
.marquee-wrapper {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 40px 0;
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(10px);
}

.marquee-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Gradual fade at edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-base), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-base), transparent);
}

.marquee-content {
    display: inline-flex;
    animation: scroll-left 30s linear infinite;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 40px;
    letter-spacing: -0.02em;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Bento Box Features --- */
.bento-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.h2-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.section-header .section-desc {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 24px;
}

.bento-item {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.bento-large .bento-content h3 {
    font-size: 2rem;
}

/* Abstract Visuals in Bento */
.abstract-calendar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    border: 1px solid var(--border-subtle);
}

.cal-row {
    display: flex;
    gap: 8px;
}

.slot {
    height: 24px;
    flex: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.slot.filled {
    background: rgba(255, 255, 255, 0.2);
}

.slot.active {
    background: var(--cyan);
    box-shadow: var(--glow-cyan);
}

.abstract-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.abar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: 0.3s;
}

.abar.highlight {
    background: linear-gradient(to top, var(--pink), var(--blue));
    box-shadow: var(--glow-pink);
}

/* Tilt effect handled in JS */
.tilt-card {
    transform-style: preserve-3d;
}

.bento-item .card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}

.bento-item:hover .card-glow {
    opacity: 1;
}

/* --- CTA Section --- */
.cta-immersive {
    padding: 100px 0;
}

.cta-inner {
    border-radius: var(--rad-xl);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-highlight);
    background: #0A0A0C;
}

.cta-mesh {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 50% 100%, rgba(63, 61, 255, 0.4), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(63, 61, 255, 0.3), transparent 30%);
    filter: blur(60px);
    opacity: 0.6;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-inner h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.cta-inner p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
    background: var(--bg-base);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 80px;
}

.brand-desc {
    margin-top: 24px;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
    color: var(--text-sec);
}

.social-links a:hover {
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-col h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 24px;
}

.link-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.link-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* --- Advanced Animation Classes (Triggered by JS) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-out-expo);
}

/* === MVP Section Styles === */
.mvp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mvp-card {
    padding: 40px;
    text-align: center;
}

.mvp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mvp-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* === Stats Section Styles === */
.stats-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 60px 0;
}

.stat-box {
    padding: 40px;
    text-align: center;
    border-radius: var(--rad-xl);
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.problem-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    padding: 60px;
}

.problem-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-content h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.2;
}

.problem-list {
    list-style: none;
}

.problem-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 1rem;
}

.x-icon {
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 61, 255, 0.2);
    border-radius: 50%;
    color: var(--pink);
    font-weight: bold;
    font-size: 1.2rem;
}

.problem-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.infographic-placeholder {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.infograph-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.infograph-bar {
    height: 30px;
    border-radius: 8px;
    transition: 0.3s;
}

.infograph-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

/* === Pillars / Solution Section === */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.pillar-card {
    padding: 40px;
    border-radius: var(--rad-xl);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.pillar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.pillar-list {
    list-style: none;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-sec);
}

.pillar-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.pillar-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
}

/* === Diagram Box Styles === */
.diagram-box {
    padding: 60px 40px;
    margin: 60px 0;
    border-radius: var(--rad-xl);
}

.diagram-svg {
    display: block;
    margin: 0 auto;
}

.diagram-legend {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style for data flow animation */
@keyframes flowData {
    0% {
        offset-distance: 0%;
        opacity: 1;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* === Features Grid === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-tile {
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--rad-lg);
    transition: all 0.3s;
}

.feature-tile:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 16px;
}

.feature-tile h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.feature-tile p {
    font-size: 0.9rem;
}

/* === Story Section === */
.story-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.story-box {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-xl);
    align-items: stretch;
}

.story-video-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
}

.video-placeholder-container {
    width: 100%;
    position: relative;
}

.video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, rgba(63, 61, 255, 0.3), rgba(109, 213, 157, 0.1));
    border-radius: var(--rad-lg);
    border: 2px solid var(--border-highlight);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(109, 213, 157, 0.2);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(109, 213, 157, 0.3);
}

.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(109, 213, 157, 0.5);
}

.video-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
}

.story-steps-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 320px;
}

.story-step {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 24px;
    align-items: start;
    position: relative;
    flex: 1;
    display: flex;
    gap: 20px;
}

.step-num {
    min-width: 40px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.story-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(109, 213, 157, 0.2), transparent);
    margin: 0;
}

/* === Audience Section === */
.audience-section {
    background: var(--bg-surface);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.audience-card {
    padding: 40px;
    border-radius: var(--rad-xl);
    transition: all 0.3s;
}

.audience-card:hover {
    transform: translateY(-8px);
}

.audience-card.featured-card {
    border: 2px solid var(--cyan);
    background: rgba(109, 213, 157, 0.05);
}

.audience-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}

.audience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
}

.audience-list {
    list-style: none;
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-sec);
}

.audience-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.audience-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
}

/* === Contact Section === */
.contact-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
}

.contact-inner {
    margin-top: 60px;
    padding: 60px;
    position: relative;
    border-radius: var(--rad-xl);
}

.cta-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(63, 61, 255, 0.15), transparent 60%);
    filter: blur(40px);
    border-radius: inherit;
    z-index: 0;
}

.contact-form-wrap {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrap h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: white;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-md);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 24px rgba(109, 213, 157, 0.2);
}

.submit-btn {
    margin-top: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-out-expo);
}

.reveal.slide-up {
    transform: translateY(60px);
}

.reveal.scale-in {
    transform: scale(0.9);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-medium {
        flex-direction: column;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .abstract-dashboard {
        transform: rotateY(0) rotateX(0);
        position: relative;
    }

    .hero-visuals {
        height: auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .story-box {
        flex-direction: column;
        gap: 40px;
        padding: 24px;
    }

    .story-video-wrapper {
        min-width: auto;
    }

    .story-steps-list {
        min-width: auto;
    }

    .story-step {
        padding: 16px 0;
    }

    .diagram-box {
        padding: 24px;
    }

    .problem-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 24px;
    }

    .mvp-grid,
    .pillars-grid,
    .audience-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-inner {
        padding: 40px 20px;
    }

    .contact-form-wrap h3 {
        font-size: 1.4rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
