/* ── Atomware Landing Page ──────────────────── */

:root {
    --atw-bg: #000000;
    --atw-bg-card: #0a0a0a;
    --atw-bg-alt: #050505;
    --atw-border: #1a1a1a;
    /* Brand primary (atomware.co.za) */
    --atw-primary: #1552cc;
    --atw-primary-hover: #0f3fa8;
    --atw-bg-deep: #01033f;
    --atw-accent: #fbb174;
    --atw-text: #f1f5f9;
    --atw-text-sub: #94a3b8;
    --atw-text-muted: #64748b;
    --atw-radius: 12px;
    --atw-error: #f87171;
    --atw-success: #34d399;
    /* Service accents (What We Do) */
    --atw-svc-web-design: #fcda00;
    --atw-svc-ecommerce: #a324e2;
    --atw-svc-custom-dev: #6ced49;
    --atw-svc-hosting: #9a25e8;
    --atw-svc-seo: #255aea;
    --atw-svc-graphic: #f20e0e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.atomware-landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--atw-bg);
    color: var(--atw-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.atw-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────── */

.atw-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--atw-border);
}

.atw-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.atw-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--atw-text);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.atw-nav-logo .material-icons {
    font-size: 28px;
    color: var(--atw-primary);
}

.atw-logo-img {
    height: 36px;
    width: auto;
}

/* Header brand mark — half height vs default upload display */
.atw-nav .atw-logo-img {
    height: 18px;
}

.atw-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.atw-nav-links a {
    color: var(--atw-text-sub);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.atw-nav-links a:hover {
    color: var(--atw-text);
}

.atw-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--atw-text);
    cursor: pointer;
    padding: 4px;
}

/* ── Buttons ─────────────────────────────────── */

.atw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.atw-btn-primary {
    background: var(--atw-primary);
    color: #ffffff;
}

.atw-btn-primary:hover {
    background: var(--atw-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(21, 82, 204, 0.28);
}

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

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

.atw-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.atw-btn .material-icons {
    font-size: 20px;
}

.atw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Hero ────────────────────────────────────── */

.atw-hero {
    position: relative;
    padding: 160px 0 120px;
    text-align: center;
    overflow: hidden;
}

.atw-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(21, 82, 204, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(1, 3, 63, 0.45) 0%, transparent 50%);
    pointer-events: none;
}

.atw-hero-content {
    position: relative;
    z-index: 1;
}

.atw-hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--atw-primary);
    margin-bottom: 20px;
    background: rgba(21, 82, 204, 0.12);
    padding: 6px 16px;
    border-radius: 20px;
}

.atw-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.atw-hero-title br { display: block; }

.atw-hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--atw-text-sub);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.atw-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────── */

.atw-section {
    padding: 100px 0;
}

.atw-section-alt {
    background: var(--atw-bg-alt);
}

.atw-section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.atw-section-sub {
    text-align: center;
    color: var(--atw-text-sub);
    font-size: 16px;
    max-width: 540px;
    margin: 0 auto 56px;
}

/* ── Feature / Service Grid ──────────────────── */

.atw-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.atw-feature-card {
    background: var(--atw-bg-card);
    border: 1px solid var(--atw-border);
    border-radius: var(--atw-radius);
    padding: 32px 28px;
    transition: border-color 0.2s, transform 0.2s;
}

.atw-feature-card:hover {
    border-color: var(--atw-primary);
    transform: translateY(-4px);
}

