:root {
    /* Arrow Health Original Premium Palette */
    --bg-main: #F8F5EF;
    --bg-soft: #FCFAF7;
    --surface: #FFFFFF;
    --text-main: #18201E;
    --text-muted: #6E746F;
    --border-soft: rgba(24, 32, 30, 0.09);

    /* Brand Colors */
    --brand-primary: #164E45;
    --brand-secondary: #A9855A;
    --brand-dark: #0F1816;
    --brand-glow: rgba(22, 78, 69, 0.16);
    --hero-active-color: #639898;
    /* dynamic color for hero glow */

    /* Muted Service Accents */
    --heart: #B75D69;
    --sleep: #4D5B8C;
    --activity: #B87942;
    --nutrition: #6F8B63;
    --hydration: #6697A7;
    --medicine: #5B9A86;
    --mood: #9A7BA8;
    --reports: #6D7680;
    --score: #B59B4A;

    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --shadow-soft: 0 24px 70px rgba(15, 24, 22, 0.08);
    --shadow-card: 0 16px 45px rgba(15, 24, 22, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    overflow-x: hidden;
}

/* Nav */
.nav {
    width: min(1180px, calc(100% - 40px));
    margin: 20px auto 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 16px;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), #2F7769);
    display: grid;
    place-items: center;
    color: white;
    font-size: 17px;
}

.nav-links {
    display: flex;
    gap: 28px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.nav-button,
.button-primary,
.button-secondary {
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
    display: inline-block;
    cursor: pointer;
}

.nav-button {
    background: var(--brand-dark);
    color: white;
    padding: 10px 18px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    width: min(1180px, calc(100% - 40px));
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    min-height: 680px;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--brand-primary);
    background: rgba(22, 78, 69, 0.08);
    border: 1px solid rgba(22, 78, 69, 0.12);
    font-size: 14px;
    font-weight: 750;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(3.2rem, 7vw, 6.7rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
    max-width: 780px;
    margin-bottom: 26px;
}

.hero h1 span {
    color: var(--brand-primary);
    transition: color 0.5s ease;
}

.hero p {
    max-width: 610px;
    color: var(--text-muted);
    font-size: 1.18rem;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button-primary {
    background: var(--brand-primary);
    color: white;
    padding: 15px 24px;
    box-shadow: 0 16px 35px rgba(22, 78, 69, 0.18);
    border: none;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-soft);
    padding: 15px 24px;
    color: var(--brand-dark);
}

.button-primary:hover,
.button-secondary:hover,
.nav-button:hover {
    transform: translateY(-2px);
}

/* Dynamic Toggles */
.service-toggles {
    display: flex;
    gap: 0.5rem;
    background: rgba(24, 32, 30, 0.04);
    padding: 0.5rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    border: 1px solid var(--border-soft);
    max-width: fit-content;
}

.service-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-toggle:hover {
    color: var(--text-main);
}

.service-toggle.active {
    background: var(--surface);
    color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 620px;
}

/* Animated Background Circles */
.hero-bg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(24, 32, 30, 0.05);
    background: transparent;
    animation: pulse 4s infinite cubic-bezier(0.4, 0, 0.2, 1) alternate;
}

.bg-circle-1 {
    width: 40%;
    height: 40%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 60%;
    height: 60%;
    animation-delay: 1s;
}

.bg-circle-3 {
    width: 80%;
    height: 80%;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-active-color), transparent 68%);
    opacity: 0.15;
    filter: blur(10px);
    transition: all 0.8s ease;
    z-index: 1;
}

.phone {
    position: relative;
    width: 330px;
    min-height: 610px;
    border-radius: 46px;
    background: #101816;
    padding: 12px;
    box-shadow: 0 45px 100px rgba(15, 24, 22, 0.28);
    transform: rotate(-3deg);
    z-index: 5;
    transition: transform 0.5s ease;
}

.phone:hover {
    transform: rotate(0deg);
}

.phone-screen {
    background: var(--bg-soft);
    border-radius: 36px;
    height: 586px;
    padding: 24px;
    overflow: hidden;
}

.phone-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

/* Dynamic Score Card */
.score-card {
    background: linear-gradient(145deg, #193F39, #0F1816);
    color: white;
    border-radius: 28px;
    padding: 22px;
    min-height: 180px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.score-card:after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -45px;
    top: -45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.score-graph {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 75px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.score-graph svg {
    width: 100%;
    height: 100%;
}

.graph-line-path {
    stroke-dasharray: 220;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease, d 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.graph-fill-path {
    opacity: 0.15;
    transition: opacity 0.8s ease, fill 0.5s ease, d 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.score-number {
    font-size: 68px;
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 850;
    transition: color 0.5s ease;
    position: relative;
    z-index: 2;
}

.score-text {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.mini-card {
    background: white;
    border: 1px solid rgba(24, 32, 30, 0.06);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(15, 24, 22, 0.04);
}

.mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    margin-bottom: 12px;
    font-size: 15px;
}

.mini-card strong {
    display: block;
    font-size: 19px;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.mini-card small {
    color: var(--text-muted);
    font-weight: 650;
}

.heart {
    background: var(--heart);
}

.sleep {
    background: var(--sleep);
}

.activity {
    background: var(--activity);
}

.medicine {
    background: var(--medicine);
}

.hydration {
    background: var(--hydration);
}

.mood {
    background: var(--mood);
}

.reports {
    background: var(--reports);
}

.score {
    background: var(--score);
}

.nutrition {
    background: var(--nutrition);
}

/* Floating Insight */
.floating-insight {
    position: absolute;
    right: 0;
    bottom: 95px;
    width: 260px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    z-index: 10;
    transition: all 0.5s ease;
}

.floating-insight b {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    color: var(--text-main);
}

.floating-insight p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Sections */
.section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 46px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.065em;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* ==========================================================================
   BENTO UI SHOWCASE SECTION
   ========================================================================== */
.bento-section {
    padding: 120px 20px 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.bento-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.bento-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.bento-header h2 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    letter-spacing: -0.06em;
    color: var(--text-main);
    margin-bottom: 18px;
    line-height: 1.05;
}

.bento-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
    grid-template-areas:
        "glucose glucose chat meds"
        "glucose glucose macros macros"
        "expert expert privacy insight";
}

.bento-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 32px;
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.bento-glucose { grid-area: glucose; background: white; padding: 40px; }
.bento-chat { grid-area: chat; justify-content: center; }
.bento-meds { grid-area: meds; justify-content: center; align-items: center; text-align: center; }
.bento-macros { grid-area: macros; justify-content: center; }
.bento-expert { grid-area: expert; justify-content: center; }
.bento-privacy { grid-area: privacy; justify-content: center; align-items: center; text-align: center; background: var(--brand-dark); color: white;}
.bento-insight { grid-area: insight; justify-content: center; background: linear-gradient(135deg, var(--brand-soft), white); }

/* Glucose Card UI */
.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.bento-card-header h3 { font-size: 18px; font-weight: 700; color: var(--text-main); }
.bento-card-header span { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.bento-glucose-val { font-size: 4rem; font-weight: 850; letter-spacing: -0.05em; line-height: 1; margin-bottom: 30px; color: var(--text-main); }
.bento-glucose-val span { font-size: 1.2rem; color: var(--text-muted); }
.bento-glucose-chart {
    flex-grow: 1;
    position: relative;
    background: radial-gradient(circle at 50% 100%, rgba(24, 190, 199, 0.15), transparent 70%);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}
.chart-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 40px;
    border-top: 3px solid var(--brand-teal);
    border-radius: 50% 50% 0 0;
    transform: scaleX(1.2);
}
.chart-point {
    position: absolute;
    bottom: 35%;
    right: 20%;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid var(--brand-teal);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(7, 143, 146, 0.4);
}
.bento-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: rgba(7, 143, 146, 0.1);
    color: var(--brand-teal);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    align-self: flex-start;
}

/* Chat UI */
.chat-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 90%;
}
.chat-bubble.user {
    background: rgba(24, 32, 30, 0.05);
    color: var(--text-main);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-bottom: 12px;
}
.chat-bubble.ai {
    background: var(--brand-teal);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Meds UI */
.scan-reticle {
    width: 80px;
    height: 80px;
    border: 2px dashed rgba(7, 143, 146, 0.4);
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    position: relative;
}
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--brand-teal);
    top: 50%;
    box-shadow: 0 0 10px var(--brand-teal);
    animation: scanAnim 2s infinite linear alternate;
}
@keyframes scanAnim {
    0% { top: 10%; }
    100% { top: 90%; }
}
.bento-card-title {
    font-size: 16px;
    font-weight: 750;
    color: var(--text-main);
}

/* Macros UI */
.bento-macros .bento-card-title { margin-bottom: 20px; }
.macro-bars { display: flex; flex-direction: column; gap: 14px; }
.macro-item { display: grid; grid-template-columns: 60px 1fr 30px; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-main); }
.bar-wrap { height: 8px; background: rgba(24, 32, 30, 0.05); border-radius: 999px; overflow: hidden; }
.bar { height: 100%; border-radius: 999px; }
.bar.protein { background: var(--soft-blue); }
.bar.carbs { background: var(--warm-gold); }
.bar.fat { background: var(--soft-rose); }

/* Expert UI */
.bento-expert { flex-direction: row; align-items: center; gap: 20px; }
.expert-avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-main); border: 2px solid var(--border-soft); }
.status-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; background: #34C759; border: 2px solid white; border-radius: 50%; }
.expert-info { flex-grow: 1; }
.expert-info strong { display: block; font-size: 18px; margin-bottom: 4px; color: var(--text-main); }
.expert-info span { font-size: 13px; color: var(--brand-teal); font-weight: 700; }
.bento-btn { padding: 10px 20px; background: var(--brand-dark); color: white; border: none; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.2s ease;}
.bento-btn:hover { background: var(--brand-primary); transform: translateY(-2px); }

/* Privacy UI */
.privacy-icon { font-size: 32px; margin-bottom: 12px; }
.bento-privacy strong { font-size: 18px; margin-bottom: 4px; color: white; display: block; }
.bento-privacy span { font-size: 13px; color: rgba(255, 255, 255, 0.6); font-weight: 600; }

/* Insight UI */
.insight-icon { font-size: 24px; margin-bottom: 12px; }
.bento-insight p { font-size: 15px; font-weight: 700; color: var(--text-main); line-height: 1.4; }

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(220px, auto);
        grid-template-areas:
            "glucose glucose"
            "glucose glucose"
            "chat meds"
            "macros macros"
            "expert expert"
            "privacy insight";
    }
}
@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "glucose"
            "glucose"
            "chat"
            "meds"
            "macros"
            "expert"
            "privacy"
            "insight";
    }
    .bento-expert { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   PREMIUM PRICING SECTION
   ========================================================================== */
.premium-section {
    padding: 120px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(24, 190, 199, 0.05), transparent 70%);
}

.premium-container {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.premium-header {
    text-align: center;
    margin-bottom: 70px;
}

.premium-header .eyebrow {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(22, 78, 69, 0.08);
    color: var(--brand-primary);
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 20px;
}

.premium-header h2 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    letter-spacing: -0.06em;
    line-height: 1.1;
    color: var(--text-main);
    margin-bottom: 16px;
}

.premium-header h2 span {
    color: var(--brand-primary);
}

.premium-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-soft);
    border-radius: 36px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.pricing-card.premium-tier {
    background: var(--brand-dark);
    color: white;
    padding: 60px 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(15, 24, 22, 0.2);
}

/* Subtle glow effect for premium tier */
.pricing-card.premium-tier::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 38px;
    background: linear-gradient(145deg, var(--brand-cyan), transparent, var(--brand-teal));
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.pricing-card.premium-tier:hover::before {
    opacity: 0.6;
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
    color: white;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 8px 20px rgba(24, 190, 199, 0.3);
}

.tier-header {
    margin-bottom: 40px;
}

.tier-header h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.basic-tier .tier-header h3 {
    color: var(--text-main);
}

.premium-tier .tier-header h3 {
    color: #9FE2D8;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 12px;
}

.price span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-tier .price span {
    color: rgba(255, 255, 255, 0.6);
}

.tier-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.premium-tier .tier-header p {
    color: rgba(255, 255, 255, 0.7);
}

.tier-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}

.feature-item span {
    color: var(--brand-primary);
    font-weight: 900;
}

.premium-tier .feature-item span {
    color: #9FE2D8;
}

.feature-item.text-muted {
    color: var(--text-muted);
}

.feature-item.text-muted span {
    color: var(--text-muted);
    opacity: 0.5;
}

.tier-btn {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.tier-btn.secondary {
    background: rgba(24, 32, 30, 0.05);
    color: var(--text-main);
}

.tier-btn.secondary:hover {
    background: rgba(24, 32, 30, 0.1);
}

.tier-btn.primary {
    background: white;
    color: var(--brand-dark);
}

.tier-btn.primary:hover {
    background: #9FE2D8;
    transform: translateY(-2px);
}

/* Floating "Why Arrow Health?" Button */
.floating-why-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--brand-dark);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.floating-why-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--brand-primary);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 48px;
    }

    .hero p,
    .section-heading,
    .service-toggles {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .floating-insight {
        display: none;
    }
}

