﻿/* =========================================================
   RAGHAV TECHNOLOGIES
   DARK INDUSTRIAL DESIGN SYSTEM
========================================================= */

:root {
    --bg: #060809;
    --surface: #0c0f11;
    --text: #f5f7f8;
    --muted: #8b959c;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #39bff5;
    --accent-soft: rgba(57, 191, 245, 0.12);
    --accent-glow: rgba(57, 191, 245, 0.25);
    --container: 1380px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.site-container {
    width: min(calc(100% - 80px), var(--container));
    margin: 0 auto;
}


/* =========================================================
   HERO SHELL
========================================================= */

.hero-shell {
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient( circle at 75% 45%, rgba(35, 104, 133, 0.10), transparent 32% ), #060809;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    position: relative;
    z-index: 20;
    height: 38px;
    background: rgba(3, 5, 6, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: #879198;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.045em;
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 7px var(--accent), 0 0 14px var(--accent-glow);
}

.topbar-right {
    gap: 15px;
}

    .topbar-right a {
        color: #879198;
        transition: 0.25s ease;
    }

        .topbar-right a:hover {
            color: #fff;
        }

.topbar-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.14);
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    position: relative;
    z-index: 20;
    height: 92px;
    background: linear-gradient( 180deg, rgba(12,15,17,0.93), rgba(7,9,10,0.86) );
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-mark {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 13px;
    border: 1px solid rgba(57,191,245,0.48);
    background: linear-gradient( 145deg, rgba(57,191,245,0.12), rgba(255,255,255,0.015) );
    box-shadow: inset 0 0 18px rgba(57,191,245,0.05), 0 0 22px rgba(57,191,245,0.04);
    color: var(--accent);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

    .brand-copy strong {
        font-family: "Manrope", sans-serif;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: 0.12em;
        color: #fff;
    }

    .brand-copy span {
        margin-top: 6px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.32em;
        color: #778188;
    }


/* =========================================================
   NAVIGATION
========================================================= */

.nav-menu {
    display: contents;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2vw, 34px);
    margin-left: auto;
    margin-right: 36px;
}

    .nav-links a {
        position: relative;
        padding: 35px 0;
        color: #8d969c;
        font-size: 14px;
        font-weight: 600;
        transition: color 0.25s ease;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: #fff;
        }

            .nav-links a.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: 24px;
                height: 1px;
                background: var(--accent);
                box-shadow: 0 0 10px var(--accent);
            }


/* =========================================================
   QUOTE BUTTON
========================================================= */

.nav-quote {
    min-width: 168px;
    height: 46px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(57,191,245,0.38);
    background: linear-gradient( 135deg, rgba(57,191,245,0.12), rgba(57,191,245,0.035) );
    color: #dff6ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: 0.3s ease;
}

    .nav-quote:hover {
        color: #fff;
        border-color: rgba(57,191,245,0.8);
        background: rgba(57,191,245,0.16);
        box-shadow: 0 0 30px rgba(57,191,245,0.08);
    }

    .nav-quote .arrow {
        color: var(--accent);
        font-size: 19px;
    }


/* =========================================================
   MOBILE BUTTON
========================================================= */

.mobile-menu {
    position: relative;
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    margin-left: auto;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

    .mobile-menu span {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 18px;
        height: 1px;
        margin: 0;
        background: #fff;
        transition: transform 0.25s ease, background 0.25s ease;
    }

    .mobile-menu span:first-child {
        transform: translate(-50%, -4px);
    }

    .mobile-menu span:last-child {
        transform: translate(-50%, 4px);
    }

    .mobile-menu:focus-visible {
        outline: 1px solid #e64a19;
        outline-offset: 3px;
    }


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;
    min-height: calc(100vh - 130px);
    overflow: hidden;
}


/* GRID */

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: linear-gradient( rgba(255,255,255,0.035) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,0.035) 1px, transparent 1px );
    background-size: 74px 74px;
    mask-image: linear-gradient( to right, rgba(0,0,0,0.7), transparent 82% );
}


/* GLOWS */

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.hero-glow-one {
    width: 620px;
    height: 620px;
    right: -100px;
    top: 0;
    background: radial-gradient( circle, rgba(57,191,245,0.12), transparent 68% );
}

.hero-glow-two {
    width: 350px;
    height: 350px;
    left: 25%;
    bottom: -240px;
    background: radial-gradient( circle, rgba(57,191,245,0.07), transparent 70% );
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-inner {
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 190px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 100px;
}

.hero-content {
    max-width: 780px;
}


/* LABEL */

.hero-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #9ba4aa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

    .hero-label > span {
        width: 24px;
        height: 1px;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent);
    }

    .hero-label b {
        color: var(--accent);
        font-weight: 700;
    }


/* TITLE */