.atw-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(21, 82, 204, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.atw-feature-icon .material-icons {
    font-size: 24px;
    color: var(--atw-primary);
}

/* Per-service card accents (icon chip + border glow on hover) */
.atw-svc--web-design {
    --atw-svc: var(--atw-svc-web-design);
}
.atw-svc--ecommerce {
    --atw-svc: var(--atw-svc-ecommerce);
}
.atw-svc--custom-dev {
    --atw-svc: var(--atw-svc-custom-dev);
}
.atw-svc--hosting {
    --atw-svc: var(--atw-svc-hosting);
}
.atw-svc--seo {
    --atw-svc: var(--atw-svc-seo);
}
.atw-svc--graphic {
    --atw-svc: var(--atw-svc-graphic);
}

/* Service cards — subtle layered gradients (per --atw-svc) */
.atw-feature-card.atw-svc--web-design,
.atw-feature-card.atw-svc--ecommerce,
.atw-feature-card.atw-svc--custom-dev,
.atw-feature-card.atw-svc--hosting,
.atw-feature-card.atw-svc--seo,
.atw-feature-card.atw-svc--graphic {
    position: relative;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--atw-svc) 6%, transparent) 0%,
            transparent 42%
        ),
        radial-gradient(
            ellipse 115% 80% at 100% -8%,
            color-mix(in srgb, var(--atw-svc) 14%, transparent) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 95% 70% at 0% 102%,
            color-mix(in srgb, var(--atw-svc) 9%, transparent) 0%,
            transparent 52%
        ),
        linear-gradient(
            148deg,
            color-mix(in srgb, var(--atw-svc) 5%, var(--atw-bg-card)) 0%,
            var(--atw-bg-card) 46%,
            color-mix(in srgb, var(--atw-svc) 4%, var(--atw-bg-card)) 100%
        );
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--atw-svc) 10%, transparent),
        0 0 0 0 transparent;
    transition:
        border-color 0.2s,
        transform 0.2s,
        box-shadow 0.22s ease;
}

.atw-feature-card.atw-svc--web-design:hover,
.atw-feature-card.atw-svc--ecommerce:hover,
.atw-feature-card.atw-svc--custom-dev:hover,
.atw-feature-card.atw-svc--hosting:hover,
.atw-feature-card.atw-svc--seo:hover,
.atw-feature-card.atw-svc--graphic:hover {
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--atw-svc) 18%, transparent),
        0 14px 36px color-mix(in srgb, var(--atw-svc) 8%, transparent);
}

.atw-features-grid .atw-feature-card--interactive {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.atw-features-grid .atw-feature-card--interactive:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--atw-primary) 70%, #ffffff);
    outline-offset: 3px;
}

.atw-features-grid .atw-feature-card--interactive:active {
    transform: translateY(-2px);
}

/* Uploaded WebP thumbnails — ~50px tall; no chip frame */
.atw-feature-icon.atw-feature-icon--img {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 50px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    justify-content: flex-start;
}

.atw-feature-icon.atw-feature-icon--img img {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.atw-svc--web-design .atw-feature-icon:not(.atw-feature-icon--img),
.atw-svc--ecommerce .atw-feature-icon:not(.atw-feature-icon--img),
.atw-svc--custom-dev .atw-feature-icon:not(.atw-feature-icon--img),
.atw-svc--hosting .atw-feature-icon:not(.atw-feature-icon--img),
.atw-svc--seo .atw-feature-icon:not(.atw-feature-icon--img),
.atw-svc--graphic .atw-feature-icon:not(.atw-feature-icon--img) {
    background: color-mix(in srgb, var(--atw-svc) 22%, #0a0a0a 78%);
    border: 1px solid color-mix(in srgb, var(--atw-svc) 40%, transparent);
}

/* Yellow / lime: dark icon for contrast on bright chips */
.atw-svc--web-design .atw-feature-icon .material-icons {
    color: #1a1a1a;
}
.atw-svc--custom-dev .atw-feature-icon .material-icons {
    color: #0b1a0a;
}
.atw-svc--ecommerce .atw-feature-icon .material-icons,
.atw-svc--hosting .atw-feature-icon .material-icons,
.atw-svc--seo .atw-feature-icon .material-icons,
.atw-svc--graphic .atw-feature-icon .material-icons {
    color: #f5f5f5;
}
.atw-feature-card.atw-svc--web-design:hover,
.atw-feature-card.atw-svc--ecommerce:hover,
.atw-feature-card.atw-svc--custom-dev:hover,
.atw-feature-card.atw-svc--hosting:hover,
.atw-feature-card.atw-svc--seo:hover,
.atw-feature-card.atw-svc--graphic:hover {
    border-color: color-mix(in srgb, var(--atw-svc) 38%, var(--atw-border));
}

.atw-feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--atw-text);
}

.atw-feature-card p {
    font-size: 14px;
    color: var(--atw-text-sub);
    line-height: 1.6;
}

/* Service detail lightbox */
body.atw-svc-modal-active {
    overflow: hidden;
}

.atw-svc-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    opacity: 0;
    transition: opacity 0.26s ease;
    pointer-events: none;
}

