﻿:root {
    --black: #030303;
    --black-soft: #070707;
    --panel: #0b0b0d;
    --panel-light: #111114;
    --border: #242429;
    --red: #ff101b;
    --red-dark: #8c050c;
    --text: #f4f4f5;
    --muted: #929299;
    --success: #60ff8b;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -20%, rgba(255,16,27,.13), transparent 35%),
        var(--black);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

button,
input {
    font: inherit;
}

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    z-index: -3;
}

.background-glow {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255,16,27,.08);
    filter: blur(110px);
    pointer-events: none;
    z-index: -2;
}

.glow-one {
    top: -250px;
    right: -150px;
}

.glow-two {
    bottom: -300px;
    left: -250px;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(3,3,3,.88);
    backdrop-filter: blur(20px);
}

.nav-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-elmos {
    font-size: 23px;
    text-shadow: 0 0 22px rgba(255,255,255,.18);
}

.brand-scripts {
    color: var(--red);
    font-size: 13px;
    text-shadow: 0 0 18px rgba(255,16,27,.65);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav > a,
.nav-button {
    border: 0;
    background: transparent;
    color: #b8b8bd;
    padding: 10px 13px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-button:hover {
    color: white;
}

.main-nav .nav-cta {
    margin-left: 5px;
    border: 1px solid rgba(255,16,27,.7);
    border-radius: 7px;
    color: white;
    background: rgba(255,16,27,.1);
    box-shadow: 0 0 22px rgba(255,16,27,.1);
}

.nav-form {
    margin: 0;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: transparent;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px;
    background: white;
}

.site-main {
    min-height: calc(100vh - 240px);
}

.hero {
    padding: 105px 0 90px;
    min-height: 690px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 80px;
    align-items: center;
}

.eyebrow,
.section-kicker,
.terminal-label {
    color: var(--red);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 900;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 20px;
    font-size: clamp(50px, 7vw, 92px);
    line-height: .91;
    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--red);
    text-shadow: 0 0 30px rgba(255,16,27,.32);
}

.hero-text {
    max-width: 650px;
    color: #a4a4aa;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, #ff1723, #b8050d);
    border-color: #ff2832;
    box-shadow: 0 0 28px rgba(255,16,27,.22);
}

.button-primary:hover {
    box-shadow: 0 0 35px rgba(255,16,27,.4);
}

.button-secondary {
    color: white;
    border-color: #34343a;
    background: #0c0c0f;
}

.button-secondary:hover {
    border-color: rgba(255,16,27,.7);
}

.button-full {
    width: 100%;
}

.hero-status {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #77777d;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 15px var(--red);
    animation: pulse 1.7s infinite;
}

@keyframes pulse {
    50% {
        opacity: .4;
        box-shadow: 0 0 5px var(--red);
    }
}

.hero-panel {
    position: relative;
    min-height: 420px;
    padding: 28px;
    border: 1px solid rgba(255,16,27,.25);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255,16,27,.055), transparent 50%),
        rgba(8,8,10,.88);
    box-shadow:
        0 30px 90px rgba(0,0,0,.55),
        inset 0 0 60px rgba(255,16,27,.025);
}

.panel-corner {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 80px;
    height: 80px;
    border-top: 2px solid var(--red);
    border-right: 2px solid var(--red);
    border-radius: 0 20px 0 0;
}

.hero-logo {
    width: 125px;
    height: 125px;
    margin: 55px auto 45px;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
    transform: rotate(45deg);
    box-shadow:
        0 0 30px rgba(255,16,27,.25),
        inset 0 0 30px rgba(255,16,27,.08);
}

.hero-logo span {
    transform: rotate(-45deg);
    font-size: 70px;
    font-weight: 900;
    color: var(--red);
    text-shadow: 0 0 25px rgba(255,16,27,.65);
}

.system-lines {
    border-top: 1px solid #222228;
}

.system-lines div {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #19191e;
    font-size: 11px;
    letter-spacing: 1px;
}

.system-lines span {
    color: #66666d;
}

.system-lines strong {
    color: #dddde1;
}

.section {
    padding: 90px 0;
}

.section-dark {
    border-top: 1px solid #17171b;
    border-bottom: 1px solid #17171b;
    background: rgba(8,8,10,.55);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 35px;
}

.section-heading h2,
.detail-panel h2 {
    margin: 7px 0 0;
    font-size: 34px;
}

.text-link {
    color: #d4d4d7;
    font-weight: 700;
}

