/* ============================================================
   Part 1 — Homepage rebuild components
   ============================================================ */

/* ----- Design tokens (Part 1 spec) ----- */
:root {
    --color-primary: #6EE268;
    --color-secondary: #A8D507;
    --color-bg-dark: #0A0A0A;
    --color-bg-card: #111111;
    --color-bg-light: #F3F3F3;
    --color-text-primary: #FFFFFF;
    --color-text-dark: #111111;
    --color-text-muted: #888888;
    --color-border: rgba(110, 226, 104, 0.15);
    --color-hover-glow: rgba(110, 226, 104, 0.25);
    --gradient-primary: linear-gradient(135deg, #6EE268 0%, #A8D507 100%);
    --gradient-text: linear-gradient(135deg, #6EE268, #A8D507);
    --gradient-glow: radial-gradient(ellipse at center, rgba(110, 226, 104, 0.15) 0%, transparent 70%);
    --gradient-hero-bg: radial-gradient(ellipse at 60% 40%, rgba(110, 226, 104, 0.08) 0%, transparent 60%);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html, body {
    cursor: none;
}

a, button {
    cursor: none;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    body:not(.no-custom-cursor),
    body:not(.no-custom-cursor) * {
        cursor: none !important;
    }
}

body.no-custom-cursor,
body.no-custom-cursor a,
body.no-custom-cursor button {
    cursor: auto;
}

h1, h2, h3, h4, h5, h6, nav, .display {
    font-family: var(--font-display);
}

body, p, span, li, input, textarea {
    font-family: var(--font-body);
}

h1 {
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
}

body {
    font-size: 17px;
    line-height: 1.7;
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Custom cursor ----- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 99999;
    transition: opacity 0.18s ease;
}

.cursor-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(110, 226, 104, 0.55);
    transform: scale(1);
    transition: transform 0.14s ease;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(110, 226, 104, 0.8);
    box-shadow: 0 0 18px rgba(110, 226, 104, 0.25);
    z-index: 99998;
    transition:
        opacity 0.18s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.cursor-dot.is-active,
.cursor-ring.is-active {
    opacity: 1;
}

.cursor-ring.is-hovering {
    border-color: var(--color-primary);
    background-color: rgba(110, 226, 104, 0.08);
    box-shadow:
        0 0 30px rgba(110, 226, 104, 0.45),
        inset 0 0 14px rgba(110, 226, 104, 0.08);
}

.cursor-dot.is-clicking::before {
    transform: scale(0.65);
}

.cursor-ring::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(110, 226, 104, 0.9);
    border-radius: 50%;
    opacity: 0;
}

.cursor-ring.is-clicking::after {
    animation: cursor-click-pulse 0.35s ease-out;
}

@keyframes cursor-click-pulse {
    0% {
        opacity: 0.8;
        transform: scale(0.75);
    }
    100% {
        opacity: 0;
        transform: scale(1.65);
    }
}

body.no-custom-cursor .cursor-dot,
body.no-custom-cursor .cursor-ring {
    display: none !important;
}

@media (max-width: 1024px), (hover: none), (pointer: coarse) {
    html,
    body,
    a,
    button {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    body,
    a,
    button {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ----- Header v2 ----- */
.site-header-v2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-header-v2.is-scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    display: block;
    width: 154px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
}

.site-logo-mark,
.footer-logo-mark {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-logo-monogram {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 226, 104, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.header-logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0;
    white-space: nowrap;
}

.header-logo-text strong,
.footer-brand-lockup strong {
    color: var(--color-primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav-link {
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav-link:hover,
.header-nav-link.is-active {
    color: var(--color-text-primary);
}

.header-nav-link.is-active {
    border-bottom-color: #6EE268;
}

.header-nav-dropdown {
    position: relative;
}

.header-nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}

.header-nav-dropdown:hover .header-nav-dropdown-trigger,
.header-nav-dropdown.is-open .header-nav-dropdown-trigger {
    color: var(--color-text-primary);
}

.header-locations-trigger {
    display: flex;
    align-items: center;
}

.header-locations-trigger .header-nav-link {
    padding-right: 4px;
}

.header-locations-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    padding: 0;
    color: var(--color-text-muted);
    background: none;
    border: none;
    transition: color 0.2s;
}

.header-locations-toggle i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.header-locations-dropdown:hover .header-locations-toggle,
.header-locations-dropdown:focus-within .header-locations-toggle,
.header-locations-dropdown.is-open .header-locations-toggle {
    color: var(--color-text-primary);
}

.header-locations-dropdown:hover .header-locations-toggle i,
.header-locations-dropdown:focus-within .header-locations-toggle i,
.header-locations-dropdown.is-open .header-locations-toggle i {
    transform: rotate(180deg);
}

.header-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #111;
    border: 1px solid rgba(110, 226, 104, 0.2);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.header-nav-dropdown:hover .header-nav-dropdown-menu,
.header-nav-dropdown.is-open .header-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-locations-dropdown:focus-within .header-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.locations-dropdown-menu {
    left: 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    width: 430px;
    transform: translate(-50%, -8px);
}

.locations-dropdown-menu::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 9px;
}

.header-locations-dropdown:hover .locations-dropdown-menu,
.header-locations-dropdown.is-open .locations-dropdown-menu {
    transform: translate(-50%, 0);
}

.header-nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.header-nav-dropdown-menu a:hover {
    background: rgba(110, 226, 104, 0.08);
    color: var(--color-text-primary);
}

.btn-header-contact {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #6EE268;
    color: #111;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    margin-left: 8px;
}

.btn-header-contact:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions .btn-header-contact {
    margin-left: 0;
    white-space: nowrap;
}

.header-calendly-btn {
    padding-left: 18px;
    padding-right: 18px;
}

.header-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 18px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #0A0A0A;
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 20px;
}

.mobile-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(100% - 40px, 440px);
    max-height: calc(100vh - 152px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 226, 104, 0.45) transparent;
}

.mobile-overlay-nav a {
    font-family: var(--font-display);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-overlay.is-open .mobile-overlay-nav a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-locations {
    width: 100%;
}

.mobile-locations-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-locations-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 6px;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.mobile-locations-toggle i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.mobile-locations.is-open .mobile-locations-toggle {
    color: var(--color-primary);
    border-color: rgba(110, 226, 104, 0.35);
}

.mobile-locations.is-open .mobile-locations-toggle i {
    transform: rotate(180deg);
}

.mobile-locations-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    width: min(100%, 340px);
    max-height: 46vh;
    margin: 10px auto 4px;
    padding: 8px;
    overflow-y: auto;
    background: #111;
    border: 1px solid rgba(110, 226, 104, 0.2);
    border-radius: 8px;
}

.mobile-locations-list[hidden] {
    display: none;
}

.mobile-overlay-nav .mobile-locations-list a {
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-muted);
    text-align: center;
    border-radius: 6px;
}

.mobile-overlay-nav .mobile-locations-list a:hover,
.mobile-overlay-nav .mobile-locations-list a:focus-visible {
    color: var(--color-primary);
    background: rgba(110, 226, 104, 0.08);
}

.mobile-overlay-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.mobile-overlay-sub a {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--color-text-muted) !important;
}

@media (max-width: 1023px) {
    .header-nav,
    .header-actions,
    .btn-header-contact {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }

    .mobile-overlay {
        display: flex;
    }
}

/* ----- Hero v2 ----- */
.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 48px) 0 80px;
    background: var(--color-bg-dark);
    background-image: var(--gradient-hero-bg);
    overflow: hidden;
}