.atw-svc-modal.atw-svc-modal--open {
    opacity: 1;
    pointer-events: auto;
}

.atw-svc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.atw-svc-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--atw-bg-card);
    border: 1px solid var(--atw-border);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.atw-svc-modal.atw-svc-modal--open .atw-svc-modal-dialog {
    transform: scale(1) translateY(0);
}

.atw-svc-modal-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--atw-border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--atw-text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.atw-svc-modal-x:hover {
    background: rgba(21, 82, 204, 0.2);
    border-color: var(--atw-primary);
}

.atw-svc-modal-x .material-icons {
    font-size: 22px;
}

.atw-svc-modal-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding-right: 44px;
}

.atw-svc-modal-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(38vh, 360px);
    object-fit: contain;
    border-radius: 10px;
}

.atw-svc-modal-title {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--atw-text);
    line-height: 1.25;
    padding-right: 40px;
}

.atw-svc-modal-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--atw-text-sub);
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .atw-svc-modal,
    .atw-svc-modal-dialog {
        transition-duration: 0.01ms;
    }
}

/* ── Global map (dark Google Map + static fallback) ───────────────── */

@keyframes atw-gmap-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.45);
        opacity: 0.55;
    }
    70% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.2);
    }
    100% {
        opacity: 0;
    }
}

#global-footprint.atw-section-global-map {
    --atw-global-map-intro: clamp(180px, 32vh, 280px);
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    padding-top: clamp(48px, 7vh, 88px);
    padding-bottom: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    background: #000000;
    border-top: 1px solid rgba(26, 26, 26, 0.65);
}

#global-footprint .atw-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: clamp(14px, 2.8vh, 24px);
    text-align: center;
}

.atw-map-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: calc(100dvh - var(--atw-global-map-intro, 220px));
    min-height: calc(100vh - var(--atw-global-map-intro, 220px));
    margin-top: 0;
    border-top: 1px solid rgba(26, 26, 26, 0.45);
}

.atw-section-global-map .atw-section-title {
    font-size: clamp(22px, 4vw, 32px);
    letter-spacing: 0.06em;
    font-weight: 800;
}

.atw-section-global-map .atw-section-sub {
    margin-bottom: 0;
}

/* Google Map canvas — MAP_BACKGROUND (~#050608); tiled styles invert land lighter / ocean dark */
.atw-map-stage--has-key .atw-gmap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 2;
    background: #050608;
}

/* Depth: soft inner vignette on the map viewport (tiles + markers paint above the shadow layer) */
#global-footprint .atw-map-stage--has-key.atw-map-stage--map-ready {
    box-shadow:
        inset 0 0 clamp(72px, 14vw, 160px) rgba(0, 0, 0, 0.42),
        inset 0 -1px 0 rgba(21, 82, 204, 0.12);
}

.atw-map-stage--has-key:not(.atw-map-stage--map-ready) .atw-gmap {
    opacity: 0.001;
}

.atw-map-stage--has-key.atw-map-stage--map-ready .atw-gmap,
.atw-gmap.atw-gmap--ready {
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.atw-map-stage:not(.atw-map-stage--has-key) .atw-gmap {
    display: none;
}

.atw-map-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.35s ease, visibility 0.35s;
}

@keyframes atw-dot-bounce {
    0%, 80%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

.atw-map-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(139, 180, 255, 1), rgba(21, 82, 204, 1));
}

.atw-map-loading-dot:nth-child(1) {
    animation: atw-dot-bounce 1s ease infinite;
}
.atw-map-loading-dot:nth-child(2) {
    animation: atw-dot-bounce 1s ease infinite 0.15s;
}
.atw-map-loading-dot:nth-child(3) {
    animation: atw-dot-bounce 1s ease infinite 0.3s;
}