.text-link:hover {
    color: var(--red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card,
.detail-panel,
.purchase-panel,
.auth-card,
.stat-card,
.license-card,
.list-panel,
.empty-state {
    border: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(255,16,27,.025), transparent 40%),
        var(--panel);
    border-radius: var(--radius);
}

.product-card {
    min-height: 355px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: .22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,16,27,.5);
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.product-topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.category,
.version,
.status-pill {
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 900;
}

.category {
    color: var(--red);
}

.version {
    color: #77777f;
}

.product-icon {
    width: 54px;
    height: 54px;
    margin: 32px 0 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,16,27,.45);
    background: rgba(255,16,27,.06);
    color: var(--red);
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 0 20px rgba(255,16,27,.08);
}

.product-card h2,
.product-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.product-card p {
    color: #929298;
    font-size: 14px;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #1e1e23;
}

.product-footer strong {
    font-size: 22px;
}

.card-link {
    color: #dddde0;
    font-size: 13px;
    font-weight: 800;
}

.card-link:hover {
    color: var(--red);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
}

.feature h3 {
    margin: 13px 0 8px;
}

.feature p {
    color: #85858c;
    font-size: 14px;
}

.page-hero,
.dashboard-header {
    padding: 90px 0 55px;
    border-bottom: 1px solid #151519;
    background: linear-gradient(to bottom, rgba(255,16,27,.045), transparent);
}

.page-hero h1,
.dashboard-header h1 {
    margin: 8px 0 8px;
    font-size: clamp(42px, 6vw, 70px);
    letter-spacing: -2px;
}

.page-hero p,
.dashboard-header p {
    color: #919198;
    max-width: 720px;
}

.detail-topline {
    max-width: 650px;
}

.detail-grid,
.support-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 20px;
    align-items: start;
}

.detail-panel,
.purchase-panel {
    padding: 32px;
}

.detail-description {
    color: #a1a1a7;
    font-size: 17px;
}

.purchase-label {
    color: #77777d;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 900;
}

.purchase-price {
    margin: 6px 0 20px;
    font-size: 46px;
    font-weight: 900;
}

.purchase-note {
    margin-bottom: 25px;
    color: #8f8f95;
    font-size: 13px;
}

.auth-section {
    min-height: 700px;
    display: grid;
    place-items: center;
    padding: 70px 20px;
}

.auth-card {
    width: min(500px, 100%);
    padding: 36px;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
}

.auth-card h1 {
    margin: 7px 0 5px;
    font-size: 40px;
}

.auth-intro {
    margin: 0 0 27px;
    color: #8d8d94;
}

.form {
    display: grid;
    gap: 17px;
}

.form label {
    color: #c5c5ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
}

.form input {
    width: 100%;
    margin-top: 7px;
    padding: 14px 15px;
    border: 1px solid #2c2c32;
    border-radius: 7px;
    outline: none;
    background: #070709;
    color: white;
}

.form input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255,16,27,.08);
}

.auth-bottom {
    margin-top: 25px;
    text-align: center;
    color: #77777e;
    font-size: 13px;
}

.auth-bottom a {
    color: var(--red);
    font-weight: 800;
}

.alert {
    margin: 20px 0;
    padding: 13px 16px;
    border-radius: 7px;
    font-size: 13px;
}

.alert-error {
    border: 1px solid rgba(255,16,27,.4);
    background: rgba(255,16,27,.08);
    color: #ff9da2;
}

.alert-success {
    border: 1px solid rgba(96,255,139,.25);
    background: rgba(96,255,139,.06);
    color: #9cffb7;
}

.dashboard-section {
    padding-top: 45px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: #77777e;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 7px;
    font-size: 30px;
}

.stat-card .status-text {
    color: var(--success);
    font-size: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dashboard-card {
    min-height: 150px;
    display: grid;
    grid-template-columns: 55px 1fr 30px;
    gap: 18px;
    align-items: center;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    transition: .2s ease;
}

.dashboard-card:hover {
    border-color: rgba(255,16,27,.5);
    transform: translateY(-2px);
}

.dashboard-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,16,27,.4);
    color: var(--red);
    font-weight: 900;
}

.dashboard-card h2 {
    margin: 0 0 5px;
    font-size: 19px;
}

.dashboard-card p {
    margin: 0;
    color: #85858c;
    font-size: 13px;
}

.dashboard-arrow {
    color: var(--red);
    font-size: 20px;
}

.empty-state {
    padding: 70px 30px;
    text-align: center;
}

.empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,16,27,.4);
    color: var(--red);
    font-size: 28px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto 25px;
    color: #898990;
}

.back-row {
    margin-top: 25px;
}

.license-grid {
    display: grid;
    gap: 15px;
}

.license-card {
    padding: 25px;
}

.license-card h2 {
    margin: 22px 0;
    font-family: monospace;
    letter-spacing: 2px;
}

.license-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.license-data div {
    padding: 14px;
    border: 1px solid #1f1f24;
    background: #070709;
}

