body {
    font-family: 'Inter', sans-serif;
    background-color: #0E0F12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    color: #E2E2E2;
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
}

html[data-theme="light"] .modal-overlay {
    background-color: rgba(17, 24, 39, 0.55);
}

.answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding-bottom: 0;
}

.answer.open {
    opacity: 1;
    padding-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, #A855F7, #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.rotating-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    min-height: 1.25em;
    line-height: 1.2;
    padding: 0.08em 0;
}

.rotating-text--initializing .rotating-text-item {
    transition: none !important;
}

.rotating-text-item {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    display: block;
    width: 100%;
    opacity: 0;
    transform: translateY(-0.75em);
    transition: opacity 0.24s ease, transform 0.24s ease;
    will-change: transform, opacity;
    background: inherit;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    z-index: 0;
}

.rotating-text-item:first-child {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

.rotating-text--ready .rotating-text-item:first-child {
    position: absolute;
    z-index: 0;
}

.rotating-text--ready .rotating-text-item:first-child:not(.is-active) {
    opacity: 0;
    transform: translateY(-0.75em);
}

.rotating-text-item.is-active {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.rotating-text-item.is-leaving {
    opacity: 0;
    transform: translateY(0.75em);
    z-index: 1;
}

.rotating-text::after {
    content: attr(data-measure);
    display: block;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    white-space: nowrap;
    line-height: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .rotating-text {
        min-height: auto;
    }

    .rotating-text-item {
        position: static;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        color: inherit !important;
        background: none !important;
        -webkit-text-fill-color: currentColor !important;
    }

    .rotating-text-item + .rotating-text-item {
        display: none;
    }
}

@media (max-width: 768px) {
    .rotating-text {
        display: block;
        width: 100%;
        text-align: center;
    }

    .rotating-text-item {
        text-align: center;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

#value-prop-section h2 .ap-phrase {
    display: inline-block;
}

#value-prop-section h2 .ap-phrase + .ap-phrase {
    margin-left: 0.35rem;
}

#value-prop-section h2 .slide-left,
#value-prop-section h2 .slide-right,
#value-prop-section h2 .fade-up {
    opacity: 0;
    transform: translateX(0);
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#value-prop-section h2 .slide-left {
    transform: translateX(-25vw);
}

#value-prop-section h2 .slide-right {
    transform: translateX(25vw);
}

#value-prop-section h2 .fade-up {
    transform: translateY(24px);
    transition-duration: 1050ms;
}

#value-prop-section h2.reveal.in .slide-left,
#value-prop-section h2.reveal.in .slide-right,
#value-prop-section h2.reveal.in .fade-up {
    opacity: 1;
    transform: none;
}

.analytics-card {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    backdrop-filter: blur(14px);
}

#traffic .chart-wrap {
    position: relative;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: clamp(0.75rem, 2vw, 1.75rem);
    overflow: hidden;
}

#traffic .chart-wrap canvas,
#traffic .chart-wrap svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.testimonial-card {
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button {
    background: #6366F1;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #4F46E5;
}

#savings-range {
    height: 6px;
    -webkit-appearance: none;
    background: transparent;
}

#savings-range::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.28);
    height: 6px;
    border-radius: 9999px;
}

#savings-range::-moz-range-track {
    background: rgba(255, 255, 255, 0.28);
    height: 6px;
    border-radius: 9999px;
}

#savings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: rgba(243, 244, 246, 0.95);
    border: 2px solid rgba(24, 26, 30, 0.9);
    margin-top: -6px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

#savings-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: rgba(243, 244, 246, 0.95);
    border: 2px solid rgba(24, 26, 30, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] #savings-range::-webkit-slider-runnable-track {
    background: rgba(17, 24, 39, 0.2);
}

html[data-theme="light"] #savings-range::-moz-range-track {
    background: rgba(17, 24, 39, 0.2);
}

html[data-theme="light"] #savings-range::-webkit-slider-thumb {
    background: #4F46E5;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.25);
}

html[data-theme="light"] #savings-range::-moz-range-thumb {
    background: #4F46E5;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.25);
}

.secondary-button {
    background-color: transparent;
    border: 1px solid #4A5568;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.secondary-button:hover {
    background-color: #4A5568;
}

.glow-effect {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.0) 60%);
}

html[data-theme="light"] .hero-vignette {
    background: radial-gradient(ellipse at center, rgba(17, 24, 39, 0.06) 0%, rgba(17, 24, 39, 0.0) 60%);
}

#action-plan .feature-card {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] #action-plan .feature-card {
    border-color: #e5e7eb;
}

#action-plan .energy-blade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36px;
    opacity: 0;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.85), rgba(16, 185, 129, 0.85), rgba(16, 185, 129, 0.05));
    filter: blur(3px);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    transform: translateX(-72px);
}

@media (prefers-reduced-motion: reduce) {
    #action-plan.blade-animate .energy-blade {
        animation: none;
    }
}

.marker {
    display: inline;
    background-color: rgba(99, 102, 241, 0.14);
    border-radius: 0.2em;
    padding: 0.06em 0.18em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

html[data-theme="light"] .marker {
    background-color: rgba(99, 102, 241, 0.10);
}

html[data-theme="light"] body {
    background-color: #ffffff;
    color: #111827;
}

.persona-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
}