.atw-map-stage--map-ready .atw-map-loading {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Referrer / key errors: show static map (landing-map.js gm_authFailure) — fix key in Google Cloud. */
body.atomware-gmaps-auth-failure #global-footprint .atw-map-loading {
    display: none !important;
}
body.atomware-gmaps-auth-failure #global-footprint #atw-gmap {
    display: none !important;
}
body.atomware-gmaps-auth-failure #global-footprint .atw-map-fallback--under-map,
body.atomware-gmaps-auth-failure #global-footprint .atw-map-fallback {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Dot-matrix “globe” + regional markers — used alone or underneath map */
.atw-map-fallback {
    position: relative;
    width: 100%;
    min-height: calc(100dvh - var(--atw-global-map-intro, 220px));
    min-height: calc(100vh - var(--atw-global-map-intro, 220px));
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.atw-map-fallback--under-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.atw-map-stage--map-ready .atw-map-fallback--under-map {
    display: none;
}

.atw-map-fallback-globe {
    position: absolute;
    inset: -8% -4%;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        radial-gradient(ellipse 115% 90% at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.5) 100%),
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.2) 0.85px, transparent 1px);
    background-size: 100% 100%, 10px 10px;
    filter: saturate(0.92);
}

.atw-map-fallback-marker {
    position: absolute;
    z-index: 2;
    width: 0;
    height: 0;
    pointer-events: none;
}

.atw-gmap-marker {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 1px;
    height: 1px;
}

.atw-gmap-pulse {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--atw-mp, #1552cc) 55%, transparent);
    opacity: 0.45;
    transform: translate(-50%, -50%);
    animation: atw-gmap-pulse 3.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    pointer-events: none;
    box-sizing: border-box;
}

.atw-gmap-pulse--delay {
    animation-delay: 1.05s;
}

.atw-gmap-core {
    position: absolute;
    left: 0;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    background: var(--atw-primary);
    border: 2px solid rgba(241, 245, 249, 0.35);
    box-shadow: 0 0 20px rgba(21, 82, 204, 0.45), 0 0 4px rgba(0, 0, 0, 0.8);
}

.atw-gmap-marker-cap {
    position: absolute;
    left: 0;
    top: calc(100% + 18px);
    transform: translateX(-50%);
    min-width: 140px;
    max-width: min(292px, 88vw);
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(10, 10, 12, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.atw-gmap-marker-cap strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: color-mix(in srgb, var(--atw-mp, #1552cc) 78%, var(--atw-text) 22%);
}

.atw-gmap-marker-cap span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--atw-text-sub);
    white-space: pre-line;
}

.atw-gmap-marker-cap--floating {
    top: 22px;
}

.atw-globe-anchor {
    display: inline-flex;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--atw-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(21, 82, 204, 0.35);
    transition: border-color 0.15s, color 0.15s;
}

.atw-globe-anchor:hover {
    color: #5b93f5;
    border-bottom-color: rgba(139, 180, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .atw-gmap-pulse,
    .atw-map-loading-dot {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    #global-footprint.atw-section-global-map {
        min-height: 100svh;
    }
    #global-footprint .atw-map-stage {
        min-height: calc(100svh - var(--atw-global-map-intro, 200px));
    }
    #global-footprint .atw-map-fallback {
        min-height: calc(100svh - var(--atw-global-map-intro, 200px));
    }
    #global-footprint .atw-map-stage--has-key .atw-gmap {
        min-height: 100%;
    }
    .atw-gmap-marker-cap,
    .atw-gmap-marker-cap--floating {
        max-width: min(280px, 90vw);
        padding: 7px 9px;
    }
    .atw-gmap-marker-cap strong {
        font-size: 11px;
    }
    .atw-gmap-marker-cap span {
        font-size: 10px;
    }
}

/* ── About Section ───────────────────────────── */

.atw-about {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.atw-about-lead {
    font-size: 20px;
    font-weight: 600;
    color: var(--atw-primary);
    margin: 16px 0;
}

.atw-about-content p {
    color: var(--atw-text-sub);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.atw-about-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.atw-stat {
    display: flex;
    flex-direction: column;
}

.atw-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--atw-primary);
    line-height: 1;
}

.atw-stat-label {
    font-size: 13px;
    color: var(--atw-text-muted);
    margin-top: 4px;
}

.atw-globe-card {
    background: var(--atw-bg-card);
    border: 1px solid var(--atw-border);
    border-radius: var(--atw-radius);
    padding: 40px 32px;
    text-align: center;
}

.atw-globe-card .material-icons {
    font-size: 48px;
    color: var(--atw-primary);
    margin-bottom: 16px;
}

.atw-globe-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.atw-globe-card p {
    font-size: 14px;
    color: var(--atw-text-sub);
    line-height: 1.6;
}

