/* CSS Variables */
:root {
    --bg-dark: #05080a;
    --bg-card: #f7f0e9;

    --color-primary: #f7931e;
    --color-primary-rgba: 247, 147, 30;
    --color-white: #f7f0e9;
    --color-rgba: 247, 240, 233;
    --color-disabled: #947e66;

    --text-color: var(--color-white);
    --text-inverse: #3b2002;
    --text-inverse-rgba: 59, 32, 2;
    --text-muted: #b5aa9f;

    --border-primary: var(--color-primary);

    --font-main: 'Helvetica Neue Regular', Roboto, Inter, Arial, sans-serif;
    --font-mono: 'Ubuntu Mono', Menlo, Consolas, monospace;
}


/********************
Headings 
********************/
h1, h2, h3, h4, h5 {
    font-family: var(--font-mono);
    font-weight: normal;
    margin-bottom: 16px;
}

h1{
    font-size: 4.5rem;
    line-height: 5.375rem;
    font-weight: bold;
}

h2{
    font-size: 2.25rem;
    line-height: normal;
}

h3{
    font-size: 2rem;
    line-height: normal;
}

h4{
    font-size: 1.75rem;
    line-height: 2rem;
}

h5{
    font-size: 1.5rem;
    line-height: 2.5rem;
    font-weight: bold;
}

h6{
    font-family: var(--font-main);
    font-size: 1.25rem;
    line-height: 2.25rem;
    font-weight: normal;
}


/********************
Reset
********************/
* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

p{
  margin-bottom: 16px;   
}



/********************
Grids
********************/
.grid-2-1{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
}

.grid-4-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
}

.grid-1-2{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
}

.grid-3-1{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
}

.grid-1-1{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 1.5rem;
    max-width: 60%;
    margin: 0 auto;
}


/********************
Helpers
********************/
.highlight{
    color: var(--color-primary);
}

.lead{
    font-family: var(--font-main);
    font-size: 1.125rem;
    line-height: 2rem;
    margin-bottom: 2.5rem;
}

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

.callout{
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    text-align: center;

    img{
        border-radius: 8px;
    }
}

.reverse {
    direction: rtl;
}

.reverse > * {
    direction: ltr;
}


/********************
Navigation
********************/
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    background: linear-gradient(to bottom, rgba(5,8,10,1) 64%,rgba(5,8,10,0) 100%);
    backdrop-filter: blur(6px);
    overflow: visible;
}

nav {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    margin: 0 auto;

    .logo {
        margin-right: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo-img {
        height: 50px;
        width: auto;
        min-width: 180px;
    }

    .nav-links {
        display: flex;
        overflow: visible;
        gap: 16px;
    }

    .nav-links a {
        color: var(--text-gray);
        font-size: 1.05rem;
        transition: color 0.3s ease;
        display: block;
        min-width: 110px;
        text-align: center;

        &:hover {
            color: var(--color-primary);
        }
    }
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(10, 10, 10, 0.98);
    min-width: 440px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1002;
    border-top: 2px solid var(--color-primary);
    display: flex;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    flex: 1;
}

.dropdown li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-width: 0;
    text-align: left;
}

.dropdown-product-img {
    width: 100%;
    max-height: 48px;
    object-fit: contain;
    object-position: left;
}

.dropdown-product-name {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-white);
}

.dropdown-product-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown a:hover {
    background-color: rgba(var(--color-primary-rgba), .1);
    color: var(--color-primary);
}

.dropdown a:hover .dropdown-product-name {
    color: var(--color-primary);
}

#active-nav-indicator {
    position: fixed;
    top: 0;
    height: 3px;
    background-color: var(--color-primary);
    z-index: 1001;
    transition: left 0.2s ease, width 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-muted);
    transition: all 0.3s ease;
}



/********************
Buttons 
********************/
.btn {
    display: inline-block;
    padding: 12px 16px;
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
        background-color: rgba(var(--color-primary-rgba), .12);
    }

    &:active{
        background-color: rgba(var(--text-inverse-rgba), .33);
    }

    &:focus{
        border: 2px solid var(--color-primary);;
        background-color: rgba(var(--text-inverse-rgba), .33);
    }

    &:disabled{
        border: 1px solid var(--color-disabled);
        color: var(--color-disabled);
    }
}


.btn-filled {
    background-color: var(--color-primary);
    color: var(--text-inverse);
    border: 1px solid #FAAC4D;

    &:hover {
        background-color: #ffbc70;
        border: 1px solid #FAD5A8;
    }

    &:active {
        background-color: #D67200;
        border: 1px solid #F3A64F;
    }

    &:focus{
        background-color: #D67200;
        border: 2px solid #F3A64F;
    }

    &:disabled {
        background-color: #B49B7E;
        color: #5A4F44;
    }
}


/********************
Section
********************/
section {
    padding: 100px;
}

.section-divider {
    margin: 80px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--color-rgba), 0.25), transparent);
}


/********************
Hero
********************/
.hero-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover; /* Ensures the image covers the entire element */
    background-position: center;
    background-image: linear-gradient(0deg,rgba(5, 8, 10, 1) 0%, rgba(5, 8, 10, .16) 50%, rgba(5, 8, 10, 1) 100%), url('../assets/img/background_abstract.png');
}

.hero-product{
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    
    .hero-content{
        background: rgba(10, 10, 10, .05);
        backdrop-filter: blur(8px);
        box-shadow: 0 0 80px rgba(0, 0, 0, .9);
        border-radius: 8px;
        padding: 24px;
        bac
    }
}

.product-stalix{
    background-size: cover; /* Ensures the image covers the entire element */
    background-position: center;
    background-image: linear-gradient(0deg,rgba(5, 8, 10, 1) 0%, rgba(5, 8, 10, .16) 20%, rgba(5, 8, 10, .25) 100%), url('../assets/img/background_abstract_stalix.png');
}