.persona-circle {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    overflow: hidden;
    border: 4px solid rgba(15, 23, 42, 0.6);
    background: rgba(148, 163, 184, 0.12);
}

.persona-circle + .persona-circle {
    margin-left: -16px;
}

html[data-theme="light"] .persona-circle {
    border-color: rgba(226, 232, 240, 0.9);
    background: rgba(148, 163, 184, 0.08);
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    opacity: 0.7;
    display: none;
}

.client-logos img {
    max-height: 40px;
    width: auto;
    filter: grayscale(100%);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.client-logos img:hover {
    opacity: 0.9;
    filter: grayscale(0%);
}

html[data-theme="light"] .bg-black,
html[data-theme="light"] .bg-[#101010] {
    background-color: #ffffff !important;
}

html[data-theme="light"] .border-gray-800 {
    border-color: #e5e7eb !important;
}

html[data-theme="light"] .text-gray-400 {
    color: #4B5563 !important;
}

html[data-theme="light"] .text-gray-300 {
    color: #6B7280 !important;
}

html[data-theme="light"] .text-gray-500 {
    color: #6B7280 !important;
}

html[data-theme="light"] .bg-[#0f0f10] {
    background-color: #F9FAFB !important;
}

html[data-theme="light"] header {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .feature-card {
    background: rgba(17, 24, 39, 0.03);
    border-color: #e5e7eb;
}

html[data-theme="light"] .analytics-card {
    backdrop-filter: blur(14px);
}

html[data-theme="light"] .testimonial-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

html[data-theme="light"] .secondary-button {
    border-color: #9CA3AF;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.reveal-slow {
    transform: translateY(16px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.16);
    }
    100% {
        box-shadow: 0 0 0 26px rgba(255, 255, 255, 0);
    }
}

#action-plan .feature-card {
    position: relative;
}

#action-plan .feature-card.pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    pointer-events: none;
    will-change: transform, box-shadow, opacity;
    animation: pulse-ring 360ms cubic-bezier(0, 0, 0.2, 1) 1 forwards;
}

html[data-theme="light"] #action-plan .feature-card.pulse::after {
    animation-name: pulse-ring-light;
}

@keyframes pulse-ring-light {
    0% {
        box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.16);
    }
    100% {
        box-shadow: 0 0 0 26px rgba(17, 24, 39, 0);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.languages-track {
    display: flex;
    will-change: transform;
}

.languages-track .languages-seq {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
}

#langs-track {
    animation: none !important;
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    will-change: transform;
}

.lang-fade-left {
    background: linear-gradient(to right, rgba(16, 16, 16, 1), rgba(16, 16, 16, 0));
}

.lang-fade-right {
    background: linear-gradient(to left, rgba(16, 16, 16, 1), rgba(16, 16, 16, 0));
}

html[data-theme="light"] .lang-fade-left {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

html[data-theme="light"] .lang-fade-right {
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

@media (max-width: 767px) {
    .timeline-icon {
        position: relative;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .timeline-icon::before,
    .timeline-icon::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 1px;
        background: #374151;
        transform: translateX(-50%);
        z-index: 0;
    }

    .timeline-icon::before {
        top: 0;
        bottom: calc(50% + 2rem);
    }

    .timeline-icon::after {
        top: calc(50% + 2rem);
        bottom: 0;
    }

    .timeline-icon--start::before {
        display: none;
    }

    .timeline-icon--end::after {
        display: none;
    }

.timeline-icon > * {
        position: relative;
        z-index: 10;
    }
}

@property --fill-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.coverage-chart {
    --fill-angle: 0deg;
    --target-angle: 0deg;
    --filled-color: #22c55e;
    --base-color: #1a1740;
    background: conic-gradient(from 270deg, var(--filled-color) 0deg, var(--filled-color) var(--fill-angle), var(--base-color) var(--fill-angle), var(--base-color) 360deg);
    border-radius: 50%;
    box-shadow: 0 18px 44px rgba(26, 23, 64, 0.38);
    transition: --fill-angle 1.65s cubic-bezier(0.22, 0.82, 0.18, 1);
    will-change: --fill-angle;
}

.coverage-chart__visual {
    aspect-ratio: 1 / 1;
    width: clamp(240px, 85vw, 400px);
}

@media (min-width: 768px) {
    .coverage-chart__visual {
        width: clamp(280px, 30vw, 420px);
    }
}

@media (min-width: 1280px) {
    .coverage-chart__visual {
        width: clamp(320px, 24vw, 460px);
    }
}

.coverage-chart--before {
    --target-angle: 72deg;
}

.coverage-chart--after {
    --target-angle: 360deg;
    box-shadow: 0 22px 54px rgba(34, 197, 94, 0.28);
}

.reveal.in .coverage-chart {
    --fill-angle: var(--target-angle);
}

@media (prefers-reduced-motion: reduce) {
    .coverage-chart {
        transition: none;
        --fill-angle: var(--target-angle);
    }
}
