/* ===================================================
   HOMEPAGE REDESIGN - Modern Dark Theme
   =================================================== */

/* ---- GLOBAL OVERRIDES FOR HOMEPAGE ---- */
body[data-page-type="homepage"] {
    background: #020817;
    color: #e2e8f0;
}

/* ---- NAVBAR ---- */
body[data-page-type="homepage"] .navbar {
    background: rgba(2, 8, 23, 0.7) !important;
    border-bottom: 1px solid rgba(79, 195, 247, 0.12) !important;
    backdrop-filter: blur(20px) !important;
}

body[data-page-type="homepage"] .navbar.scrolled {
    background: rgba(2, 8, 23, 0.95) !important;
}

body[data-page-type="homepage"] .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

body[data-page-type="homepage"] .nav-link:hover {
    color: #4fc3f7 !important;
}

body[data-page-type="homepage"][data-navbar-type="transparent"] .navbar:not(.navbar-solid) .nav-link:hover,
body[data-page-type="homepage"][data-navbar-type="transparent"] .navbar:not(.navbar-solid) .nav-link.active,
body[data-page-type="homepage"][data-navbar-type="transparent"] .navbar:not(.navbar-solid) .nav-dropdown:hover > .nav-link {
    color: #4fc3f7 !important;
}

body[data-page-type="homepage"] .nav-dropdown:hover .dropdown-chevron {
    color: #4fc3f7 !important;
    stroke: #4fc3f7 !important;
}

body[data-page-type="homepage"] .dropdown-menu {
    background: rgba(6, 12, 28, 0.96) !important;
    border: 1px solid rgba(79, 195, 247, 0.14) !important;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.42) !important;
    backdrop-filter: blur(18px) !important;
}

body[data-page-type="homepage"] .dropdown-menu .dropdown-link {
    color: rgba(226, 232, 240, 0.9) !important;
}

body[data-page-type="homepage"] .dropdown-menu .dropdown-link:hover {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.14), rgba(79, 195, 247, 0.06)) !important;
    color: #4fc3f7 !important;
}

body[data-page-type="homepage"] .navbar.navbar-solid .dropdown-menu,
body[data-page-type="homepage"] .navbar-solid .dropdown-menu {
    background: rgba(6, 12, 28, 0.96) !important;
    border: 1px solid rgba(79, 195, 247, 0.14) !important;
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.42) !important;
}

body[data-page-type="homepage"] .navbar.navbar-solid .lang-toggle-container,
body[data-page-type="homepage"] .navbar-solid .lang-toggle-container {
    background: rgba(11, 22, 39, 0.92) !important;
    border: 1px solid rgba(79, 195, 247, 0.24) !important;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.24) !important;
}

body[data-page-type="homepage"] .navbar.navbar-solid .lang-toggle-btn,
body[data-page-type="homepage"] .navbar-solid .lang-toggle-btn,
body[data-page-type="homepage"] .navbar.navbar-solid .desktop-language-switcher .lang-toggle-btn,
body[data-page-type="homepage"] .navbar-solid .desktop-language-switcher .lang-toggle-btn {
    color: rgba(255, 255, 255, 0.86) !important;
    background: transparent !important;
}

body[data-page-type="homepage"] .navbar.navbar-solid .lang-toggle-btn:hover,
body[data-page-type="homepage"] .navbar-solid .lang-toggle-btn:hover,
body[data-page-type="homepage"] .navbar.navbar-solid .desktop-language-switcher .lang-toggle-btn:hover,
body[data-page-type="homepage"] .navbar-solid .desktop-language-switcher .lang-toggle-btn:hover {
    color: #ffffff !important;
    background: rgba(79, 195, 247, 0.14) !important;
}

body[data-page-type="homepage"] .navbar.navbar-solid .lang-toggle-btn.active,
body[data-page-type="homepage"] .navbar-solid .lang-toggle-btn.active,
body[data-page-type="homepage"] .navbar.navbar-solid .desktop-language-switcher .lang-toggle-btn.active,
body[data-page-type="homepage"] .navbar-solid .desktop-language-switcher .lang-toggle-btn.active {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.32) !important;
}

body[data-page-type="homepage"] .nav-logo img {
    filter: brightness(0) invert(1) !important;
}

body[data-page-type="homepage"] .cta-button {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3) !important;
}

body[data-page-type="homepage"] .cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 35px rgba(14, 165, 233, 0.5) !important;
}