.hero h1 {
    margin: 0;
    max-width: 800px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(54px, 5.6vw, 90px);
    line-height: 0.99;
    font-weight: 800;
    letter-spacing: -0.055em;
    color: #fff;
}

    .hero h1 > span {
        color: #8d969b;
    }

    .hero h1 .accent-text {
        color: transparent;
        -webkit-text-stroke: 1px rgba(57,191,245,0.85);
        text-shadow: 0 0 30px rgba(57,191,245,0.08);
    }


/* DESCRIPTION */

.hero-description {
    max-width: 610px;
    margin: 30px 0 0;
    color: #8e989e;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

.button {
    height: 54px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.button-primary {
    color: #031014;
    background: linear-gradient( 135deg, #67d4ff, #2eb8ef );
    box-shadow: 0 8px 35px rgba(57,191,245,0.13);
}

    .button-primary:hover {
        color: #031014;
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(57,191,245,0.22);
    }

.button-secondary {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.025);
    color: #c8ced2;
}

    .button-secondary:hover {
        color: #fff;
        border-color: rgba(255,255,255,0.28);
        background: rgba(255,255,255,0.05);
    }


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 55px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

    .hero-stat strong {
        margin-bottom: 6px;
        color: #e8ecee;
        font-family: "Manrope", sans-serif;
        font-size: 17px;
        font-weight: 700;
    }

    .hero-stat span {
        color: #646e74;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

.stat-line {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.09);
}


/* =========================================================
   RIGHT INDUSTRIAL VISUAL
========================================================= */

.hero-visual {
    position: relative;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.machine-placeholder {
    position: relative;
    width: min(500px, 90%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(57,191,245,0.075), rgba(255,255,255,0.01) 42%, transparent 68% );
}

    .machine-placeholder::before {
        content: "";
        position: absolute;
        width: 62%;
        height: 62%;
        border: 1px solid rgba(255,255,255,0.07);
        transform: rotate(45deg);
    }

    .machine-placeholder::after {
        content: "";
        position: absolute;
        width: 44%;
        height: 44%;
        border: 1px solid rgba(57,191,245,0.18);
        transform: rotate(45deg);
    }

.machine-ring {
    position: absolute;
    border-radius: 50%;
}

.ring-one {
    inset: 5%;
    border: 1px solid rgba(255,255,255,0.06);
}

.ring-two {
    inset: 18%;
    border: 1px dashed rgba(57,191,245,0.16);
}

.machine-number {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: baseline;
}

    .machine-number span {
        margin-right: 8px;
        color: var(--accent);
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.16em;
    }

    .machine-number strong {
        color: rgba(255,255,255,0.95);
        font-family: "Manrope", sans-serif;
        font-size: 102px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.08em;
        text-shadow: 0 0 50px rgba(57,191,245,0.1);
    }

.machine-copy {
    position: absolute;
    right: 7%;
    bottom: 19%;
    display: flex;
    flex-direction: column;
    padding-left: 13px;
    border-left: 1px solid var(--accent);
}

    .machine-copy span {
        color: #667078;
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .machine-copy strong {
        margin-top: 5px;
        color: #b6bdc1;
        font-size: 13px;
        letter-spacing: 0.13em;
    }


/* =========================================================
   HERO BOTTOM
========================================================= */

.hero-bottom {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scroll-indicator,
.hero-side-note {
    color: #505a60;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 34px;
    height: 1px;
    background: #485158;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

    .nav-links {
        gap: 18px;
        margin-right: 22px;
    }

        .nav-links a {
            font-size: 13px;
        }

    .hero-inner {
        grid-template-columns: 1fr 0.7fr;
    }

    .hero-visual {
        height: 480px;
    }
}


@media (max-width: 980px) {

    .site-container {
        width: min(calc(100% - 40px), var(--container));
    }

    .navbar {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        z-index: 60;
        top: calc(100% + 1px);
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 8px;
        border: 1px solid rgba(255,255,255,0.1);
        border-top: 2px solid #e64a19;
        background: linear-gradient( 145deg, rgba(14,17,19,0.99), rgba(5,7,8,0.99) );
        box-shadow: 0 20px 55px rgba(0,0,0,0.58), 0 0 26px rgba(230,74,25,0.08);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transform-origin: top center;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    }

    .main-header.menu-open .nav-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .nav-menu .nav-links {
        width: 100%;
        display: grid;
        gap: 0;
        margin: 0;
    }

        .nav-menu .nav-links a {
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255,255,255,0.065);
            color: #b8c0c5;
            font-size: 14px;
            transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
        }

            .nav-menu .nav-links a:hover,
            .nav-menu .nav-links a:focus-visible,
            .nav-menu .nav-links a.active {
                padding-left: 23px;
                color: #fff;
                background: linear-gradient( 90deg, rgba(230,74,25,0.12), transparent 72% );
                outline: none;
            }

            .nav-menu .nav-links a.active::after {
                top: 50%;
                right: auto;
                bottom: auto;
                width: 3px;
                height: 18px;
                transform: translateY(-50%);
                background: #e64a19;
                box-shadow: 0 0 12px rgba(230,74,25,0.7);
            }

    .nav-menu .nav-quote {
        width: auto;
        min-width: 0;
        height: 48px;
        margin: 12px 10px 10px;
        padding: 0 16px;
        display: flex;
        border-color: rgba(230,74,25,0.48);
        background: linear-gradient( 135deg, rgba(230,74,25,0.16), rgba(230,74,25,0.04) );
        color: #fff;
    }

        .nav-menu .nav-quote:hover,
        .nav-menu .nav-quote:focus-visible {
            border-color: rgba(230,74,25,0.82);
            background: rgba(230,74,25,0.18);
            box-shadow: 0 0 28px rgba(230,74,25,0.12);
            outline: none;
        }

        .nav-menu .nav-quote .arrow {
            color: #e64a19;
        }

    .mobile-menu {
        display: block;
    }

    .main-header.menu-open .mobile-menu {
        border-color: rgba(230,74,25,0.72);
        background: rgba(230,74,25,0.08);
        box-shadow: 0 0 22px rgba(230,74,25,0.1);
    }

        .main-header.menu-open .mobile-menu span {
            background: #e64a19;
        }

        .main-header.menu-open .mobile-menu span:first-child {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .main-header.menu-open .mobile-menu span:last-child {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-visual {
        display: flex;
        width: 100%;
        height: 480px;
        margin-top: 35px;
    }

    .hero h1 {
        font-size: clamp(54px, 9vw, 78px);
    }
}


@media (max-width: 700px) {

    .topbar-left {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .main-header {
        height: 76px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .hero {
        min-height: calc(100vh - 114px);
    }

    .hero-inner {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 110px;
    }

    .hero-visual {
        height: 400px;
        margin-top: 30px;
    }

    .hero h1 {
        font-size: clamp(45px, 13vw, 64px);
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 310px;
    }

    .button {
        justify-content: space-between;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 45px;
    }

    .stat-line {
        display: none;
    }

    .hero-side-note {
        display: none;
    }
}


@media (max-width: 520px) {

    .site-container {
        width: calc(100% - 30px);
    }

    .hero-visual {
        height: 350px;
        margin-top: 25px;
    }

    .topbar-right a:last-child,
    .topbar-divider {
        display: none;
    }

    .hero-label {
        font-size: 10px;
    }

        .hero-label b {
            display: none;
        }
}



/* =========================================================
   INTERACTIVE CNC 3D STAGE
========================================================= */

.cnc-stage {
    position: relative;
    width: 100%;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* WHITE MODEL VIEWER */
    background: radial-gradient( circle at 50% 42%, #ffffff 0%, #f7f8f9 48%, #e9edef 100% );
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    isolation: isolate;
}


/* CANVAS */

#cncCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 3;
    cursor: grab;
    outline: none;
    touch-action: none;
}

    #cncCanvas:active {
        cursor: grabbing;
    }


/* DARK BLUE FLOOR LIGHT */

.cnc-floor-glow {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 45px;
    transform: translateX(-50%);
    width: 78%;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient( ellipse, rgba(0, 112, 165, 0.30) 0%, rgba(0, 112, 165, 0.14) 35%, rgba(0, 112, 165, 0.05) 55%, transparent 75% );
    filter: blur(18px);
    pointer-events: none;
}


/* LARGE BACK LIGHT */

.cnc-stage::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(16, 137, 186, 0.08), rgba(16, 137, 186, 0.025) 45%, transparent 70% );
    pointer-events: none;
}


/* INTERACTION LABEL */

.cnc-interaction-hint {
    position: absolute;
    z-index: 5;
    right: 15px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #68777f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    pointer-events: none;
}


/* MOUSE ICON */

.cnc-mouse-icon {
    position: relative;
    width: 15px;
    height: 21px;
    border: 1px solid rgba(66, 161, 199, 0.50);
    border-radius: 8px;
}

    .cnc-mouse-icon::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 4px;
        transform: translateX(-50%);
        width: 2px;
        height: 4px;
        border-radius: 2px;
        background: #1598cf;
        box-shadow: 0 0 5px rgba(21, 152, 207, 0.55);
    }


/* RESPONSIVE */

@media (max-width: 1180px) {

    .cnc-stage {
        min-height: 480px;
    }
}

@media (max-width: 980px) {

    .cnc-stage {
        height: 440px;
        min-height: 440px;
    }
}

@media (max-width: 700px) {

    .cnc-stage {
        height: 380px;
        min-height: 380px;
    }
}

@media (max-width: 520px) {

    .cnc-stage {
        height: 330px;
        min-height: 330px;
    }
}