.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 226, 104, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 226, 104, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-v2-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hero-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid rgba(110, 226, 104, 0.4);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(-20px);
}

.hero-v2-badge.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.hero-v2-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero-v2-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-v2-title .word.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-v2-subtitle {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    opacity: 0;
}

.hero-v2-subtitle.is-visible {
    opacity: 1;
    transition: opacity 0.6s ease 0.4s;
}

.hero-v2-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: 32px;
    opacity: 0;
}

.hero-v2-body.is-visible {
    opacity: 1;
    transition: opacity 0.6s ease 0.6s;
}

.hero-v2-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-v2-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

.btn-primary-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #6EE268;
    color: #111;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary-green:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.btn-outline-green:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.hero-v2-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.hero-v2-visual::before {
    content: "";
    position: absolute;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background-image:
        linear-gradient(rgba(110, 226, 104, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 226, 104, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle, #000 48%, transparent 88%);
    mask-image: radial-gradient(circle, #000 48%, transparent 88%);
    pointer-events: none;
}

.hero-v2-visual.is-visible {
    opacity: 1;
    transition: opacity 0.8s ease 0.3s;
}

.animated-seo-network {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    overflow: visible;
    background: transparent;
    border: 0;
    outline: 0;
    border-radius: 0;
    box-shadow: none;
}

.network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-lines line {
    stroke: rgba(110, 226, 104, 0.38);
    stroke-width: 1;
    stroke-dasharray: 4 8;
    animation: network-line-pulse 4s ease-in-out infinite;
    animation-delay: var(--line-delay);
}

.network-travel-dot {
    fill: var(--color-primary);
    filter: drop-shadow(0 0 5px var(--color-primary));
    opacity: 0.75;
}

.network-center {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: clamp(94px, 24%, 118px);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(110, 226, 104, 0.8);
    border-radius: 50%;
    background: rgba(4, 12, 8, 0.94);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: clamp(12px, 2.8vw, 15px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
    box-shadow: 0 0 40px rgba(110, 226, 104, 0.25);
    animation: network-center-pulse 3s ease-in-out infinite;
}

.network-node-position {
    position: absolute;
    z-index: 3;
    top: var(--node-y);
    left: var(--node-x);
    transform: translate(-50%, -50%);
}

.network-node {
    position: relative;
    width: clamp(50px, 13vw, 66px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(110, 226, 104, 0.75);
    border-radius: 50%;
    outline: none;
    color: var(--color-primary);
    background: rgba(4, 12, 8, 0.9);
    box-shadow: 0 0 24px rgba(110, 226, 104, 0.16);
    animation: network-node-float 4s ease-in-out infinite;
    animation-delay: var(--node-delay);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, scale 0.25s ease;
}

.network-node:hover,
.network-node:focus-visible {
    z-index: 5;
    scale: 1.08;
    border-color: var(--color-primary);
    box-shadow: 0 0 34px rgba(110, 226, 104, 0.4);
}

.network-node svg {
    width: 40%;
    height: 40%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.network-node .network-brand-icon {
    width: 42%;
    height: 42%;
    fill: currentColor;
    stroke: none;
}

.network-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    padding: 5px 9px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.network-node:hover .network-tooltip,
.network-node:focus-visible .network-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.network-particles span {
    position: absolute;
    top: var(--particle-y);
    left: var(--particle-x);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(110, 226, 104, 0.45);
    animation: network-particle-drift 5s ease-in-out infinite;
    animation-delay: var(--particle-delay);
}

@media (max-width: 900px) {
    .hero-v2-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-v2-body {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-v2-cta {
        justify-content: center;
    }

    .hero-v2-visual {
        order: 2;
    }
}

/* Hero network animations */
@keyframes network-center-pulse {
    0%, 100% { box-shadow: 0 0 25px rgba(110, 226, 104, 0.18); }
    50% { box-shadow: 0 0 55px rgba(110, 226, 104, 0.38); }
}

@keyframes network-node-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes network-line-pulse {
    0%, 100% { opacity: 0.3; stroke-dashoffset: 0; }
    50% { opacity: 0.8; }
    100% { stroke-dashoffset: -24; }
}

@keyframes network-particle-drift {
    0%, 100% { translate: 0 0; opacity: 0.25; }
    50% { translate: 3px -5px; opacity: 0.7; }
}

@media (max-width: 520px) {
    .animated-seo-network {
        width: calc(100vw - 48px);
        max-width: 390px;
    }

    .hero-v2-visual::before {
        width: calc(100vw - 48px);
        background-size: 34px 34px;
    }

    .network-tooltip {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .network-center,
    .network-node,
    .network-lines line,
    .network-particles span {
        animation: none;
    }

    .network-travel-dot {
        display: none;
    }
}

/* ----- Trust Bar ----- */
.trust-bar {
    width: 100%;
    height: 52px;
    background: rgba(110, 226, 104, 0.06);
    border-top: 1px solid rgba(110, 226, 104, 0.1);
    border-bottom: 1px solid rgba(110, 226, 104, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.trust-bar-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.trust-bar-content {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 0;
}

.trust-bar-item {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    padding: 0 24px;
}

.trust-bar-dot {
    color: var(--color-primary);
    margin: 0 8px;
}

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

/* ----- Stats Row ----- */
.stats-row-section {
    padding: clamp(60px, 6vw, 84px) 0;
    overflow: hidden;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    max-width: var(--container-width);
    margin: 0 auto;
}

.stats-row-item {
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 230px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-bg-card);
    transition:
        opacity 0.55s ease,
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stats-row-item:hover {
    transform: translateY(-8px);
}

.stats-row-number {
    font-family: var(--font-display);
    font-size: clamp(48px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 18px;
    color: var(--color-primary);
}

.stats-row-label {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--color-text-muted);
    margin: 0;
}

.stats-row-sublabel {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.stats-row.has-counter-animation .stats-row-item {
    opacity: 0;
    transform: translateY(22px);
}

.stats-row.has-counter-animation.is-visible .stats-row-item {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 1023px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row-item {
        min-height: 210px;
    }
}

@media (max-width: 599px) {
    .stats-row-section {
        padding: 56px 0;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-row-item {
        min-height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-row-item,
    .stats-row.has-counter-animation .stats-row-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ----- Shared Service Cards ----- */
.how-i-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.how-i-help-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(24px);
}

.how-i-help-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}

.how-i-help-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 24px rgba(110, 226, 104, 0.1);
    transform: translateY(-4px);
}

.how-i-help-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 226, 104, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.how-i-help-icon svg {
    width: 24px;
    height: 24px;
}

.how-i-help-card h3 {
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.how-i-help-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .how-i-help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .how-i-help-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Services Grid (4 cards) ----- */
.services-grid-section {
    padding: var(--section-padding) 0;
}

.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.home-services-grid,
.about-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: none;
    justify-content: stretch;
}

.home-services-grid > .how-i-help-card,
.about-services-grid > .how-i-help-card {
    min-width: 0;
    width: 100%;
}

.home-services-grid > .how-i-help-card,
.about-services-grid > .how-i-help-card {
    display: flex;
    flex-direction: column;
}

.home-services-grid > .how-i-help-card p,
.about-services-grid > .how-i-help-card p {
    flex: 1;
    margin-bottom: 24px;
}

.service-card-v2 {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px 32px 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.service-card-v2:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 24px rgba(110, 226, 104, 0.08);
}

.service-card-v2-number {
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.service-card-v2 h3 {
    margin-top: 48px;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.service-card-v2 p {
    font-size: 15px;
    color: var(--color-text-muted);
    flex: 1;
    margin-bottom: 24px;
}

.service-card-v2-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.service-card-v2-link:hover {
    gap: 10px;
}

@media (max-width: 768px) {
    .services-grid-v2,
    .home-services-grid,
    .about-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Portfolio Preview ----- */
.portfolio-preview-section {
    padding: var(--section-padding) 0;
}

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

.portfolio-preview-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

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

.portfolio-preview-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #1a1a1a;
}

.portfolio-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-preview-body {
    padding: 24px;
}

.portfolio-preview-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.portfolio-preview-body p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.portfolio-preview-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

@media (max-width: 900px) {
    .portfolio-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- CTA Banner ----- */
.cta-banner-section {
    padding: 80px 0;
}

.cta-banner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 64px 48px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-align: center;
    background-image: var(--gradient-glow);
}

.cta-banner h2 {
    margin-bottom: 16px;
}

.cta-banner p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Footer v2 ----- */
.site-footer-v2 {
    background: var(--color-bg-dark);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 0;
}

.footer-v2-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding) 48px;
}

.footer-logo-image {
    display: block;
    width: 154px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 16px;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
}

.footer-v2-tagline {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 260px;
}

.footer-v2-socials {
    display: flex;
    gap: 12px;
}

.footer-v2-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: border-color 0.2s, color 0.2s;
}

.footer-v2-socials a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.footer-v2-heading {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.footer-v2-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-v2-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-v2-contact li {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-v2-contact .footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-v2-contact .footer-contact-item:not(.footer-contact-location) {
    align-items: center;
}

.footer-v2-contact .footer-contact-location {
    align-items: flex-start;
}

.footer-v2-contact .footer-contact-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-v2-contact .footer-contact-item:not(.footer-contact-location) .footer-contact-icon {
    margin-top: 0;
}

.footer-v2-contact .footer-contact-location .footer-contact-icon {
    margin-top: 4px;
}

.footer-v2-contact .footer-contact-text {
    flex: 1;
    min-width: 0;
    line-height: 1.55;
}

.footer-v2-contact a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-v2-contact a:hover {
    color: var(--color-primary);
}

.footer-v2-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px var(--container-padding);
    text-align: center;
}

.footer-v2-bottom p {
    font-size: 13px;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .footer-v2-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-v2-grid {
        grid-template-columns: 1fr;
    }
}

/* Inner pages — offset fixed header */
.inner-page #main-content,
.inner-page #portfolio-main,
.inner-page main {
    padding-top: var(--header-height);
}

/* Section labels */
.section-label-v2 {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header-v2 {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.section-header-v2 .section-title {
    font-family: var(--font-display);
}

.testimonial-stars {
    color: var(--color-primary) !important;
}