body[data-page-type="homepage"] .cookie-banner {
    background: rgba(6, 12, 28, 0.94) !important;
    border-top: 1px solid rgba(79, 195, 247, 0.16) !important;
    box-shadow: 0 -18px 40px rgba(2, 6, 23, 0.35) !important;
    backdrop-filter: blur(20px) !important;
}

body[data-page-type="homepage"] .cookie-text h3 {
    color: #4fc3f7 !important;
}

body[data-page-type="homepage"] .cookie-text p {
    color: rgba(226, 232, 240, 0.78) !important;
}

body[data-page-type="homepage"] .cookie-btn.accept {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9) !important;
    color: #ffffff !important;
}

body[data-page-type="homepage"] .cookie-btn.accept:hover {
    background: linear-gradient(135deg, #5cccf8, #1aa8f3) !important;
}

body[data-page-type="homepage"] .cookie-btn.necessary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(226, 232, 240, 0.86) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

body[data-page-type="homepage"] .cookie-btn.necessary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body[data-page-type="homepage"] .cookie-btn.preferences {
    background: transparent !important;
    color: #4fc3f7 !important;
    border: 1px solid rgba(79, 195, 247, 0.24) !important;
}

body[data-page-type="homepage"] .cookie-btn.preferences:hover {
    background: rgba(79, 195, 247, 0.12) !important;
    color: #ffffff !important;
}

/* ---- HERO SECTION ---- */
.hero-redesign {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 34%, rgba(53, 88, 255, 0.58) 0%, rgba(53, 88, 255, 0.28) 18%, rgba(53, 88, 255, 0.08) 36%, rgba(53, 88, 255, 0) 58%),
        radial-gradient(circle at 32% 30%, rgba(93, 51, 255, 0.28) 0%, rgba(93, 51, 255, 0.10) 24%, rgba(93, 51, 255, 0) 46%),
        radial-gradient(circle at 70% 36%, rgba(27, 202, 255, 0.20) 0%, rgba(27, 202, 255, 0.07) 22%, rgba(27, 202, 255, 0) 45%),
        linear-gradient(180deg, #06081b 0%, #050716 38%, #03050f 100%);
}

.hero-redesign::before,
.hero-redesign::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    opacity: 0.94;
    mix-blend-mode: screen;
}

/* Minimal overlay — shader handles colours, we just darken top for text legibility */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to bottom,
            rgba(3, 5, 15, 0.72) 0%,
            rgba(3, 5, 15, 0.30) 30%,
            rgba(3, 5, 15, 0.15) 55%,
            rgba(3, 5, 15, 0.65) 100%);
    pointer-events: none;
}

/* Mist fallback if the WebGL layer does not render */
.hero-redesign::before {
    inset: -12% -8% auto;
    height: 88%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 50% 28%, rgba(109, 127, 255, 0.52) 0%, rgba(109, 127, 255, 0.24) 24%, rgba(109, 127, 255, 0.08) 42%, transparent 63%),
        radial-gradient(ellipse at 28% 30%, rgba(109, 74, 255, 0.25) 0%, rgba(109, 74, 255, 0.10) 24%, transparent 55%),
        radial-gradient(ellipse at 72% 28%, rgba(0, 229, 208, 0.14) 0%, rgba(0, 229, 208, 0.05) 20%, transparent 46%);
    filter: blur(42px);
    transform: scale(1.06);
}

/* Thin iridescent line at very top */
.hero-redesign::after {
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 229, 208, 0.7) 25%,
        rgba(139, 92, 246, 0.8) 60%,
        rgba(0, 180, 220, 0.5) 80%,
        transparent 100%);
    z-index: 10;
    inset: 0 auto auto;
}

/* Smooth fade into next section */
.hero-redesign-content::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -190px;
    width: min(72vw, 860px);
    height: 420px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at center, rgba(70, 106, 255, 0.18) 0%, rgba(70, 106, 255, 0.08) 34%, rgba(70, 106, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(28px);
}

.hero-redesign-content {
    position: relative;
    z-index: 3;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    /* Subtle entrance */
    animation: hero-fade-in 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(0, 229, 208, 0.08);
    border: 1px solid rgba(0, 229, 208, 0.28);
    color: #00e5d0;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 229, 208, 0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #4fc3f7;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-redesign-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-redesign-title .gradient-text {
    background: linear-gradient(110deg, #00e5d0 0%, #4fc3f7 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 229, 208, 0.25));
}

.hero-redesign-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero-redesign-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #00c9b8, #0ea5e9, #6d28d9);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #fff;
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.93rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 0 35px rgba(0, 200, 184, 0.35), 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: inherit;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 55px rgba(0, 200, 184, 0.55), 0 8px 32px rgba(0,0,0,0.5);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 229, 208, 0.25);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.9rem 2.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.btn-hero-ghost:hover {
    background: rgba(0, 229, 208, 0.09);
    border-color: rgba(0, 229, 208, 0.5);
    color: #00e5d0;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 229, 208, 0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stats-row {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 2rem;
    margin-top: 0.5rem;
}