@media (max-width: 560px) {

    .phone {
        width: 300px;
    }

    .hero-visual {
        min-height: 580px;
    }

    .nav {
        width: calc(100% - 24px);
    }

    .nav-button {
        display: none;
    }

    .floating-why-btn {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.85rem;
        padding: 0.75rem 1.2rem;
    }
}

/* Why Arrow Health Modal */
.why-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.why-modal.open {
    transform: translateY(0);
    opacity: 1;
}

.why-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(248, 245, 239, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1010;
    border-bottom: 1px solid var(--border-soft);
}

.why-modal-header h2 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.why-modal-content {
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.why-hero-bg {
    width: 100%;
    min-height: 50vh;
    background-image: url('./assets/whyarrow.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    margin-bottom: 100px;
}

.why-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 245, 239, 0.4), var(--bg-main));
}

.why-hero {
    position: relative;
    text-align: left;
    z-index: 2;
    padding: 40px;
    max-width: 650px;
}

.why-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.06em;
    margin-bottom: 24px;
    color: var(--text-main);
    opacity: 0;
}

.why-hero h1 span {
    color: var(--brand-primary);
}

.why-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    opacity: 0;
}

.why-modal.open .why-hero h1 {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.why-modal.open .why-hero p {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

/* Floating Privacy Card */
.hero-privacy-card {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(24, 32, 30, 0.11);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(15, 24, 22, 0.11);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 330px;
    z-index: 50;
    opacity: 1;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

.privacy-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18BEC7, #078F92);
    color: white;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}

.animated-shield {
    box-shadow: 0 4px 15px rgba(24, 190, 199, 0.3);
}

.shield-svg {
    animation: shieldWobble 4s ease-in-out infinite;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(24, 190, 199, 0.45);
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}

@keyframes shieldWobble {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.08) rotate(3deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.65);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.privacy-content strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 2px;
    font-weight: 800;
}

.privacy-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.why-section {
    max-width: 1100px;
    margin: 0 auto 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 0 40px;
}

.why-section.reverse {
    direction: rtl;
}

.why-section.reverse>* {
    direction: ltr;
}

.why-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--brand-primary);
    background: rgba(22, 78, 69, 0.08);
    border: 1px solid rgba(22, 78, 69, 0.12);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 24px;
}

.why-text h3 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.075em;
    margin-bottom: 24px;
    color: var(--text-main);
    font-weight: 700;
}

.why-text h3 span {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #078F92 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.why-text p {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
}

/* App Mockup (Light Premium) */
.app-mockup-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.app-mockup {
    position: relative;
    z-index: 2;
    width: 320px;
    border-radius: 42px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(24, 32, 30, 0.08);
    box-shadow: 0 34px 95px rgba(15, 24, 22, 0.14);
    backdrop-filter: blur(18px);
}

.app-mockup::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 42px;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0), rgba(22, 78, 69, 0.09));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.screen {
    overflow: hidden;
    border-radius: 31px;
    background: #F4F9FA;
    border: 1px solid rgba(24, 32, 30, 0.08);
    height: 610px;
    position: relative;
}

/* Glucose UI Handcoded CSS */
.status-bar {
    height: 28px;
    padding: 6px 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 11px;
    font-weight: 800;
    background: #078F92;
    letter-spacing: -0.02em;
}

.status-icons {
    display: flex;
    gap: 4px;
    opacity: 0.92;
}

.app-header {
    background: #078F92;
    height: 80px;
    color: white;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 10px 14px 15px;
}

.back-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 300;
}

.header-title {
    text-align: center;
    align-self: center;
}

.header-title small {
    display: block;
    letter-spacing: 0.18em;
    font-size: 9px;
    opacity: 0.62;
    font-weight: 800;
    margin-bottom: 2px;
}

.header-title strong {
    display: block;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.app-body {
    padding: 16px 12px;
    height: calc(100% - 108px);
    overflow-y: auto;
    overflow-x: hidden;
}

.section-title {
    display: grid;
    grid-template-columns: 4px 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 24px;
    border-radius: 99px;
    background: linear-gradient(180deg, #18BEC7, #078F92);
    margin-top: 2px;
}

.section-title h2 {
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2px;
    color: #18201E;
}

.section-title p {
    color: #63777C;
    font-size: 10px;
    font-weight: 600;
}

.input-card {
    background: white;
    border: 1px solid rgba(24, 32, 30, 0.22);
    border-radius: 16px;
    min-height: 56px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    box-shadow: 0 6px 15px rgba(15, 24, 22, 0.03);
}

.input-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, #18BEC7, #078F92);
    display: grid;
    place-items: center;
    color: white;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(24, 190, 199, 0.22);
}

.input-value {
    flex: 1;
    font-size: 15px;
    font-weight: 800;
    color: #9AA8AC;
}

.unit-pill {
    background: #E6F6F7;
    color: #078F92;
    border: 1px solid rgba(7, 143, 146, 0.2);
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 900;
}

.unit-switch {
    height: 40px;
    background: white;
    border: 1px solid rgba(24, 32, 30, 0.22);
    border-radius: 14px;
    padding: 3px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-bottom: 12px;
}

.unit-option {
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 11px;
    color: #536A70;
}

.unit-option.active {
    background: #078F92;
    color: white;
}

.quick-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
}

.quick-label {
    color: #5F747A;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.chip {
    background: white;
    border: 1px solid rgba(15, 24, 22, 0.22);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #18201E;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #18BEC7;
}

.dot.warn {
    background: #E9A63F;
}

.meal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.meal-card {
    background: white;
    border: 1px solid rgba(15, 24, 22, 0.22);
    border-radius: 14px;
    min-height: 50px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meal-card.selected {
    background: linear-gradient(145deg, rgba(24, 190, 199, 0.16), rgba(7, 143, 146, 0.12));
    border-color: rgba(7, 143, 146, 0.45);
    color: #078F92;
}

.meal-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #E6F6F7;
    color: #078F92;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.meal-card.selected .meal-icon {
    background: linear-gradient(145deg, #18BEC7, #078F92);
    color: white;
}

.meal-card span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.035em;
    color: #18201E;
}

.bottom-button {
    height: 40px;
    margin-top: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    background: linear-gradient(135deg, #18BEC7, #078F92);
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 12px 20px rgba(7, 143, 146, 0.18);
}

/* Floating Card for AI Chat */
.floating-card {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(24, 32, 30, 0.11);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(15, 24, 22, 0.11);
    padding: 18px;
}

.floating-card.chat-card {
    left: -40px;
    bottom: 40px;
    width: 250px;
}

.floating-card small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.floating-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.floating-card p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
    font-weight: 600;
}

.chat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18BEC7, #078F92);
    color: white;
    display: grid;
    place-items: center;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Auto-scroll Animation for App Body */
@keyframes autoScrollMockup {

    0%,
    10% {
        transform: translateY(0);
    }

    45%,
    55% {
        transform: translateY(-130px);
    }

    90%,
    100% {
        transform: translateY(0);
    }
}

.app-mockup-wrapper.is-visible .app-body-inner {
    animation: autoScrollMockup 8s ease-in-out 1.2s infinite;
}

.why-grid {
    max-width: 1100px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    padding: 0 40px;
}

.why-stat {
    background: var(--surface);
    padding: 40px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
}

.why-stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.why-stat span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .why-modal-header {
        padding: 15px 20px;
    }

    .why-modal-content {
        padding: 40px 20px;
    }

    .why-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .why-section.reverse {
        direction: ltr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-hero {
        margin-bottom: 60px;
        padding: 30px 20px;
    }

    .hero-privacy-card {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bi-directional Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.from-bottom {
    transform: translateY(40px);
}

.scroll-reveal.from-top {
    transform: translateY(-40px);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Coded Glucose App Mockup Premium Styling */
.glucose-app-screen {
    height: 610px;
    width: 100%;
    background: #F4F9FA;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #18201E;
    text-align: left;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
}

.app-scroll-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px 64px 12px;
    position: relative;
    /* Custom thin scrollbar styling for screen mockup */
    scrollbar-width: thin;
    scrollbar-color: rgba(7, 143, 146, 0.2) transparent;
}

.app-scroll-body::-webkit-scrollbar {
    width: 4px;
}

.app-scroll-body::-webkit-scrollbar-thumb {
    background-color: rgba(7, 143, 146, 0.2);
    border-radius: 4px;
}

.app-header-main {
    background: #078F92;
    color: white;
    padding: 16px 16px 14px 16px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 12px rgba(7, 143, 146, 0.12);
    flex-shrink: 0;
}

.app-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.app-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.app-title-group small {
    font-size: 9px;
    opacity: 0.72;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 1px;
    text-transform: uppercase;
}

.app-title-group strong {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.menu-btn {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.85;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scan-icon {
    font-size: 14px;
    opacity: 0.85;
    cursor: pointer;
}

.profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-image: url('./assets/Screenshot_2026-05-18-02-24-15-254_com.amlan.carehub.jpg');
    background-size: cover;
    background-position: top center;
    border: 1.5px solid white;
}

.header-subtitle {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 700;
    text-align: center;
}

/* Vitals Cards Row */
.vitals-row {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.vitals-row::-webkit-scrollbar {
    display: none;
}

.vital-card {
    background: white;
    border-radius: 14px;
    padding: 10px;
    min-width: 105px;
    flex: 1 0 auto;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 12px rgba(15, 24, 22, 0.02);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vital-card.active {
    border-color: rgba(7, 143, 146, 0.28);
    background: linear-gradient(180deg, #FFFFFF 60%, #F1FAF9 100%);
}

.vital-icon {
    font-size: 14px;
    margin-bottom: 2px;
}

.vital-label {
    font-size: 9px;
    color: #63777C;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.vital-value {
    font-size: 14px;
    font-weight: 850;
    color: #18201E;
    letter-spacing: -0.02em;
}

.vital-unit {
    font-size: 8px;
    font-weight: 700;
    color: #63777C;
    margin-left: 1px;
}

.vital-time {
    font-size: 8px;
    color: #8FA0A4;
    font-weight: 700;
    white-space: nowrap;
}

.badge {
    font-size: 7.5px;
    font-weight: 850;
    padding: 2px 6px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 3px;
    text-transform: uppercase;
}

.badge.normal {
    background: #E6F6F7;
    color: #078F92;
}

.badge.logged {
    background: #F0F2F2;
    color: #5F747A;
}

.badge.warn {
    background: #FFF3E0;
    color: #E9A63F;
}

/* Glucose Main Card */
.glucose-main-card {
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(15, 24, 22, 0.03);
    border: 1px solid rgba(24, 32, 30, 0.04);
    margin-bottom: 12px;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header-row h3 {
    font-size: 13px;
    font-weight: 850;
    color: #18201E;
    letter-spacing: -0.025em;
}

.add-btn {
    background: white;
    border: 1px solid rgba(7, 143, 146, 0.35);
    color: #078F92;
    font-weight: 850;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: #F4F9FA;
}

.reading-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reading-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.reading-info small {
    font-size: 8px;
    color: #8FA0A4;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 5px;
    height: 5px;
    background: #078F92;
    border-radius: 50%;
    display: inline-block;
    animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.35;
    }
}

.reading-time strong {
    font-size: 12px;
    font-weight: 800;
    color: #18201E;
}

.reading-info .live-period {
    font-size: 10px;
    color: #63777C;
    font-weight: 700;
}

.reading-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reading-big-val {
    font-size: 26px;
    font-weight: 900;
    color: #078F92;
    line-height: 1;
    letter-spacing: -0.03em;
}

.reading-big-val small {
    font-size: 11px;
    font-weight: 800;
    color: #63777C;
}

.status-pill {
    font-size: 9px;
    font-weight: 850;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    display: inline-block;
}

.status-pill.green {
    background: #E6F6F7;
    color: #078F92;
}

.status-pill.green::before {
    background: #078F92;
}

.status-pill.yellow {
    background: #FFF8E1;
    color: #FFB300;
}

.status-pill.yellow::before {
    background: #FFB300;
}

.status-pill.red {
    background: #FFEBEE;
    color: #E53935;
}

.status-pill.red::before {
    background: #E53935;
}

/* Time Range & Unit Segmented Controls */
.time-tabs,
.unit-toggle-segmented {
    display: flex;
    background: #F0F4F5;
    border-radius: 10px;
    padding: 2px;
    margin-bottom: 8px;
}

.time-tab,
.segment {
    flex: 1;
    text-align: center;
    font-size: 9.5px;
    font-weight: 800;
    padding: 4.5px 0;
    border-radius: 8px;
    color: #5F747A;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-tab.active,
.segment.active {
    background: white;
    color: #078F92;
    box-shadow: 0 1.5px 4px rgba(15, 24, 22, 0.05);
}

.unit-toggle-segmented {
    margin-bottom: 12px;
}

/* Interactive Chart Container */
.interactive-chart-container {
    height: 120px;
    display: flex;
    position: relative;
    margin-bottom: 6px;
    padding-top: 5px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    width: 22px;
    font-size: 8px;
    color: #8FA0A4;
    font-weight: 800;
    padding: 5px 0;
}

.chart-svg-wrapper {
    flex: 1;
    height: 100px;
    position: relative;
}

.chart-svg-wrapper svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-tooltip {
    position: absolute;
    background: rgba(15, 24, 22, 0.92);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 8px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -125%);
    box-shadow: 0 4px 10px rgba(15, 24, 22, 0.2);
    z-index: 10;
    transition: left 0.08s ease-out, top 0.08s ease-out;
    white-space: nowrap;
}

.chart-tooltip::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: rgba(15, 24, 22, 0.92) transparent transparent;
}

.tooltip-time {
    font-size: 7px;
    opacity: 0.72;
    margin-bottom: 1px;
}

.tooltip-val {
    font-weight: 850;
}

/* Custom Scanner Pulsing ring animation */
.scanning-pulse-ring {
    animation: scanningPulse 1.6s infinite ease-out;
    transform-origin: center;
}

@keyframes scanningPulse {
    0% {
        r: 3px;
        opacity: 1;
    }

    100% {
        r: 9px;
        opacity: 0;
    }
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding: 0 4px 0 22px;
    font-size: 8px;
    color: #8FA0A4;
    font-weight: 750;
    margin-bottom: 10px;
}

/* Card Footer Row */
.card-footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
    color: #5F747A;
    border-top: 1px solid rgba(24, 32, 30, 0.06);
    padding-top: 8px;
    margin-top: 4px;
}

.footer-dot-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blue-dot {
    width: 4.5px;
    height: 4.5px;
    background: #078F92;
    border-radius: 50%;
}

.footer-history {
    color: #078F92;
    cursor: pointer;
}

/* Floating Ask Care AI action button */
.ask-care-ai-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #078F92;
    color: white;
    padding: 7px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 6px 16px rgba(7, 143, 146, 0.25);
    z-index: 15;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ask-care-ai-btn:hover {
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(7, 143, 146, 0.32);
}

/* AI Meal Analysis Section Styling */
.meal-hero-bg {
    width: 100%;
    position: relative;
    padding: 90px 0;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.meal-hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('./assets/meal_image.png?v=2');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
    opacity: 1;
    z-index: 0;
}

.meal-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(248, 245, 239, 0.10) 0%,
            rgba(248, 245, 239, 0.22) 55%,
            rgba(248, 245, 239, 0.50) 100%);
    z-index: 1;
    pointer-events: none;
}

.meal-hero-bg>.why-section {
    position: relative;
    z-index: 2;
    /* Ensures text and phone mockup sit perfectly on top of background layers */
}

.feature-points {
    display: grid;
    gap: 12px;
    max-width: 525px;
    margin-top: 24px;
}

.point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    font-weight: 750;
    box-shadow: 0 6px 20px rgba(15, 24, 22, 0.03);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.point:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.85);
}