/* ── Steps ───────────────────────────────────── */

.atw-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 48px auto 0;
}

.atw-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.atw-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--atw-primary);
    color: #000000;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.atw-step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.atw-step p {
    font-size: 14px;
    color: var(--atw-text-sub);
    line-height: 1.5;
}

.atw-step-line {
    width: 60px;
    height: 2px;
    background: var(--atw-border);
    margin-top: 24px;
    flex-shrink: 0;
}

/* ── Onboarding Form ─────────────────────────── */

.atw-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--atw-bg-card);
    border: 1px solid var(--atw-border);
    border-radius: var(--atw-radius);
    padding: 40px;
}

/* Step indicators */
.atw-form-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.atw-form-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.atw-form-step-indicator.active,
.atw-form-step-indicator.done {
    opacity: 1;
}

.atw-fsi-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--atw-border);
    color: var(--atw-text-sub);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.atw-form-step-indicator.active .atw-fsi-num {
    background: var(--atw-primary);
    color: #000000;
}

.atw-form-step-indicator.done .atw-fsi-num {
    background: var(--atw-success);
    color: #000000;
}

.atw-fsi-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--atw-text-sub);
}

.atw-form-step-indicator.active .atw-fsi-label {
    color: var(--atw-text);
}

.atw-fsi-line {
    width: 40px;
    height: 2px;
    background: var(--atw-border);
    margin: 0 12px;
    transition: background 0.2s;
}

.atw-fsi-line.done {
    background: var(--atw-success);
}

/* Form steps */
.atomware-landing-page .atw-form-step {
    display: none !important;
}

.atomware-landing-page .atw-form-step.active {
    display: block !important;
}

.atw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.atw-form-group {
    margin-bottom: 20px;
}

.atomware-landing-page .atw-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--atw-text);
    margin-bottom: 6px;
}

.atw-form-group label .req {
    color: var(--atw-error);
}

.atomware-landing-page .atw-form-group input[type="text"],
.atomware-landing-page .atw-form-group input[type="email"],
.atomware-landing-page .atw-form-group input[type="tel"],
.atomware-landing-page .atw-form-group input[type="url"],
.atomware-landing-page .atw-form-group select,
.atomware-landing-page .atw-form-group textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    background: var(--atw-bg) !important;
    border: 1px solid var(--atw-border) !important;
    border-radius: 8px !important;
    color: var(--atw-text) !important;
    font-size: 14px !important;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.atomware-landing-page .atw-form-group input:focus,
.atomware-landing-page .atw-form-group select:focus,
.atomware-landing-page .atw-form-group textarea:focus {
    border-color: var(--atw-primary) !important;
}

.atomware-landing-page .atw-form-group input.atw-error,
.atomware-landing-page .atw-form-group select.atw-error,
.atomware-landing-page .atw-form-group textarea.atw-error {
    border-color: var(--atw-error) !important;
}

.atomware-landing-page .atw-form-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    cursor: pointer;
}

.atomware-landing-page .atw-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.atomware-landing-page .atw-form-group input::placeholder,
.atomware-landing-page .atw-form-group textarea::placeholder {
    color: var(--atw-text-muted);
}

/* Checkbox service cards */
.atw-checkbox-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
    padding: 2px;
    transition: outline 0.15s;
    border-radius: 8px;
}

.atw-checkbox-grid.atw-error {
    outline: 2px solid var(--atw-error);
    outline-offset: 4px;
}

.atomware-landing-page .atw-check-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px;
    padding: 16px 8px !important;
    border: 1px solid var(--atw-border) !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--atw-text-sub);
    background: var(--atw-bg) !important;
    margin: 0 !important;
}

.atomware-landing-page .atw-check-card:hover {
    border-color: var(--atw-primary) !important;
}

.atomware-landing-page .atw-check-card input[type="checkbox"] {
    display: none !important;
}

.atw-check-card .material-icons {
    font-size: 24px;
    color: var(--atw-text-muted);
    transition: color 0.15s;
}

.atomware-landing-page .atw-check-card:has(input:checked) {
    border-color: var(--atw-primary) !important;
    background: rgba(96, 165, 250, 0.08) !important;
    color: var(--atw-text);
}

