/* ═══════════════════════════════════════════════
   WEBMAX DIGITAL — HOMEPAGE SECTIONS
   Premium design system matching Revolution PTS quality
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    --color-surface: #FAFAFA;
    --color-surface-raised: #f5f5f7;
    --color-surface-dark: #0a0a0a;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-light: rgba(255, 255, 255, 0.08);
    --color-teal-soft: rgba(0, 180, 216, 0.08);
    --color-teal-glow: rgba(0, 180, 216, 0.15);
    --color-orange-soft: rgba(255, 107, 53, 0.06);
    --color-orange-glow: rgba(255, 107, 53, 0.12);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Animation System ── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger containers: parent is always visible, children animate individually */
[data-animate="stagger"] {
    opacity: 1;
    transform: none;
}

[data-animate="stagger"] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate="stagger"] > .is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate],
    [data-animate="stagger"] > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Enhanced Animations ── */
[data-parallax] {
    will-change: transform;
}

[data-slide-from] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-slide-from="left"] {
    transform: translateX(-60px);
}

[data-slide-from="right"] {
    transform: translateX(60px);
}

[data-slide-from].slide-in-left,
[data-slide-from].slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

[data-tilt] {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

[data-magnetic] {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

[data-scroll-progress] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-orange);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
    will-change: transform;
}

/* ── Shared ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.overline {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.overline::before {
    content: '— ';
    color: var(--color-orange);
}

.heading-2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.subheading {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 580px;
    line-height: 1.7;
}

/* ── Buttons (redesigned) ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
}

.btn--primary {
    background: var(--color-orange);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
    background: var(--color-orange-hover);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn--pill {
    border-radius: 50px;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   Matches standalone webmax-digital-hero.html design
   ═══════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 0 6rem;
    position: relative;
    overflow: visible;
}

/* Wireframe background grid */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    animation: gridSlide 20s linear infinite;
}

@keyframes gridSlide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Globe canvas — contained within hero, bleeding off right edge */
#globe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    display: block;
    pointer-events: auto;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    animation: contentSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes contentSlideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 2rem;
    animation: badgeSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}

@keyframes badgeSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
    font-family: var(--font-display), var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    animation: titleSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

@keyframes titleSlide {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__title .highlight {
    background: linear-gradient(135deg, var(--color-orange), var(--color-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
    animation: subtitleSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes subtitleSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: ctaSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
}

@keyframes ctaSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero buttons — orange primary matching the demo */
.hero .btn-primary {
    padding: 1rem 2.5rem;
    background: var(--color-orange);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
    color: white;
}

.hero .btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hero .btn-secondary:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

/* Stats inside hero */
.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    animation: statsSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards;
}

@keyframes statsSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat__number {
    font-family: var(--font-display), var(--font-heading);
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-text);
}

.stat__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero__visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: visualSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
    overflow: visible;
}

@keyframes visualSlide {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Hero responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 0 3rem;
        gap: 3rem;
        padding-top: 120px;
    }

    .hero__visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 2rem;
        padding-top: 100px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero__cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.trust-bar {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.trust-bar__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.trust-bar__logos {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-bar__logo {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    opacity: 0.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.trust-bar__logo:hover {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .trust-bar__inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .trust-bar__logos {
        justify-content: center;
        gap: 2rem;
    }
}

/* ═══════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════ */
.stats-bar {
    padding: 4rem 0;
    background:
        linear-gradient(90deg, transparent 49.5%, var(--color-teal-soft) 49.5%, var(--color-teal-soft) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, var(--color-teal-soft) 49.5%, var(--color-teal-soft) 50.5%, transparent 50.5%),
        var(--color-surface);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-surface) 0%, transparent 20%, transparent 80%, var(--color-surface) 100%);
    pointer-events: none;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-bar__item {
    text-align: center;
    position: relative;
}

.stats-bar__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--color-border);
}

.stats-bar__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-teal), #0090a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stats-bar__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services {
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}

/* Wireframe grid canvas behind services */
#services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services__header {
    margin-bottom: 4rem;
    max-width: 520px;
}

.services__header .subheading {
    max-width: 480px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    position: relative;
    transition: all 0.4s var(--ease-spring);
    overflow: hidden;
}

/* Top accent bar that reveals on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-text), var(--color-text-muted));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-spring);
}

.service-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

/* Cards without data-tilt get CSS hover lift */
.service-card:not([data-tilt]):hover {
    transform: translateY(-6px);
}

