/* Defines global design variables and theme tokens. */
:root {
    --ColorBackground: #050505;
    --ColorSurfaceDark: #090909;
    --ColorSurfaceCard: #101010;
    --ColorSurfaceElevated: #151515;
    --ColorBorderSubtle: rgba(255, 255, 255, 0.10);
    --ColorBorderHover: rgba(255, 255, 255, 0.20);
    --ColorTextLight: #ffffff;
    --ColorTextMuted: #909090;
    --ColorTextFaint: #ababab;
    --ColorAmberGlow: rgba(245, 165, 15, 0.60);
    --ColorAmberSoft: rgba(245, 165, 15, 0.10);
    --ColorAmberSolid: rgb(245, 165, 15);
    --ColorGreenLive: rgb(15, 195, 95);
    --FontMain: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --FontMono: monospace;
    --RadiusSmall: 5px;
    --RadiusMedium: 10px;
    --RadiusLarge: 15px;
    --RadiusCard: 20px;
    --RadiusPill: 9999px;
    --TransitionNormal: 0.30s ease;
    --TransitionFast: 0.20s ease;
    --GridPatternSize: 50px;
    --GridPatternColor: rgba(255, 255, 255, 0.05);
    --GridAccentSize: 150px;
    --GridAccentColor: rgba(255, 255, 255, 0.09);
    --GridDotColor: rgba(255, 255, 255, 0.15);
    --GridSpotlightGlow: rgba(5, 155, 250, 0.15);
    --GridSpotlightRadius: 350px;
    --FontSizeMicro: 11px;
    --FontSizeSmall: 13px;
    --FontSizeBody: 15px;
    --FontSizeSubheading: 17px;
    --FontSizeMedium: 23px;
    --FontSizeTitleSmall: 25px;
    --FontSizeTitleMedium: 30px;
    --FontSizeTitleLarge: 35px;
}

/* Resets default margin and enforces border-box sizing. */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Sets base page typography, smooth scrolling, and scroll offset for sticky navbar. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Styles the document root body and global canvas. */
.BodyRoot {
    background-color: var(--ColorBackground);
    color: var(--ColorTextLight);
    font-family: var(--FontMain);
    line-height: 1.50;
    min-height: 100vh;
    overflow-x: clip;
}

/* Animates the ambient breathing luminosity of the grid matrix. */
@keyframes GridBreathingAnimation {
    0% {
        opacity: 0.70;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.70;
    }
}

/* Renders the multi-layer geometric grid matrix with intersection nodes and parallax drift. */
.SubtleGridLayout {
    animation: GridBreathingAnimation 10s ease-in-out infinite;
    background-image:
        radial-gradient(circle 1px at 0 0, var(--GridDotColor) 1px, transparent 1px),
        linear-gradient(to right, var(--GridAccentColor) 1px, transparent 1px),
        linear-gradient(to bottom, var(--GridAccentColor) 1px, transparent 1px),
        linear-gradient(to right, var(--GridPatternColor) 1px, transparent 1px),
        linear-gradient(to bottom, var(--GridPatternColor) 1px, transparent 1px);
    background-position:
        center calc(0px + var(--ParallaxOffsetY, 0px)),
        center calc(0px + var(--ParallaxOffsetY, 0px)),
        center calc(0px + var(--ParallaxOffsetY, 0px)),
        center top,
        center top;
    background-size:
        var(--GridPatternSize) var(--GridPatternSize),
        var(--GridAccentSize) var(--GridAccentSize),
        var(--GridAccentSize) var(--GridAccentSize),
        var(--GridPatternSize) var(--GridPatternSize),
        var(--GridPatternSize) var(--GridPatternSize);
    height: 100%;
    inset: 0;
    mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.30) 60%, rgba(0, 0, 0, 0.05) 90%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.30) 60%, rgba(0, 0, 0, 0.05) 90%, transparent 100%);
    pointer-events: none;
    position: fixed;
    width: 100%;
    z-index: 0;
}

/* Renders the interactive cursor-reactive spotlight across the background matrix. */
.GridSpotlight {
    background: radial-gradient(circle var(--GridSpotlightRadius) at var(--MouseX, 50%) var(--MouseY, 30%),
            var(--GridSpotlightGlow) 0%,
            rgba(5, 155, 250, 0.03) 50%,
            transparent 80%);
    height: 100%;
    inset: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.30s ease;
    width: 100%;
    z-index: 1;
}

/* Renders the reactive hover glow beam inside interactive cards. */
.FeatureCard::before,
.ProductCard::before,
.BlogSpotlightCard::before,
.BlogCard::before,
.BlogPortalCard::before {
    background: radial-gradient(350px circle at var(--CardMouseX, 50%) var(--CardMouseY, 50%),
            rgba(5, 155, 250, 0.25) 0%,
            rgba(5, 155, 250, 0.05) 40%,
            transparent 70%);
    border-radius: inherit;
    content: "";
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.30s ease;
    z-index: 1;
}