.atomware-landing-page .atw-check-card:has(input:checked) .material-icons {
    color: var(--atw-primary);
}

/* Form navigation */
.atw-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--atw-border);
}

.atomware-landing-page .atw-form-nav .atw-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    border: none !important;
    text-decoration: none;
}

.atomware-landing-page .atw-form-nav .atw-btn-primary {
    background: var(--atw-primary) !important;
    color: #000000 !important;
}

.atomware-landing-page .atw-form-nav .atw-btn-outline {
    background: transparent !important;
    color: var(--atw-text) !important;
    border: 1px solid var(--atw-border) !important;
}

/* Form success */
.atw-form-success {
    text-align: center;
    padding: 40px 20px;
}

.atw-success-icon {
    font-size: 56px;
    color: var(--atw-success);
    margin-bottom: 16px;
}

.atw-form-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.atw-form-success p {
    color: var(--atw-text-sub);
    margin-bottom: 24px;
    font-size: 15px;
}

/* Spinner */
@keyframes atw-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.atw-spin {
    animation: atw-spin 0.8s linear infinite;
}

/* ── Contact Strip ───────────────────────────── */

.atw-contact-strip {
    padding: 60px 0;
    background: var(--atw-bg);
}

.atw-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.atw-contact-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.atw-contact-text p {
    color: var(--atw-text-sub);
    font-size: 15px;
}

.atw-contact-links {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────── */

.atw-footer {
    border-top: 1px solid var(--atw-border);
    padding: 40px 0 32px;
}

.atw-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.atw-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--atw-text-sub);
}

.atw-footer-brand .material-icons {
    font-size: 22px;
    color: var(--atw-primary);
}

.atw-footer-brand .atw-logo-img {
    height: 28px;
}

.atw-footer-social {
    display: flex;
    gap: 12px;
}

.atw-footer-social a {
    color: var(--atw-text-muted);
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
}

.atw-footer-social a:hover {
    color: var(--atw-primary);
}

.atw-footer-social a .material-icons {
    font-size: 22px;
}

