/* Maharat 71 × Huawei Enterprise landing page */

.hw-page {
    --hw-teal: #15a28c;
    --hw-green: #37ec7e;
    --hw-dark: #2d3436;
    --hw-muted: #5f6b6d;
    --hw-surface: #f4f7f6;
    --hw-gradient: linear-gradient(135deg, #15a28c 0%, #37ec7e 100%);
    --hw-gradient-dark: linear-gradient(145deg, #0f2a2a 0%, #153d38 45%, #1a4f45 100%);
    color: var(--hw-dark);
    overflow-x: hidden;
}

.hw-page .reveal {
    /* Visible by default so content never stays blank if JS is missing */
    opacity: 1;
    transform: none;
}

/* Only hide while scroll-reveal is armed by JS */
.hw-page.hw-reveal-ready .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hw-page.hw-reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hw-page.hw-reveal-ready .reveal-delay-1 { transition-delay: 0.1s; }
.hw-page.hw-reveal-ready .reveal-delay-2 { transition-delay: 0.2s; }
.hw-page.hw-reveal-ready .reveal-delay-3 { transition-delay: 0.3s; }
.hw-page.hw-reveal-ready .reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .hw-page.hw-reveal-ready .reveal:not(.is-visible),
    .hw-page.hw-reveal-ready .reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero */
.hw-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    background: var(--hw-gradient-dark);
    color: #fff;
    isolation: isolate;
}

.hw-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 75% 35%, rgba(55, 236, 126, 0.22), transparent 60%),
        radial-gradient(ellipse 45% 40% at 15% 80%, rgba(21, 162, 140, 0.28), transparent 55%);
    z-index: -1;
    pointer-events: none;
}

.hw-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
    z-index: -1;
    pointer-events: none;
    animation: hw-grid-drift 28s linear infinite;
}

@keyframes hw-grid-drift {
    from { transform: translateY(0); }
    to { transform: translateY(64px); }
}

.hw-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    margin-bottom: 1.75rem;
}

.hw-partner-badge__logos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hw-partner-badge__logos img {
    height: 22px;
    width: auto;
}

.hw-partner-badge__divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.35);
}

.hw-partner-badge__huawei {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}

.hw-partner-badge__label {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.hw-hero__title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    max-width: 16ch;
}

.hw-hero__title span {
    background: var(--hw-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hw-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 36rem;
    margin-bottom: 2rem;
}

.hw-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hw-btn-primary {
    background: var(--hw-gradient);
    color: #fff;
    box-shadow: 0 10px 28px rgba(21, 162, 140, 0.35);
}

.hw-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(21, 162, 140, 0.45);
}

.hw-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.hw-btn-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-2px);
}

.hw-btn-outline-light {
    background: transparent;
    color: var(--hw-teal);
    border: 1.5px solid rgba(21, 162, 140, 0.45);
}

.hw-btn-outline-light:hover {
    color: #fff;
    background: var(--hw-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

.hw-hero__visual {
    position: relative;
    min-height: 380px;
}

.hw-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: hw-float 7s ease-in-out infinite;
}

.hw-hero__orb--1 {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(55, 236, 126, 0.45), transparent 70%);
}

.hw-hero__orb--2 {
    width: 180px;
    height: 180px;
    bottom: 12%;
    left: 10%;
    background: radial-gradient(circle, rgba(21, 162, 140, 0.5), transparent 70%);
    animation-delay: -2.5s;
}

@keyframes hw-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

.hw-hero__panel {
    position: relative;
    margin: 2rem auto 0;
    max-width: 360px;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.hw-hero__panel h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hw-hero__panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hw-hero__panel li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hw-hero__panel li:last-child {
    border-bottom: none;
}

.hw-hero__panel i {
    color: var(--hw-green);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.hw-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.4rem;
    animation: hw-bounce 2s ease-in-out infinite;
}

@keyframes hw-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Shared section helpers */
.hw-section {
    padding: 5.5rem 0;
}

.hw-section--muted {
    background: var(--hw-surface);
}

.hw-section--dark {
    background: var(--hw-gradient-dark);
    color: #fff;
}

.hw-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hw-teal);
    margin-bottom: 0.75rem;
}

.hw-section--dark .hw-eyebrow {
    color: var(--hw-green);
}

.hw-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hw-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hw-muted);
    max-width: 40rem;
}

.hw-section--dark .hw-lead {
    color: rgba(255, 255, 255, 0.75);
}

.hw-underline {
    width: 64px;
    height: 3px;
    background: var(--hw-gradient);
    border-radius: 2px;
    margin: 0 0 1.5rem;
}

.hw-underline--center {
    margin-left: auto;
    margin-right: auto;
}

/* Intro */
.hw-intro__image {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 42, 42, 0.18);
}

.hw-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
    display: block;
    transition: transform 0.8s ease;
}

.hw-intro__image:hover img {
    transform: scale(1.04);
}

.hw-intro__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(21, 162, 140, 0.35));
    pointer-events: none;
}

