@import url('variables.css');

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 170, 0.12), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(0, 102, 204, 0.25), transparent 55%);
    z-index: -2;
}

.primary-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1200;
    background: rgba(3, 14, 32, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-header.is-compact {
    background: rgba(3, 14, 32, 0.96);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.primary-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0090FF, #003B79);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.3rem;
}

.brand__title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

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

.nav-link {
    font-size: 0.95rem;
    color: rgba(243, 246, 255, 0.85);
    position: relative;
    padding-bottom: 0.3rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4AA, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--animate-speed-fast);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.nav-item {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    background: rgba(3, 14, 32, 0.95);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    min-width: 220px;
    display: grid;
    gap: 0.6rem;
    transition: transform var(--animate-speed-fast);
}

.nav-item:hover .sub-menu {
    transform: translateX(-50%) scaleY(1);
}

.sub-menu a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    transition: transform var(--animate-speed-fast);
}

main {
    padding-top: calc(var(--header-height) + 1rem);
}

.side-quick-nav {
    position: fixed;
    top: 120px;
    right: 24px;
    width: var(--side-nav-width);
    background: rgba(2, 10, 26, 0.85);
    border-radius: 35px;
    padding: 0.8rem 0.3rem;
    backdrop-filter: blur(10px);
    z-index: 1100;
    box-shadow: var(--shadow-soft);
}

.side-quick-nav__toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 600;
    margin: 0 auto 0.6rem auto;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.side-quick-nav__items {
    display: grid;
    gap: 0.4rem;
}

.side-quick-nav__link {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9FB4E1;
    font-size: 0.65rem;
    text-align: center;
    padding: 0.3rem;
    writing-mode: vertical-rl;
    transition: background var(--animate-speed-fast), color var(--animate-speed-fast), width var(--animate-speed-fast);
}

.side-quick-nav__link:hover,
.side-quick-nav__link.active {
    background: rgba(0, 212, 170, 0.15);
    border-color: rgba(0, 212, 170, 0.6);
    color: #fff;
}

.side-quick-nav.expanded {
    width: 190px;
    padding-inline: 0.75rem;
}

.side-quick-nav.expanded .side-quick-nav__link {
    writing-mode: horizontal-tb;
    font-size: 0.8rem;
}

.hero {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 3.25rem);
    align-items: center;
    background: var(--gradient-digital);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 65% 20%, rgba(0, 212, 170, 0.18), transparent 65%);
    z-index: 0;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 6vw, 4rem);
}

.hero-title {
    font-size: var(--font-size-display);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title em {
    color: var(--color-secondary);
    font-style: normal;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin-top: 1.2rem;
}

.stat-tile {
    padding: 1.05rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-tile__label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.stat-tile__value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.35rem;
}

.stat-tile__meta {
    color: var(--color-muted);
    margin-top: 0.35rem;
    font-size: 0.95rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.hero-meta__item {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta__value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.hero-visual .dual-screen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dual-screen__panel {
    min-height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
}

.dual-screen__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.dual-screen__panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.35));
}

.data-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.data-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.45);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.65);
    animation: floatParticle 10s linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateY(-120vh) scale(1.4); opacity: 0; }
}

.data-board {
    background: rgba(3, 19, 44, 0.85);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.data-board__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.data-board__item {
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.data-board__label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
}

.data-board__value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent);
}

.product-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(0, 212, 170, 0.6);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.25);
}

.product-card__texture {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--animate-speed-base);
    mix-blend-mode: screen;
}

.product-card:hover .product-card__texture {
    opacity: 0.4;
}

.floating-inquiry {
    position: fixed;
    right: 32px;
    bottom: 32px;
    background: #00B094;
    color: #fff;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    z-index: 1400;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.footer {
    background: #020913;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.65);
}

.footer .grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.page-transition {
    position: fixed;
    inset: 0;
    background: var(--gradient-fabric);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(-100%);
}

.page-transition.active {
    animation: shuttleSlide 0.9s forwards;
}

.fiber-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.8), rgba(0, 212, 170, 0));
    pointer-events: none;
    mix-blend-mode: screen;
    transform: translate3d(-50%, -50%, 0);
    transition: transform 0.12s linear;
    z-index: 2500;
}

@keyframes shuttleSlide {
    0% { transform: translateX(-100%); }
    40% { transform: translateX(0); }
    60% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
