﻿
/* =========================================
   SERLIZTECH HOME PAGE
  
   ========================================= */

.home-page {
    --home-muted: #a8b2cc;
    --home-panel: rgba(16, 20, 31, 0.88);
    --home-border: rgba(0, 255, 157, 0.18);
    color: #f4f6ff;
    overflow: hidden;
}

    .home-page .container {
        width: min(1200px, calc(100% - 40px));
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 0;
    }

    .home-page a {
        text-decoration: none;
    }

    .home-page h1,
    .home-page h2,
    .home-page h3,
    .home-page p {
        overflow-wrap: anywhere;
    }

.home-gradient {
    background: var(--cyber-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hero */

.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 650px;
    padding: 90px 0 85px;
    background: radial-gradient(ellipse at 80% 40%, rgba(0, 255, 157, 0.08), transparent 38%), radial-gradient(ellipse at 10% 85%, rgba(0, 217, 255, 0.06), transparent 35%);
    border-bottom: 1px solid var(--home-border);
}

    .home-hero::before {
        position: absolute;
        z-index: -1;
        inset: 0;
        content: "";
        pointer-events: none;
        background-image: linear-gradient(rgba(0, 255, 157, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 157, 0.025) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: linear-gradient(to right, transparent, black);
    }

.home-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 35px;
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-eyebrow,
.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyber-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.7;
}

.home-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--cyber-primary);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.7);
}

.home-hero h1 {
    max-width: 720px;
    margin: 25px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 4.6vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1.18;
}

    .home-hero h1 .home-gradient {
        display: block;
        margin-top: 8px;
    }

.home-hero-description {
    max-width: 610px;
    margin-bottom: 30px;
    color: var(--home-muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.home-hero-actions,
.home-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.home-page .cyber-btn {
    min-height: 50px;
    gap: 10px;
}

.home-page .cyber-btn-primary {
    padding: 14px 21px;
    font-size: 0.95rem;
}

.home-outline-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid rgba(0, 217, 255, 0.45);
    border-radius: 9px;
    color: var(--cyber-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .home-outline-btn:hover {
        color: #fff;
        background: rgba(0, 217, 255, 0.08);
        transform: translateY(-2px);
    }

.home-hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    color: var(--home-muted);
    font-size: 0.85rem;
}

    .home-hero-note i {
        color: var(--cyber-primary);
    }

/* Hero illustration */

.home-hero-visual {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.home-visual-glow {
    position: absolute;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--cyber-primary);
    opacity: 0.1;
    filter: blur(70px);
}

.home-orbit {
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 255, 157, 0.18);
    border-radius: 50%;
    transform: rotate(-25deg) scaleY(0.65);
}

.home-orbit-two {
    width: 94%;
    border-color: rgba(0, 217, 255, 0.2);
    transform: rotate(45deg) scaleY(0.65);
}

.home-visual-center {
    position: relative;
    z-index: 1;
    width: 64%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 28px;
    background: linear-gradient(145deg, #111b23, #10101b);
    box-shadow: 0 0 60px rgba(0, 255, 157, 0.08), inset 0 0 40px rgba(0, 217, 255, 0.04);
    transform: rotate(-3deg);
}

.home-logo-mark {
    display: grid;
    place-items: center;
    width: 95px;
    height: 95px;
    border: 2px solid var(--cyber-primary);
    border-radius: 22px;
    background: rgba(0, 255, 157, 0.07);
    color: var(--cyber-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.12);
}

.home-visual-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: 900;
    letter-spacing: 2px;
}

.home-visual-caption {
    color: var(--home-muted);
    font-size: 0.55rem;
    letter-spacing: 1.4px;
    text-align: center;
}

.home-floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: rgba(13, 18, 29, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #f4f6ff;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

    .home-floating-card i {
        color: var(--cyber-primary);
        font-size: 1.1rem;
    }

.home-floating-top {
    top: 7%;
    left: 34%;
}

.home-floating-left {
    top: 48%;
    left: 0;
}

.home-floating-right {
    right: 0;
    bottom: 16%;
}

    .home-floating-right i {
        color: var(--cyber-secondary);
    }

/* Intro */

.home-intro {
    padding: 65px 0;
    border-bottom: 1px solid var(--home-border);
}

.home-intro-inner {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.home-intro h2,
.home-section-heading h2,
.home-product-content h2,
.home-about-copy h2,
.home-cta-panel h2 {
    margin: 13px 0 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.4;
}

.home-intro-inner > p {
    margin: 0;
    color: var(--home-muted);
    font-size: 1rem;
    line-height: 1.9;
}

/* Section headings */

.home-services,
.home-product-section,
.home-about,
.home-contact-cta {
    padding: 90px 0;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 38px;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyber-primary);
    font-size: 0.9rem;
    font-weight: 750;
    transition: gap 0.2s ease;
}

    .home-text-link:hover {
        gap: 16px;
    }

/* Service cards */

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 360px;
    padding: 27px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: var(--home-panel);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .home-service-card::after {
        position: absolute;
        top: -80px;
        right: -80px;
        width: 160px;
        height: 160px;
        content: "";
        border-radius: 50%;
        background: var(--cyber-primary);
        opacity: 0.035;
        filter: blur(35px);
        pointer-events: none;
    }

    .home-service-card:hover {
        transform: translateY(-6px);
        border-color: rgba(0, 255, 157, 0.6);
        box-shadow: 0 15px 40px rgba(0, 255, 157, 0.07);
    }

.home-service-featured {
    border-color: rgba(0, 217, 255, 0.4);
    background: radial-gradient(ellipse at top right, rgba(0, 217, 255, 0.08), transparent 50%), var(--home-panel);
}

.home-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.home-service-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--home-border);
    border-radius: 15px;
    background: rgba(0, 255, 157, 0.07);
    color: var(--cyber-primary);
    font-size: 1.5rem;
}