.hw-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.hw-stat {
    padding: 1rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid rgba(21, 162, 140, 0.12);
    text-align: center;
}

.hw-stat strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--hw-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hw-stat span {
    font-size: 0.78rem;
    color: var(--hw-muted);
}

/* Service cards */
.hw-service-card {
    height: 100%;
    padding: 1.85rem 1.5rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid rgba(21, 162, 140, 0.1);
    box-shadow: 0 8px 28px rgba(15, 42, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hw-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 42, 42, 0.12);
    border-color: rgba(21, 162, 140, 0.35);
}

.hw-service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hw-gradient);
    color: #fff;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
}

.hw-service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hw-service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hw-service-card li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
    color: var(--hw-muted);
    line-height: 1.45;
}

.hw-service-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hw-teal);
}

/* Comparison */
.hw-compare {
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(21, 162, 140, 0.12);
    box-shadow: 0 16px 40px rgba(15, 42, 42, 0.06);
}

.hw-compare table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.hw-compare th,
.hw-compare td {
    padding: 1.1rem 1.25rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(21, 162, 140, 0.1);
}

.hw-compare th:first-child,
.hw-compare td:first-child {
    text-align: left;
    font-weight: 500;
}

.hw-compare thead th {
    background: var(--hw-dark);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.hw-compare thead th:nth-child(3) {
    background: var(--hw-gradient);
    color: #fff;
}

.hw-compare tbody tr:last-child td {
    border-bottom: none;
}

.hw-compare tbody tr:hover {
    background: rgba(21, 162, 140, 0.04);
}

.hw-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(21, 162, 140, 0.12);
    color: var(--hw-teal);
    font-size: 0.95rem;
}

.hw-dash {
    color: #b0b8b9;
    font-size: 1.1rem;
}

/* Why grid */
.hw-why-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(21, 162, 140, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hw-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15, 42, 42, 0.1);
}

.hw-why-card i {
    font-size: 1.6rem;
    background: var(--hw-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.85rem;
    display: inline-block;
}

.hw-why-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hw-why-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--hw-muted);
    line-height: 1.55;
}

/* AMC workflow */
.hw-amc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
}

.hw-amc-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(55, 236, 126, 0.55), transparent);
    z-index: 0;
}

.hw-amc-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, background 0.3s ease;
}

.hw-amc-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.hw-amc-step__num {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: var(--hw-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(21, 162, 140, 0.35);
}

.hw-amc-step h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hw-amc-step p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.hw-amc-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hw-amc-highlight {
    padding: 1.25rem 1.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hw-amc-highlight h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.hw-amc-highlight p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Expertise */
.hw-expertise-panel {
    padding: 2rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(21, 162, 140, 0.12);
    height: 100%;
}

.hw-expertise-panel h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hw-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hw-chip-list li {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(21, 162, 140, 0.1);
    color: var(--hw-teal);
    font-size: 0.82rem;
    font-weight: 500;
}

.hw-cta-band {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--hw-gradient);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.hw-cta-band h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.hw-cta-band p {
    margin: 0;
    opacity: 0.92;
    max-width: 36rem;
}

.hw-cta-band .hw-btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.hw-cta-band .hw-btn-outline:hover {
    background: #fff;
    color: var(--hw-teal);
}

/* Contact CTA form */
.hw-contact-form {
    padding: 2rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(21, 162, 140, 0.12);
    box-shadow: 0 16px 40px rgba(15, 42, 42, 0.06);
}

.hw-contact-form .form-control,
.hw-contact-form .form-select {
    border-radius: 0.65rem;
    border-color: rgba(21, 162, 140, 0.2);
    padding: 0.75rem 1rem;
}

.hw-contact-form .form-control:focus,
.hw-contact-form .form-select:focus {
    border-color: var(--hw-teal);
    box-shadow: 0 0 0 0.2rem rgba(21, 162, 140, 0.15);
}

.hw-contact-meta {
    margin-top: 1.5rem;
}

.hw-contact-meta a {
    color: var(--hw-teal);
    text-decoration: none;
    font-weight: 500;
}

.hw-contact-meta a:hover {
    text-decoration: underline;
}

.hw-contact-meta p {
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    color: var(--hw-muted);
}

.hw-contact-meta i {
    color: var(--hw-teal);
    margin-right: 0.4rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hw-hero {
        padding-top: 7rem;
        min-height: auto;
    }

    .hw-hero__visual {
        min-height: 280px;
        margin-top: 2rem;
    }

    .hw-amc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hw-amc-grid::before {
        display: none;
    }

    .hw-stat-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hw-section {
        padding: 4rem 0;
    }

    .hw-amc-grid,
    .hw-amc-highlights {
        grid-template-columns: 1fr;
    }

    .hw-compare th,
    .hw-compare td {
        padding: 0.85rem 0.65rem;
        font-size: 0.85rem;
    }

    .hw-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hw-btn {
        width: 100%;
    }
}
