:root {
    --bg: #f9fafe;
    --bg-soft: #ffffff;
    --text: #1b1e21;
    --muted: rgb(77, 91, 124);
    --primary: #ff0030;
    --primary-600: #e01319;
    --accent: #1b1e21;
    --brand-blue: #6090f0;
    --card: #ffffff;
    --line: rgba(0,0,0,0.08);
    --radius: 14px;
    --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container, .media-container, .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }

/* Header */
header { background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); position: fixed; left: 0; right: 0; top: 0; z-index: 40; box-shadow: 0 0 16px rgba(0,0,0,0.05); }
nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; width: 80%; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo .description span { color: var(--text); font-size: 12px; }
.navbar .navbar-nav { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.navbar .nav-link { color: var(--text); opacity: 0.9; padding: 6px 8px; border-radius: 8px; position: relative; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.navbar .nav-link:hover { opacity: 1; }
.navbar .nav-link::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; background: linear-gradient(90deg, rgba(96,144,240,0), rgba(96,144,240,1), rgba(96,144,240,0)); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.navbar .nav-link:hover::after { transform: scaleX(1); }
.menu a { color: #ffffff; text-decoration: none; }
.menu a:hover { color: #6090f0; }
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > .nav-link { position: relative; }
.nav-item.has-dropdown > .nav-link:after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; }
.nav-item .dropdown:before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(16,24,40,0.12); z-index: 1000; opacity: 0; transform: translateY(6px); visibility: hidden; transition: opacity .18s ease, transform .2s ease, visibility 0s linear .2s; }
.nav-item .dropdown.mega { display: none; white-space: nowrap; padding: 12px; }
.nav-item .dropdown .group { display: inline-flex; flex-direction: column; vertical-align: top; padding: 4px 12px; min-width: 220px; }
.nav-item .dropdown .group .title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 6px; }
.nav-item .dropdown li { list-style: none; }
.nav-item .dropdown a { display: flex; align-items: center; gap: 6px; padding: 6px 8px; color: var(--text); border-radius: 8px; }
.nav-item .dropdown a:hover { background: #f4f6fb; }
.nav-item.has-dropdown:hover .dropdown, .nav-item .dropdown:hover { display: block; opacity: 1; transform: translateY(0); visibility: visible; transition-delay: 0s; }

/* Compact nav icons */
.nav-icon { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; color: var(--muted); }
.nav-icon svg { width: 16px; height: 16px; display: block; stroke: currentColor; fill: none; stroke-width: 1.8; }
.navbar .nav-link:hover .nav-icon { color: var(--brand-blue); transform: translateY(-1px); transition: color .15s ease, transform .2s cubic-bezier(.16,1,.3,1); }
.nav-text { white-space: nowrap; }

/* Dropdown icon hover */
.nav-item .dropdown a:hover .nav-icon { color: var(--brand-blue); }

/* Mobile menu section titles */
.menu .mobile-title { color: #b0b0b0; padding: 8px 0 0; margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.separator { display: inline-block; width: 1px; height: 18px; background: var(--line); margin: 0 8px; align-self: center; }
/* Mobile nav */
.toggler { position: absolute; left: -9999px; }
.hamburger { display: none; width: 28px; height: 24px; align-items: center; justify-content: center; cursor: pointer; }
.hamburger > div, .hamburger > div::before, .hamburger > div::after { content: ""; display: block; height: 2px; width: 24px; background: var(--text); border-radius: 2px; position: relative; }
.hamburger > div::before { position: absolute; top: -7px; }
.hamburger > div::after { position: absolute; top: 7px; }
.menu { display: none; position: absolute; top: 44px; left: 0; right: 0; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); border-top: 1px solid rgba(255,255,255,0.1); }
.menu ul { list-style: none; margin: 0; padding: 12px 20px; display: grid; gap: 8px; }
.toggler:checked ~ .menu { display: block; }

/* Hero */
.main-section { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); margin-top: 44px; }
.main-section .container { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 32px; }
.main-section h1 { margin: 0 0 12px; font-size: 40px; line-height: 1.2; letter-spacing: -0.02em; }
.main-section p { color: var(--muted); margin: 0 0 24px; max-width: 56ch; }
.main-section button { background: var(--primary); color: #fff; border: 0; border-radius: 20px; padding: 14px 22px; cursor: pointer; box-shadow: 0px 0px 50px 0px rgba(93, 93, 93, 0.27); }
.main-section button:hover { background: var(--primary-600); }
.hero-illustration { 
    width: 100%; 
    aspect-ratio: 4/3; 
    position: relative; 
    overflow: visible; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}

.hero-illustration canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.hero-illustration::after {
    display: none;
}

/* Full page background canvas */
#pageBackgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Hero section focus effect */
.main-section {
    position: relative;
    z-index: 1;
    border-radius: 0;
    overflow: visible;
}

.main-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background: radial-gradient(
        ellipse at center,
        rgba(96, 144, 240, 0.08) 0%,
        rgba(96, 144, 240, 0.04) 30%,
        rgba(96, 144, 240, 0.02) 60%,
        transparent 100%
    );
    border-radius: 0;
    z-index: -1;
    pointer-events: none;
}

/* Services */
.services-section { padding: 24px 0 70px 0; }
.services-section h2 { font-weight: 700; font-size: 32px; margin: 0 20px 24px; }
.services-section .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.services-section .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; }
.services-section .card:hover { transform: translateY(-2px); }
.services-section .card a { color: inherit; display: block; }
.services-section .icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--brand-blue); }
.services-section h4 { margin: 12px 0 6px; font-size: 16px; }
.services-section p { margin: 0; color: var(--muted); }
.services-section .background { position: absolute; inset: 0; pointer-events: none; }
.services-section .line { position: absolute; height: 1px; left: 12px; right: 12px; background: var(--line); }
.services-section .line-1 { top: 40%; } .services-section .line-2 { top: 60%; } .services-section .line-3 { bottom: 12px; }
/* disable legacy visual noise */
.services-section .shine, .services-section .tiles, .services-section .tile, .services-section .line, .services-section .background { display: none !important; }