.atw-footer-links a {
    color: var(--atw-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

.atw-footer-links a:hover {
    color: var(--atw-primary);
}

.atw-footer-copy {
    color: var(--atw-text-muted);
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--atw-border);
    padding-top: 20px;
}

.atw-footer-copy a {
    color: var(--atw-text-sub);
    text-decoration: none;
}

.atw-footer-copy a:hover {
    color: var(--atw-primary);
}

/* ── Responsive ──────────────────────────────── */

/* Tablet: comfortable tap targets, avoid cramped nav/hero */
@media (min-width: 769px) and (max-width: 1024px) {
    .atw-container,
    .atw-nav-inner {
        padding: 0 20px;
    }
    .atw-nav-inner {
        flex-wrap: wrap;
        row-gap: 8px;
        height: auto;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .atw-hero {
        padding: 110px 0 64px;
    }
    .atw-hero-title {
        font-size: clamp(32px, 4.5vw, 44px);
    }
    .atw-hero-sub {
        font-size: clamp(15px, 1.5vw, 18px);
    }
    .atw-btn,
    .atw-nav-actions .atw-btn {
        min-height: 44px;
    }
    .atw-pricing-grid,
    .atw-feature-grid,
    .atw-steps {
        gap: 20px;
    }
    .atw-footer .atw-container {
        padding: 0 20px 32px;
    }
}

@media (max-width: 768px) {
    .atw-container {
        padding: 0 16px;
    }

    /* Nav — slim app-style top bar */
    .atw-nav-inner {
        height: 56px;
        padding: 0 16px;
    }

    .atw-nav .atw-logo-img {
        height: 14px;
    }

    .atw-footer-brand .atw-logo-img {
        height: 28px;
    }

    .atw-nav-logo .material-icons {
        font-size: 24px;
    }

    .atw-nav-links {
        display: none !important;
    }

    .atw-mobile-toggle {
        display: none !important;
    }

    .atw-nav-actions .atw-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }

    /* Hero — tight, centered, app-like */
    .atw-hero {
        padding: 100px 0 56px;
    }

    .atw-hero-label {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .atw-hero-title {
        font-size: 32px;
    }

    .atw-hero-sub {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .atw-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .atw-hero-actions .atw-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
    }

    .atw-hero-actions .atw-btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }

    /* Sections — tighter spacing */
    .atw-section {
        padding: 56px 0;
    }

    .atw-section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .atw-section-sub {
        font-size: 14px;
        margin-bottom: 32px;
    }

    /* Service cards — 2-col compact grid like app tiles */
    .atw-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .atw-feature-card {
        padding: 20px 16px;
        border-radius: 14px;
        text-align: center;
    }

    .atw-feature-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 12px;
        border-radius: 12px;
    }

    .atw-feature-icon.atw-feature-icon--img {
        width: auto;
        height: auto;
        min-height: 50px;
    }

    .atw-feature-icon.atw-feature-icon--img img {
        object-position: center;
        margin-left: auto;
        margin-right: auto;
    }

    .atw-feature-card h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .atw-feature-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .atw-feature-card:hover {
        transform: none;
    }

    /* About */
    .atw-about {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .atw-about .atw-section-title {
        text-align: center;
    }

    .atw-about-lead {
        text-align: center;
        font-size: 17px;
    }

    .atw-about-content p {
        font-size: 14px;
        text-align: center;
    }

    .atw-about-stats {
        justify-content: center;
        gap: 24px;
    }

    .atw-stat {
        align-items: center;
    }

    .atw-stat-num {
        font-size: 28px;
    }

    .atw-globe-card {
        padding: 28px 20px;
    }

    .atw-globe-card .material-icons {
        font-size: 36px;
    }

    /* Steps — vertical with smaller circles */
    .atw-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 32px;
    }

    .atw-step {
        padding: 0 16px;
    }

    .atw-step-num {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .atw-step h3 {
        font-size: 15px;
    }

    .atw-step p {
        font-size: 13px;
    }

    .atw-step-line {
        width: 2px;
        height: 24px;
        margin: 8px 0;
    }

    /* Onboarding form — full-width app-style */
    .atw-form-wrapper {
        padding: 24px 16px;
        border-radius: 16px;
        margin: 0 -4px;
    }

    .atw-form-steps-bar {
        margin-bottom: 24px;
    }

    .atw-fsi-label {
        display: none;
    }

    .atw-fsi-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .atw-fsi-line {
        width: 28px;
        margin: 0 8px;
    }

    .atw-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .atw-form-group {
        margin-bottom: 16px;
    }

    .atomware-landing-page .atw-form-group input[type="text"],
    .atomware-landing-page .atw-form-group input[type="email"],
    .atomware-landing-page .atw-form-group input[type="tel"],
    .atomware-landing-page .atw-form-group input[type="url"],
    .atomware-landing-page .atw-form-group select,
    .atomware-landing-page .atw-form-group textarea {
        padding: 12px 14px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }

    .atw-checkbox-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .atomware-landing-page .atw-check-card {
        padding: 14px 6px !important;
        border-radius: 12px !important;
        font-size: 12px;
    }

    .atw-check-card .material-icons {
        font-size: 22px;
    }

    .atw-form-nav {
        padding-top: 16px;
    }

    .atomware-landing-page .atw-form-nav .atw-btn {
        padding: 10px 18px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .atw-form-success {
        padding: 32px 12px;
    }

    .atw-success-icon {
        font-size: 48px;
    }

    .atw-form-success h3 {
        font-size: 20px;
    }

    /* Contact strip */
    .atw-contact-strip {
        padding: 40px 0;
    }

    .atw-contact-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .atw-contact-text h3 {
        font-size: 20px;
    }

    .atw-contact-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .atw-contact-links .atw-btn {
        justify-content: center;
        border-radius: 12px;
        padding: 12px 20px;
    }

    /* Footer */
    .atw-footer {
        padding: 28px 0 24px;
    }

    .atw-footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-bottom: 16px;
    }

    .atw-footer-copy {
        font-size: 12px;
        padding-top: 16px;
    }
}

/* ── Extra small (< 380px) ───────────────────── */
@media (max-width: 380px) {
    .atw-hero-title {
        font-size: 26px;
    }

    .atw-features-grid {
        grid-template-columns: 1fr;
    }

    .atw-checkbox-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .atw-about-stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── WP admin bar adjustment ─────────────────── */
.admin-bar .atw-nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .atw-nav {
        top: 46px;
    }
}
