img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { overflow-x: hidden; width: 100%; max-width: 100vw; }
body {
    font-family: 'Noto Sans', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255,255,255,0.01) 100px, rgba(255,255,255,0.01) 200px),
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(147, 51, 234, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    animation: diagMove 60s linear infinite;
}

@keyframes diagMove {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 1000px 0, 0 0, 0 0, 0 0; }
}

h1, h2, h3, h4, .mega-header-brand {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

img, video { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); object-fit: cover; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* === PREMIUM TOKENS === */
:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #e2e8f0; /* Silver-steel accent */
  --accent-glow: rgba(226, 232, 240, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --carbon-pattern: repeating-linear-gradient(45deg, #050505 0px, #050505 2px, #080808 2px, #080808 4px);
}

/* === STRUCTURAL BASELINES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; width: 100%; }

/* === PAGE LAYOUT SCHEME: Top Mega-Header === */
.mega-header {
    background: var(--surface);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.mega-header-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.mega-header-brand {
    font-size: 2rem;
    color: var(--accent);
    text-transform: uppercase;
}

.mega-header-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.mega-header-search {
    position: relative;
    width: 100%;
}

.mega-header-search input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem 0.8rem 3rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    outline: none;
}

.mega-header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.mega-header-contact {
    text-align: right;
    font-size: 0.9rem;
}

.mega-header-socials {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.mega-header-socials a {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.mega-header-socials a:hover {
    color: var(--accent);
}

/* Floating Pill Nav */
.floating-pill-nav {
    position: absolute;
    top: 200px; /* Positioned within mega header area */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
    box-shadow: var(--shadow-glass);
}

.floating-pill-nav a {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.floating-pill-nav a:hover, .floating-pill-nav a.active {
    background: var(--glass-bg);
    color: var(--text);
}

/* Section Spacing Strategy: Tight-then-expand */
section { position: relative; border-bottom: 1px solid var(--glass-border); }
section:nth-of-type(1), section:nth-of-type(2), section:nth-of-type(3) { padding: 60px 0; }
section:nth-last-of-type(1), section:nth-last-of-type(2) { padding: 100px 0; }

/* Hero Style: Animated Text */
.hero-section {
    text-align: center;
    padding: 120px 0 80px 0 !important;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charIn 0.5s forwards;
}

@keyframes charIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Layout Archetype: Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.catalog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--carbon-pattern);
    opacity: 0.05;
    pointer-events: none;
}

/* Asymmetric two-column layout */
.asym-section .container {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.asym-35-65 { grid-template-columns: 35% 65%; }
.asym-70-30 { grid-template-columns: 70% 30%; }
.asym-40-60 { grid-template-columns: 40% 60%; }

@media (max-width: 1024px) {
    .asym-section .container { grid-template-columns: 1fr; }
}

/* Buttons: Gradient + Shimmer */
.btn-shimmer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-shimmer:hover::after {
    left: 120%;
}

/* Testimonials: Alternating */
.testimonial-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.testimonial-row.reverse { direction: rtl; }
.testimonial-row.reverse .testimonial-content { direction: ltr; }

.testimonial-img {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    filter: grayscale(1);
    transition: 0.5s;
}

.testimonial-row:hover .testimonial-img { filter: grayscale(0); }

/* Interactive: Cost Calculator */
.calc-container {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.calc-step { display: none; }
.calc-step.active { display: block; }

.calc-range {
    width: 100%;
    margin: 2rem 0;
    accent-color: var(--accent);
}

.calc-result {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 2rem;
}

/* Footer: Sticky Bottom Bar */
.footer-full {
    background: #020202;
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-sticky-bar {
    position: sticky;
    bottom: 0;
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 0;
    z-index: 1000;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links-row {
    display: flex;
    gap: 1.5rem;
}

.footer-links-row a:hover { color: var(--accent); }

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.5rem; }

/* Mobile Adaptivity */
@media (max-width: 768px) {
    .mega-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mega-header-contact, .mega-header-socials {
        text-align: center;
        justify-content: center;
    }

    .floating-pill-nav {
        position: fixed;
        bottom: 2rem;
        top: auto;
        width: 90%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .testimonial-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .testimonial-row.reverse { direction: ltr; }

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

    .footer-sticky-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    margin-top: 4rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(to right, #0a0a0a, #111);
    border-radius: var(--radius-lg);
    padding: 4rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text);
}

/* Menu Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .floating-pill-nav { display: none; }
    .floating-pill-nav.mobile-active { display: flex; }
}