/* SEO blocks (left aligned) */
.seo-section h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.01em; }
.seo-section p { margin: 0 0 10px; color: var(--muted); }
.seo-section ul { margin: 12px 0 16px; padding-left: 18px; color: var(--text); }
.seo-section .cta { text-align: left; }
.seo-section .cta button { background: var(--primary); color: #fff; border: 0; border-radius: 20px; padding: 12px 18px; cursor: pointer; box-shadow: 0 0 50px 0 rgba(93,93,93,0.27); font-size: 16px; }
.seo-section .cta button:hover { background: var(--primary-600); }
.seo-section .cta button span { display: inline-block; position: relative; transition: 0.3s; }
.seo-section .cta button span:after { content: "\00bb"; position: absolute; opacity: 0; top: 0; right: -16px; transition: 0.3s; }
.seo-section .cta button:hover span { padding-right: 20px; }
.seo-section .cta button:hover span:after { opacity: 1; right: 0; }
.seo-section .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.seo-section .faq summary { cursor: pointer; font-weight: 600; }

/* Popular links */
.popular-links h2, .popular-links h3 { margin: 0 0 12px; }
.popular-links ul { list-style: none; padding: 0; margin: 0 0 16px; columns: 2; gap: 24px; }
.popular-links li { break-inside: avoid; padding: 6px 0; }

/* Media */
.in-media .cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.in-media .media-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.in-media .card-title { font-size: 14px; margin: 0; padding: 12px; }
.in-media .card-content { padding: 0 12px 12px; color: var(--muted); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(12px) scale(0.996); transition: opacity .4s ease, transform .5s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Card micro-interactions */
.services-section .icon svg { transition: transform .2s ease; }
.services-section .card:hover .icon svg { transform: translateY(-2px); }
.services-section .card { transition: transform .2s ease, box-shadow .2s ease; }
.services-section .card:hover { box-shadow: 0 10px 30px rgba(16,24,40,0.12); }

/* Hero parallax */
.hero-illustration { transition: transform .3s ease; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.01); }

/* About */
.about h2 { margin: 0 0 10px; }
.about p { color: var(--muted); }

/* Footer */
footer { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); color: #ffffff; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 50px 0 30px 0; }
.footer-logo img { height: 20px; filter: brightness(0) invert(1); }
 .footer-tagline { color: #6090f0; font-size: 12px; margin-left: 8px; }
 .footer-description { color: #b0b0b0; }
.footer-social { display: flex; gap: 10px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.footer-section h6 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #ffffff; position: relative; }
.footer-section h6::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 30px; height: 2px; background: #6090f0; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section a { color: #b0b0b0; opacity: 1; }
.footer-section a:hover { color: #6090f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 10px; color: #888888; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
    nav { width: 100%; padding: 0 12px; }
    .navbar { display: none; }
    .hamburger { display: inline-flex; position: absolute; top: 0; right: 0; height: 33px; width: 40px; padding: 0.6rem; align-items: center; justify-content: center; cursor: pointer; z-index: 49; }
    .toggler { display: block; position: absolute; left: auto; right: 0; top: 0; width: 50px; height: 46px; z-index: 50; opacity: 0; }
    .main-section .container { grid-template-columns: 1fr; padding: 0 20px; }
    .hero-illustration { order: -1; }
    .hero-illustration canvas { width: 100%; height: 100%; }
    .services-section .grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .in-media .cards { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    section { padding: 40px 0; }
    .main-section h1 { font-size: 32px; }
    .popular-links ul { columns: 1; padding: 0 16px; }
    .services-section .grid { grid-template-columns: 1fr; gap: 12px; padding: 0 16px; }
    .menu { position: fixed; top: 44px; bottom: 0; left: 0; right: 0; overflow-y: auto; }
    .menu ul { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