.point-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: rgba(22, 78, 69, 0.08);
    color: var(--brand-teal);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 auto;
}

/* Visual Mockup Container Glows & Floaters */
.visual-glow-meal {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(24, 190, 199, 0.16), transparent 35%),
        radial-gradient(circle at 65% 65%, rgba(169, 133, 90, 0.12), transparent 32%),
        radial-gradient(circle, var(--brand-glow), transparent 70%);
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nutrition-float {
    left: -42px;
    top: 110px;
    z-index: 12;
}

.prediction-float {
    right: -42px;
    bottom: 110px;
    z-index: 12;
}

/* Syncing Timeline Control below phone */
.timeline {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 12px 30px rgba(15, 24, 22, 0.06);
    backdrop-filter: blur(18px);
}

.timeline span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(7, 143, 146, 0.26);
    animation: dotActive 20s infinite;
}

.timeline span:nth-child(1) {
    animation-delay: 0s;
}

.timeline span:nth-child(2) {
    animation-delay: 4s;
}

.timeline span:nth-child(3) {
    animation-delay: 8s;
}

.timeline span:nth-child(4) {
    animation-delay: 12s;
}

.timeline span:nth-child(5) {
    animation-delay: 16s;
}

@keyframes dotActive {

    0%,
    20% {
        background: var(--brand-teal);
        transform: scale(1.4);
    }

    21%,
    100% {
        background: rgba(7, 143, 146, 0.26);
        transform: scale(1);
    }
}

/* 5-Step Rotational CSS Mockup Animation */
.animation-stage {
    position: relative;
    height: calc(100% - 108px);
    overflow: hidden;
}

.step {
    position: absolute;
    inset: 0;
    padding: 16px 14px;
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    animation: showStep 20s infinite;
    display: flex;
    flex-direction: column;
}

.step-1 {
    animation-delay: 0s;
}

.step-2 {
    animation-delay: 4s;
}

.step-3 {
    animation-delay: 8s;
}

.step-4 {
    animation-delay: 12s;
}

.step-5 {
    animation-delay: 16s;
}

@keyframes showStep {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    4% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    18% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    22% {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }

    100% {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
    }
}

.analysis-center {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.analysis-center h2 {
    font-size: 16px;
    font-weight: 850;
    color: #18201E;
    letter-spacing: -0.03em;
}

.analysis-center p {
    color: #63777C;
    font-size: 11px;
    font-weight: 650;
    max-width: 220px;
}

/* Loading Spinner elements */
.spinner-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}

.spinner-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(24, 190, 199, 0.12);
    filter: blur(14px);
    animation: glowPulse 1.8s ease-in-out infinite alternate;
}

.spinner {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 8px solid rgba(24, 190, 199, 0.14);
    border-top-color: var(--brand-teal);
    border-right-color: var(--brand-cyan);
    animation: rotateSpinner 1.1s linear infinite;
}

@keyframes rotateSpinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    from {
        transform: scale(0.95);
        opacity: 0.6;
    }

    to {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Photo Scan Card step styling */
.scan-card {
    background: white;
    border: 1px solid rgba(24, 190, 199, 0.18);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 24, 22, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.food-photo {
    height: 160px;
    border-radius: 12px;
    background-image: url('./assets/meal_image.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.food-photo::before,
.food-photo::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 16px rgba(24, 190, 199, 0.35);
    animation: scanDot 2.4s ease-in-out infinite alternate;
}

.food-photo::before {
    left: 16px;
    top: 16px;
}

.food-photo::after {
    right: 16px;
    bottom: 16px;
    animation-delay: 0.7s;
}

@keyframes scanDot {
    from {
        transform: scale(0.7);
        opacity: 0.5;
    }

    to {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

.corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--brand-teal);
    opacity: 0.85;
}

.corner.tl {
    left: 20px;
    top: 20px;
    border-left: 3px solid;
    border-top: 3px solid;
}

.corner.tr {
    right: 20px;
    top: 20px;
    border-right: 3px solid;
    border-top: 3px solid;
}

.corner.bl {
    left: 20px;
    bottom: 20px;
    border-left: 3px solid;
    border-bottom: 3px solid;
}

.corner.br {
    right: 20px;
    bottom: 20px;
    border-right: 3px solid;
    border-bottom: 3px solid;
}

/* Detected list styling */
.detected-list {
    display: grid;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: none;
}

.detected-list::-webkit-scrollbar {
    display: none;
}

.detected-row {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: -0.02em;
    color: #18201E;
}

.detected-row .name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detected-row .name::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-cyan);
}

.pill {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    color: #536A70;
    font-size: 9px;
    font-weight: 800;
    background: white;
}

.pill.teal {
    color: #078F92;
    background: #E6F6F7;
    border-color: rgba(7, 143, 146, 0.18);
}

/* Macro Nutrition grid */
.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.macro-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    align-items: center;
}

.macro-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 900;
}

.macro-icon.carbs {
    background: rgba(102, 151, 167, 0.16);
    color: #078F92;
}

.macro-icon.protein {
    background: rgba(91, 154, 134, 0.16);
    color: #5B9A86;
}

.macro-icon.fat {
    background: rgba(217, 162, 78, 0.16);
    color: #D9A24E;
}

.macro-icon.calories {
    background: rgba(217, 107, 107, 0.13);
    color: #D96B6B;
}

.macro-card small {
    display: block;
    color: #63777C;
    font-weight: 850;
    font-size: 9px;
}

.macro-card strong {
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #18201E;
}

.macro-card span {
    font-size: 10px;
    color: #63777C;
    font-weight: 850;
    margin-left: 1px;
}

/* Glucose predicted expected rise card */
.glucose-rise-card {
    background: linear-gradient(135deg, #18BEC7, #078F92);
    color: white;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(7, 143, 146, 0.18);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.glucose-rise-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    right: -40px;
    top: -40px;
    background: rgba(255, 255, 255, 0.12);
}

.tag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.12em;
    font-size: 9px;
    font-weight: 900;
}

.risk {
    background: white;
    color: #D96B6B;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.rise-number {
    font-size: 34px;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-weight: 950;
    position: relative;
    z-index: 1;
}

.rise-number span {
    font-size: 11px;
    letter-spacing: -0.02em;
    margin-left: 4px;
    opacity: 0.88;
}

.peak {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 8px;
    font-weight: 850;
    position: relative;
    z-index: 1;
    font-size: 10px;
}

/* AI alert suggestion card */
.suggestion-card {
    background: #FFF8E9;
    border: 1px solid rgba(231, 168, 62, 0.28);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 24, 22, 0.04);
    text-align: left;
}

.suggestion-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.suggestion-top h3 {
    color: #E19916;
    font-size: 14px;
    letter-spacing: -0.03em;
    font-weight: 850;
}

.confidence {
    background: #DDF2EE;
    color: #078F92;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 950;
}

.suggestion-card p {
    color: #2D3432;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.45;
}

/* ================================================================
   AI Services Showcase Section
   ================================================================ */

.ai-section {
    width: min(1100px, calc(100% - 40px));
    margin: 80px auto 0;
    padding: 0;
    position: relative;
}

.ai-section::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -240px;
    top: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 78, 69, 0.10), transparent 68%);
    pointer-events: none;
}

/* Section Top — Two-column header */
.ai-section-top {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 54px;
    position: relative;
    z-index: 2;
}

.ai-section-title {
    font-size: clamp(2.75rem, 6vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.075em;
    color: var(--text-main);
    max-width: 760px;
    font-weight: 700;
    margin: 0;
}

.ai-section-title span {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #078F92 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ai-intro-side {
    display: grid;
    gap: 26px;
    align-items: end;
    justify-items: end;
}

.ai-section-intro {
    color: var(--text-muted);
    font-size: 1.12rem;
    max-width: 570px;
    margin-left: auto;
}

/* AI Preview Cluster — Floating preview cards */
.ai-preview-cluster {
    width: min(520px, 100%);
    min-height: 285px;
    position: relative;
}

.ai-preview-card {
    position: absolute;
    width: 310px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-soft);
    box-shadow: 0 22px 60px rgba(15, 24, 22, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ai-preview-card:hover {
    animation-play-state: paused;
    box-shadow: 0 30px 80px rgba(15, 24, 22, 0.12);
}

.ai-medicine-preview-card {
    top: 0;
    right: 58px;
    animation: aiFloatLeftRight 7.5s ease-in-out infinite;
}

.ai-chat-preview-card {
    top: 92px;
    left: 18px;
    animation: aiFloatRightLeft 8.5s ease-in-out infinite;
}

.ai-camera-preview-card {
    top: 184px;
    right: 0;
    animation: aiFloatLeftRightSmall 7.8s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes aiFloatLeftRight {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-24px) translateY(3px); }
}

@keyframes aiFloatRightLeft {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(26px) translateY(-3px); }
}

@keyframes aiFloatLeftRightSmall {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-18px) translateY(4px); }
}

.ai-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 20px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(15, 24, 22, 0.12);
}