.hero-stat-number {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #00e5d0, #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 229, 208, 0.3));
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.35rem;
    display: block;
    font-weight: 500;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.4;
    animation: bounce-scroll 2.5s ease-in-out infinite;
}

.hero-scroll-hint span {
    font-size: 0.7rem;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

@keyframes bounce-scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════
   SHARED SECTION TOKENS
   ══════════════════════════════════════════════════ */

.hp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #00e5d0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hp-section-label svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.hp-section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
}

.hp-section-title span {
    background: linear-gradient(110deg, #00e5d0 0%, #4fc3f7 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-section-desc {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.55);
    line-height: 1.8;
    max-width: 520px;
}

/* Scroll reveal — JS adds .is-visible */
.hp-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.hp-reveal.is-visible { opacity: 1; transform: none; }
.hp-reveal-delay-1 { transition-delay: 0.1s; }
.hp-reveal-delay-2 { transition-delay: 0.2s; }
.hp-reveal-delay-3 { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════════
   1. SERVICES SHOWCASE
   ══════════════════════════════════════════════════ */
.hp-services-section {
    padding: 7rem 0;
    background: #020817;
    position: relative;
    overflow: hidden;
}

/* Ambient glow blob */
.hp-services-section::before {
    content: '';
    position: absolute;
    top: -120px; left: -180px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,229,208,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hp-services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hp-services-text { position: sticky; top: 7rem; }

.hp-features-list {
    list-style: none;
    margin-top: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hp-features-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.93rem;
    font-weight: 500;
}

.hp-feature-icon {
    width: 34px; height: 34px;
    background: rgba(0, 229, 208, 0.08);
    border: 1px solid rgba(0, 229, 208, 0.18);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
}
.hp-features-list li:hover .hp-feature-icon {
    background: rgba(0, 229, 208, 0.16);
}
.hp-feature-icon svg { width: 15px; height: 15px; stroke: #00e5d0; fill: none; stroke-width: 2.2; }

/* Tile grid */
.hp-service-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.hp-tile {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 1.35rem 0.9rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
    position: relative;
    overflow: hidden;
}

.hp-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,229,208,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.hp-tile:hover {
    border-color: rgba(0,229,208,0.3);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,229,208,0.1);
}
.hp-tile:hover::before { opacity: 1; }

.hp-tile svg {
    width: 22px; height: 22px;
    stroke: #00e5d0; fill: none; stroke-width: 1.8;
    margin-bottom: 0.55rem;
    display: block; margin-left: auto; margin-right: auto;
    filter: drop-shadow(0 0 6px rgba(0,229,208,0.4));
}

.hp-tile span {
    display: block;
    font-size: 0.76rem;
    color: rgba(226,232,240,0.6);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════
   2. AI INSIGHT
   ══════════════════════════════════════════════════ */
.hp-ai-section {
    padding: 7rem 0;
    background: #020817;
    position: relative;
    overflow: hidden;
}

.hp-ai-section::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -150px;
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Separator line between sections */
.hp-section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent);
    margin-bottom: 7rem;
}

.hp-ai-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Image with layered glow border */
.hp-ai-image {
    position: relative;
    border-radius: 24px;
}

.hp-ai-image::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(0,229,208,0.5) 0%, rgba(139,92,246,0.3) 100%);
    z-index: 0;
}

.hp-ai-image::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    background: radial-gradient(ellipse at center, rgba(0,229,208,0.12) 0%, transparent 70%);
    z-index: -1;
}

.hp-ai-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    display: block;
}

.hp-ai-benefits {
    list-style: none;
    margin: 1.8rem 0 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hp-ai-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: rgba(226,232,240,0.7);
    font-size: 0.93rem;
    line-height: 1.55;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    transition: border-color 0.25s, background 0.25s;
}
.hp-ai-benefits li:hover {
    background: rgba(0,229,208,0.05);
    border-color: rgba(0,229,208,0.2);
}

