/* ═══════════════════════════════════════════════════
   NUHA PRO THEME v2 – Homepage Styles
   Hero, trusted-by, plugins, ventures
   ═══════════════════════════════════════════════════ */

/* ─── Hero Section ───────────────────────────────── */
.nuha-hero {
    position: relative;
    padding-top: 128px;
    padding-bottom: var(--nuha-sp-20);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.nuha-hero__grid-bg {
    position: absolute;
    inset: 0;
    background: var(--nuha-grid-pattern);
    background-size: var(--nuha-grid-size);
    opacity: 0.6;
    pointer-events: none;
}

.nuha-hero__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.nuha-hero__blob--right {
    top: 0; right: 0;
    width: 800px; height: 800px;
    background: var(--nuha-sky-50);
    filter: blur(120px);
    transform: translate(25%, -50%);
}
.nuha-hero__blob--left {
    bottom: 0; left: 0;
    width: 600px; height: 600px;
    background: var(--nuha-blue-50);
    filter: blur(100px);
    transform: translate(-25%, 33%);
}

.nuha-hero__content {
    position: relative;
    z-index: var(--nuha-z-content);
    text-align: center;
}

.nuha-hero__title {
    font-size: var(--nuha-text-5xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--nuha-sp-8);
    line-height: var(--nuha-leading-tight);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    color: var(--nuha-navy);
}
@media (min-width: 768px) {
    .nuha-hero__title { font-size: var(--nuha-text-7xl); }
}

.nuha-hero__gradient-text {
    background: linear-gradient(to right, var(--nuha-primary), #06b6d4, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nuha-hero__subtitle {
    font-size: var(--nuha-text-lg);
    color: var(--nuha-text-muted);
    max-width: 640px;
    margin: 0 auto var(--nuha-sp-10);
    line-height: var(--nuha-leading-relaxed);
    font-weight: 400;
}
@media (min-width: 768px) {
    .nuha-hero__subtitle { font-size: var(--nuha-text-xl); }
}

.nuha-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--nuha-sp-4);
    margin-bottom: var(--nuha-sp-20);
}
@media (min-width: 640px) {
    .nuha-hero__actions { flex-direction: row; justify-content: center; }
}

/* Hero Visual Area */
.nuha-hero__visual {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: var(--nuha-sp-8) auto 0;
    height: 500px;
}

.nuha-hero__person {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    z-index: var(--nuha-z-content);
}

/* Widget Cards */
.nuha-hero__widget {
    position: absolute;
    z-index: var(--nuha-z-widget);
}
.nuha-hero__widget--stats {
    top: 40px;
    right: 0;
    width: 256px;
    padding: var(--nuha-sp-5);
    border-left: 4px solid var(--nuha-primary);
}
.nuha-hero__widget--review {
    bottom: 80px;
    left: 0;
    padding: var(--nuha-sp-4) var(--nuha-sp-6);
    border-right: 4px solid var(--nuha-indigo-600);
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: var(--nuha-sp-4);
    border-radius: var(--nuha-radius-xl);
}
.nuha-hero__widget--security {
    top: 80px;
    left: 16px;
    padding: var(--nuha-sp-3) var(--nuha-sp-5) var(--nuha-sp-3) var(--nuha-sp-3);
    border-radius: var(--nuha-radius-full);
    display: none;
    align-items: center;
    gap: var(--nuha-sp-3);
    border: 1px solid var(--nuha-border);
    box-shadow: var(--nuha-shadow-xl);
}
@media (min-width: 640px) {
    .nuha-hero__widget--security { display: flex; }
}
@media (min-width: 768px) {
    .nuha-hero__widget--stats  { right: 40px; }
    .nuha-hero__widget--security { left: 48px; }
}

/* Widget internals */
.nuha-widget__progress {
    width: 100%;
    height: 8px;
    background: var(--nuha-bg-slate);
    border-radius: var(--nuha-radius-full);
    margin-top: var(--nuha-sp-4);
    overflow: hidden;
}
.nuha-widget__progress-bar {
    height: 100%;
    border-radius: var(--nuha-radius-full);
    background: linear-gradient(to right, var(--nuha-accent-cyan), #2563eb);
    width: 75%;
}

.nuha-widget__security-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nuha-indigo-600), var(--nuha-purple-600));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

/* ─── Trusted By Section ─────────────────────────── */
.nuha-trusted {
    padding: var(--nuha-sp-12) 0;
    background: #fff;
    border-bottom: 1px solid var(--nuha-border);
}
.nuha-trusted__label {
    font-size: var(--nuha-text-xs);
    font-weight: 700;
    color: var(--nuha-text-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--nuha-sp-10);
}
.nuha-trusted__logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--nuha-sp-8);
    opacity: 0.6;
    filter: grayscale(1);
    transition: all var(--nuha-duration-slow) var(--nuha-ease);
}
.nuha-trusted__logos:hover { filter: grayscale(0); }
@media (min-width: 768px) {
    .nuha-trusted__logos { gap: 80px; }
}
.nuha-trusted__item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: var(--nuha-text-xl);
    color: var(--nuha-text-heading);
}

/* ─── Plugins Section ────────────────────────────── */
.nuha-plugins {
    padding: var(--nuha-sp-24) 0;
    background: var(--nuha-bg-off);
}
.nuha-plugins__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nuha-sp-6);
}
@media (max-width: 1024px) {
    .nuha-plugins__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nuha-plugins__grid { grid-template-columns: 1fr; }
}

/* ─── Ventures/Innovation Section ────────────────── */
.nuha-ventures {
    padding: var(--nuha-sp-24) 0;
    background: #fff;
    position: relative;
}
.nuha-ventures__grid-bg {
    position: absolute;
    inset: 0;
    background: var(--nuha-grid-pattern);
    background-size: var(--nuha-grid-size);
    opacity: 0.3;
    pointer-events: none;
}
.nuha-ventures__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--nuha-sp-8);
}
@media (max-width: 1024px) {
    .nuha-ventures__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nuha-ventures__grid { grid-template-columns: 1fr; }
}