.home-service-featured .home-service-icon {
    color: var(--cyber-secondary);
    border-color: rgba(0, 217, 255, 0.25);
    background: rgba(0, 217, 255, 0.07);
}

.home-service-number {
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.home-service-label {
    color: var(--cyber-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.home-service-featured .home-service-label {
    color: var(--cyber-secondary);
}

.home-service-card h3 {
    margin: 12px 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.45;
}

.home-service-card > p {
    flex: 1;
    margin: 0 0 20px;
    color: var(--home-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.home-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}

    .home-service-tags span {
        padding: 6px 9px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.035);
        color: var(--home-muted);
        font-size: 0.72rem;
    }

.home-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 17px;
    border-top: 1px solid var(--home-border);
    color: var(--cyber-primary);
    font-size: 0.88rem;
    font-weight: 750;
}

    .home-service-link i {
        transition: transform 0.2s ease;
    }

    .home-service-link:hover i {
        transform: translateX(5px);
    }

/* Featured product */

.home-product-section {
    padding-top: 20px;
}

.home-product-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 60px;
    padding: clamp(25px, 5vw, 60px);
    border: 1px solid var(--home-border);
    border-radius: 24px;
    background: radial-gradient(ellipse at left center, rgba(0, 255, 157, 0.07), transparent 50%), #0d1019;
}

.home-product-visual {
    min-width: 0;
}

.home-product-image-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 157, 0.25);
    border-radius: 18px;
    background: linear-gradient(140deg, #111e25, #151222);
}

    .home-product-image-frame img {
        width: 100%;
        max-height: 330px;
        object-fit: contain;
    }

.home-product-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 35px;
    color: var(--cyber-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
}

    .home-product-fallback i {
        font-size: 4rem;
    }

.home-product-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    padding: 9px 13px;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    color: var(--home-muted);
    font-size: 0.8rem;
}

    .home-product-chip i {
        color: var(--cyber-primary);
    }

.home-product-content > p {
    color: var(--home-muted);
    font-size: 0.96rem;
    line-height: 1.9;
}

.home-product-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0 30px;
    padding: 0;
    list-style: none;
}

    .home-product-features li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        color: #e8edf7;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .home-product-features i {
        margin-top: 3px;
        color: var(--cyber-primary);
    }

.home-product-disclaimer {
    margin: 17px 0 0;
    font-size: 0.78rem !important;
}

/* About */

.home-about {
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    background: rgba(0, 0, 0, 0.22);
}

