:root {
    --primary: #244E38;
    --primary-dark: #193828;
    --accent: #F8C537;
    --bg: #F6F9F7;
    --text: #10241A;
    --muted: rgba(16, 36, 26, 0.64);
    --transition: 300ms ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.hero {
    position: relative;
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
    transform: scale(1.05);
    transition: transform 14s ease;
}

.hero:hover .hero__image {
    transform: scale(1.12);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36, 78, 56, 0.88), rgba(12, 26, 20, 0.68));
}

.hero__content {
    position: relative;
    padding: 2rem;
    max-width: 720px;
    animation: fade-up 0.9s ease forwards;
    opacity: 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(248, 197, 55, 0.18);
    border: 1px solid rgba(248, 197, 55, 0.42);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin: 1.5rem 0 1rem;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
}

.store-buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 12px 24px rgba(36, 78, 56, 0.22);
}

.store-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 32px rgba(36, 78, 56, 0.28);
}

.store-button img {
    height: 1.25rem;
    width: auto;
    margin-right: 0.5rem;
}

.store-button--appstore {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.38);
}

main {
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 6rem);
}

.tabs__nav {
    display: inline-flex;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(36, 78, 56, 0.18);
    padding: 0.5rem;
    gap: 0.5rem;
    margin: 0 auto 3rem;
}

.tabs__button {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.tabs__button.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(36, 78, 56, 0.28);
}

.tab-panel {
    display: none;
    gap: 3rem;
    flex-direction: column;
}

.tab-panel.is-active {
    display: flex;
    animation: fade-up 0.6s ease;
}

.section-intro {
    max-width: 720px;
}

.section-intro h2 {
    color: var(--primary);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.feature-grid, .insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card, .insight-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(36, 78, 56, 0.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover, .insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(36, 78, 56, 0.18);
}

.carousel {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(36, 78, 56, 0.2);
}

.carousel__track {
    display: flex;
    width: 100%;
    transform: translateX(0);
    transition: transform 800ms ease;
}

.carousel__slide {
    margin: 0;
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.carousel__slide img {
    order: 2;
    width: auto;
    max-width: 320px;
    max-height: 580px;
    flex-shrink: 0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(16, 36, 26, 0.22);
}

.carousel__caption {
    order: 1;
    color: var(--primary);
    font-size: clamp(2.2rem, 5vw, 3rem);
    line-height: 1.25;
    font-weight: 600;
    max-width: 560px;
    text-align: left;
    flex-shrink: 1;
}

.carousel__indicators {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 0.5rem;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: transform var(--transition), background var(--transition);
}

.carousel__dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

.cta-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(36, 78, 56, 0.28);
}

.cta-highlight__text {
    flex: 1 1 280px;
}

.cta-highlight__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.cta-highlight__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(248, 197, 55, 0.32);
}

