/* ============================================
   TECHenya Homepage 2 — Ultra-Modern Design
   Time-adaptive accent colors, scroll animations,
   premium micro-interactions.
   ============================================ */

/* ─── Accent Aliases (bridged to color-profiles.css) ──────────────── */
:root {
    --hp2-accent: var(--te-accent);
    --hp2-accent-light: var(--te-accent-hover);
    --hp2-accent-glow: var(--te-accent-glow);
    --hp2-accent-gradient: var(--te-gradient-accent);
}

/* ─── Scroll Reveal Animations ──────────────── */
.hp2-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hp2-reveal.hp2-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp2-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hp2-reveal-left.hp2-visible {
    opacity: 1;
    transform: translateX(0);
}

.hp2-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hp2-reveal-right.hp2-visible {
    opacity: 1;
    transform: translateX(0);
}

.hp2-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.hp2-reveal-scale.hp2-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.hp2-stagger > .hp2-reveal:nth-child(1) { transition-delay: 0s; }
.hp2-stagger > .hp2-reveal:nth-child(2) { transition-delay: 0.1s; }
.hp2-stagger > .hp2-reveal:nth-child(3) { transition-delay: 0.2s; }
.hp2-stagger > .hp2-reveal:nth-child(4) { transition-delay: 0.3s; }
.hp2-stagger > .hp2-reveal:nth-child(5) { transition-delay: 0.4s; }
.hp2-stagger > .hp2-reveal:nth-child(6) { transition-delay: 0.5s; }
.hp2-stagger > .hp2-reveal:nth-child(7) { transition-delay: 0.6s; }
.hp2-stagger > .hp2-reveal:nth-child(8) { transition-delay: 0.7s; }

/* ─── Hero Section ──────────────────────────── */
.hp2-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--te-bg-body);
    overflow: hidden;
}

.hp2-hero-inner {
    padding-top: 84px;
    padding-bottom: 48px;
}

.hp2-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--hp2-accent-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 212, 170, 0.06), transparent),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(255, 107, 53, 0.04), transparent);
    transition: background 2s ease;
    pointer-events: none;
}

.hp2-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.hp2-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: hp2OrbFloat 20s ease-in-out infinite;
    will-change: transform;
}

.hp2-hero-orb--1 {
    width: 400px;
    height: 400px;
    background: var(--hp2-accent-glow);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hp2-hero-orb--2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 170, 0.08);
    bottom: 10%;
    left: -5%;
    animation-delay: -7s;
}

.hp2-hero-orb--3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 53, 0.06);
    top: 40%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes hp2OrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hp2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--hp2-accent-glow);
    border: 1px solid rgba(10, 102, 194, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hp2-accent);
    transition: all 0.3s ease;
}

.hp2-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--hp2-accent);
    border-radius: 50%;
    animation: hp2Pulse 2s ease-in-out infinite;
}

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

/* ─── Stats Counter ─────────────────────────── */
.hp2-stat-value {
    font-variant-numeric: tabular-nums;
    background: var(--hp2-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp2-stat-card {
    position: relative;
    padding: 20px 24px;
    background: var(--te-bg-raised);
    border: 1px solid var(--te-border-light);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp2-stat-card:hover {
    border-color: var(--hp2-accent-glow);
    box-shadow: 0 8px 30px var(--hp2-accent-glow);
    transform: translateY(-2px);
}

/* ─── Section Styles ────────────────────────── */
.hp2-section {
    padding: 80px 0;
    position: relative;
}

.hp2-section--accent {
    background: linear-gradient(180deg, var(--te-bg-body) 0%, var(--te-bg-sunken) 100%);
}

.hp2-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hp2-accent);
    margin-bottom: 12px;
}

.hp2-section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--hp2-accent-gradient);
    border-radius: 2px;
}

/* ─── Tool Cards ────────────────────────────── */
.hp2-tool-card {
    position: relative;
    background: var(--te-bg-raised);
    border: 1px solid var(--te-border-light);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.hp2-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hp2-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp2-tool-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    transform: translateY(-4px);
}