.ai-icon-medicine { background: linear-gradient(145deg, #8BC4B1, var(--medicine)); }
.ai-icon-chat { background: linear-gradient(145deg, #A7A9D8, #6A6EA8); }
.ai-icon-camera { background: linear-gradient(145deg, #D4A872, #B87942); }

.ai-preview-card strong {
    display: block;
    font-size: 15px;
    letter-spacing: -0.035em;
    margin-bottom: 3px;
}

.ai-preview-card span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ai-cluster-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    right: 80px;
    top: 10px;
    background: radial-gradient(circle, rgba(24, 190, 199, 0.12), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

/* AI Showcase Grid — Card layout */
.ai-showcase-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto;
    gap: 22px;
    position: relative;
    z-index: 2;
}

.ai-card {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 55px rgba(15, 24, 22, 0.075);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ai-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 95px rgba(15, 24, 22, 0.13);
    border-color: rgba(22, 78, 69, 0.18);
}

.ai-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 0%, rgba(24, 190, 199, 0.08), transparent 34%),
        radial-gradient(circle at 92% 88%, rgba(169, 133, 90, 0.07), transparent 30%);
    opacity: 0.9;
}

.ai-card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
}

.ai-medicine-card {
    min-height: 650px;
    grid-row: span 2;
}

.ai-chat-card,
.ai-camera-card-main {
    min-height: 314px;
}

.ai-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ai-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 23px;
    font-weight: 950;
    box-shadow: 0 14px 32px rgba(15, 24, 22, 0.12);
}

.ai-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(22, 78, 69, 0.07);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.ai-card h3 {
    font-size: clamp(1.65rem, 2.7vw, 2.45rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    margin-bottom: 12px;
    font-weight: 700;
}

.ai-card p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
}

/* Medicine Scan Visual */
.ai-medicine-visual {
    margin-top: 32px;
    display: grid;
    gap: 18px;
}

.ai-scan-window {
    height: 250px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.55), transparent 38%),
        linear-gradient(145deg, #DDF2EB, #F8FBF8);
    border: 1px solid rgba(91, 154, 134, 0.18);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 18px 40px rgba(15,24,22,0.06);
}

.ai-medicine-box {
    position: absolute;
    width: 170px;
    height: 118px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    border-radius: 18px;
    background: linear-gradient(135deg, white, #E9F4F0);
    border: 1px solid rgba(91, 154, 134, 0.2);
    box-shadow: 0 20px 35px rgba(15,24,22,0.12);
    padding: 18px;
}

.ai-medicine-box::before {
    content: "MED";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 30px;
    border-radius: 10px;
    background: rgba(91, 154, 134, 0.14);
    color: #2E6F61;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.ai-medicine-box::after {
    content: "500 mg";
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: var(--text-muted);
    font-weight: 850;
    font-size: 16px;
}

.ai-scan-line {
    position: absolute;
    left: 36px;
    right: 36px;
    height: 3px;
    top: 52px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--medicine), transparent);
    box-shadow: 0 0 24px rgba(91,154,134,0.65);
    animation: aiScanMedicine 2.8s ease-in-out infinite;
}

@keyframes aiScanMedicine {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    45%, 55% { opacity: 1; }
    50% { transform: translateY(142px); }
}

.ai-scan-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border-color: var(--medicine);
    opacity: 0.85;
}

.ai-scan-corner.tl { left: 28px; top: 28px; border-left: 3px solid; border-top: 3px solid; }
.ai-scan-corner.tr { right: 28px; top: 28px; border-right: 3px solid; border-top: 3px solid; }
.ai-scan-corner.bl { left: 28px; bottom: 28px; border-left: 3px solid; border-bottom: 3px solid; }
.ai-scan-corner.br { right: 28px; bottom: 28px; border-right: 3px solid; border-bottom: 3px solid; }

/* Medicine Info Panel */
.ai-medicine-info-panel {
    display: grid;
    gap: 12px;
}

.ai-medicine-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 26px rgba(15,24,22,0.04);
}

.ai-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(91, 154, 134, 0.14);
    color: #2E6F61;
    font-weight: 950;
    font-size: 16px;
}

.ai-medicine-row strong {
    display: block;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.ai-medicine-row small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.ai-row-pill {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(91, 154, 134, 0.12);
    color: #2E6F61;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.ai-card-bottom-note {
    margin-top: 20px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(22,78,69,0.10), rgba(255,255,255,0.64));
    border: 1px solid rgba(22, 78, 69, 0.10);
    color: var(--brand-primary);
    font-size: 14px;
    font-weight: 800;
}

/* AI Chat Layout */
.ai-chat-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 18px;
    align-items: center;
}

.ai-chat-orb {
    min-height: 165px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 45% 38%, rgba(167,169,216,0.65), transparent 28%),
        radial-gradient(circle at 58% 58%, rgba(24,190,199,0.28), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,0.78), rgba(245,245,255,0.9));
    border: 1px solid rgba(106, 110, 168, 0.14);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.ai-chat-orb::before {
    content: "";
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 16px solid rgba(106,110,168,0.16);
    border-top-color: #6A6EA8;
    animation: aiRotateOrb 5s linear infinite;
}

@keyframes aiRotateOrb {
    to { transform: rotate(360deg); }
}

.ai-chat-messages {
    display: grid;
    gap: 10px;
}

.ai-bubble {
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 760;
    box-shadow: 0 10px 24px rgba(15,24,22,0.04);
}

.ai-bubble-user {
    background: #6A6EA8;
    color: white;
    border-bottom-right-radius: 6px;
    margin-left: 18px;
}

.ai-bubble-ai {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
    border-bottom-left-radius: 6px;
    margin-right: 18px;
}

.ai-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.ai-typing i {
    width: 5px;
    height: 5px;
    background: #6A6EA8;
    border-radius: 50%;
    animation: aiTypingDot 1.2s infinite ease-in-out;
}

.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiTypingDot {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Smart Camera Layout */
.ai-camera-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
    align-items: stretch;
}

.ai-camera-frame {
    min-height: 172px;
    border-radius: 28px;
    background-image: url('./assets/apple.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184,121,66,0.17);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

.ai-camera-frame::after {
    content: "";
    position: absolute;
    inset: 17px;
    border: 2px solid rgba(7, 143, 146, 0.72);
    border-radius: 20px;
    box-shadow: inset 0 0 0 999px rgba(255,255,255,0.02);
}

.ai-focus-dot {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.88);
    box-shadow: 0 0 0 8px rgba(255,255,255,0.14);
    z-index: 2;
    animation: aiFocusPulse 2.2s ease-in-out infinite;
}

@keyframes aiFocusPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.65; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.ai-object-label {
    position: absolute;
    z-index: 3;
    background: rgba(255, 255, 255, 0.88);
    color: #078F92;
    border: 1px solid rgba(7, 143, 146, 0.16);
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(15,24,22,0.08);
}

.ai-object-label.one { left: 24px; top: 24px; }
.ai-object-label.two { right: 22px; bottom: 22px; }

.ai-camera-info {
    display: grid;
    gap: 10px;
}

.ai-camera-info-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--border-soft);
    font-size: 13px;
    font-weight: 850;
    color: var(--text-main);
}

.ai-camera-info-card span {
    display: block;
    color: #B87942;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* AI Section Responsive */
@media (max-width: 1040px) {
    .ai-section-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .ai-intro-side {
        justify-items: center;
    }

    .ai-section-intro,
    .ai-section-title {
        margin-left: auto;
        margin-right: auto;
    }

    .ai-showcase-grid {
        grid-template-columns: 1fr;
    }

    .ai-medicine-card {
        min-height: auto;
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .ai-section {
        width: min(100% - 24px, 1100px);
        margin-top: 50px;
    }

    .ai-preview-cluster {
        min-height: auto;
        display: grid;
        gap: 12px;
    }

    .ai-preview-card,
    .ai-medicine-preview-card,
    .ai-chat-preview-card,
    .ai-camera-preview-card {
        position: relative;
        inset: auto;
        width: 100%;
        text-align: left;
        animation: none;
    }

    .ai-cluster-glow {
        display: none;
    }

    .ai-card-content {
        padding: 24px;
    }

    .ai-chat-layout,
    .ai-camera-layout {
        grid-template-columns: 1fr;
    }

    .ai-scan-window {
        height: 230px;
    }
}

@media (max-width: 460px) {
    .ai-medicine-row {
        grid-template-columns: auto 1fr;
    }

    .ai-row-pill {
        grid-column: 2;
        width: fit-content;
    }
}

/* ================================================================
   Premium Dark Footer
   ================================================================ */

.arrow-footer {
    background: var(--brand-dark);
    color: white;
    padding: 80px 24px 32px;
    position: relative;
    overflow: hidden;
}

.modal-footer {
    margin-top: clamp(100px, 12vw, 160px);
}

.arrow-footer::before {
    content: "";
    position: absolute;
    width: 620px;
    height: 620px;
    right: -220px;
    top: -260px;
    border-radius: 50%;
    background: rgba(22, 78, 69, 0.18);
    filter: blur(12px);
    pointer-events: none;
}

.arrow-footer::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    left: -180px;
    bottom: -240px;
    border-radius: 50%;
    background: rgba(159, 226, 216, 0.06);
    filter: blur(16px);
    pointer-events: none;
}

.footer-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Footer Top — CTA Header */
.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #9FE2D8;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 22px;
}

.footer-title {
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
    max-width: 780px;
    margin-bottom: 22px;
    font-weight: 700;
}

.footer-title span {
    background: linear-gradient(135deg, #9FE2D8, #18BEC7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.64);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 620px;
}

.footer-cta-area {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.footer-btn.primary {
    background: white;
    color: var(--brand-dark);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.footer-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.footer-btn.secondary {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-btn.secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
}

/* Footer Main — Brand + Links */
.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 56px;
    padding: 52px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-brand {
    max-width: 390px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.18rem;
    font-weight: 950;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.footer-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(22, 78, 69, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #9FE2D8;
    font-weight: 950;
    font-size: 18px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-trust-list {
    display: grid;
    gap: 11px;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
}

.footer-trust-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(22, 78, 69, 0.30);
    color: #9FE2D8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    flex: 0 0 auto;
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9FE2D8;
    margin-bottom: 18px;
    font-weight: 900;
}

.footer-col a,
.footer-col span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 13px;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
    color: white;
    transform: translateX(2px);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 26px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Footer Responsive */
@media (max-width: 920px) {
    .footer-top,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-cta-area {
        justify-content: flex-start;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .arrow-footer {
        padding: 62px 18px 28px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================================================
   Expert Consultation Section
   ================================================================ */

.consult-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 120px 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 72px;
    align-items: center;
    position: relative;
}

.consult-section::before {
    content: "";
    position: absolute;
    width: 640px;
    height: 640px;
    right: -240px;
    top: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 78, 69, 0.10), transparent 68%);
    pointer-events: none;
}

.consult-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.consult-copy h2 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    margin-bottom: 26px;
    color: var(--text-main);
    font-weight: 700;
}

.consult-copy h2 span {
    color: var(--brand-primary);
}

.consult-copy p {
    color: var(--text-muted);
    font-size: 1.12rem;
    max-width: 590px;
    margin-bottom: 34px;
}

.consult-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 15px 24px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.25s ease;
    white-space: nowrap;
}

.consult-btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 16px 35px rgba(22, 78, 69, 0.18);
}

.consult-btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-dark);
    border: 1px solid var(--border-soft);
}

.consult-btn:hover {
    transform: translateY(-2px);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--border-soft);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 10px 28px rgba(15, 24, 22, 0.04);
}

.trust-chip span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(22, 78, 69, 0.09);
    font-size: 12px;
}

.consult-visual {
    position: relative;
    z-index: 2;
    min-height: 760px;
    display: grid;
    place-items: center;
}

.visual-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(24, 190, 199, 0.16), transparent 34%),
        radial-gradient(circle at 65% 65%, rgba(169, 133, 90, 0.13), transparent 32%),
        radial-gradient(circle, var(--brand-glow), transparent 70%);
    filter: blur(2px);
}

.doctor-showcase {
    width: min(540px, 100%);
    position: relative;
    min-height: 680px;
}

.main-doctor-card {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: 390px;
    border-radius: 40px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(24, 32, 30, 0.08);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.doctor-photo {
    height: 410px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    background-image: url('./assets/nahid.jpeg');
    background-size: cover;
    background-position: center;
}

/* Hide cartoon doctor illustration shapes to let the real image show */
.doctor-photo::before,
.doctor-photo::after,
.doctor-face {
    display: none !important;
}

.stethoscope {
    position: absolute;
    width: 120px;
    height: 110px;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%);
    z-index: 3;
    border: 4px solid rgba(22, 78, 69, 0.42);
    border-top: none;
    border-radius: 0 0 60px 60px;
    pointer-events: none;
}

.stethoscope::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-primary);
    right: -9px;
    bottom: -2px;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.65);
}

.doctor-info {
    padding: 22px 8px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.doctor-info h3 {
    font-size: 20px;
    letter-spacing: -0.045em;
    margin-bottom: 4px;
}

.doctor-info p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 760;
}

.available-badge {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(22, 78, 69, 0.09);
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.mini-doctor-card {
    position: absolute;
    width: 210px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    animation: floatCard 7s ease-in-out infinite;
}

.mini-doctor-card.card-one {
    left: -10px;
    top: 150px;
}

.mini-doctor-card.card-two {
    right: -2px;
    top: 270px;
    animation-delay: 1s;
    animation-name: floatCardReverse;
}

.mini-doctor-card.card-three {
    left: 20px;
    bottom: 90px;
    animation-delay: 0.55s;
}

@keyframes floatCard {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-14px) translateY(5px); }
}

@keyframes floatCardReverse {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(14px) translateY(-5px); }
}