/* Cards with data-tilt: JS handles transform, disable CSS transition conflict */
.service-card[data-tilt] {
    transition: border-color 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    margin-bottom: 1.75rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-card__icon {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.service-card__desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
}

.service-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-card__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.service-card__feature svg {
    color: var(--color-orange);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   PROCESS (Horizontal Timeline)
   ═══════════════════════════════════════ */
.process {
    background: var(--color-surface);
    color: var(--color-text);
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}

.process__glow {
    display: none;
}

.process__header {
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.process__header .subheading {
    margin-left: auto;
    margin-right: auto;
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    z-index: 2;
    counter-reset: step;
}

/* Connecting line behind the step numbers */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: var(--color-border);
}

.process__step {
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.process__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.process__step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.process__step-desc {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   TESTIMONIALS (Carousel + Code Vignette)
   ═══════════════════════════════════════ */
.testimonials {
    background: var(--color-surface);
    overflow: hidden;
    padding: 6rem 0 8rem;
    border-top: 1px solid var(--color-border);
}

/* Code rain canvas — full bleed behind section */
#code-rain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Vignette overlay — fades edges so code rain bleeds in from sides */
.testimonials__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, var(--color-surface) 30%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials__header {
    margin-bottom: 3.5rem;
}

/* Carousel wrapper — overflow hidden with edge fades */
.testimonials__carousel-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Left/right gradient fades */
.testimonials__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}

.testimonials__fade--left {
    left: 0;
    background: linear-gradient(to right, var(--color-surface), transparent);
}

.testimonials__fade--right {
    right: 0;
    background: linear-gradient(to left, var(--color-surface), transparent);
}

/* Carousel track — horizontal scroll with snap */
.testimonials__carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
    cursor: grab;
}

.testimonials__carousel:active {
    cursor: grabbing;
}

.testimonials__carousel::-webkit-scrollbar {
    display: none;
}

/* Individual slide card */
.testimonials__slide {
    flex: 0 0 min(400px, 85vw);
    scroll-snap-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease-spring);
}

.testimonials__slide:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
}

.testimonials__stars {
    color: #f59e0b;
    display: flex;
    gap: 2px;
    margin-bottom: 1.25rem;
}

.testimonials__quote {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Stat highlight badge */
.testimonials__meta {
    margin-bottom: 1.25rem;
}

.testimonials__stat {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    background: var(--color-surface-raised);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.testimonials__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.testimonials__company {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Dot navigation */
.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__dot:hover {
    background: var(--color-text-muted);
}

.testimonials__dot.active {
    background: var(--color-teal);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.3);
    width: 24px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════
   FAQ (Interactive Pill Interface)
   ═══════════════════════════════════════ */
.faq {
    background: var(--color-surface);
    position: relative;
}

/* Subtle dot pattern - fades to edges */
.faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 1px 1px, rgba(0, 180, 216, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
    pointer-events: none;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.faq__header {
    margin-bottom: 3rem;
}

/* Pill buttons — centered, wrapping, floaty */
.faq__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.faq__pill {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.35s var(--ease-spring);
    position: relative;
    white-space: nowrap;
}

.faq__pill:hover {
    border-color: rgba(0, 180, 216, 0.3);
    color: var(--color-teal);
    background: var(--color-teal-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.1);
}

.faq__pill.active {
    background: var(--color-teal);
    color: #fff;
    border-color: var(--color-teal);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
    transform: translateY(-3px);
}

.faq__pill.active:hover {
    background: #009cc0;
    color: #fff;
}

/* Answer reveal box */
.faq__answer-box {
    max-width: 680px;
    margin: 0 auto;
    min-height: 60px;
    position: relative;
}

.faq__answer-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    text-align: center;
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

/* Top accent line on answer box */
.faq__answer-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-teal), #0090a8);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s ease, width 0.5s var(--ease-spring);
}

.faq__answer-content.has-answer::before {
    opacity: 1;
    width: 120px;
}

.faq__answer-content.has-answer {
    border-color: rgba(0, 180, 216, 0.15);
    box-shadow: 0 8px 40px rgba(0, 180, 216, 0.06), 0 0 0 1px rgba(0, 180, 216, 0.04);
}

.faq__answer-hint {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.faq__answer-text {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.0625rem;
    margin: 0;
    animation: fadeInUp 0.4s var(--ease-spring) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════ */
.final-cta {
    background: var(--color-surface-raised);
    text-align: center;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--color-border);
}

.final-cta__glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.04), transparent 65%);
    pointer-events: none;
    filter: blur(80px);
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta__sub {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.final-cta__details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.final-cta__detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.final-cta__detail svg {
    color: var(--color-orange);
}

/* ═══════════════════════════════════════
   BLOG PREVIEW
   ═══════════════════════════════════════ */
.blog-preview {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.blog-preview .container {
    position: relative;
}

.blog-preview__header {
    margin-bottom: 4rem;
}

.blog-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Placeholder for posts without featured images */
.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-surface-raised), var(--color-teal-soft));
    color: var(--color-teal);
}

