/* 
    Q•arz | Quantum Architecture Zero 
    Premium Design System 2.0 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-deep: #030305;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-tertiary: #ff00c8;
    
    --text-main: #f8f9fa;
    --text-dim: rgba(248, 249, 250, 0.6);
    --text-muted: rgba(248, 249, 250, 0.4);

    /* Shadows & Glows */
    --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 30px rgba(112, 0, 255, 0.3);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-deep);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background: transparent;
}

h1, h2, h3, h4, .font-space {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 10rem 0;
    position: relative;
}

/* --- Premium Background Elements --- */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #0a0a14 0%, var(--bg-deep) 100%);
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    pointer-events: none;
    animation: move-orb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-primary);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-secondary);
    bottom: -15%;
    left: -10%;
    animation-delay: -5s;
}

.bg-core-wrap {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    filter: saturate(1.4) contrast(1.1) brightness(1.2);
    /* Radial mask to hide square edges */
    -webkit-mask-image: radial-gradient(circle, black 20%, transparent 60%);
    mask-image: radial-gradient(circle, black 20%, transparent 60%);
}

.bg-core {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    animation: core-float 25s infinite ease-in-out;
}

@keyframes core-float {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-40px) scale(1.05) rotate(5deg); opacity: 0.6; }
}

.grid-field {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.logo span {
    color: var(--accent-primary);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-nav:hover {
    background: var(--text-main);
    color: var(--bg-deep);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    text-align: center;
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 2.5rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--text-main);
    color: var(--bg-deep);
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* --- About & Stats --- */
.about-grid {
    display: grid;
    grid-template-cols: 1.2fr 1fr;
    gap: 10rem;
    align-items: center;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-cols: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: all 0.5s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.stat-val {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent-primary);
}

/* --- Focus Areas (Flow Layout) --- */
.focus-header {
    text-align: center;
    margin-bottom: 6rem;
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.focus-row {
    display: grid;
    grid-template-cols: 1fr 3fr;
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    gap: 4rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.focus-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.focus-row i {
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

.focus-row h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.focus-row p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 800px;
}

/* --- Products (Dynamic Cards) --- */
.product-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    position: relative;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.product-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- CTA Section --- */
.cta {
    padding-bottom: 10rem;
}

.cta-box {
    padding: 8rem 4rem;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1) 0%, rgba(0, 240, 255, 0.1) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.2;
    pointer-events: none;
}

.cta-box h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
    letter-spacing: -3px;
}

.btn-glow {
    position: relative;
    padding: 1.5rem 4rem;
    background: #fff;
    color: #000;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.4);
    transition: transform 0.3s;
}

.btn-glow:hover {
    transform: scale(1.05);
}

/* --- Footer --- */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.copyright {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .about-grid { grid-template-cols: 1fr; gap: 4rem; }
    .product-grid { grid-template-cols: 1fr 1fr; }
    .focus-row { grid-template-cols: 1fr; padding: 2.5rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    .product-grid { grid-template-cols: 1fr; }
    .cta-box h2 { font-size: 3rem; }
}