.real-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(24, 32, 30, 0.06);
}

.avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #E7F1EE, #F6F1E8);
    border: 1px solid rgba(24, 32, 30, 0.06);
}

.avatar::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #D9A98B;
    z-index: 2;
}

.avatar::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 34px;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 28px 28px 0 0;
    background: white;
    z-index: 1;
}

.avatar.nutrition::before { background: #C58E77; }
.avatar.physician::before { background: #B9876F; }
.avatar.care::before { background: #D6A889; }

.mini-doctor-card strong {
    display: block;
    font-size: 14px;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
}

.mini-doctor-card span {
    color: var(--text-muted);
    display: block;
    font-size: 12px;
    font-weight: 750;
}

.booking-card {
    position: absolute;
    right: 18px;
    bottom: 24px;
    width: 250px;
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-dark));
    color: white;
    box-shadow: 0 28px 70px rgba(15, 24, 22, 0.22);
    z-index: 4;
}

.booking-card small {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 8px;
}

.booking-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.055em;
    margin-bottom: 16px;
}

.booking-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 850;
}

.booking-row span:last-child {
    color: var(--accent, #9FE2D8);
}

.booking-button {
    margin-top: 12px;
    width: 100%;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--brand-dark);
    font-weight: 950;
    font-size: 14px;
}

.stats-card {
    position: absolute;
    right: 24px;
    top: 70px;
    width: 190px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    z-index: 3;
}

.stats-card small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 8px;
}

.stats-card strong {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.075em;
    color: var(--brand-primary);
}

.stats-card p {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 760;
    color: var(--text-muted);
}

@media (max-width: 1040px) {
    .consult-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .consult-copy,
    .consult-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .consult-actions,
    .trust-strip {
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .consult-section {
        width: min(100% - 24px, 1220px);
        padding: 60px 0 80px;
    }

    .consult-visual {
        min-height: 720px;
    }

    .doctor-showcase {
        min-height: 650px;
    }

    .main-doctor-card {
        width: 320px;
    }

    .doctor-photo {
        height: 350px;
    }

    .mini-doctor-card,
    .stats-card,
    .booking-card {
        position: relative;
        inset: auto;
        width: min(320px, 100%);
        margin: 12px auto 0;
        animation: none;
    }

    .main-doctor-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .doctor-showcase {
        display: grid;
        gap: 10px;
    }
}

/* ================================================================
   Meet Experts Modal Styling
   ================================================================ */

.experts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.experts-modal.open {
    transform: translateY(0);
    opacity: 1;
}

.experts-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(248, 245, 239, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1010;
    border-bottom: 1px solid var(--border-soft);
}

.experts-modal-header h2 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.close-experts-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-experts-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.experts-modal-content {
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.experts-hero-bg {
    width: 100%;
    min-height: 40vh;
    background-image: url('./assets/whyarrow.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    margin-bottom: 60px;
}

.experts-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 245, 239, 0.35), var(--bg-main));
}

.experts-hero {
    position: relative;
    text-align: left;
    z-index: 2;
    padding: 40px;
    max-width: 720px;
}

.experts-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.065em;
    margin-bottom: 20px;
    color: var(--text-main);
    opacity: 0;
}

.experts-hero h1 span {
    color: var(--brand-primary);
}

.experts-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
    opacity: 0;
}

.experts-modal.open .experts-hero h1 {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.experts-modal.open .experts-hero p {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

/* Experts Grid Section */
.experts-grid-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 40px;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.expert-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-soft);
    border-radius: 36px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 28px;
    align-items: start;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(22, 78, 69, 0.18);
}

.expert-avatar-wrap {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(24, 32, 30, 0.08);
    background: linear-gradient(180deg, #E7F1EE, #F6F1E8);
}

.expert-avatar {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.expert-status {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 850;
    padding: 6px 12px;
    border-radius: 999px;
}

.expert-status.available {
    background: rgba(22, 78, 69, 0.08);
    color: var(--brand-primary);
}

.expert-status.secondary {
    background: rgba(169, 133, 90, 0.12);
    color: var(--brand-secondary);
}

.expert-info-block {
    display: flex;
    flex-direction: column;
}

.expert-tag {
    align-self: start;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.specialty-diabetes { background: rgba(7, 143, 146, 0.1); color: var(--brand-teal); }
.specialty-nutrition { background: rgba(111, 139, 99, 0.1); color: var(--nutrition); }
.specialty-physician { background: rgba(102, 151, 167, 0.1); color: var(--hydration); }
.specialty-coach { background: rgba(184, 121, 66, 0.1); color: var(--activity); }

.expert-info-block h3 {
    font-size: 24px;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
    color: var(--text-main);
}

.expert-credentials {
    font-size: 13px;
    font-weight: 760;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.expert-info-block p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.expert-action-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
}

.expert-meta {
    display: flex;
    flex-direction: column;
}

.expert-meta small {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 750;
    letter-spacing: 0.04em;
}

.expert-meta strong {
    font-size: 16px;
    color: var(--brand-primary);
}

.expert-book-btn {
    border: none;
    background: var(--brand-primary);
    color: white;
    font-weight: 900;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 78, 69, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.expert-book-btn:hover {
    transform: translateY(-2px);
    background: var(--brand-dark);
}

/* Responsive design for Experts Modal */
@media (max-width: 1024px) {
    .experts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .experts-modal-header {
        padding: 16px 20px;
    }

    .experts-hero-bg {
        padding-left: 5%;
        margin-bottom: 40px;
    }

    .experts-hero {
        padding: 24px;
    }

    .experts-grid-section {
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .expert-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .expert-avatar-wrap {
        width: 100px;
        height: 100px;
    }

    .expert-status {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 12px;
        display: inline-block;
        width: fit-content;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   Company Modals (About, Contact, Support)
   ================================================================ */

.company-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-main);
    z-index: 1050; /* higher than experts-modal to stack correctly if needed */
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.company-modal.open {
    transform: translateY(0);
    opacity: 1;
}

.company-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(248, 245, 239, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1060;
    border-bottom: 1px solid var(--border-soft);
}

.company-modal-header h2 {
    font-size: 1.25rem;
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.close-company-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-company-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

.company-modal-content {
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.company-hero-bg {
    width: 100%;
    min-height: 38vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
    margin-bottom: 50px;
}

.about-hero-bg {
    background-image: url('./assets/whyarrow.png');
}

.contact-hero-bg {
    background-image: url('./assets/whyarrow.png');
}

.support-hero-bg {
    background-image: url('./assets/whyarrow.png');
}

.privacy-hero-bg {
    background-image: url('./assets/whyarrow.png');
}

.company-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(248, 245, 239, 0.45), var(--bg-main));
}

.company-hero {
    position: relative;
    text-align: left;
    z-index: 2;
    padding: 40px;
    max-width: 750px;
}

.company-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.065em;
    margin-bottom: 20px;
    color: var(--text-main);
    opacity: 0;
}

.company-hero h1 span {
    color: var(--brand-primary);
}

.company-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    opacity: 0;
}

.company-modal.open .company-hero h1 {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.25s;
}

.company-modal.open .company-hero p {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.45s;
}

/* About Grid Layout */
.about-grid-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.about-core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 70px;
}

.about-core-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.about-core-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 78, 69, 0.15);
}

.about-core-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--brand-primary);
    letter-spacing: -0.03em;
}

.about-core-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tech-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-secondary);
    background: rgba(169, 133, 90, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.about-tech-stack {
    background: rgba(22, 78, 69, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 36px;
    padding: 50px;
    text-align: center;
}

.about-tech-stack h2 {
    font-size: 28px;
    color: var(--brand-primary);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.about-tech-stack p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.tech-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-logo-pill {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* ================================================================
   Contact Modal Section (New Premium Layout)
   ================================================================ */
.contact-section {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: stretch;
  position: relative;
}
.contact-section::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -260px;
  top: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 78, 69, 0.10), transparent 68%);
  pointer-events: none;
}
.contact-info-panel,
.contact-form-panel {
  position: relative;
  z-index: 2;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(40px);
}
.company-modal.open .contact-info-panel {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}
.company-modal.open .contact-form-panel {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.45s;
}
.contact-info-panel {
  background:
    radial-gradient(circle at 20% 8%, rgba(24, 190, 199, 0.14), transparent 34%),
    radial-gradient(circle at 90% 86%, rgba(169, 133, 90, 0.16), transparent 32%),
    linear-gradient(145deg, var(--brand-primary), var(--brand-dark));
  color: white;
  padding: 46px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-info-panel::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.contact-copy {
  position: relative;
  z-index: 2;
}
.contact-section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #9FE2D8;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 850;
  margin-bottom: 24px;
}
.contact-info-panel h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
  max-width: 560px;
}
.contact-info-panel h2 span {
  color: #9FE2D8;
}
.contact-info-panel p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 520px;
}
.quick-contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 44px;
}
.quick-contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 20px;
  font-weight: 950;
}
.quick-contact-card strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.025em;
  margin-bottom: 3px;
}
.quick-contact-card span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.contact-trust-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.contact-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 850;
}
.contact-trust-chip span {
  color: #9FE2D8;
}
.contact-form-panel {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  padding: 46px;
  min-height: 640px;
}
.form-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 34px;
}
.form-header h2 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.07em;
  margin-bottom: 12px;
  color: var(--text-main);
}
.form-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 470px;
  font-weight: 650;
}
.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(22, 78, 69, 0.08);
  color: var(--brand-primary);
  border: 1px solid rgba(22, 78, 69, 0.12);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.contact-form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-group {
  display: grid;
  gap: 8px;
}
.field-group label {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 16px 17px;
  font: inherit;
  color: var(--text-main);
  outline: none;
  transition: 0.2s ease;
  font-weight: 650;
}
.field-group textarea {
  min-height: 150px;
  resize: vertical;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(7, 143, 146, 0.55);
  box-shadow: 0 0 0 5px rgba(24, 190, 199, 0.10);
  background: white;
}
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
}
.submit-note {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  max-width: 360px;
}
.submit-btn {
  border: none;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: white;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(22, 78, 69, 0.18);
  transition: 0.25s ease;
  white-space: nowrap;
}
.submit-btn:hover {
  transform: translateY(-2px);
  background: #103C35;
}
.support-options {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.support-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(248, 245, 239, 0.76);
  border: 1px solid var(--border-soft);
}
.support-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  margin-bottom: 12px;
  color: white;
  font-weight: 950;
}
.support-card:nth-child(1) span { background: var(--brand-teal); }
.support-card:nth-child(2) span { background: var(--warm-gold); }
.support-card:nth-child(3) span { background: var(--soft-lavender); }
.support-card strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.support-card p {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  .contact-info-panel,
  .contact-form-panel {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .contact-section {
    width: min(100% - 24px, 1220px);
    padding: 60px 0;
  }
  .contact-info-panel,
  .contact-form-panel {
    padding: 28px;
    border-radius: 30px;
  }
  .form-header,
  .submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-row,
  .support-options {
    grid-template-columns: 1fr;
  }
  .submit-btn {
    width: 100%;
  }
}

/* Support Search and FAQ Layout */
.support-search-wrap {
    position: relative;
    max-width: 550px;
    margin-top: 24px;
    opacity: 0;
}

.company-modal.open .support-search-wrap {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.55s;
}

.support-search-wrap .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
}

.support-search-wrap input {
    width: 100%;
    padding: 16px 20px 16px 54px;
    font-size: 15px;
    border: 1px solid var(--border-soft);
    background: white;
    border-radius: 16px;
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.support-search-wrap input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(22, 78, 69, 0.08);
}

.support-faq-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.support-faq-section h2 {
    font-size: 26px;
    color: var(--brand-primary);
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.faq-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.01);
    transition: transform 0.25s ease;
}

.faq-card:hover {
    transform: translateY(-2px);
}