.hp2-tool-card:hover::before {
    opacity: 1;
}

.hp2-tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--hp2-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    color: var(--hp2-accent);
}

.hp2-tool-card:hover .hp2-tool-icon {
    background: var(--hp2-accent-gradient);
    color: #fff;
    transform: scale(1.08);
}

.hp2-tool-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 100px;
}

.hp2-tool-badge--free {
    background: var(--te-accent-subtle);
    color: var(--te-accent-text);
}

.hp2-tool-badge--paid {
    background: var(--te-orange-50);
    color: var(--te-orange-dark);
}

.hp2-tool-badge--freemium {
    background: var(--te-blue-50);
    color: var(--te-blue);
}

.hp2-tool-usage {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--te-gray-400);
    margin-top: 12px;
}

/* ─── Report / Download Cards ───────────────── */
.hp2-report-card {
    position: relative;
    background: var(--te-bg-raised);
    border: 1px solid var(--te-border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp2-report-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.hp2-report-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--te-gray-50), var(--te-gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hp2-report-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp2-report-card:hover .hp2-report-thumb img {
    transform: scale(1.05);
}

/* ─── Event Cards ───────────────────────────── */
.hp2-event-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--te-bg-raised);
    border: 1px solid var(--te-border-light);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-start;
}

.hp2-event-card:hover {
    border-color: var(--hp2-accent);
    box-shadow: 0 12px 40px var(--hp2-accent-glow);
    transform: translateY(-2px);
}

.hp2-event-date {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    background: var(--hp2-accent-glow);
    border-radius: 12px;
    padding: 10px 8px;
    transition: all 0.3s ease;
}

.hp2-event-card:hover .hp2-event-date {
    background: var(--hp2-accent-gradient);
}

.hp2-event-date-day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--hp2-accent);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: color 0.3s ease;
}

.hp2-event-card:hover .hp2-event-date-day {
    color: #fff;
}

.hp2-event-date-month {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hp2-accent);
    margin-top: 2px;
    transition: color 0.3s ease;
}

.hp2-event-card:hover .hp2-event-date-month {
    color: rgba(255, 255, 255, 0.9);
}

/* ─── Lead Form (Premium Style) ─────────────── */
.hp2-lead-section {
    background: linear-gradient(135deg, var(--te-navy) 0%, var(--te-navy-dark) 50%, var(--te-blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hp2-lead-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hp2-lead-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.hp2-lead-input:focus {
    border-color: var(--te-accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px var(--te-accent-glow);
}

.hp2-lead-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hp2-lead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--te-gradient-cta);
    color: var(--te-text-on-accent);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp2-lead-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}

.hp2-lead-btn:active {
    transform: translateY(0);
}

/* ─── Process Timeline ──────────────────────── */
.hp2-process-step {
    position: relative;
    padding-left: 48px;
}

.hp2-process-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 48px;
    bottom: -24px;
    width: 2px;
    background: var(--te-gray-200);
    transition: background 0.5s ease;
}

.hp2-process-step:last-child::before {
    display: none;
}

.hp2-process-step.hp2-visible::before {
    background: var(--hp2-accent-gradient);
}

.hp2-process-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--hp2-accent-glow);
    color: var(--hp2-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    transition: all 0.4s ease;
}

.hp2-process-step.hp2-visible .hp2-process-num {
    background: var(--hp2-accent-gradient);
    color: #fff;
}

/* ─── Testimonial ───────────────────────────── */
.hp2-testimonial-card {
    background: var(--te-bg-raised);
    border: 1px solid var(--te-border-light);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    transition: all 0.4s ease;
}

.hp2-testimonial-card:hover {
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.hp2-testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 28px;
    font-size: 60px;
    line-height: 1;
    font-family: Georgia, serif;
    background: var(--hp2-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
}

/* ─── CTA Band ──────────────────────────────── */
.hp2-cta-card {
    background: var(--te-bg-raised);
    border: 2px solid var(--te-border-light);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.hp2-cta-card:hover {
    border-color: var(--hp2-accent);
    box-shadow: 0 30px 80px var(--hp2-accent-glow);
}

.hp2-cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--hp2-accent-glow);
    pointer-events: none;
    transition: all 1s ease;
}

