/* 
   HYBOX RESONANCE SYSTEM v.06 
   Visual Language: High-Tier Minimalist / Mobile-First / Product-Driven
*/

:root {
    /* Color Palette - Light Mode */
    --bg: #f2efeb;
    --surface: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666;
    --accent: #000;
    --border: rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.5);
    --gr-1: linear-gradient(30deg,#F2F2F2,#D08072, #FFBB95);
    /* Layout Variables */
    --radius: 30px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg: #0d0d0d;
    --surface: #1a1a1a;
    --text: #f2efeb;
    --text-muted: #888;
    --accent: #fff;
    --border: rgba(255, 255, 255, 0.12);
    --glass: rgba(0, 0, 0, 0.5);
}

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5vw;
}

h1, h2, h3 {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    line-height: 1.1; /* Prevents text overlap */
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.hidden { display: none !important; }
.no-save { pointer-events: none; -webkit-user-drag: none; }

/* 2. NAVIGATION (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    font-family: 'Archivo Black';
}

.nav-logo span { color: var(--text-muted); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.nav-item:hover { opacity: 1; }

.nav-btn {
    background: var(--accent);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* 3. HERO SECTION (Resonance UI) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
      background:
    var(--gr-1), url(img/noise.svg);

}

.hero-bg-text {
    position: absolute;
    z-index: 1;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.giant-text {
    font-size: clamp(6rem, 20vw, 16rem);
    letter-spacing: -8px;
    opacity: 0.05;
    line-height: 0.8;
}

.giant-text.outline {
    -webkit-text-stroke: 1.5px var(--text);
    color: transparent;
    opacity: 0.1;
    margin-top: 20px;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.hero-img-box {
    width: 80vw;
    max-width: 650px;
    filter: drop-shadow(0 40px 100px rgba(0,0,0,0.12));
    transform: translateY(20px);
    margin-top: 50%;
}

.hero-img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
}

.hero-copy { max-width: 600px; padding: 0 20px; }
.hero-subtitle { font-size: 0.65rem; font-weight: 900; letter-spacing: 4px; color: var(--text-muted); margin-bottom: 15px; }
.hero-headline { font-size: clamp(2.2rem, 5.5vw, 4.5rem); margin-bottom: 30px; letter-spacing: -2.5px; line-height: 0.95; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; }

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

.btn-secondary {
    border: 1.5px solid var(--text);
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* 4. TECH MARQUEE */
.tech-marquee {
    background: var(--accent);
    color: var(--bg);
    padding: 1.75rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.marquee-content span { margin: 0 40px; }
@keyframes marquee { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
}

/* 5. VISION SECTION */
.vision-section { padding: 140px 0;
}
.vision-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.label { font-size: 0.7rem; font-weight: 900; letter-spacing: 3px; color: var(--text-muted); display: block; margin-bottom: 25px; }
.section-title { font-size: clamp(2.8rem, 6.5vw, 5.5rem); margin-bottom: 40px; }
.large-p { font-size: 1.8rem; font-weight: 400; line-height: 1.3; margin-bottom: 35px; letter-spacing: -0.5px; }
.standard-p { font-size: 1.15rem; color: var(--text-muted); max-width: 550px; }

/* 6. TEAM CAROUSEL (Architecture) */
.team-section { padding-bottom: 140px; overflow: hidden; }
.carousel-wrap { position: relative; margin-top: 60px; }
.team-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}
.team-carousel::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.team-card {
    min-width: 320px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 35px;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    transition: var(--transition);
}

.team-card{
  min-width: 320px;
}


.team-card:hover { transform: translateY(-10px); }
.team-avatar { width: 100%; aspect-ratio: 1; border-radius: 20px; margin-bottom: 25px; object-fit: cover; background: var(--bg); }
.team-card h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* 7. PRODUCT PREVIEW */
.product-preview { padding: 120px 0; background: var(--surface); }
.preview-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 70px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 35px; }
.text-link { font-weight: 800; font-size: 0.9rem; text-decoration: underline; }

.preview-card {
    height: 480px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.preview-card:hover .card-overlay { opacity: 1; }

/* 8. STATS BAR */
.stats-bar { padding: 90px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-num { font-size: 4.5rem; margin-bottom: 8px; font-family: 'Archivo Black'; }
.stat-label { font-size: 0.85rem; font-weight: 800; opacity: 0.5; text-transform: uppercase; }

/* 9. LIAISON CTA */
.liaison-cta { padding: 120px 0; }
.glass-box {
    background: var(--glass);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(40px);
    border-radius: 45px;
    padding: 70px;
}

.teaser-content { display: flex; align-items: center; gap: 70px; }
.zavia-avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); }
.teaser-text h3 { font-size: 2.8rem; margin-bottom: 20px; }
.teaser-text p { margin-bottom: 35px; opacity: 0.7; font-size: 1.25rem; max-width: 500px; }

/* 10. CONTACT SECTION */
.contact-section { padding: 150px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; }
.social-row { display: flex; gap: 25px; margin-top: 40px; font-size: 1.8rem; opacity: 0.6; }

.contact-form-box { background: var(--surface); padding: 55px; border-radius: var(--radius); border: 1px solid var(--border); }
.form-group { margin-bottom: 30px; }

input, textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 22px;
    border-radius: 18px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus { border-color: var(--accent); background: var(--surface); }
textarea { height: 160px; resize: none; }

.submit-btn {
    width: 100%;
    padding: 22px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

/* 11. FOOTER */
.footer { padding: 120px 0 60px; background: var(--accent); color: var(--bg); }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 110px; }
.footer-links { display: flex; gap: 120px; }
.footer-col h4 { margin-bottom: 25px; opacity: 0.4; font-size: 0.75rem; letter-spacing: 2px; }
.footer-col a { display: block; margin-bottom: 14px; font-weight: 600; opacity: 0.7; font-size: 0.95rem; }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
    padding-top: 45px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.4;
}

.mode-pill {
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 800;
}

/* 12. MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .vision-grid, .contact-wrap { grid-template-columns: 1fr; gap: 60px; }
    .footer-top { flex-direction: column; gap: 70px; }
    .teaser-content { flex-direction: column; text-align: center; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { height: auto; padding: 140px 0 80px; }
    .giant-text { display: none; }
    .hero-img-box { width: 100%; margin-top: 10%;}
    .large-p { font-size: 1.5rem; }
    .stats-grid { flex-direction: column; gap: 50px; }
    .stat-num { font-size: 3.5rem; }
}

/* 13. UTILS (Animations) */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* 14. 404 & ERROR OVERRIDES */
.error-page { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 10rem; font-family: 'Archivo Black'; line-height: 1; margin-bottom: 10px; }
