/* ========================================
   HOME PAGE — Specific Styles
   ======================================== */

/* ─── Hero ──────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--text-0);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-logos>span {
    font-size: 0.8rem;
    color: var(--text-2);
    font-weight: 500;
}

.logo-strip {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-strip span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-2);
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
    transition: var(--tr-fast);
}

.logo-strip span:hover {
    color: var(--text-0);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tech-hologram {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.4);
    animation: rotateRing 20s linear infinite;
    pointer-events: none;
}
.tech-ring-1 { width: 340px; height: 340px; border-color: var(--accent-cyan); animation-duration: 25s; }
.tech-ring-2 { width: 260px; height: 260px; border: 2px solid rgba(255,255,255,0.2); border-top: 2px solid var(--accent-purple); animation-direction: reverse; animation-duration: 15s; }
.tech-ring-3 { width: 180px; height: 180px; border: 2px dashed var(--accent-orange); animation-duration: 35s; }

.tech-core {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px var(--accent-cyan);
    z-index: 10;
    color: white;
    font-size: 3rem;
    animation: pulseCore 3s ease-in-out infinite alternate;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulseCore {
    0% { box-shadow: 0 0 40px var(--accent-cyan); transform: scale(1); }
    100% { box-shadow: 0 0 80px var(--accent-purple); transform: scale(1.1); }
}

.floating-icon {
    position: absolute;
    width: 54px;
    height: 54px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-0);
    box-shadow: var(--shadow-md);
    z-index: 15;
    animation: float 6s ease-in-out infinite;
}
.f-icon-1 { top: 0; left: 20px; animation-delay: 0s; color: var(--accent-cyan); }
.f-icon-2 { bottom: 20px; right: 0; animation-delay: 2s; color: var(--accent-orange); }
.f-icon-3 { top: 50%; right: -20px; animation-delay: 4s; color: var(--accent-purple); }

.code-block {
    padding: 20px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.9;
}

.code-block p {
    margin: 0;
}

.code-block .kw {
    color: hsl(280, 80%, 75%);
}

.code-block .fn {
    color: var(--accent);
}

.code-block .st {
    color: hsl(40, 90%, 65%);
}

.code-block .cm {
    color: var(--text-2);
    font-style: italic;
}

.code-block .num {
    color: hsl(30, 100%, 65%);
}

/* Staggered line animation */
.cl {
    opacity: 0;
    animation: fadeInLine 0.3s forwards;
}

.cl1 {
    animation-delay: 0.2s;
}

.cl2 {
    animation-delay: 0.3s;
}

.cl3 {
    animation-delay: 0.4s;
}

.cl4 {
    animation-delay: 0.5s;
}

.cl5 {
    animation-delay: 0.6s;
}

.cl6 {
    animation-delay: 0.7s;
}

.cl7 {
    animation-delay: 0.8s;
}

.cl8 {
    animation-delay: 0.9s;
}

.cl9 {
    animation-delay: 1.0s;
}

.cl10 {
    animation-delay: 1.1s;
}

.cl11 {
    animation-delay: 1.2s;
}

.cl12 {
    animation-delay: 1.3s;
}

.cl13 {
    animation-delay: 1.4s;
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hcard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    background: rgba(40, 200, 64, 0.06);
    font-size: 0.75rem;
    color: #4ade80;
    font-family: monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

/* Floating Chips */
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 14px;
    white-space: nowrap;
}

.hero-chip strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-0);
}

.hero-chip small {
    font-size: 0.72rem;
    color: var(--text-2);
}

.chip-1 {
    top: 0;
    left: -60px;
}

.chip-2 {
    bottom: 80px;
    left: -80px;
}

.chip-3 {
    top: 30%;
    right: -40px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeUp 1s ease 2s both;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--text-2));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ─── Stats Bar ─────────────────────────── */
.stats-bar {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
    position: relative;
    z-index: 10;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

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

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--text-0), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--text-0), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-2);
    margin-top: 6px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

/* ─── Services ──────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 32px 28px;
    transform-style: preserve-3d;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(70, 130, 255, 0.15);
}

.sc-icon {
    width: 58px;
    height: 58px;
    background: rgba(var(--clr), 0.1);
    border: 1px solid rgba(var(--clr), 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Override color via CSS custom property trick */
.sc-icon {
    background: color-mix(in srgb, var(--clr) 12%, transparent);
    border-color: color-mix(in srgb, var(--clr) 25%, transparent);
}

.service-card:hover .sc-icon {
    transform: translateY(-6px) scale(1.1) rotate(-5deg);
}

.sc-icon i {
    font-size: 1.8rem;
    color: var(--clr);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-0);
}

.service-card>p {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 20px;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    transition: var(--tr-fast);
    margin-bottom: 18px;
    cursor: none;
}

.sc-link:hover {
    gap: 10px;
}

.sc-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 2px;
}

.sc-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-2);
}

/* ─── About ──────────────────────────────── */
.about-section {
    overflow: hidden;
}

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

.about-visual {
    position: relative;
}

.about-card-wrap {
    position: relative;
    height: 420px;
}

.about-main-card {
    padding: 32px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.amc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.amc-header h3 {
    font-size: 1.1rem;
}

.team-row {
    display: flex;
    gap: -8px;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-left: -8px;
}

.team-avatar:first-child {
    margin-left: 0;
}

.team-avatar.extra {
    background: var(--bg-3);
    color: var(--text-2);
}

.about-badge-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-badge-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.about-badge-card strong {
    font-size: 0.95rem;
}

.about-badge-card small {
    font-size: 0.78rem;
    color: var(--text-2);
}

.badge-founded {
    bottom: 0;
    left: 0;
    width: 200px;
}

.badge-award {
    bottom: 80px;
    right: 0;
    width: 200px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.af-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.af-icon {
    width: 44px;
    height: 44px;
    background: rgba(70, 130, 255, 0.1);
    border: 1px solid rgba(70, 130, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.af-item:hover .af-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(70, 130, 255, 0.15);
}

.af-item strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 2px;
}

.af-item p {
    font-size: 0.875rem;
    color: var(--text-2);
    margin: 0;
}

/* ─── Testimonials ──────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    padding: 32px 28px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

.stars {
    font-size: 1rem;
    color: hsl(40, 100%, 60%);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.testi-card>p {
    font-size: 0.9rem;
    color: var(--text-1);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.ta-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testi-author strong {
    font-size: 0.9rem;
    display: block;
}

.testi-author small {
    font-size: 0.8rem;
    color: var(--text-2);
}

/* ─── CTA Banner ─────────────────────────── */
.cta-banner {
    margin: 80px 0;
    padding: 0 28px;
}

.cta-inner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), hsl(190, 100%, 40%));
    border-radius: var(--r-xl);
    padding: 64px 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    background-size: 30px 30px;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 10px;
}

.cta-inner>div>p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.cta-btns {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cta-btns .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: none;
}

.cta-btns .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-btns .btn-glass {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-visual {
        height: 380px;
        margin-top: 40px;
    }

    .chip-1 {
        top: -20px;
        left: 0;
    }

    .chip-2 {
        display: none;
    }

    .chip-3 {
        right: 0;
        top: 20%;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        display: none;
    }

    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-divider {
        display: none;
    }

    .cta-inner {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        gap: 32px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .cta-inner {
        flex-direction: column;
        padding: 40px 28px;
        text-align: center;
    }

    .cta-btns {
        justify-content: center;
    }
}