/* ═══════════════════════════════════════════════════════════════
   TecX360 Home Page — Modern SaaS Landing Page
   Brand: Navy #091F62 / Cyan #05A2C7
   ═══════════════════════════════════════════════════════════════ */

:root {
    --hp-navy: #091F62;
    --hp-navy-dark: #060F3A;
    --hp-cyan: #05A2C7;
    --hp-cyan-light: #07C4F0;
    --hp-white: #ffffff;
    --hp-light: #f4f7fb;
    --hp-grey: #6b7c93;
    --hp-dark: #1a1a2e;
    --hp-radius: 12px;
    --hp-shadow: 0 4px 24px rgba(9, 31, 98, 0.08);
    --hp-shadow-lg: 0 12px 48px rgba(9, 31, 98, 0.12);
}

/* ── Reset & Base ─────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;  /* Offset for fixed nav */
}

.hp-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--hp-white);
}

/* Scroll offset for fixed nav on all section targets */
.hp-body [id] {
    scroll-margin-top: 80px;
}

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


/* ═══════ NAVIGATION ═══════ */
.hp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--hp-navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

.hp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hp-nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.6rem;
}

.hp-nav-logo {
    height: 32px;
}

.hp-nav-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hp-white);
    letter-spacing: -0.5px;
}

.hp-nav-links {
    display: flex;
    gap: 1.5rem;
}

.hp-nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    pointer-events: auto;
}

.hp-nav-links a:hover {
    color: var(--hp-cyan-light);
}

.hp-nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hp-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}


/* ═══════ BUTTONS ═══════ */
.hp-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.hp-btn-primary {
    background: var(--hp-navy);
    color: var(--hp-white);
    border-color: var(--hp-navy);
}

.hp-btn-primary:hover {
    background: var(--hp-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 31, 98, 0.3);
}

.hp-btn-accent {
    background: var(--hp-cyan);
    color: var(--hp-white);
    border-color: var(--hp-cyan);
}

.hp-btn-accent:hover {
    background: var(--hp-cyan-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 162, 199, 0.3);
}

.hp-btn-outline {
    background: transparent;
    color: var(--hp-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.hp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hp-white);
}

.hp-btn-outline-light {
    background: transparent;
    color: var(--hp-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.hp-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--hp-white);
    color: var(--hp-white);
}

.hp-btn-xl {
    padding: 0.85rem 2.2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}


/* ═══════ HERO ═══════ */
.hp-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
}

.hp-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hp-navy-dark) 0%, var(--hp-navy) 40%, #0d2d7a 70%, var(--hp-cyan) 100%);
    z-index: -2;
}

.hp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(5, 162, 199, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(5, 162, 199, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hp-hero-content {
    max-width: 800px;
    z-index: 1;
}

.hp-hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--hp-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hp-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hp-hero-body {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.hp-hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════ STATS BAR ═══════ */
.hp-stats {
    background: var(--hp-white);
    padding: 2.5rem 0;
    border-bottom: 1px solid #eee;
}

.hp-stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.hp-stat-item {
    text-align: center;
}

.hp-stat-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.3rem;
}

.hp-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--hp-navy);
    display: block;
    letter-spacing: -1px;
}

.hp-stat-label {
    font-size: 0.9rem;
    color: var(--hp-grey);
    display: block;
}


/* ═══════ SECTIONS ═══════ */
.hp-section {
    padding: 5rem 0;
}

.hp-section-white {
    background: var(--hp-white);
}

.hp-section-light {
    background: var(--hp-light);
}

.hp-section-dark {
    background: var(--hp-navy);
    color: var(--hp-white);
}

.hp-section-dark h2,
.hp-section-dark h3 {
    color: var(--hp-white);
}

.hp-section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

.hp-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.hp-section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--hp-navy);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.hp-section-dark .hp-section-header h2 {
    color: var(--hp-white);
}

.hp-section-header p {
    font-size: 1.15rem;
    color: var(--hp-grey);
    max-width: 600px;
    margin: 0 auto;
}

.hp-section-dark .hp-section-header p {
    color: rgba(255, 255, 255, 0.75);
}


/* ═══════ FEATURE CARDS ═══════ */
.hp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hp-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hp-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    padding: 2rem;
    box-shadow: var(--hp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
}

.hp-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.hp-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: 0.6rem;
}

.hp-card p {
    color: var(--hp-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* ═══════ BENEFITS ═══════ */
.hp-benefits-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hp-benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.hp-benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 162, 199, 0.1);
    border-radius: 14px;
}

.hp-benefit-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: 0.4rem;
}

.hp-benefit-text p {
    color: var(--hp-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}


/* ═══════ SPLIT LAYOUT ═══════ */
.hp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hp-split-reverse {
    direction: rtl;
}

.hp-split-reverse > * {
    direction: ltr;
}

.hp-split-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--hp-navy);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hp-section-dark .hp-split-text h2 {
    color: var(--hp-white);
}

