/* ============================================================
   Avante — shared page theme
   Keeps fonts, heading sizes, buttons and background colours
   on every page consistent with index.html.
   Linked from every page except index.html (which is the reference).
   ============================================================ */

/* Background navy, as on index.html */
:root {
    --navy: #040b15;
    --navy-mid: #0a1323;
}

/* One font family everywhere (code keeps its monospace font; icon fonts are left alone) */
body {
    font-family: 'Space Grotesk', sans-serif;
}

body :where(h1, h2, h3, h4, h5, h6, p, a, span, li, button, input, textarea, select, label, div, td, th, strong, em, small, blockquote, dt, dd, figcaption):not(i):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: 'Space Grotesk', sans-serif !important;
}

body :where(code, pre, kbd, samp, .font-mono, [class*="mono"]),
body :where(code, pre) * {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

/* Section headings, as on index.html ("One Composable Platform." / section headings) */
body .ty-hero,
body .ty-section {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(36px, 5.2vw, 56px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.05 !important;
}

@media (max-width: 768px) {
    body .ty-hero,
    body .ty-section {
        font-size: 32px !important;
    }
}

/* Text directly below a section heading, as on index.html */
body .sub-lead {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(15px, 1.8vw, 20px) !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    line-height: 1.55 !important;
}

@media (max-width: 768px) {
    body .sub-lead {
        font-size: 15px !important;
    }
}

/* Section spacing, as on index.html: top section (hero) and content sections */
.sec-hero {
    padding-top: 118px !important;
    padding-bottom: 24px !important;
}

.sec-std {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

@media (min-width: 640px) {
    .sec-hero {
        padding-top: 138px !important;
        padding-bottom: 48px !important;
    }

    .sec-std {
        padding-top: 56px !important;
        padding-bottom: 56px !important;
    }
}

@media (min-width: 1024px) {
    .sec-std {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }
}

.ty-item {
    font-size: clamp(1.35rem, 1.95vw, 1.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.22 !important;
}

/* Contact form buttons (their class names drive the form script, so they are restyled here) */
.send-btn {
    border-radius: 12px !important;
    background: linear-gradient(to bottom, #06b6d4, #2563eb) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, .2), 0 4px 6px -4px rgba(6, 182, 212, .2) !important;
}

.reset-btn {
    padding: 16px 28px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, .05) !important;
}

/* Navbar, exactly as on index.html (same background whether or not the page is scrolled) */
#navbar,
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    #navbar {
        padding: 0 1rem !important;
    }
}

#navbar .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
}

#navbar .hamburger:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

#navbar .hamburger span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    margin: 0 !important;
    background: white !important;
    border-radius: 2px !important;
    position: relative !important;
}

@media (min-width: 1024px) {
    #navbar .hamburger {
        display: none !important;
    }
}

#navbar .hamburger span {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    opacity: 1 !important;
}

#navbar .hamburger span:nth-child(1) { transform: translateY(-6px) !important; }
#navbar .hamburger span:nth-child(2) { transform: none !important; }
#navbar .hamburger span:nth-child(3) { transform: translateY(6px) !important; }

#navbar .hamburger.active span:nth-child(1) { transform: translateY(2px) rotate(45deg) !important; }
#navbar .hamburger.active span:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
#navbar .hamburger.active span:nth-child(3) { transform: translateY(-2px) rotate(-45deg) !important; }

/* Page and section background, as on index.html (layer added by site-theme.js to sections that don't have it) */
body.av-page {
    background: #040b15 !important;
}

.av-sec {
    isolation: isolate;
    background: #040b15 !important;
}

.av-sec-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    contain: paint;
    pointer-events: none;
}

.av-glow-a,
.av-glow-b {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 9999px;
    filter: blur(140px);
}

.av-glow-a { top: -160px; left: -160px; background: rgba(6, 182, 212, 0.15); }
.av-glow-b { bottom: -160px; right: -160px; background: rgba(37, 99, 235, 0.15); }

.av-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
    background-size: 70px 70px;
}

.av-hide-bg,
#cursorGlow {
    display: none !important;
}

/* Mouse pointer over the hero, as on index.html */
.av-hero-cursor { cursor: none; }

.custom-cursor {
    position: fixed; width: 20px; height: 20px;
    border: 2px solid rgba(111, 166, 255, 0.8); border-radius: 50%;
    pointer-events: none; z-index: 99999;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s, opacity 0.2s;
    transform: translate(-50%, -50%);
}

.custom-cursor.hovering {
    width: 50px; height: 50px;
    border-color: rgba(46, 91, 255, 0.6); background: rgba(46, 91, 255, 0.1);
}

.cursor-dot {
    position: fixed; width: 6px; height: 6px;
    background: linear-gradient(135deg, #6FA6FF, #2E5BFF); border-radius: 50%;
    pointer-events: none; z-index: 99999; transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(111, 166, 255, 0.8);
    transition: opacity 0.2s;
}

.cursor-trail { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99998; transition: opacity 0.2s; }

.trail-dot {
    position: absolute; width: 4px; height: 4px;
    background: rgba(111, 166, 255, 0.5); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none;
}

@media (max-width: 768px) {
    .custom-cursor, .cursor-dot, .cursor-trail { display: none; }
    .av-hero-cursor { cursor: auto; }
}


/* Top sections with arc artwork: compact, with index.html's top-section spacing */
body .sec-hero-art {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    padding: 118px 20px 24px !important;
}

body .sec-hero-art .h-content,
body .sec-hero-art .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    z-index: 3 !important;
}

body .sec-hero-art > .relative.z-10 {
    padding-top: 0 !important;
}

body .sec-hero-art .h-content > :last-child,
body .sec-hero-art .hero-content > :last-child,
body .sec-hero-art > .relative.z-10 > :last-child {
    margin-bottom: 0 !important;
}

@media (min-width: 640px) {
    body .sec-hero-art {
        padding: 138px 24px 48px !important;
    }
}

/* Desktop menu spacing: one fixed gap on every page, independent of the Tailwind CDN, so labels are spaced the same before/after the menu script runs and on the hosted site */
@media (min-width:1024px){
  #navbar .hidden.lg\:flex{display:flex!important;align-items:center!important;gap:1.1rem!important;flex-wrap:nowrap!important}
  #navbar .hidden.lg\:flex>.nav-link,#navbar .hidden.lg\:flex>.nav-dd{flex:0 0 auto;margin:0!important;white-space:nowrap}
  #navbar .hidden.lg\:flex .nav-link{padding:8px 0!important;font-size:.9375rem;font-weight:500;letter-spacing:normal;line-height:1.5rem}
  #navbar .hidden.lg\:flex .nav-dd-btn{padding:8px 0!important;margin:0!important;border:0;background:transparent}
}
@media (min-width:1280px){ #navbar .hidden.lg\:flex{gap:2.75rem!important} #navbar .hidden.lg\:flex .nav-link{font-size:1rem} }
@media (min-width:1536px){ #navbar .hidden.lg\:flex{gap:3.5rem!important} }