.faq-card h3 {
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.faq-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.support-ticket-box {
    background: rgba(169, 133, 90, 0.06);
    border: 1px dashed rgba(169, 133, 90, 0.3);
    border-radius: 28px;
    padding: 40px;
    text-align: center;
}

.support-ticket-box h3 {
    font-size: 20px;
    color: var(--brand-secondary);
    margin-bottom: 10px;
}

.support-ticket-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.support-ticket-btn {
    border: 1px solid var(--brand-secondary);
    background: transparent;
    color: var(--brand-secondary);
    font-weight: 800;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.support-ticket-btn:hover {
    background: var(--brand-secondary);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-core-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .company-modal-header {
        padding: 16px 20px;
    }

    .company-hero-bg {
        padding-left: 5%;
        margin-bottom: 30px;
    }

    .company-hero {
        padding: 24px;
    }

    .about-grid-section,
    .support-faq-section {
        padding: 0 20px;
    }

    .about-core-card,
    .about-tech-stack,
    .support-ticket-box {
        padding: 24px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Hardcoded Modal Footer Fix */
.modal-footer {
    background: var(--brand-dark) !important;
    background-color: var(--brand-dark) !important;
    padding: 80px 24px 32px !important;
    margin-top: clamp(80px, 10vw, 120px) !important;
}
.modal-footer .footer-container {
    padding: 0 !important;
}

/* ================================================================
   Privacy Hub (Oura Inspired)
   ================================================================ */

.privacy-hub-modal {
    background: var(--bg-main);
    color: var(--text-main);
}

.privacy-hub-modal .privacy-header {
    background: rgba(248, 245, 239, 0.85);
    border-bottom: 1px solid var(--border-soft);
}

.privacy-hub-logo {
    font-size: 1.25rem;
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.privacy-hub-logo span {
    color: var(--brand-secondary);
}

.privacy-close-btn {
    color: var(--text-main);
}

.privacy-hub-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.privacy-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}

/* Left Sidebar */
.privacy-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-visual {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glowing-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(22, 78, 69, 0.15);
    box-shadow: 0 0 40px rgba(22, 78, 69, 0.08);
    animation: pulse-ring 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.glowing-ring.inner {
    width: 60%;
    height: 60%;
    border: 2px solid rgba(22, 78, 69, 0.4);
    box-shadow: 0 0 20px rgba(22, 78, 69, 0.1), inset 0 0 20px rgba(22, 78, 69, 0.05);
    animation: pulse-ring 4s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.privacy-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid var(--border-soft);
    padding-left: 24px;
}

.privacy-nav a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.privacy-nav a:hover {
    color: var(--brand-primary);
}

.privacy-nav a.active {
    color: var(--brand-primary);
}

.privacy-nav a.active::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: var(--brand-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--brand-glow);
}

/* Right Scroll Area */
.privacy-scroll-area {
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding-bottom: 100px;
}

.privacy-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.privacy-section h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.privacy-section h1 span {
    color: var(--brand-primary);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

.privacy-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.privacy-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 78, 69, 0.2);
}

.outline-card {
    background: transparent;
    border: 1px dashed var(--border-medium);
    text-align: center;
    box-shadow: none;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    display: inline-block;
    padding: 16px;
    background: rgba(22, 78, 69, 0.05);
    border-radius: 16px;
}

.privacy-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.privacy-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.privacy-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 28px;
    background: var(--brand-primary);
    color: #FFF;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.privacy-btn:hover {
    background: var(--brand-dark);
    transform: scale(1.05);
}

.privacy-hub-footer {
    border-top: 1px solid var(--border-soft);
    padding-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .privacy-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .privacy-sidebar {
        position: relative;
        top: 0;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .sidebar-visual {
        display: none;
    }
    
    .privacy-nav {
        flex-direction: row;
        overflow-x: auto;
        border-left: none;
        border-bottom: 1px solid var(--border-soft);
        padding-left: 0;
        padding-bottom: 16px;
        width: 100%;
        white-space: nowrap;
    }

    .privacy-nav a.active::before {
        left: 0;
        top: auto;
        bottom: -17px;
        width: 100%;
        height: 3px;
    }
}

/* ================================================================
   Feature Carousel (Oura Inspired)
   ================================================================ */

.feature-carousel-container {
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
    padding-bottom: 40px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    padding: 0 max(20px, calc((100% - 1180px) / 2));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.feature-card {
    position: relative;
    flex: 0 0 calc(90vw - 40px);
    max-width: 480px;
    height: 600px;
    border-radius: 28px;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .feature-card {
        flex: 0 0 400px;
        height: 580px;
        scroll-snap-align: start;
    }
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.feature-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.feature-card:hover .card-bg {
    transform: scale(1.05);
}

.feature-card .card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
    transition: opacity 0.3s ease;
}

.card-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.card-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expand-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--brand-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expand-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Inline Card Expansion */
.feature-card {
    transition: flex-basis 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
}

@media (min-width: 768px) {
    .feature-card.expanded {
        flex-basis: 960px;
        max-width: none;
    }
}
@media (max-width: 767px) {
    .feature-card.expanded {
        flex-basis: 90vw;
        max-width: none;
    }
}

.feature-card.expanded .expand-btn {
    transform: rotate(45deg);
}

.card-content-left {
    position: relative;
    z-index: 2;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: calc(100vw - 40px);
    max-width: 400px;
    height: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .card-content-left {
        width: 320px;
    }
.card-content-right {
    position: absolute;
    right: 24px;
    bottom: 30px;
    top: auto;
    transform: translateY(20px);
    z-index: 2;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    justify-content: flex-end;
    width: auto;
}

.feature-card.expanded .card-content-right {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.card-content-left h3 {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 400;
    transition: transform 0.4s ease;
}

.card-content-left h3 i {
    font-family: serif;
    font-style: italic;
}

.feature-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-learn-more {
    display: inline-block;
    padding: 0 24px;
    background: #fff;
    color: var(--brand-dark);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.4s ease;
    align-self: flex-start;
    max-height: 0;
    overflow: hidden;
}

.feature-card.expanded .feature-desc {
    opacity: 1;
    max-height: 200px;
    margin-top: 12px;
    margin-bottom: 24px;
    transition-delay: 0.1s;
}

.feature-card.expanded .feature-learn-more {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding: 12px 24px;
    max-height: 50px;
    transition-delay: 0.2s;
}

.feature-card.expanded .card-content-left h3 {
    transform: translateY(-5px);
}

/* Mini UI Widgets inside right content */
.mini-widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 140px;
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mini-widget small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    display: block;
}

.mini-widget strong {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar .fill {
    height: 100%;
    border-radius: 999px;
}

.macro-bars-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.macro-bars-mini .bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.macro-bars-mini .bar-row span {
    width: 45px;
}

.macro-bars-mini .bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 999px;
}

.macro-bars-mini .bar > div {
    height: 100%;
    border-radius: 999px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 20px;
    max-width: 80%;
    margin-bottom: 8px;
    min-width: 0;
}

.chat-bubble.user {
    align-self: flex-end;
    background: #f0f0f0;
    border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
    align-self: flex-start;
    background: var(--brand-primary);
    color: #fff;
    border-bottom-left-radius: 4px;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 0 max(20px, calc((100% - 1180px) / 2));
    margin-top: 32px;
}

.carousel-nav-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.5);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: var(--text-main);
}

.carousel-nav-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.appcard-img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}
/* --- Features Section --- */

    

    

    

    .feat-preview-wrap {
      width: min(1500px, calc(100% - 48px));
      margin: 0 auto;
      padding: 72px 0 90px;
    }

    .feat-section {
      position: relative;
      overflow: hidden;
      border-radius: 0;
      padding: 96px 72px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(248, 245, 239, 0.52)),
        url("appimages/feature_image.png") center / cover fixed;
      border: none;
      box-shadow: 0 40px 100px rgba(0,0,0,0.06);
      isolation: isolate;
    }

    .feat-section::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background-image: radial-gradient(circle, rgba(24, 32, 30, 0.08) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: linear-gradient(90deg, transparent 0%, #000 32%, #000 68%, transparent 100%);
      opacity: 0.34;
    }

    .feat-section::after {
      content: "";
      position: absolute;
      width: 560px;
      height: 560px;
      right: -240px;
      top: -240px;
      border-radius: 50%;
      background: rgba(22, 78, 69, 0.08);
      filter: blur(4px);
    }

    #features .ambient-ring {
      position: absolute;
      width: 620px;
      height: 620px;
      right: 5%;
      top: 18%;
      border-radius: 50%;
      border: 1px solid rgba(22, 78, 69, 0.08);
      pointer-events: none;
      animation: slowSpin 22s linear infinite;
      opacity: 0.78;
    }

    #features .ambient-ring::before,
    #features .ambient-ring::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(169, 133, 90, 0.10);
      inset: 56px;
    }

    #features .ambient-ring::after {
      inset: 118px;
      border-color: rgba(99, 152, 152, 0.13);
    }

    #features .section-inner {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 56px;
      align-items: center;
    }

    #features .kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 11px 16px;
      margin-bottom: 26px;
      border-radius: 999px;
      color: var(--brand-primary);
      background: rgba(22, 78, 69, 0.08);
      border: 1px solid rgba(22, 78, 69, 0.12);
      box-shadow: var(--shadow-card);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    #features .kicker-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--brand-primary);
      box-shadow: 0 0 0 8px rgba(22, 78, 69, 0.10);
      animation: breathe 2.5s ease-in-out infinite;
    }

    #features h2 {
      margin: 0;
      max-width: 710px;
      font-size: clamp(48px, 5.7vw, 86px);
      line-height: 0.96;
      letter-spacing: -0.075em;
      color: var(--brand-dark);
    }

    #features .accent { color: var(--brand-primary); }

    #features .lead {
      max-width: 600px;
      margin: 28px 0 32px;
      color: var(--text-muted);
      font-size: 19px;
      line-height: 1.75;
      font-weight: 520;
    }

    #features .story-collage {
      display: grid;
      grid-template-columns: 1fr 0.74fr;
      gap: 16px;
      max-width: 650px;
      margin: 32px 0 18px;
    }

    #features .story-image {
      position: relative;
      min-height: 238px;
      border-radius: 30px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.72);
      box-shadow: var(--shadow-soft);
      background:
        linear-gradient(180deg, rgba(15, 24, 22, 0.02), rgba(15, 24, 22, 0.38)),
        url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1200&q=88") center / cover;
      animation: imageFloat 6.5s ease-in-out infinite;
    }

    .story-image.second {
      min-height: 238px;
      background:
        linear-gradient(180deg, rgba(15, 24, 22, 0.02), rgba(15, 24, 22, 0.36)),
        url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1200&q=88") center / cover;
      animation-delay: -2.4s;
    }

    #features .story-pill {
      position: absolute;
      left: 18px;
      top: 18px;
      padding: 10px 13px;
      border-radius: 999px;
      color: #fff;
      background: rgba(15, 24, 22, 0.42);
      border: 1px solid rgba(255, 255, 255, 0.20);
      backdrop-filter: blur(16px);
      font-size: 12px;
      font-weight: 850;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    #features .story-pulse {
      position: absolute;
      right: 18px;
      bottom: 18px;
      width: 76px;
      height: 76px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #fff;
      background: linear-gradient(135deg, var(--brand-primary), var(--hero-active-color));
      box-shadow: 0 18px 45px rgba(22, 78, 69, 0.22);
      animation: pulseGlow 2.7s ease-in-out infinite;
    }

    .story-pulse svg {
      width: 44px;
      height: 26px;
      overflow: visible;
    }

    .story-pulse path {
      fill: none;
      stroke: #fff;
      stroke-width: 4;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 88;
      stroke-dashoffset: 88;
      animation: drawPulse 2.1s ease-in-out infinite;
    }

    #features .mini-proof {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      max-width: 650px;
    }

    #features .proof-card {
      padding: 20px;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.68);
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-card);
      transform: translateY(0);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    #features .proof-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-soft);
    }

    #features .proof-card strong {
      display: block;
      margin-bottom: 7px;
      font-size: 30px;
      letter-spacing: -0.06em;
      color: var(--brand-dark);
    }

    #features .proof-card span {
      color: var(--text-muted);
      font-size: 13px;
      line-height: 1.4;
      font-weight: 700;
    }

    .feat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
    }

    .feat-card {
      position: relative;
      min-height: 230px;
      padding: 28px;
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-card);
      overflow: hidden;
      transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
      animation: riseIn 0.8s ease both;
    }

    .feat-card:hover {
      transform: translateY(-8px);
      background: rgba(255, 255, 255, 0.88);
      box-shadow: var(--shadow-soft);
    }

    .feat-card::after {
      content: "";
      position: absolute;
      width: 160px;
      height: 160px;
      right: -70px;
      bottom: -76px;
      border-radius: 50%;
      background: rgba(22, 78, 69, 0.075);
    }

    .feat-card.highlight {
      grid-row: span 2;
      min-height: 520px;
      color: #fff;
      background:
        radial-gradient(circle at 80% 12%, rgba(99, 152, 152, 0.34), transparent 30%),
        linear-gradient(145deg, var(--brand-dark), var(--brand-primary));
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 28px 90px rgba(15, 24, 22, 0.18);
    }

    .feat-card.highlight::after {
      background: rgba(255, 255, 255, 0.08);
      width: 260px;
      height: 260px;
      right: -120px;
      bottom: -120px;
    }

    .feat-icon {
      position: relative;
      z-index: 2;
      width: 56px;
      height: 56px;
      margin-bottom: 24px;
      display: grid;
      place-items: center;
      border-radius: 19px;
      color: var(--brand-primary);
      background: rgba(22, 78, 69, 0.09);
      border: 1px solid rgba(22, 78, 69, 0.08);
      font-size: 24px;
    }

    .highlight .feat-icon {
      color: #fff;
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.16);
    }

    .feat-card h3 {
      position: relative;
      z-index: 2;
      margin: 0 0 14px;
      font-size: 28px;
      line-height: 1.05;
      letter-spacing: -0.055em;
      color: var(--brand-dark);
    }

    .highlight h3 {
      color: #fff;
      font-size: 42px;
      max-width: 320px;
    }

    .feat-card p {
      position: relative;
      z-index: 2;
      margin: 0;
      color: var(--text-muted);
      font-size: 15.5px;
      line-height: 1.68;
      font-weight: 520;
    }

    .highlight p {
      color: rgba(255, 255, 255, 0.72);
      font-size: 17px;
      max-width: 360px;
    }

    #features .memory-orbit {
      position: absolute;
      right: 30px;
      top: 36px;
      width: 142px;
      height: 142px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.14);
      animation: slowSpin 14s linear infinite;
      opacity: 0.8;
    }

    #features .memory-orbit::before,
    #features .memory-orbit::after {
      content: "";
      position: absolute;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #BFE8DD;
      box-shadow: 0 0 0 8px rgba(191, 232, 221, 0.10);
      top: 15px;
      left: 16px;
    }

    #features .memory-orbit::after {
      background: var(--brand-secondary);
      top: auto;
      left: auto;
      right: 18px;
      bottom: 18px;
    }

    #features .connected-line {
      position: absolute;
      inset: auto 32px 32px 32px;
      z-index: 2;
      display: grid;
      gap: 12px;
    }

    #features .connection-row {
      display: grid;
      grid-template-columns: 38px 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 13px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.09);
      border: 1px solid rgba(255, 255, 255, 0.10);
      color: rgba(255, 255, 255, 0.78);
      font-size: 13px;
      font-weight: 800;
      animation: pulseRow 3.4s ease-in-out infinite;
    }

    .connection-row:nth-child(2) { animation-delay: 0.4s; }
    .connection-row:nth-child(3) { animation-delay: 0.8s; }

    #features .connection-icon {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      background: rgba(255, 255, 255, 0.12);
    }

    #features .connection-status {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #BFE8DD;
      box-shadow: 0 0 0 7px rgba(191, 232, 221, 0.10);
    }

    #features .card-sparkline {
      position: relative;
      z-index: 2;
      height: 52px;
      margin-top: 22px;
      border-radius: 16px;
      overflow: hidden;
      background: rgba(22, 78, 69, 0.06);
    }

    .card-sparkline svg {
      width: 100%;
      height: 100%;
    }

    #features .spark-path {
      fill: none;
      stroke: var(--brand-primary);
      stroke-width: 4;
      stroke-linecap: round;
      stroke-dasharray: 240;
      stroke-dashoffset: 240;
      animation: drawLine 2.7s ease-in-out infinite;
    }

    #features .risk-meter {
      position: relative;
      z-index: 2;
      height: 10px;
      margin-top: 24px;
      border-radius: 999px;
      background: rgba(24, 32, 30, 0.08);
      overflow: hidden;
    }

    #features .risk-meter span {
      display: block;
      height: 100%;
      width: 72%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--nutrition), var(--brand-secondary), var(--heart));
      animation: slideMeter 2.8s ease-in-out infinite;
    }

    #features .wide-card {
      grid-column: 1 / -1;
      min-height: 206px;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 22px;
      align-items: center;
      background:
        linear-gradient(135deg, rgba(169, 133, 90, 0.10), rgba(99, 152, 152, 0.11)),
        rgba(255, 255, 255, 0.74);
    }

    #features .wide-card h3 {
      font-size: 34px;
      margin-bottom: 8px;
    }

    #features .report-preview {
      position: relative;
      z-index: 2;
      min-width: 168px;
      padding: 18px;
      border-radius: 20px;
      background: var(--surface);
      border: 1px solid var(--border-soft);
      box-shadow: var(--shadow-card);
      animation: reportFloat 5.8s ease-in-out infinite;
    }

    #features .report-preview small {
      display: block;
      color: var(--text-muted);
      font-weight: 800;
      margin-bottom: 8px;
    }

    #features .report-preview strong {
      color: var(--brand-primary);
      font-size: 28px;
      letter-spacing: -0.05em;
    }

    .report-bars {
      margin-top: 14px;
      display: grid;
      gap: 7px;
    }

    .feat-bar {
      height: 8px;
      border-radius: 999px;
      background: rgba(24, 32, 30, 0.07);
      overflow: hidden;
    }

    .feat-bar span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--brand-primary), var(--hero-active-color));
      animation: fillBar 1.2s ease both;
    }

    #features .floating-orb {
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.42);
      background: rgba(255, 255, 255, 0.36);
      box-shadow: var(--shadow-card);
      animation: floatOrb 8s ease-in-out infinite;
      z-index: 1;
    }

    #features .orb-1 {
      width: 120px;
      height: 120px;
      left: 34%;
      top: 70px;
    }

    #features .orb-2 {
      width: 70px;
      height: 70px;
      right: 60px;
      bottom: 70px;
      animation-delay: -3s;
    }

    #features .orb-3 {
      width: 44px;
      height: 44px;
      left: 44px;
      bottom: 130px;
      background: rgba(22, 78, 69, 0.08);
      animation-delay: -1.8s;
    }

    @keyframes riseIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fillBar { from { width: 0%; } }

    @keyframes pulseRow {
      0%, 100% { transform: translateX(0); opacity: 0.78; }
      50% { transform: translateX(6px); opacity: 1; }
    }

    @keyframes floatOrb {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-18px); }
    }

    @keyframes imageFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-12px) rotate(-1deg); }
    }

    @keyframes pulseGlow {
      0%, 100% { transform: scale(1); box-shadow: 0 18px 45px rgba(22, 78, 69, 0.22); }
      50% { transform: scale(1.06); box-shadow: 0 24px 65px rgba(22, 78, 69, 0.34); }
    }

    @keyframes drawPulse {
      0% { stroke-dashoffset: 88; opacity: 0.4; }
      35% { opacity: 1; }
      70%, 100% { stroke-dashoffset: 0; opacity: 1; }
    }

    @keyframes breathe {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 78, 69, 0.10); }
      50% { transform: scale(1.15); box-shadow: 0 0 0 13px rgba(22, 78, 69, 0.06); }
    }

    @keyframes slowSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes drawLine {
      0% { stroke-dashoffset: 240; }
      45%, 65% { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: -240; }
    }

    @keyframes slideMeter {
      0%, 100% { width: 52%; }
      50% { width: 82%; }
    }

    @keyframes reportFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    @media (max-width: 1120px) {
      .feat-section {
      position: relative;
      overflow: hidden;
      border-radius: 0;
      padding: 96px 72px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 245, 239, 0.96)),
        url("appimages/feature_image.png") center / cover fixed;
      border: none;
      box-shadow: 0 40px 100px rgba(0,0,0,0.06);
      backdrop-filter: blur(18px);
      isolation: isolate;
    }
      #features .section-inner { grid-template-columns: 1fr; }
      .feat-card.highlight { min-height: 500px; }
    }

    @media (max-width: 760px) {
      .feat-preview-wrap {
        width: min(100% - 24px, 1500px);
        padding: 24px 0;
      }

      .feat-section {
      position: relative;
      overflow: hidden;
      border-radius: 0;
      padding: 96px 72px;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(248, 245, 239, 0.96)),
        url("appimages/feature_image.png") center / cover fixed;
      border: none;
      box-shadow: 0 40px 100px rgba(0,0,0,0.06);
      backdrop-filter: blur(18px);
      isolation: isolate;
    }

      #features h2 { font-size: 44px; }
      #features .lead { font-size: 16px; }

      .story-collage,
      .mini-proof,
      .feat-grid,
      #features .wide-card {
        grid-template-columns: 1fr;
      }

      .feat-card.highlight { min-height: 560px; }
      #features .wide-card { align-items: start; }
      #features .ambient-ring { display: none; }
    }
  