.hp-split-text p {
    font-size: 1.05rem;
    color: var(--hp-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hp-section-dark .hp-split-text p {
    color: rgba(255, 255, 255, 0.85);
}

.hp-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.hp-check-list li {
    padding: 0.4rem 0 0.4rem 1.8rem;
    position: relative;
    font-size: 1rem;
    color: #444;
}

.hp-check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--hp-cyan);
    font-weight: 700;
    font-size: 1.1rem;
}

.hp-check-list-light li {
    color: rgba(255, 255, 255, 0.9);
}

.hp-check-list-light li::before {
    color: var(--hp-cyan-light);
}


/* ═══════ MOCK DASHBOARD ═══════ */
.hp-mock-dashboard {
    background: var(--hp-light);
    border-radius: var(--hp-radius);
    padding: 2rem;
    box-shadow: var(--hp-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.hp-mock-bar {
    background: linear-gradient(90deg, var(--hp-cyan), var(--hp-navy));
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: width 1s ease;
}

.hp-mock-bar-low {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}


/* ═══════ PARTNER GRAPHIC ═══════ */
.hp-partner-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.hp-partner-hub {
    background: var(--hp-cyan);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(5, 162, 199, 0.4);
}

.hp-partner-spokes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hp-partner-client {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}


/* ═══════ NEWS FEED ═══════ */
.hp-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.hp-news-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    padding: 1.5rem;
    box-shadow: var(--hp-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.hp-news-card:hover {
    transform: translateY(-2px);
}

.hp-news-tag {
    display: inline-block;
    background: rgba(5, 162, 199, 0.1);
    color: var(--hp-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

.hp-news-pinned {
    margin-right: 0.3rem;
}

.hp-news-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hp-news-card h3 a {
    color: var(--hp-navy);
    text-decoration: none;
}

.hp-news-card h3 a:hover {
    color: var(--hp-cyan);
}

.hp-news-card p {
    color: var(--hp-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.6rem;
}

.hp-news-source {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.hp-news-empty {
    text-align: center;
    padding: 3rem;
    color: var(--hp-grey);
}


/* ═══════ CTA BAND ═══════ */
.hp-cta-band {
    background: linear-gradient(135deg, var(--hp-navy) 0%, #0d2d7a 50%, var(--hp-cyan) 100%);
    padding: 5rem 0;
    text-align: center;
}

.hp-cta-band h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--hp-white);
    margin-bottom: 0.8rem;
}

.hp-cta-band p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}


/* ═══════ DUAL FORMS ═══════ */
.hp-dual-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.hp-form-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    padding: 2rem;
    box-shadow: var(--hp-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hp-form-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hp-navy);
    margin-bottom: 0.4rem;
}

.hp-form-card > p {
    color: var(--hp-grey);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}


/* ═══════ ENQUIRY SUCCESS ═══════ */
.hp-enquiry-success {
    text-align: center;
    padding: 2rem 1rem;
}

.hp-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hp-enquiry-success h3 {
    color: var(--hp-navy);
    margin-bottom: 0.5rem;
}


/* ═══════ LOADING SPINNER ═══════ */
.hp-loading {
    text-align: center;
    padding: 3rem;
    color: var(--hp-grey);
}

.hp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(5, 162, 199, 0.2);
    border-top-color: var(--hp-cyan);
    border-radius: 50%;
    animation: hp-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes hp-spin {
    to { transform: rotate(360deg); }
}


/* ═══════ FOOTER ═══════ */
.hp-footer {
    background: var(--hp-navy-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.hp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hp-footer-logo {
    height: 28px;
    margin-bottom: 1rem;
    display: block;
}

.hp-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 350px;
}

.hp-footer-links h4 {
    color: var(--hp-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hp-footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.hp-footer-links a:hover {
    color: var(--hp-cyan-light);
}

.hp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}


/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 968px) {
    .hp-hero-content h1 {
        font-size: 2.4rem;
    }

    .hp-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hp-split-reverse {
        direction: ltr;
    }

    .hp-dual-forms {
        grid-template-columns: 1fr;
    }

    .hp-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hp-nav-links,
    .hp-nav-actions {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hp-navy);
        padding: 1rem 2rem;
    }

    .hp-nav-links.open,
    .hp-nav-actions.open {
        display: flex;
    }

    .hp-nav-toggle {
        display: block;
    }

    .hp-hero {
        min-height: 75vh;
        padding: 6rem 1.5rem 4rem;
    }

    .hp-hero-content h1 {
        font-size: 2rem;
    }

    .hp-hero-subtitle {
        font-size: 1.05rem;
    }

    .hp-section {
        padding: 3.5rem 0;
    }

    .hp-section-header h2 {
        font-size: 1.8rem;
    }

    .hp-cards-grid {
        grid-template-columns: 1fr;
    }

    .hp-news-grid {
        grid-template-columns: 1fr;
    }

    .hp-stats-grid {
        gap: 2rem;
    }

    .hp-cta-band h2 {
        font-size: 1.8rem;
    }

    .hp-container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .hp-hero-content h1 {
        font-size: 1.7rem;
    }

    .hp-hero-ctas {
        flex-direction: column;
    }

    .hp-btn-xl {
        width: 100%;
    }

    .hp-partner-spokes {
        grid-template-columns: 1fr;
    }
}