.hp2-cta-card:hover::after {
    transform: scale(1.2);
}

/* ─── Marquee / Logo Slider ─────────────────── */
.hp2-marquee {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.hp2-marquee-track {
    display: flex;
    gap: 48px;
    animation: hp2Marquee 30s linear infinite;
    flex-shrink: 0;
}

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

.hp2-marquee:hover .hp2-marquee-track {
    animation-play-state: paused;
}

/* ─── Gradient Accent Line ──────────────────── */
.hp2-accent-line {
    height: 3px;
    width: 48px;
    background: var(--hp2-accent-gradient);
    border-radius: 3px;
    margin: 0 auto 20px;
}

/* ─── Magnetic Button ───────────────────────── */
.hp2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--hp2-accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-family: inherit;
}

.hp2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--hp2-accent-glow);
    filter: brightness(1.08);
}

.hp2-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--hp2-accent);
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--hp2-accent);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-family: inherit;
}

.hp2-btn-outline:hover {
    background: var(--hp2-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--hp2-accent-glow);
}

/* ─── Arrow Icon ────────────────────────────── */
.hp2-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

a:hover .hp2-arrow,
button:hover .hp2-arrow {
    transform: translateX(3px);
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .hp2-hero {
        min-height: 90vh;
        padding: 0;
        align-items: center;
    }

    .hp2-hero-inner {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .hp2-section {
        padding: 60px 0;
    }

    .hp2-cta-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .hp2-hero {
        min-height: 90vh;
        padding: 0;
    }

    .hp2-hero-inner {
        padding-top: 90px;
        padding-bottom: 32px;
    }

    .hp2-hero-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
    }

    .hp2-hero-form input,
    .hp2-hero-form button {
        width: 100%;
    }

    .hp2-section {
        padding: 48px 0;
    }

    .hp2-stat-card {
        padding: 16px 18px;
    }

    .hp2-tool-card {
        padding: 22px;
    }

    .hp2-event-card {
        flex-direction: column;
        gap: 12px;
    }

    .hp2-event-date {
        display: flex;
        gap: 6px;
        align-items: baseline;
        width: auto;
        padding: 8px 14px;
    }

    .hp2-testimonial-card {
        padding: 24px;
    }

    .hp2-cta-card {
        padding: 28px 20px;
    }

    .hp2-lead-section .hp2-lead-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hp2-hero-orb { display: none; }

    .hp2-hero {
        min-height: 90vh;
        padding: 0;
    }

    .hp2-hero-inner {
        padding-top: 80px;
        padding-bottom: 24px;
    }

    .hp2-marquee-track {
        gap: 32px;
    }
}

/* ─── App Cards ─────────────────────────────── */
.hp2-app-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp2-app-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.hp2-app-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--hp2-accent-glow);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp2-app-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp2-platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.hp2-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--hp2-accent-glow);
    color: var(--hp2-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hp2-platform-badge--android { background: #e8f5e9; color: #2e7d32; }
.hp2-platform-badge--ios     { background: #ede7f6; color: #512da8; }
.hp2-platform-badge--web     { background: #e3f2fd; color: #1565c0; }

/* ─── JustSEOAI Tool Cards ───────────────────── */
.hp2-seo-tool-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
}

.hp2-seo-tool-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.hp2-access-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hp2-access-badge--free  { background: #e8f5e9; color: #2e7d32; }
.hp2-access-badge--paid  { background: #fff3e0; color: #e65100; }

/* ─── Reduced Motion ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hp2-reveal,
    .hp2-reveal-left,
    .hp2-reveal-right,
    .hp2-reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hp2-hero-orb,
    .hp2-marquee-track {
        animation: none;
    }

    .hp2-hero-badge-dot {
        animation: none;
    }
}