.hp-ai-benefits li::before {
    content: '';
    width: 7px; height: 7px;
    background: linear-gradient(135deg, #00e5d0, #4fc3f7);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.42rem;
    box-shadow: 0 0 8px rgba(0,229,208,0.5);
}

.hp-ai-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #00e5d0;
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s;
    position: relative;
}
.hp-ai-cta::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.hp-ai-cta:hover::after { transform: scaleX(1); }
.hp-ai-cta:hover { gap: 0.9rem; }
.hp-ai-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ══════════════════════════════════════════════════
   3. SERVICE CARDS
   ══════════════════════════════════════════════════ */
.hp-cards-section {
    padding: 7rem 0;
    background: #020817;
    position: relative;
}

.hp-cards-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,100,200,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hp-cards-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
}
.hp-cards-header .hp-section-desc { margin: 0 auto; }

.hp-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hp-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    padding: 2.2rem 2rem;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Top gradient line on card */
.hp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,208,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.hp-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at top, rgba(0,229,208,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.hp-card:hover {
    border-color: rgba(0,229,208,0.2);
    transform: translateY(-6px);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.4),
        0 0 0 1px rgba(0,229,208,0.08),
        inset 0 1px 0 rgba(255,255,255,0.05);
}
.hp-card:hover::before { opacity: 1; }
.hp-card:hover::after  { opacity: 1; }

.hp-card-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(0,229,208,0.15), rgba(79,195,247,0.08));
    border: 1px solid rgba(0,229,208,0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    position: relative; z-index: 1;
    transition: all 0.3s;
}
.hp-card:hover .hp-card-icon {
    background: linear-gradient(135deg, rgba(0,229,208,0.22), rgba(79,195,247,0.14));
    box-shadow: 0 0 20px rgba(0,229,208,0.2);
}
.hp-card-icon svg { width: 22px; height: 22px; stroke: #00e5d0; fill: none; stroke-width: 2; }

.hp-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
    position: relative; z-index: 1;
    letter-spacing: -0.01em;
}

.hp-card p {
    font-size: 0.88rem;
    color: rgba(226,232,240,0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    position: relative; z-index: 1;
}

.hp-card-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: relative; z-index: 1;
}

.hp-card-features li {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.83rem;
    color: rgba(226,232,240,0.6);
    font-weight: 500;
}

.hp-card-features li svg {
    width: 13px; height: 13px;
    stroke: #00e5d0; fill: none; stroke-width: 3;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0,229,208,0.5));
}

.hp-card-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: rgba(0,229,208,0.85);
    font-weight: 700; font-size: 0.85rem;
    text-decoration: none; margin-top: auto;
    letter-spacing: 0.01em;
    transition: all 0.25s;
    position: relative; z-index: 1;
}
.hp-card-link:hover { gap: 0.75rem; color: #00e5d0; }
.hp-card-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ══════════════════════════════════════════════════
   4. WHY US
   ══════════════════════════════════════════════════ */
.hp-why-section {
    padding: 7rem 0;
    background: linear-gradient(180deg, #020817 0%, #03060f 100%);
    position: relative;
    overflow: hidden;
}

.hp-why-section::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,208,0.15) 40%, rgba(139,92,246,0.15) 60%, transparent);
}

.hp-why-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hp-why-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hp-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.hp-why-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
    position: relative;
    overflow: hidden;
}

.hp-why-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,229,208,0.4), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.hp-why-item:hover {
    background: rgba(0,229,208,0.04);
    border-color: rgba(0,229,208,0.18);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hp-why-item:hover::before { opacity: 1; }

.hp-why-icon {
    width: 46px; height: 46px;
    background: rgba(0,229,208,0.08);
    border: 1px solid rgba(0,229,208,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.3s;
}
.hp-why-item:hover .hp-why-icon {
    background: rgba(0,229,208,0.14);
    box-shadow: 0 0 16px rgba(0,229,208,0.15);
}
.hp-why-icon svg { width: 20px; height: 20px; stroke: #00e5d0; fill: none; stroke-width: 2; }

.hp-why-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.55rem;
    letter-spacing: -0.01em;
}

.hp-why-item p {
    font-size: 0.84rem;
    color: rgba(226,232,240,0.45);
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
body[data-page-type="homepage"] .footer {
    background: #03060f !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

body[data-page-type="homepage"] .copyright-section {
    background: #020508 !important;
    border-top: 1px solid rgba(255,255,255,0.03) !important;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hp-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hp-services-layout,
    .hp-ai-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hp-services-text { position: static; }
    .hp-cards-grid { grid-template-columns: 1fr 1fr; }
    .hp-service-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .hp-cards-grid { grid-template-columns: 1fr; }
    .hp-why-grid   { grid-template-columns: 1fr 1fr; }
    .hero-stats-row { gap: 1.5rem; }
}