.home-about-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.home-about-copy > p {
    margin: 22px 0 0;
    color: var(--home-muted);
    font-size: 0.96rem;
    line-height: 1.95;
}

.home-about-copy .home-text-link {
    margin-top: 28px;
}

.home-principles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.home-principle {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: var(--home-panel);
}

.home-principle-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 255, 157, 0.08);
    color: var(--cyber-primary);
    font-size: 1.25rem;
}

.home-principle h3 {
    margin: 2px 0 7px;
    font-size: 1rem;
    font-weight: 800;
}

.home-principle p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* Contact CTA */

.home-contact-cta {
    padding-top: 85px;
    padding-bottom: 95px;
}

.home-cta-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(30px, 6vw, 65px) 25px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 157, 0.27);
    border-radius: 24px;
    background: radial-gradient(ellipse at 20% 0%, rgba(0, 255, 157, 0.09), transparent 45%), radial-gradient(ellipse at 80% 100%, rgba(0, 217, 255, 0.08), transparent 45%), #0d1019;
    text-align: center;
}

.home-cta-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    border: 1px solid var(--home-border);
    border-radius: 17px;
    background: rgba(0, 255, 157, 0.07);
    color: var(--cyber-primary);
    font-size: 1.5rem;
}

.home-cta-panel h2 {
    max-width: 800px;
    margin-top: 12px;
}

.home-cta-panel > p {
    max-width: 620px;
    margin: 17px 0 28px;
    color: var(--home-muted);
    font-size: 0.96rem;
    line-height: 1.9;
}

.home-cta-actions {
    justify-content: center;
}

/* Responsive */

@media (max-width: 1000px) {
    .home-hero-layout {
        grid-template-columns: 1fr 0.8fr;
        gap: 15px;
    }

    .home-hero h1 {
        font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    }

    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-service-card:last-child {
        grid-column: 1 / -1;
        min-height: 300px;
    }

    .home-product-panel {
        gap: 35px;
    }

    .home-about-layout {
        gap: 40px;
    }
}

@media (max-width: 760px) {
    .home-page .container {
        width: calc(100% - 36px);
    }

    .home-hero {
        min-height: 0;
        padding: 75px 0 55px;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
    }

    .home-hero h1 {
        font-size: clamp(2.3rem, 8vw, 3.5rem);
        letter-spacing: -1px;
    }

    .home-hero-description {
        font-size: 0.98rem;
    }

    .home-hero-visual {
        width: min(100%, 440px);
        margin: 10px auto 0;
    }

    .home-visual-center {
        width: 60%;
    }

    .home-logo-mark {
        width: 75px;
        height: 75px;
        font-size: 2.1rem;
    }

    .home-intro {
        padding: 50px 0;
    }

    .home-intro-inner,
    .home-about-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-services,
    .home-about {
        padding: 65px 0;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-product-section {
        padding-top: 0;
        padding-bottom: 65px;
    }

    .home-product-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-product-image-frame {
        min-height: 220px;
    }

    .home-contact-cta {
        padding: 65px 0;
    }
}

@media (max-width: 520px) {
    .home-page .container {
        width: calc(100% - 28px);
    }

    .home-eyebrow {
        font-size: 0.64rem;
        letter-spacing: 1.2px;
    }

    .home-hero h1 {
        font-size: 2.25rem;
    }

    .home-hero-actions,
    .home-cta-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

        .home-hero-actions > a,
        .home-cta-actions > a {
            width: 100%;
            box-sizing: border-box;
        }

    .home-hero-visual {
        margin-top: 15px;
    }

    .home-floating-card {
        gap: 7px;
        padding: 9px;
        font-size: 0.68rem;
    }

        .home-floating-card i {
            font-size: 0.9rem;
        }

    .home-visual-caption {
        font-size: 0.43rem;
        letter-spacing: 0.8px;
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card,
    .home-service-card:last-child {
        grid-column: auto;
        min-height: 330px;
        padding: 23px;
    }

    .home-product-panel {
        padding: 20px;
    }

    .home-product-content h2,
    .home-intro h2,
    .home-about-copy h2,
    .home-cta-panel h2 {
        font-size: 1.65rem;
    }

    .home-principle {
        gap: 13px;
        padding: 15px;
    }

    .home-principle-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