/* Reveals reactive hover beam when mouse enters card bounds. */
.FeatureCard:hover::before,
.ProductCard:hover::before,
.BlogSpotlightCard:hover::before,
.BlogCard:hover::before,
.BlogPortalCard:hover::before {
    opacity: 1.0;
}

/* Suppresses the card hover beam when cursor hovers over an image asset. */
.FeatureCard:has(img:hover)::before,
.ProductCard:has(img:hover)::before,
.BlogSpotlightCard:has(img:hover)::before,
.BlogCard:has(img:hover)::before,
.BlogPortalCard:has(img:hover)::before,
.ProductCard:has(.CardThumbnailWrapper:hover)::before,
.BlogSpotlightCard:has(.SpotlightVisualContainer:hover)::before,
.BlogCard:has(.BlogThumbnailWrapper:hover)::before {
    opacity: 0;
}

/* Suppresses ambient cursor spotlight when cursor hovers over any image element. */
body:has(img:hover) .GridSpotlight,
body:has(.ShowcaseImageWrapper:hover) .GridSpotlight,
body:has(.SpotlightVisualContainer:hover) .GridSpotlight,
body:has(.CardThumbnailWrapper:hover) .GridSpotlight {
    opacity: 0;
}

/* Positions the modular navbar persistently across page scrolling. */
#NavbarMount {
    min-height: 100px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
}

/* Provides layout and glassmorphism for the top header. */
.HeaderRoot {
    backdrop-filter: blur(15px);
    background-color: rgba(5, 5, 5, 0.80);
    border-bottom: 1px solid var(--ColorBorderSubtle);
    position: relative;
    top: 0;
    width: 100%;
    z-index: 50;
}

/* Constrains and aligns the header navigation content. */
.NavContainer {
    align-items: center;
    display: flex;
    height: 100px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Renders the brand logo and mark. */
.BrandLogo {
    align-items: center;
    color: var(--ColorTextLight);
    display: flex;
    text-decoration: none;
}

/* Formats the brand logo image. */
.BrandLogoImage {
    display: block;
    height: 45px;
    width: 45px;
}

/* Styles the brand icon SVG. */
.BrandIconSvg {
    color: #059bfa;
}

/* Aligns the central navigation menu. */
.NavMenu {
    align-items: center;
    display: flex;
    gap: 30px;
}

/* Styles individual navigation links. */
.NavLinkItem {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeBody);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--TransitionFast);
}

/* Enhances navigation link color on hover. */
.NavLinkItem:hover {
    color: var(--ColorTextLight);
}

/* Making the active links look active */
.ActiveNavLink {
    color: var(--ColorTextLight);
    font-weight: 500;
}

/* Hides mobile drawer by default on desktop. */
.MobileNavDrawer {
    display: none;
}

/* Hides mobile menu toggle button on desktop. */
.MobileMenuToggle {
    display: none;
}

/* Wraps the main landing page content. */
.MainContent {
    position: relative;
    width: 100%;
    z-index: 5;
}

/* Styles the interactive announcement pill. */
.AnnouncementBadge {
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusPill);
    color: var(--ColorTextMuted);
    display: inline-flex;
    font-size: var(--FontSizeSmall);
    margin-bottom: 25px;
    padding: 5px 15px;
    text-decoration: none;
    transition: all var(--TransitionFast);
}

/* Enhances the announcement pill appearance on hover. */
.AnnouncementBadge:hover {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: var(--ColorBorderHover);
    color: var(--ColorTextLight);
    transform: translateY(-1px);
}

/* Formats the announcement pill label. */
.BadgeText {
    font-weight: 500;
}

/* Centers the product showcase section with 3D perspective. */
.ShowcaseSection {
    margin: 0 auto;
    max-width: 1100px;
    perspective: 1200px;
    perspective-origin: 50% 0%;
    position: relative;
    width: 100%;
}