.license-data span {
    display: block;
    color: #696970;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.license-data strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.status-pill {
    display: inline-flex;
    padding: 6px 9px;
    border: 1px solid rgba(96,255,139,.2);
    border-radius: 100px;
    color: var(--success);
    background: rgba(96,255,139,.05);
}

.list-panel {
    overflow: hidden;
}

.list-row {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1b1b20;
}

.list-row:last-child {
    border-bottom: 0;
}

.list-row h3,
.list-row p {
    margin: 0;
}

.list-row p {
    color: #797980;
    font-size: 12px;
}

.error-page {
    min-height: 680px;
    padding: 70px 20px;
    display: grid;
    place-items: center;
}

.error-card {
    max-width: 620px;
    text-align: center;
}

.error-code {
    color: var(--red);
    font-size: clamp(100px, 18vw, 190px);
    line-height: .8;
    font-weight: 900;
    opacity: .2;
    text-shadow: 0 0 50px rgba(255,16,27,.35);
}

.error-card h1 {
    font-size: 38px;
}

.error-card p {
    color: #898990;
    margin-bottom: 25px;
}

.site-footer {
    border-top: 1px solid #17171b;
    background: #050506;
}

.footer-inner {
    min-height: 165px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
}

.footer-inner strong {
    letter-spacing: 2px;
}

.footer-inner p,
.copyright {
    color: #66666c;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    color: #8c8c92;
    font-size: 13px;
}

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

@media (max-width: 900px) {
    .hero-grid,
    .detail-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-panel {
        min-height: 360px;
    }

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

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

    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid #26262b;
        border-radius: 10px;
        background: #09090b;
        box-shadow: 0 20px 60px rgba(0,0,0,.6);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav > a,
    .nav-button {
        width: 100%;
        text-align: left;
    }

    .main-nav .nav-cta {
        margin-left: 0;
    }
}

@media (max-width: 650px) {
    .shell,
    .nav-shell {
        width: min(100% - 26px, 1180px);
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .product-grid,
    .feature-grid,
    .stats-grid,
    .dashboard-grid,
    .license-data {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section {
        padding: 65px 0;
    }

    .auth-card {
        padding: 27px 20px;
    }

    .footer-inner {
        padding: 40px 0;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

/* ==========================================================
   ELMOS CHECKOUT
   ========================================================== */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
    gap: 28px;
    align-items: start;
}

.checkout-result {
    text-align: center;
}

.checkout-result .purchase-price {
    margin: 25px 0;
}

.purchase-panel form {
    width: 100%;
}

.purchase-panel .button + .button,
.purchase-panel form + .button,
.checkout-result .button + .button {
    margin-top: 12px;
}

@media (max-width: 850px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ELMOS LICENSE MANAGEMENT */

.license-ip,
.credential-box {
    margin: 14px 0 20px;
    padding: 16px;
    border: 1px solid rgba(255,25,35,.35);
    border-radius: 10px;
    background: rgba(255,0,15,.05);
    overflow-wrap: anywhere;
}

.credential-box code {
    color: #fff;
    font-size: .95rem;
}

.purchase-panel input[type="text"] {
    width: 100%;
    margin: 8px 0 16px;
}

/* ==========================================================
   MASTER ADMIN PRODUCT / ASSET MANAGER
   ========================================================== */

.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.admin-product-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.admin-product-card {
    padding: 24px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 14px;
    background: rgba(12,12,14,.96);
}

.admin-product-card h2 {
    margin: 18px 0 8px;
}

.admin-product-stats {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.admin-product-stats div {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.025);
}

.admin-product-stats span {
    display: block;
    margin-bottom: 5px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .6;
}

.admin-editor {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(12,12,14,.96);
}

.admin-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.purchase-panel input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.admin-manifest-panel {
    margin-top: 28px;
}

.manifest-box {
    white-space: pre-wrap;
    padding: 18px;
    border: 1px solid rgba(255,25,35,.28);
    border-radius: 10px;
    background: rgba(255,0,15,.04);
    overflow-wrap: anywhere;
}

.admin-release-section {
    margin-top: 38px;
}

.admin-release-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.release-main {
    min-width: 0;
    flex: 1;
}

.release-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: .78rem;
    opacity: .7;
}

.release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.release-actions form {
    margin: 0;
}

.button-danger {
    border-color: rgba(255,40,40,.6);
    background: rgba(150,0,0,.25);
    color: #fff;
}

.button-danger:hover {
    background: rgba(210,0,0,.4);
}

@media (max-width: 760px) {

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-release-row {
        align-items: stretch;
        flex-direction: column;
    }

    .release-actions {
        width: 100%;
    }
}