.metrics-visuals {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.metric-card {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(36, 78, 56, 0.14);
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.metric-card__value {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-card--chart {
    position: relative;
    overflow: hidden;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 60px;
    margin-top: 1rem;
    opacity: 0.8;
}

.mini-chart__bar {
    flex: 1;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
}

.mini-chart__bar:last-child {
    background: var(--primary);
    opacity: 1;
}

.mini-pie {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 1rem auto 0;
    background: conic-gradient(var(--primary) 0% 94%, #e0e0e0 94% 100%);
    position: relative;
}

.mini-pie::after {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: #fff;
}

.chart-bar {
    height: 160px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(36, 78, 56, 0.85) 0%, rgba(248, 197, 55, 0.85) 100%);
    margin-bottom: 1rem;
    animation: pulse-bar 3.4s ease-in-out infinite;
}

.metrics-visuals ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    color: var(--muted);
}

.line-plot {
    width: 100%;
    max-width: 360px;
    height: 140px;
    margin-top: 0.75rem;
    display: block;
}

.line-plot path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
}

.line-plot circle {
    fill: #fff;
    stroke: var(--accent);
    stroke-width: 2.5;
}

.line-plot .line--accent {
    stroke: var(--accent);
}

.line-plot .line--muted {
    stroke: #9ab3a4;
}

.line-plot .dot--accent {
    stroke: var(--primary);
}

.line-plot .dot--muted {
    stroke: #9ab3a4;
}

.dynamic-targeting {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.dynamic-targeting__visual {
    position: relative;
    min-height: 420px;
    background: radial-gradient(circle at top, rgba(36, 78, 56, 0.3) 0%, transparent 65%);
    border-radius: 28px;
    overflow: hidden;
}

.pulse {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(36, 78, 56, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.pulse--delay {
    animation-delay: 1.2s;
    width: 280px;
    height: 280px;
}

.pulse--small {
    animation-delay: 2.1s;
    width: 150px;
    height: 150px;
}

.target-card {
    position: absolute;
    top: 18%;
    right: 12%;
    background: rgba(36, 78, 56, 0.92);
    color: #fff;
    padding: 1.2rem;
    border-radius: 18px;
    width: min(220px, 80%);
    box-shadow: 0 22px 40px rgba(12, 26, 20, 0.45);
    animation: float 6s ease-in-out infinite;
}

.target-card--alt {
    top: 58%;
    left: 12%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 20px 36px rgba(36, 78, 56, 0.18);
    animation-delay: 1.8s;
}

.target-card__tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-cta {
    background: #fff;
    border-radius: 28px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 24px 48px rgba(36, 78, 56, 0.2);
    display: grid;
    gap: 1rem;
}

.footer {
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    background: linear-gradient(0deg, rgba(36, 78, 56, 0.08), transparent);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer__legal a {
    color: var(--primary);
    font-weight: 600;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.55;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.2;
    }
}

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

@keyframes pulse-bar {
    0%, 100% {
        transform: scaleY(0.85);
    }
    50% {
        transform: scaleY(1.05);
    }
}

@media (max-width: 840px) {
    .carousel {
        width: min(100%, 480px);
        margin: 0 auto;
    }

    .carousel__track {
        align-items: center;
    }

    .hero {
        min-height: 78vh;
    }

    .cta-highlight {
        padding: 2rem;
        text-align: center;
    }

    .dynamic-targeting__visual {
        min-height: 340px;
    }

    .carousel__slide {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .carousel__slide img {
        order: 1;
        max-width: 280px;
        max-height: 480px;
        margin: 0 auto;
        display: block;
    }

    .carousel__caption {
        order: 2;
        font-size: 1.5rem;
        text-align: center;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        display: block;
    }

    .carousel__indicators {
        bottom: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto;
    }
}

.legal-body {
    background: #fff;
    color: var(--text);
}

.legal-hero {
    background: linear-gradient(135deg, rgba(36, 78, 56, 0.9), rgba(16, 36, 26, 0.78)), url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?w=1600') center/cover no-repeat;
    color: #fff;
    padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 6rem);
    text-align: center;
}

.legal-hero__content {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
    animation: fade-up 0.8s ease both;
}

.legal-hero__kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(248, 197, 55, 0.86);
}

.legal-hero__back {
    justify-self: center;
    margin-top: 0.5rem;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    transition: background var(--transition), transform var(--transition);
}

.legal-hero__back:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.legal-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 5rem);
    background: var(--bg);
}

.legal-nav {
    position: sticky;
    top: 2rem;
    align-self: start;
    background: #fff;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 18px 36px rgba(36, 78, 56, 0.12);
    display: grid;
    gap: 1rem;
}

.legal-nav nav {
    display: grid;
    gap: 0.6rem;
}

.legal-nav a {
    color: var(--primary);
    font-weight: 500;
    transition: color var(--transition);
}

.legal-nav a:hover {
    color: var(--primary-dark);
}

.legal-content {
    display: grid;
    gap: 2rem;
}

.legal-card {
    background: #fff;
    padding: clamp(2rem, 3vw, 2.75rem);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(36, 78, 56, 0.14);
    display: grid;
    gap: 1rem;
}

.legal-card h2 {
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.legal-card p {
    margin: 0;
    color: var(--muted);
}

.legal-card a {
    color: var(--primary);
    font-weight: 600;
}

.legal-footer {
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    color: var(--muted);
    background: linear-gradient(0deg, rgba(36, 78, 56, 0.06), transparent);
    font-size: 0.9rem;
}

.legal-footer a {
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 960px) {
    .legal-main {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static;
        order: -1;
    }
}