.product-draxis{
    background-size: cover; /* Ensures the image covers the entire element */
    background-position: center;
    background-image: linear-gradient(0deg,rgba(5, 8, 10, 1) 0%, rgba(5, 8, 10, .16) 20%, rgba(5, 8, 10, .25) 100%), url('../assets/img/background_abstract_draxis.png');
}

.hero-content {
    max-width: 60%;
}

.hero-content h1{
    margin-bottom: 42px;

    span{
        display: block;
    }
}

.hero-content a{
    margin-bottom: 42px;
}

.hero-content h6{
    margin-bottom: 24px;
}


.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100%;
    color: var(--color-primary);
    opacity: 0.7;
    display: flex;
    animation: scroll-bounce 1.8s ease-in-out infinite;
    animation: glowing 1.75s ease-in-out infinite alternate;
}

@keyframes glowing {
    from {
        box-shadow: 0 0 0 var(--color-primary);
    }
    to {
        box-shadow: 0 0 8px var(--color-primary);
    }
}

.scroll-cue svg {
    width: 32px;
    height: 32px;
}

.scroll-cue:hover {
    opacity: 1;
    color: var(--color-white);
    background-color: var(--color-primary);
    
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero-image{
    z-index: -99;
    position: absolute;
    top: 80px;
    right: 4%;
    max-height: 60%;
}


/********************
Product Sections
********************/
.capabilities{
    .callout {
        padding: 24px;
    }

    .capability-icon {
        width: 140px;
        height: 140px;
        margin: 0 auto 16px;
        display: block;
    }
}

.leadership{
    h2,
    .lead{
        max-width: 60%;
    }
}

.leader-card{
    text-align: center;

    h4,
    p{
        margin-bottom: 12px;
    }

    .lead{
        max-width: 80%;
    }
}

.leader-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--color-primary);
    overflow: hidden;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo .placeholder {
    font-size: 3rem;
    color: var(--color-primary);
}

.benefits{
    max-width: 100%;
}

.benefit-item{
    margin-left: 0;
}

.contact-form{
    width: 100%;
    margin-top: 16px;
}


.form-group label {
    display: block;
    margin: 8px 0 4px 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(var(--color-rgba), 0.06);
    border: 1px solid rgba(var(--color-rgba), 0.2);
    border-radius: 8px;
    font-family: inherit;
    color: var(--text-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.file-upload-zone {
    position: relative;
    border: 1px dashed var(--color-primary);
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;

    input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }

    &:hover {
        background-color: rgba(var(--color-primary-rgba), 0.05);
    }
}

.file-upload-zone.dragover {
    background-color: rgba(var(--color-primary-rgba), 0.1);
    border-style: solid;
}

.file-upload-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    margin: 0 auto 12px;
}

.file-upload-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--color-white);
}

.file-upload-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.file-upload-browse {
    color: var(--color-primary);
    text-decoration: underline;
}

.file-upload-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.file-upload-selected {
    display: none;
    margin-top: 10px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--color-primary);
    margin-bottom: 0;

    &.visible {
        display: block;
    }
}

.screenshots{
    .callout{
        min-width: 100%;
    }

    .callout h5{
        padding: 0 16px;
    }

    .screenshot-placeholder {
        background-color: #1a3d1a;
        border-radius: 8px 8px 0 0;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        color: var(--text-muted);
        font-size: 0.85rem;
    }
}

.feature-icons .grid-3-1 {
    max-width: 60%;
    align-items: start;
}

.icon-item {
    text-align: center;
    place-content: baseline;

    img {
        width: 36%;
    }
}

.product-feature {
    ul {
        list-style: none;
        min-width: 100%;
    }

    ul.grid-2-1{
        margin-left: 0;
    }

    li {
        font-weight: bold;
        margin: 0 0 8px 0;
        padding-left: 24px;
        position: relative;
    }

    li::before {
        content: '»';
        position: absolute;
        left: 0;
        font-size: 1.5rem;
        color: var(--color-primary);
    }
}


/* Screenshot Placeholder */
.feature-image {
    align-self: center;
}


.contact-form .btn {
    width: 100%;
    margin-top: 24px;
}

.form-error {
    display: block;
    color: #e05a5a;
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 1em;
}

.input-error {
    border-color: #e05a5a !important;
}

.file-upload-zone.input-error {
    border-color: #e05a5a !important;
}

.form-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--color-primary);
}

.contact {
    img{
        align-self: center;
        width: 240px;
    }

    .btn{
        margin: 16px 0 0;
    }
}



/********************
Footer
********************/
footer {
    padding-bottom: 42px;
}

.footer-content {
    max-width: 60%;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);

    p{
        margin-bottom: 8px;
        line-height: .75rem;
    }
}

.footer-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.footer-main {
    text-align: right;
    flex: 1;
}




/********************
Responsive
********************/
@media (max-width: 1160px) {
    .grid-4-1 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 920px){
    .mobile-menu-toggle {
        display: flex;
    }

    nav{
        .nav-links {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: var(--bg-dark);
            flex-direction: column;
            padding: 20px;
            gap: 15px;
            border-bottom: 1px solid #333;
        }

        .nav-links.active {
            display: flex;
        }
    }

     h1 {
        font-size: 4rem;
        line-height: 4.75rem;
    }
}

@media (max-width: 768px) {

    h1 {
        font-size: 2.5rem;
        line-height: 2.875rem;
    }

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

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

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

    .contact,
    .footer-content{
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-main {
        text-align: center;
    }

    .reverse {
        direction: ltr;
    }

    section {
        padding: 60px 20px;
    }

    .hero {
        padding: 100px 20px 60px;
    }
}
