/* ==========================================================================
   VESICA PISCIS AI SOLUTIONS // OBSIDIAN + AZURITE GLASS + POLISHED COPPER
   Pure CSS. Zero JS. Rendered over Dioxus SSR markup.
   ========================================================================== */

:root {
    --obsidian: #050505;
    --azurite: 10, 31, 68;
    --copper: #b87333;
    --copper-hi: #f0c9a0;
    --copper-lo: #8c5523;
    --rail-w: 290px;
    --footer-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--obsidian);
    background-image:
        linear-gradient(rgba(var(--azurite), 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--azurite), 0.10) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#master-canvas {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* --------------------------------------------------------------------------
   MASSIVE BACKGROUND LOGO (fixed layer, centred on the main viewing window)
   -------------------------------------------------------------------------- */
.bg-logo-layer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--rail-w);
    padding-bottom: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
}

.bg-logo-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    aspect-ratio: 1.24 / 1;
    transform: translate(-50%, -52%);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(184, 115, 51, 0.30) 0%, rgba(var(--azurite), 0.38) 38%, transparent 68%);
    filter: blur(60px);
    animation: halo-breathe 7s ease-in-out infinite alternate;
}

.bg-logo {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 118%;
    object-fit: contain;
    opacity: 0.62;
    filter:
        drop-shadow(0 0 36px rgba(184, 115, 51, 0.40))
        drop-shadow(0 0 110px rgba(46, 96, 214, 0.35));
}

@keyframes halo-breathe {
    0%   { opacity: 0.65; transform: translate(-50%, -52%) scale(0.96); }
    100% { opacity: 1.00; transform: translate(-50%, -52%) scale(1.06); }
}

/* --------------------------------------------------------------------------
   LAYOUT SHELL
   -------------------------------------------------------------------------- */
.app-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    min-height: calc(100vh - var(--footer-h));
}

/* --------------------------------------------------------------------------
   LEFT RAIL: translucent azurite glass frame + true glass buttons
   -------------------------------------------------------------------------- */
#left-rail {
    position: sticky;
    top: 0;
    z-index: 3;
    width: var(--rail-w);
    min-width: var(--rail-w);
    height: calc(100vh - var(--footer-h));
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 20px;
    background: linear-gradient(180deg, rgba(var(--azurite), 0.52) 0%, rgba(var(--azurite), 0.34) 100%);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    border-right: 2px solid var(--copper);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.65), inset -1px 0 0 rgba(240, 201, 160, 0.25);
    counter-reset: railtab;
}

.rail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(184, 115, 51, 0.40);
}

.rail-logo-mini {
    width: 52px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(184, 115, 51, 0.65));
}

.rail-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--copper-hi);
}

#left-rail a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 14px 18px;
    text-decoration: none;
    color: #eaf1ff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-radius: 10px;
    border: 1.5px solid var(--copper);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(120, 170, 255, 0.07) 45%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.30),
        0 8px 22px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

/* copper index numeral, generated by CSS counters */
#left-rail a::before {
    counter-increment: railtab;
    content: "0" counter(railtab);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--copper-hi);
    opacity: 0.85;
    min-width: 22px;
}

/* diagonal glass sheen */
#left-rail a::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
}

#left-rail a:hover::after { left: 130%; }

#left-rail a:hover,
#left-rail a.active,
#left-rail a[aria-current="page"] {
    transform: translateX(6px);
    border-color: var(--copper-hi);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(240, 201, 160, 0.22) 0%, rgba(120, 170, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 0 14px rgba(184, 115, 51, 0.28),
        0 0 18px rgba(184, 115, 51, 0.45),
        0 10px 26px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   MAIN VIEWING WINDOW: transparent stage; glass panels float over the logo
   -------------------------------------------------------------------------- */
main#content-viewport {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 56px;
    min-width: 0;
}

.glass-panel,
.section-panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 920px;
    padding: 34px 38px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(var(--azurite), 0.46) 0%, rgba(var(--azurite), 0.34) 100%);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(184, 115, 51, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 0 40px rgba(var(--azurite), 0.35),
        0 24px 60px rgba(0, 0, 0, 0.65);
}

/* back layer of the overlap stack: offset frosted sheet */
.glass-panel::before,
.section-panel::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    z-index: -1;
    border-radius: 18px;
    background: rgba(var(--azurite), 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 115, 51, 0.28);
}

/* specular highlight along the top edge */
.glass-panel::after,
.section-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 201, 160, 0.85), transparent);
}

.section-panel h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--copper-hi);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 115, 51, 0.40);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.section-panel > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #eaf1ff;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* second glass tier: cards float on top of the panel */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.feature-card {
    position: relative;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(var(--azurite), 0.30) 100%);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(240, 201, 160, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:nth-child(even) { transform: translateY(10px); }

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--copper);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 18px rgba(184, 115, 51, 0.35), 0 16px 34px rgba(0, 0, 0, 0.6);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--copper-hi);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #cfdcf5;
    margin: 0;
}

/* --------------------------------------------------------------------------
   SEARCH ENGINE: stealth search form and azurite/copper inputs
   -------------------------------------------------------------------------- */
.search-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.search-panel h2 {
    width: 100%;
}

.search-form {
    width: 100%;
    margin-top: 28px;
}

.search-input-group {
    display: flex;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.search-input {
    flex: 1;
    min-height: 64px;
    background: rgba(10, 31, 68, 0.6);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 2px solid #b87333;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.2rem;
    font-family: inherit;
    padding: 0 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(184, 115, 51, 0.15);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-input::placeholder {
    color: rgba(207, 220, 245, 0.55);
}

.search-input:focus {
    outline: none;
    border-color: #f0c9a0;
    box-shadow: 0 0 24px rgba(184, 115, 51, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.search-button {
    min-width: 140px;
    min-height: 64px;
    background: linear-gradient(135deg, #b87333 0%, #8c5523 100%);
    border: 2px solid #f0c9a0;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(184, 115, 51, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    filter: brightness(1.1);
}

.search-button:active {
    transform: translateY(0);
}

.search-specs-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   HOME: hero panel floats over the lower portion of the background logo
   -------------------------------------------------------------------------- */
.hero-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 32vh;
}

.hero-panel {
    max-width: 860px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--copper-hi);
    opacity: 0.9;
}

.hero-heading {
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

.hero-subcopy {
    font-size: 1.2rem;
    line-height: 1.65;
    color: #eaf1ff;
    margin-bottom: 26px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.hero-highlight { color: var(--copper-hi); font-weight: 700; }

.hero-badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--copper-hi);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(var(--azurite), 0.45));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 115, 51, 0.65);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   FOOTER: brushed metallic copper
   (drop-shadow, not text-shadow: text-shadow bleeds through clipped text)
   -------------------------------------------------------------------------- */
footer {
    position: relative;
    z-index: 4;
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: #000000;
    border-top: 1px solid rgba(184, 115, 51, 0.55);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.9);
}

.copper-text {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, #ffe6cf 0%, #e3a574 26%, #b87333 50%, #f1cba3 68%, #9a5d27 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9));
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .bg-logo-layer { left: 0; }
    .app-body { flex-direction: column; }
    #left-rail {
        position: relative;
        width: 100%;
        min-width: 0;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--copper);
    }
    main#content-viewport { padding: 28px 18px; }
    .hero-stage { padding-top: 12vh; }
    .hero-heading { font-size: 1.9rem; }
    footer { font-size: 1.1rem; height: auto; min-height: var(--footer-h); padding: 18px; letter-spacing: 1px; }
}