/* AI Tools Section Injected */

    :root {
      --bg-main: #F8F5EF;
      --bg-soft: #FCFAF7;
      --surface: #FFFFFF;
      --text-main: #18201E;
      --text-muted: #6E746F;
      --border-soft: rgba(24, 32, 30, 0.09);
      --brand-primary: #164E45;
      --brand-secondary: #A9855A;
      --brand-dark: #0F1816;
      --brand-glow: rgba(22, 78, 69, 0.16);
      --hero-active-color: #639898;
      --heart: #B75D69;
      --sleep: #4D5B8C;
      --activity: #B87942;
      --nutrition: #6F8B63;
      --hydration: #6697A7;
      --medicine: #5B9A86;
      --reports: #6D7680;
      --radius-lg: 32px;
      --radius-md: 22px;
      --radius-sm: 14px;
      --shadow-soft: 0 24px 70px rgba(15, 24, 22, 0.08);
      --shadow-card: 0 16px 45px rgba(15, 24, 22, 0.06);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--bg-main);
      color: var(--text-main);
      overflow-x: hidden;
    }

    .ai-guidance-page-wrap {
      width: min(1680px, 100%);
      margin: 0 auto;
      padding: 0;
    }

    .ai-guidance-wellness-guidance-hero {
      position: relative;
      min-height: 920px;
      overflow: hidden;
      border-radius: 0;
      color: #fff;
      background:
        linear-gradient(90deg, rgba(1, 22, 19, 0.98) 0%, rgba(2, 28, 24, 0.88) 25%, rgba(7, 38, 31, 0.55) 52%, rgba(7, 32, 27, 0.36) 72%, rgba(5, 21, 18, 0.55) 100%),
        linear-gradient(180deg, rgba(5, 22, 19, 0.08) 0%, rgba(5, 22, 19, 0.34) 58%, rgba(5, 22, 19, 0.72) 100%),
        url("https://images.unsplash.com/photo-1498837167922-ddd27525d352?auto=format&fit=crop&w=2600&q=88") center / cover;
      isolation: isolate;
      box-shadow: 0 34px 120px rgba(15, 24, 22, 0.18);
    }

    .ai-guidance-wellness-guidance-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 78% 8%, rgba(183, 212, 126, 0.22), transparent 18%),
        radial-gradient(circle at 91% 78%, rgba(37, 201, 184, 0.18), transparent 20%),
        radial-gradient(circle at 9% 62%, rgba(3, 42, 36, 0.58), transparent 38%);
      filter: blur(0.2px);
    }

    .ai-guidance-wellness-guidance-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background:
        linear-gradient(90deg, rgba(0, 16, 14, 0.88) 0%, rgba(0, 16, 14, 0.54) 31%, rgba(0, 16, 14, 0.08) 72%),
        radial-gradient(circle at 40% 94%, rgba(0,0,0,0.48), transparent 45%);
      backdrop-filter: blur(1.4px);
    }

    .ai-guidance-grain {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      opacity: 0.06;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    .ai-guidance-section-inner {
      position: relative;
      z-index: 5;
      min-height: 920px;
      width: min(1540px, calc(100% - 80px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 0.86fr 1.14fr;
      gap: 40px;
      align-items: center;
      padding: 72px 0;
    }

    .ai-guidance-copy-side {
      position: relative;
      z-index: 7;
      max-width: 610px;
      padding-top: 12px;
    }

    .ai-guidance-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      padding: 11px 18px;
      margin-bottom: 54px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.13);
      border: 1px solid rgba(255, 255, 255, 0.28);
      backdrop-filter: blur(20px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 18px 54px rgba(0,0,0,0.16);
      font-size: 16px;
      font-weight: 850;
      color: rgba(255,255,255,0.94);
      animation: fadeUp 0.8s ease both;
    }

    .ai-guidance-eyebrow-icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--brand-primary), #25C9B8);
      box-shadow: 0 10px 30px rgba(37, 201, 184, 0.28);
    }

    #ai-tools h1 {
      margin: 0;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(58px, 5.7vw, 88px);
      line-height: 1.06;
      letter-spacing: -0.055em;
      font-weight: 500;
      color: rgba(255,255,255,0.96);
      animation: fadeUp 0.8s ease 0.08s both;
    }

    #ai-tools h1 .ai-guidance-gold {
      display: block;
      font-family: "Playfair Display", Georgia, serif;
      font-style: italic;
      letter-spacing: -0.045em;
      color: #E7C486;
      font-weight: 600;
      text-shadow: 0 16px 50px rgba(169, 133, 90, 0.26);
    }

    .ai-guidance-hero-copy {
      max-width: 570px;
      margin: 32px 0 44px;
      color: rgba(255,255,255,0.80);
      font-size: 21px;
      line-height: 1.62;
      font-weight: 500;
      animation: fadeUp 0.8s ease 0.16s both;
    }

    .ai-guidance-hero-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 22px;
      min-height: 64px;
      padding: 18px 27px 18px 34px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.96);
      color: var(--brand-dark);
      font-size: 18px;
      font-weight: 850;
      text-decoration: none;
      box-shadow: 0 22px 60px rgba(0,0,0,0.22);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      animation: fadeUp 0.8s ease 0.24s both;
    }

    .ai-guidance-hero-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 30px 80px rgba(0,0,0,0.30);
    }

    .ai-guidance-hero-btn .ai-guidance-arrow {
      font-size: 28px;
      line-height: 1;
      transition: transform 0.25s ease;
    }

    .ai-guidance-hero-btn:hover .ai-guidance-arrow { transform: translateX(4px); }

    .ai-guidance-trust-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      max-width: 650px;
      margin-top: 128px;
      animation: fadeUp 0.8s ease 0.32s both;
    }

    .ai-guidance-trust-item {
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: 14px;
      align-items: center;
      color: rgba(255,255,255,0.88);
      font-size: 13px;
      line-height: 1.35;
      font-weight: 750;
      padding-right: 20px;
      border-right: 1px solid rgba(255,255,255,0.18);
    }

    .ai-guidance-trust-item:last-child { border-right: 0; }

    .ai-guidance-trust-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,0.35);
      background: rgba(255,255,255,0.07);
      backdrop-filter: blur(12px);
      font-size: 21px;
    }

    .ai-guidance-visual-side {
      position: relative;
      min-height: 760px;
      z-index: 6;
    }

    .ai-guidance-glass-card {
      position: absolute;
      border-radius: 28px;
      background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
      border: 1px solid rgba(255,255,255,0.26);
      box-shadow: 0 30px 90px rgba(0,0,0,0.24), inset 0 0 0 1px rgba(255,255,255,0.04);
      backdrop-filter: blur(22px) saturate(120%);
      overflow: hidden;
      animation: floatSoft 7s ease-in-out infinite;
    }

    .ai-guidance-card-title {
      display: flex;
      align-items: center;
      gap: 12px;
      color: rgba(255,255,255,0.94);
      font-size: 16px;
      font-weight: 850;
    }

    .ai-guidance-tiny-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(22, 78, 69, 0.72);
      border: 1px solid rgba(76, 223, 197, 0.38);
      box-shadow: 0 10px 26px rgba(0,0,0,0.18);
    }

    .ai-guidance-meal-card {
      left: 0;
      top: 38px;
      width: 310px;
      min-height: 334px;
      padding: 24px;
      animation-delay: -0.8s;
    }

    .ai-guidance-meal-photo {
      position: relative;
      height: 228px;
      margin-top: 18px;
      border-radius: 24px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(15,24,22,0.04), rgba(15,24,22,0.24)),
        url("https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=1000&q=90") center / cover;
      box-shadow: inset 0 -60px 70px rgba(0,0,0,0.24);
    }

    .ai-guidance-balance-pill {
      position: absolute;
      right: 11px;
      bottom: 11px;
      width: 78px;
      height: 78px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      text-align: center;
      font-size: 13px;
      line-height: 1.15;
      color: #fff;
      background: rgba(22, 78, 69, 0.64);
      border: 1px solid rgba(255,255,255,0.18);
      backdrop-filter: blur(14px);
      animation: pulseGlow 3s ease-in-out infinite;
    }

    .ai-guidance-report-card {
      left: 0;
      top: 400px;
      width: 310px;
      min-height: 322px;
      padding: 26px;
      animation-delay: -2.4s;
    }

    .ai-guidance-score-row {
      display: flex;
      align-items: flex-end;
      gap: 12px;
      margin: 38px 0 18px;
    }

    .ai-guidance-score-number {
      font-size: 52px;
      line-height: 0.9;
      letter-spacing: -0.06em;
      font-weight: 700;
      color: #fff;
    }

    .ai-guidance-score-label {
      color: rgba(255,255,255,0.84);
      font-weight: 650;
      padding-bottom: 5px;
      font-size: 13px;
    }

    .ai-guidance-score-up {
      margin-left: auto;
      padding-bottom: 5px;
      color: #A8EFE3;
      font-weight: 850;
      font-size: 13px;
    }

    .ai-guidance-mini-chart {
      height: 94px;
      border-radius: 20px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.08);
      overflow: hidden;
      margin-bottom: 18px;
    }

    .ai-guidance-mini-chart svg { width: 100%; height: 100%; }

    .ai-guidance-chart-path {
      fill: none;
      stroke: #6EE7D5;
      stroke-width: 4;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 340;
      stroke-dashoffset: 340;
      animation: drawChart 3.5s ease-in-out infinite;
    }

    .ai-guidance-progress-note {
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      align-items: center;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.10);
      color: rgba(255,255,255,0.88);
      font-size: 13px;
      line-height: 1.35;
      font-weight: 700;
    }

    .ai-guidance-main-guidance-card {
      left: 335px;
      top: 40px;
      width: 510px;
      min-height: 660px;
      padding: 34px;
      animation-delay: -1.3s;
    }

    .ai-guidance-guidance-icon-main {
      width: 64px;
      height: 64px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,0.10);
      border: 1px solid rgba(255,255,255,0.25);
      margin-bottom: 76px;
      font-size: 30px;
      color: #A8EFE3;
    }

    .ai-guidance-main-guidance-card h2 {
      color: #fff;
      font-family: Inter, system-ui, sans-serif;
      font-size: 32px;
      line-height: 1.04;
      letter-spacing: -0.055em;
      margin: 0 0 18px;
      font-weight: 850;
    }

    .ai-guidance-main-guidance-card p {
      margin: 0;
      max-width: 410px;
      color: rgba(255,255,255,0.82);
      font-size: 17px;
      line-height: 1.65;
      font-weight: 520;
    }

    .ai-guidance-suggestion-list {
      display: grid;
      gap: 18px;
      margin-top: 34px;
    }

    .ai-guidance-suggestion-row {
      display: grid;
      grid-template-columns: 54px 1fr 32px;
      align-items: center;
      gap: 16px;
      padding: 16px;
      border-radius: 18px;
      background: rgba(255,255,255,0.11);
      border: 1px solid rgba(255,255,255,0.13);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
      animation: rowPulse 3.4s ease-in-out infinite;
    }

    .ai-guidance-suggestion-row:nth-child(2) { animation-delay: 0.45s; }
    .ai-guidance-suggestion-row:nth-child(3) { animation-delay: 0.9s; }

    .ai-guidance-suggestion-icon {
      width: 50px;
      height: 50px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,0.13);
      font-size: 23px;
    }

    .ai-guidance-suggestion-row strong {
      display: block;
      color: rgba(255,255,255,0.96);
      margin-bottom: 4px;
      font-size: 15px;
      font-weight: 850;
    }

    .ai-guidance-suggestion-row span {
      color: rgba(255,255,255,0.70);
      font-size: 13px;
      font-weight: 600;
    }

    .ai-guidance-status-ring {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 6px solid rgba(168,239,227,0.18);
      background: #A8EFE3;
      box-shadow: 0 0 22px rgba(168,239,227,0.45);
    }

    .ai-guidance-private-note {
      position: absolute;
      left: 34px;
      bottom: 28px;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: #8BE2D1;
      font-size: 15px;
      font-weight: 650;
    }

    .ai-guidance-side-stack {
      position: absolute;
      right: 0;
      top: 92px;
      width: 184px;
      display: grid;
      gap: 22px;
      z-index: 6;
    }

    .ai-guidance-mini-image-card {
      position: relative;
      min-height: 170px;
      border-radius: 22px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(15,24,22,0.05), rgba(15,24,22,0.68)),
        url("https://images.unsplash.com/photo-1551698618-1dfe5d97d256?auto=format&fit=crop&w=800&q=88") center / cover;
      border: 1px solid rgba(255,255,255,0.20);
      box-shadow: 0 24px 60px rgba(0,0,0,0.22);
      animation: floatSoft 7s ease-in-out infinite;
    }

    .ai-guidance-mini-image-card:nth-child(2) {
      background:
        linear-gradient(180deg, rgba(15,24,22,0.05), rgba(15,24,22,0.68)),
        url("https://images.unsplash.com/photo-1502741338009-cac2772e18bc?auto=format&fit=crop&w=800&q=88") center / cover;
      animation-delay: -2s;
    }

    .ai-guidance-mini-image-card:nth-child(3) {
      background:
        linear-gradient(180deg, rgba(15,24,22,0.05), rgba(15,24,22,0.68)),
        url("https://images.unsplash.com/photo-1490474418585-ba9bad8fd0ea?auto=format&fit=crop&w=800&q=88") center / cover;
      animation-delay: -3.4s;
    }

    .ai-guidance-mini-image-content {
      position: absolute;
      inset: auto 14px 14px;
      color: #fff;
      font-size: 13px;
      font-weight: 700;
    }

    .ai-guidance-mini-image-content strong {
      display: block;
      margin-bottom: 5px;
      font-size: 15px;
    }

    .ai-guidance-mini-image-content span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: rgba(255,255,255,0.84);
      font-size: 12px;
    }

    .ai-guidance-mini-image-content span::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #61DEC8;
    }

    .ai-guidance-bottom-toast {
      position: absolute;
      left: 370px;
      bottom: 14px;
      display: grid;
      grid-template-columns: 56px 1fr;
      align-items: center;
      gap: 16px;
      width: 350px;
      padding: 16px 18px;
      border-radius: 22px;
      background: rgba(22,78,69,0.58);
      border: 1px solid rgba(255,255,255,0.22);
      backdrop-filter: blur(20px);
      box-shadow: 0 22px 70px rgba(0,0,0,0.24);
      animation: toastFloat 5.8s ease-in-out infinite;
      z-index: 8;
    }

    .ai-guidance-toast-icon {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,0.11);
      font-size: 24px;
    }

    .ai-guidance-bottom-toast strong {
      display: block;
      color: #fff;
      margin-bottom: 4px;
      font-size: 16px;
    }

    .ai-guidance-bottom-toast span {
      color: rgba(255,255,255,0.72);
      font-size: 13px;
      font-weight: 650;
    }

    .ai-guidance-orbit-line {
      position: absolute;
      z-index: 4;
      right: 82px;
      top: 70px;
      width: 620px;
      height: 690px;
      border-radius: 50%;
      border: 1px dashed rgba(116, 215, 198, 0.34);
      transform: rotate(-12deg);
      pointer-events: none;
      animation: orbitSlow 30s linear infinite;
    }

    .ai-guidance-orbit-line::before,
    .ai-guidance-orbit-line::after {
      content: "";
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #A8EFE3;
      box-shadow: 0 0 18px rgba(168, 239, 227, 0.86), 0 0 0 8px rgba(168, 239, 227, 0.12);
    }

    .ai-guidance-orbit-line::before { left: 12px; top: 214px; }
    .ai-guidance-orbit-line::after { right: 30px; bottom: 82px; }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes orbitSlow {
      from { transform: rotate(-12deg); }
      to { transform: rotate(348deg); }
    }

    @keyframes floatSoft {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-13px); }
    }

    @keyframes toastFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    @keyframes pulseGlow {
      0%, 100% { transform: scale(1); box-shadow: 0 18px 45px rgba(22, 78, 69, 0.22); }
      50% { transform: scale(1.05); box-shadow: 0 24px 65px rgba(22, 78, 69, 0.35); }
    }

    @keyframes drawChart {
      0% { stroke-dashoffset: 340; }
      45%, 65% { stroke-dashoffset: 0; }
      100% { stroke-dashoffset: -340; }
    }

    @keyframes rowPulse {
      0%, 100% { transform: translateX(0); background: rgba(255,255,255,0.11); }
      50% { transform: translateX(6px); background: rgba(255,255,255,0.15); }
    }

    @media (max-width: 1320px) {
      .ai-guidance-section-inner {
        grid-template-columns: 1fr;
        width: min(100% - 56px, 1000px);
      }

      .ai-guidance-copy-side { max-width: 850px; }
      .ai-guidance-trust-row { margin-top: 54px; }
      .ai-guidance-visual-side { min-height: 770px; }
    }

    @media (max-width: 940px) {
      .ai-guidance-page-wrap { width: min(100% - 20px, 1680px); padding: 10px 0; }
      .ai-guidance-wellness-guidance-hero { min-height: auto; border-radius: 0; }
      .ai-guidance-section-inner { min-height: auto; width: min(100% - 40px, 900px); padding: 42px 0; }
      #ai-tools h1 { font-size: 52px; }
      .ai-guidance-hero-copy { font-size: 17px; }
      .ai-guidance-trust-row { grid-template-columns: 1fr; }
      .ai-guidance-trust-item { border-right: 0; }
      .ai-guidance-visual-side { min-height: auto; display: grid; gap: 18px; }
      .ai-guidance-glass-card, .ai-guidance-side-stack, .ai-guidance-bottom-toast { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; }
      .ai-guidance-side-stack { grid-template-columns: 1fr; }
      .ai-guidance-main-guidance-card { min-height: auto; }
      .ai-guidance-guidance-icon-main { margin-bottom: 30px; }
      .ai-guidance-orbit-line { display: none; }
      .ai-guidance-private-note { position: relative; left: auto; bottom: auto; margin-top: 26px; }
    }
  
.nav-links a { color: var(--text-muted); text-decoration: none; transition: color 0.25s ease, font-weight 0.25s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-primary); font-weight: 700; }