/* Placeholder post cards — slightly muted */
.blog-card--placeholder {
    opacity: 0.7;
}

.blog-card--placeholder .blog-card__title {
    color: var(--color-text-muted);
}

/* Blog preview CTA */
.blog-preview__cta {
    text-align: center;
    margin-top: 3.5rem;
}

/* Blog subscribe block (when no posts) */
.blog-preview__subscribe {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface-raised);
}

.blog-preview__subscribe-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.blog-preview__subscribe .btn--primary {
    background: var(--color-orange);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.blog-preview__subscribe .btn--primary:hover {
    background: var(--color-orange-hover);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .process__timeline {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .process__timeline::before {
        display: none;
    }

    .process__step {
        text-align: left;
    }

    .process__step-desc {
        margin: 0;
    }

    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats-bar__item:nth-child(2)::after { display: none; }

    .testimonials__slide {
        flex: 0 0 min(340px, 80vw);
    }

    .blog-preview__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .stats-bar {
        padding: 3rem 0;
    }

    .stats-bar__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-bar__item::after { display: none; }

    .testimonials__slide {
        flex: 0 0 min(320px, 85vw);
        padding: 2rem 1.5rem;
    }

    .testimonials__fade {
        width: 40px;
    }

    .faq__pill {
        font-size: 0.8125rem;
        padding: 0.625rem 1.25rem;
    }

    .faq__answer-content {
        padding: 1.5rem;
    }

    .final-cta__details {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-bar__grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 72px;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav.is-scrolled {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__logo a {
    color: var(--color-text);
    text-decoration: none;
}

.nav__menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__links a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast) var(--ease-default);
}

.nav__links a:hover {
    color: var(--color-teal);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav__theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.nav__theme-toggle:hover {
    background: var(--color-teal-light);
    color: var(--color-teal);
}

.nav__theme-icon--dark {
    display: none;
}

.nav__cta {
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav__cta:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-bg);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all var(--duration-normal) var(--ease-default);
}

@media (max-width: 768px) {
    .nav__menu,
    .nav__theme-toggle {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════
   FOOTER — Minimal wireframe style
   ═══════════════════════════════════════════════ */

.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-16) var(--space-8);
}

.footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: var(--space-12);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    max-width: 260px;
    margin-bottom: var(--space-5);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) var(--ease-default);
}

.footer__social a:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-2px);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-4);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.footer__links a:hover {
    color: var(--color-text);
}

.footer__cta-text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.footer__cta-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: var(--color-orange);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-default);
}

.footer__cta-btn:hover {
    background: var(--color-orange-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.footer__divider {
    height: 1px;
    background: var(--color-border);
    margin-block: var(--space-10);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__legal {
    display: flex;
    gap: var(--space-4);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.footer__legal a:hover {
    color: var(--color-text);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════
   DARK MODE OVERRIDES
   ═══════════════════════════════════════════════ */

/* Override local :root tokens for dark */
[data-theme="dark"] {
    --color-surface: #0a0a0a;
    --color-surface-raised: #161616;
    --color-surface-dark: #F1F5F9;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);
    --color-teal-soft: rgba(0, 180, 216, 0.1);
    --color-teal-glow: rgba(0, 180, 216, 0.25);
    --color-orange-soft: rgba(255, 107, 53, 0.1);
    --color-orange-glow: rgba(255, 107, 53, 0.2);
}

/* Navigation */
[data-theme="dark"] .nav {
    background: rgba(10, 10, 10, 0.8);
}

[data-theme="dark"] .nav.is-scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Theme toggle icons */
[data-theme="dark"] .nav__theme-icon--light {
    display: none;
}

[data-theme="dark"] .nav__theme-icon--dark {
    display: block;
}

/* Hero */
[data-theme="dark"] .hero__badge {
    background: var(--color-surface-raised);
}

/* Service cards hover */
[data-theme="dark"] .services__card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Service card icon wrapper */
[data-theme="dark"] .services__icon {
    background: var(--color-surface-raised);
}

[data-theme="dark"] .services__card:hover .services__icon {
    background: var(--color-orange);
}

/* Testimonial cards hover */
[data-theme="dark"] .testimonials__slide:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Nav CTA hover */
[data-theme="dark"] .nav__cta:hover {
    background: var(--color-text);
    color: var(--color-bg);
}