/* Casts an ambient warm amber glow behind the showcase card. */
.GlowBackdrop {
    background: radial-gradient(ellipse 70% 50% at 50% 50%, #059bfa 0%, #04395a 40%, rgba(2, 25, 39, 0.40) 70%, transparent 100%);
    filter: blur(45px);
    height: 200px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: -90px;
    transform: translateX(-50%);
    transition: opacity 0.30s ease;
    width: 800px;
    z-index: 1;
}

/* Formats the mockup window container with 3D perspective tilt. */
.ShowcaseCard {
    backdrop-filter: blur(20px);
    background-color: var(--ColorSurfaceDark);
    border: 1px solid var(--ColorBorderSubtle);
    border-radius: var(--RadiusCard);
    box-shadow: 0 -10px 40px #04395a, 0 20px 50px #021927;
    overflow: hidden;
    position: relative;
    transform: rotateX(25deg) scale(0.90);
    transform-origin: center top;
    transform-style: preserve-3d;
    transition: border-color var(--TransitionNormal), box-shadow 0.30s ease;
    will-change: transform;
    z-index: 5;
}

/* Subtly highlights the showcase border on hover. */
.ShowcaseCard:hover {
    border-color: #059bfa;
}

/* Prepares elements for scroll-driven entrance reveal. */
.ScrollRevealItem {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.70s cubic-bezier(0.15, 1, 0.30, 1), transform 0.70s cubic-bezier(0.15, 1, 0.30, 1);
    will-change: opacity, transform;
}

/* Reveals element smoothly once scrolled into view. */
.ScrollRevealActive {
    opacity: 1;
    transform: translateY(0);
}

/* Respects reduced motion preferences for accessibility. */
@media (prefers-reduced-motion: reduce) {
    .ScrollRevealItem {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Styles the top window control bar. */
.ShowcaseBar {
    align-items: center;
    background-color: var(--ColorSurfaceCard);
    border-bottom: 1px solid var(--ColorBorderSubtle);
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Aligns the macOS style window dots. */
.WindowDots {
    display: flex;
    gap: 5px;
}

/* Styles individual window dots. */
.WindowDot {
    border-radius: var(--RadiusPill);
    display: inline-block;
    height: 10px;
    width: 10px;
}

/* Displays the active mockup session title. */
.ShowcaseBarTitle {
    color: var(--ColorTextMuted);
    font-family: var(--FontMono);
    font-size: var(--FontSizeMicro);
}

/* Marks the preview status tag. */
.ShowcaseStatusTag {
    background-color: transparent;
    border: 1px solid #059bfa;
    border-radius: var(--RadiusPill);
    color: #059bfa;
    font-size: var(--FontSizeMicro);
    font-weight: 600;
    padding: 0 10px;
}

/* Holds the product screenshot. */
.ShowcaseImageWrapper {
    background-color: #000000;
    display: block;
    line-height: 0;
    position: relative;
    width: 100%;
}

/* Renders the full screenshot image responsively. */
.ShowcaseImage {
    display: block;
    height: auto;
    width: 100%;
}

/* Styles the global footer container. */
.FooterRoot {
    background-color: var(--ColorSurfaceDark);
    border-top: 1px solid var(--ColorBorderSubtle);
    padding: 50px 20px;
    position: relative;
    z-index: 5;
}

/* Aligns items across the footer row. */
.FooterContainer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
}

/* Holds the brand motto in footer. */
.FooterBrandBox {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Formats the footer motto text. */
.FooterMotto {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
}

/* Aligns footer navigation items. */
.FooterLinks {
    display: flex;
    gap: 20px;
}

/* Formats individual footer links. */
.FooterLinkItem {
    color: var(--ColorTextMuted);
    font-size: var(--FontSizeSmall);
    text-decoration: none;
    transition: color var(--TransitionFast);
}

/* Highlights footer link on hover. */
.FooterLinkItem:hover {
    color: var(--ColorTextLight);
}

/* Holds brand legal attribution and copyright. */
.FooterCopyright {
    align-items: center;
    display: flex;
}

/* Formats copyright text. */
.CopyrightText {
    color: var(--ColorTextFaint);
    font-size: var(--FontSizeMicro);
}

/* Adapts layout for medium tablet screens. */
@media (max-width: 990px) {
    .HeroHeading {
        font-size: var(--FontSizeTitleLarge);
    }

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

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

    .GlowBackdrop {
        width: 600px;
    }
}

/* Adapts layout for mobile viewports. */
@media (max-width: 650px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .GridSpotlight {
        display: none;
    }

    .FeatureCard::before,
    .ProductCard::before,
    .BlogSpotlightCard::before,
    .BlogCard::before,
    .BlogPortalCard::before {
        display: none;
    }

    .ShowcaseSection {
        perspective: 500px;
    }

    .ShowcaseCard {
        box-shadow: 0 -10px 50px rgba(5, 155, 250, 0.35), 0 20px 50px #021927;
        transform: rotateX(35deg) scale(0.80);
    }

    #NavbarMount {
        min-height: 70px;
    }

    .NavContainer {
        height: 70px;
        padding: 10px 15px;
    }

    .BrandLogoImage {
        height: 40px;
        width: 40px;
    }

    .NavMenu {
        display: none;
    }

    .MobileMenuToggle {
        align-items: center;
        background: transparent;
        border: 1px solid var(--ColorBorderSubtle);
        border-radius: var(--RadiusMedium);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: 40px;
        justify-content: center;
        padding: 5px 10px;
        position: relative;
        width: 40px;
    }

    .MobileMenuToggle:hover,
    .MobileMenuToggle:focus {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: #059bfa;
    }

    .MobileMenuToggle[aria-expanded="true"] {
        background-color: rgba(5, 155, 250, 0.15);
        border-color: #059bfa;
    }

    .HamburgerBar {
        background-color: var(--ColorTextLight);
        border-radius: 3px;
        display: block;
        height: 3px;
        transition: all var(--TransitionFast);
        width: 20px;
    }

    .MobileMenuToggle[aria-expanded="true"] .HamburgerBar:first-child {
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .MobileMenuToggle[aria-expanded="true"] .HamburgerBar:not(:first-child):not(:last-child) {
        opacity: 0;
    }

    .MobileMenuToggle[aria-expanded="true"] .HamburgerBar:last-child {
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .MobileNavDrawer {
        background-color: rgba(5, 5, 5, 0.80);
        border-bottom: 1px solid var(--ColorBorderSubtle);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.90);
        display: none;
        height: calc(100vh - 70px);
        left: 0;
        overflow-y: auto;
        padding: 30px 20px;
        position: absolute;
        top: 70px;
        width: 100%;
        z-index: 50;
    }

    .MobileNavDrawer.MobileDrawerOpen {
        display: block;
    }

    .MobileNavMenu {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 0 auto;
        max-width: 300px;
        padding-top: 20px;
    }

    .MobileNavLinkItem {
        border: 1px solid transparent;
        border-radius: var(--RadiusMedium);
        color: var(--ColorTextMuted);
        display: block;
        font-size: var(--FontSizeSubheading);
        font-weight: 600;
        padding: 15px 20px;
        text-align: center;
        text-decoration: none;
        transition: all var(--TransitionFast);
    }

    .MobileNavLinkItem:hover,
    .MobileNavLinkItem:focus {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--ColorTextLight);
    }

    .MobileNavLinkItem.ActiveNavLink {
        background-color: rgba(5, 155, 250, 0.10);
        border: 1px solid rgba(5, 155, 250, 0.30);
        color: #059bfa;
    }

    .HeroHeading {
        font-size: var(--FontSizeMedium);
    }

    .ShowcaseBarTitle {
        display: none;
    }

    .GlowBackdrop {
        filter: blur(40px);
        height: 250px;
        width: 350px;
    }

    .SectionTitle {
        font-size: var(--FontSizeTitleSmall);
    }

    .SectionSubtitle {
        font-size: var(--FontSizeSmall);
    }

    .FeaturesSection {
        padding: 40px 15px 50px;
    }

    .FeaturesGrid {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .FeatureCard {
        display: block;
        padding: 25px 20px;
    }

    .ProductsSection {
        padding: 60px 15px 40px;
    }

    .ProductsGrid {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .ProductCard {
        border-radius: var(--RadiusLarge);
        display: block;
    }

    .CardHeaderRow {
        padding: 15px 15px 0;
    }

    .CardThumbnailWrapper {
        margin: 10px 15px 0;
    }

    .CardContent {
        display: block;
        padding: 20px 15px;
    }

    .CardTitle {
        font-size: var(--FontSizeMedium);
    }

    .CardDescription {
        font-size: var(--FontSizeSmall);
        line-height: 1.50;
        margin-bottom: 15px;
    }

    .CardTagList {
        display: block;
        margin-bottom: 15px;
    }

    .CardTagList .TagPill {
        display: inline-block;
        margin-bottom: 5px;
        margin-right: 5px;
    }

    .CardActionRow {
        display: block;
        margin-top: 20px;
    }

    .CardLaunchButton {
        display: block;
        text-align: center;
        width: 100%;
    }

    .ComingCard {
        display: block;
        min-height: 250px;
        padding: 30px 15px;
    }

    .EmptyCenterContent {
        display: block;
        min-height: 250px;
        padding: 30px 15px;
        text-align: center;
    }

    .PlaceholderIconBox {
        height: 40px;
        margin: 0 auto 15px;
        width: 40px;
    }

    .PlaceholderIconBox svg {
        height: 20px;
        width: 20px;
    }

    .FooterContainer {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .FooterBrandBox {
        align-items: center;
    }

    .FooterLinks {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .FooterCopyright {
        justify-content: center;
        text-align: center;
    }
}

/* Disables interactive cursor spotlight on touch devices without hover capability. */
@media (hover: none) {

    .GridSpotlight,
    .FeatureCard::before,
    .ProductCard::before,
    .BlogSpotlightCard::before,
    .BlogCard::before,
    .BlogPortalCard::before {
        display: none;
    }
}


