/* ========================================================================
   UNIVERSAL LAYOUT ENGINE — SHARED ACROSS ALL SITES
   No colors, no glow, no theme variables.
   Pure structure, spacing, typography, grid layouts, and element shapes.
   ======================================================================== */

/* ======================================================
   GLOBAL
   ====================================================== */

body {
    margin: 0;
    padding: 0;
    background-color: #06070d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #f5f6fa;
    line-height: 1.65;
}

section {
    scroll-margin-top: 70px;
}

/* ======================================================
   TOP BAR
   ====================================================== */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background-color: rgba(4, 7, 18, 0.9);
    border-bottom: 1px solid transparent; /* Color from theme engine */
    box-shadow: 0 10px 30px transparent;   /* Color from theme engine */
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ======================================================
   LOGO BLOCK
   ====================================================== */

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-block * {
    color: #ffffff !important;
    text-decoration: none !important;
}

.logo-block:hover {
    opacity: 0.85;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #ffffff; /* Overridden by theme-engine */
    box-shadow: none;
}

.logo-text-main {
    font-weight: 700;
    font-size: 20px;
}

.logo-text-sub {
    font-size: 13px;
    margin-top: -2px;
    opacity: 0.85;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-sub2 {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 2px;
}

/* ======================================================
   NAVIGATION
   ====================================================== */

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.top-nav-links a {
    color: inherit;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.15s ease;
}

.top-nav-main-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

/* ======================================================
   HERO SECTION
   ====================================================== */

.hero {
    padding: 60px 20px 40px;
    text-align: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

/* Buttons */

.btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-primary {
    color: white;
}

.btn-secondary {
    background: rgba(50, 15, 20, 0.6);
    border: 1px solid transparent;
    color: #e8e8e8;
    backdrop-filter: blur(4px);
}

/* ======================================================
   SECTION WRAPPER
   ====================================================== */

.section {
    padding: 20px 20px;
    max-width: 1150px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    margin-bottom: 4px;
    font-weight: 700;
}

.section-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

/* ======================================================
   GRID + CARDS
   ====================================================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #02030a;
    border: 1px solid transparent; /* colored in theme-engine */
    border-radius: 18px;
    padding: 20px;
    box-shadow: none;
}

.card-title {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.card-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.btn-card {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 40px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ======================================================
   ABOUT BOX
   ====================================================== */

.aboutbox {
    background: #02030a;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 20px;
}

/* ======================================================
   TESTIMONIALS
   ====================================================== */

.testgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.testcard {
    background: #02030a;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 20px;
}

/* ======================================================
   CONTACT BOX
   ====================================================== */

.contactbox {
    background: #02030a;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 20px;
}

.contactbox a {
    text-decoration: none;
}

/* ======================================================
   SIGNUP BOX
   ====================================================== */

.signup-box {
    background: #02030a;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 20px;
}

.signup-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.signup-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.signup-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #0c0d13;
    color: #ffffff;
}

/* ======================================================
   FOOTER
   ====================================================== */

footer.site-footer {
    padding: 18px 18px 24px;
    border-top: 1px solid transparent;
    background-color: #040712;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    opacity: 0.85;
}

.site-footer a {
    text-decoration: none;
}

/* bottom glow container */
.site-footer::after {
    content: "";
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 10px;
}

/* ======================================================
   TEXT VISIBILITY ENGINE — UNIVERSAL GLOW READABILITY FIX
   Works for backgrounds, shadows, gradients, and glow
   ====================================================== */

.glow-readable,
.hero-title,
.hero-subtitle,
.section-title,
.section-sub,
.card-title,
.card-text,
.testcard,
.logo-text-main,
.logo-text-sub,
.footer-inner,
.top-nav-links a,
.btn,
.btn-primary,
.btn-secondary,
.btn-card,
.aboutbox,
.contactbox,
.signup-box,
.testcard strong {
    text-shadow:
        0 0 4px rgba(0,0,0,0.75),
        0 0 8px rgba(0,0,0,0.55),
        0 0 12px rgba(0,0,0,0.45);
}

/* ======================================================
   GLOBAL TYPOGRAPHY — HEADINGS
   ====================================================== */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
}

h2, h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
}
