/* file: Z:\Apache24\hosts\intelliconai\assets\css\site.css */
/* purpose: Core cinematic orange theme styling for IntelliconAI homepage with desktop/mobile background artwork and portrait-friendly project cards. */

:root {
    --bg: #09090c;
    --bg-soft: #101017;
    --panel: rgba(18, 18, 24, 0.72);
    --panel-strong: rgba(20, 20, 28, 0.86);
    --border: rgba(255, 153, 51, 0.22);
    --border-strong: rgba(255, 179, 71, 0.38);

    --text: #f6efe8;
    --muted: #d7c9ba;
    --muted-2: #ab9c90;

    --orange-deep: #8f3d00;
    --orange: #ff7a00;
    --orange-bright: #ff9b1f;
    --amber: #ffbf47;
    --gold: #ffd978;

    --shadow-orange: 0 0 30px rgba(255, 122, 0, 0.18);
    --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.35);

    --max-width: 1240px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background-color: #07070a;
}

/* Main cinematic background image layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            180deg,
            rgba(4, 4, 7, 0.62) 0%,
            rgba(7, 7, 10, 0.48) 18%,
            rgba(7, 7, 10, 0.32) 42%,
            rgba(7, 7, 10, 0.56) 72%,
            rgba(5, 5, 8, 0.82) 100%
        ),
        url("/assets/images/bg-desktop.jpg") center top / cover no-repeat;
    transform: scale(1.02);
    transform-origin: center top;
}

/* Extra dark cinematic wash for legibility */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 16%, rgba(255, 122, 0, 0.09), transparent 24%),
        radial-gradient(circle at 50% 72%, rgba(255, 166, 0, 0.07), transparent 22%),
        linear-gradient(
            180deg,
            rgba(6, 6, 9, 0.22) 0%,
            rgba(6, 6, 9, 0.14) 24%,
            rgba(6, 6, 9, 0.20) 55%,
            rgba(6, 6, 9, 0.48) 100%
        );
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
}

.bg-glow {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.34;
    animation: driftGlow 16s ease-in-out infinite alternate;
}

.bg-glow-1 {
    top: 60px;
    left: -60px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.28) 0%, rgba(255, 122, 0, 0.02) 70%, transparent 100%);
}

.bg-glow-2 {
    right: -100px;
    top: 380px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 191, 71, 0.18) 0%, rgba(255, 122, 0, 0.02) 70%, transparent 100%);
    animation-duration: 20s;
}

.bg-grid {
    position: fixed;
    inset: auto 0 0 0;
    height: 36vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.11;
    background:
        linear-gradient(to right, rgba(255, 153, 51, 0.10) 1px, transparent 1px),
        linear-gradient(to top, rgba(255, 153, 51, 0.10) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    transform: perspective(700px) rotateX(72deg);
    transform-origin: bottom;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(7, 7, 10, 0.88), rgba(7, 7, 10, 0.34));
    border-bottom: 1px solid rgba(255, 122, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow:
        0 0 12px rgba(255, 191, 71, 0.8),
        0 0 30px rgba(255, 122, 0, 0.45);
}

.brand-text {
    font-size: 1.25rem;
}

.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--muted);
    font-weight: 500;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.site-nav a:hover {
    color: var(--text);
    text-shadow: 0 0 12px rgba(255, 179, 71, 0.32);
}

.hero {
    position: relative;
    padding: 100px 0 72px;
}

.hero-inner {
    position: relative;
    max-width: 920px;
}

.hero-orb {
    position: absolute;
    top: -60px;
    left: 52%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle, rgba(255, 166, 0, 0.18) 0%, rgba(255, 122, 0, 0.10) 24%, rgba(255, 122, 0, 0.03) 52%, transparent 72%);
    filter: blur(18px);
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--amber);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-shadow:
        0 0 22px rgba(255, 122, 0, 0.14),
        0 0 46px rgba(255, 191, 71, 0.06),
        0 10px 40px rgba(0, 0, 0, 0.34);
}

.hero-copy {
    margin: 24px 0 0;
    max-width: 760px;
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--muted);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #1b1209;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow:
        0 10px 28px rgba(255, 122, 0, 0.26),
        0 0 28px rgba(255, 179, 71, 0.12);
}

.btn-primary:hover {
    box-shadow:
        0 14px 34px rgba(255, 122, 0, 0.35),
        0 0 34px rgba(255, 179, 71, 0.2);
}

.btn-secondary {
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(255, 191, 71, 0.6);
    box-shadow: var(--shadow-orange);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 46px;
}

.stat-card {
    padding: 20px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(18, 18, 24, 0.72), rgba(10, 10, 15, 0.82));
    border: 1px solid rgba(255, 153, 51, 0.18);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-value {
    display: block;
    color: var(--gold);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 0.92rem;
}

.projects,
.capabilities,
.about,
.contact {
    position: relative;
    padding: 56px 0 40px;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 28px;
}

.section-heading.narrow {
    max-width: 700px;
}

.section-heading h2,
.about h2,
.contact h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.section-heading p,
.about-copy p,
.contact p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.04rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.project-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(20, 16, 14, 0.76), rgba(10, 10, 14, 0.88)),
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 38%);
    border: 1px solid rgba(255, 153, 51, 0.22);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 191, 71, 0.05), transparent 40%, transparent 60%, rgba(255, 122, 0, 0.05));
    opacity: 0.7;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 191, 71, 0.34);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.42),
        0 0 40px rgba(255, 122, 0, 0.12);
}

.project-topline {
    color: var(--amber);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 16px;
}

.project-card h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

.project-media {
    position: relative;
    margin: 20px 0 18px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 153, 51, 0.22);
    background: rgba(0, 0, 0, 0.22);
    aspect-ratio: 7 / 10;
    box-shadow:
        inset 0 1px 0 rgba(255, 191, 71, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.24);
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.project-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12)),
        radial-gradient(circle at top right, rgba(255, 166, 0, 0.10), transparent 34%);
}

.project-summary {
    color: var(--muted);
    line-height: 1.7;
    margin: 18px 0 18px;
}

.project-points {
    margin: 0;
    padding-left: 18px;
    color: var(--muted-2);
    line-height: 1.8;
}

.project-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--gold);
    font-weight: 700;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.capability-item {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: rgba(12, 12, 16, 0.54);
    border: 1px solid rgba(255, 153, 51, 0.22);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.about-panel,
.contact-panel {
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(14, 14, 20, 0.78), rgba(8, 8, 12, 0.90));
    border: 1px solid rgba(255, 153, 51, 0.22);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.4fr;
    gap: 28px;
}

.about-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-panel {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 40px;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

@keyframes driftGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(16px, -20px, 0) scale(1.08);
    }
}

@media (min-width: 1100px) {
    .project-media {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 1080px) {
    .project-grid,
    .capability-grid,
    .hero-stats,
    .about-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body::before {
        background:
            linear-gradient(
                180deg,
                rgba(4, 4, 7, 0.54) 0%,
                rgba(7, 7, 10, 0.36) 20%,
                rgba(7, 7, 10, 0.24) 42%,
                rgba(7, 7, 10, 0.46) 72%,
                rgba(5, 5, 8, 0.76) 100%
            ),
            url("/assets/images/bg-mobile.jpg") center top / cover no-repeat;
    }

    .site-nav {
        display: none;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-stats,
    .project-grid,
    .capability-grid,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .about-panel,
    .contact-panel,
    .project-card {
        padding: 24px;
    }

    .container {
        width: min(calc(100% - 24px), var(--max-width));
    }

    #particle-canvas {
        opacity: 0.48;
    }

    .bg-grid {
        opacity: 0.07;
        height: 28vh;
    }

    .bg-glow {
        opacity: 0.24;
    }

    .hero-orb {
        width: 300px;
        height: 300px;
        top: -10px;
        left: 50%;
    }

    .project-media {
        aspect-ratio: 7 / 10;
    }
}

.workflow-explorer {
    display: grid;
    grid-template-columns: 1.02fr 1.18fr;
    gap: 28px;
    align-items: start;
}

.workflow-map {
    display: grid;
    gap: 18px;
}

.workflow-node {
    appearance: none;
    width: 100%;
    border: 1px solid rgba(255, 153, 51, 0.20);
    background:
        linear-gradient(180deg, rgba(16, 16, 22, 0.88), rgba(8, 8, 12, 0.94)),
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.06), transparent 40%);
    color: var(--text);
    border-radius: 22px;
    padding: 22px 22px 20px;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 191, 71, 0.04);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.workflow-node:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 191, 71, 0.34);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(255, 122, 0, 0.10),
        inset 0 1px 0 rgba(255, 191, 71, 0.07);
}

.workflow-node.is-active {
    border-color: rgba(255, 191, 71, 0.52);
    background:
        linear-gradient(180deg, rgba(36, 24, 14, 0.92), rgba(12, 10, 11, 0.96)),
        radial-gradient(circle at top right, rgba(255, 122, 0, 0.16), transparent 42%);
    box-shadow:
        0 28px 58px rgba(0, 0, 0, 0.38),
        0 0 34px rgba(255, 122, 0, 0.16),
        inset 0 1px 0 rgba(255, 191, 71, 0.09);
}

.workflow-node:hover .workflow-node-icon,
.workflow-node.is-active .workflow-node-icon {
    transform: translateY(-1px) scale(1.04);
    color: #fff2cf;
    border-color: rgba(255, 191, 71, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 30px rgba(0, 0, 0, 0.22),
        0 0 24px rgba(255, 122, 0, 0.10);
}

.workflow-node-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.workflow-node-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.workflow-node-kicker-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.workflow-node-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 191, 71, 0.18), rgba(255, 122, 0, 0.20));
    border: 1px solid rgba(255, 191, 71, 0.24);
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    box-shadow: 0 0 18px rgba(255, 122, 0, 0.10);
}

.workflow-node-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--gold);
    background:
        linear-gradient(180deg, rgba(255, 191, 71, 0.16), rgba(255, 122, 0, 0.08)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 191, 71, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.workflow-node-icon svg {
    width: 21px;
    height: 21px;
    display: block;
}

.workflow-node-kicker {
    color: var(--amber);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    text-align: right;
}

.workflow-node-title {
    display: block;
    font-size: 1.42rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.workflow-node-subtitle {
    display: block;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.workflow-node-figure {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(9, 9, 13, 0.6);
    border: 1px solid rgba(255, 153, 51, 0.18);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
    width: fit-content;
    max-width: 100%;
}

.workflow-node-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.workflow-node-caption {
    display: block;
    padding: 14px 16px 16px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.workflow-detail {
    min-height: 100%;
    padding: 34px;
}

.workflow-detail h3 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.workflow-detail p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.workflow-detail-extra {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.workflow-detail-extra[hidden] {
    display: none;
}

.workflow-content-store {
    display: none;
}

@media (max-width: 1080px) {
    .workflow-explorer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .workflow-node {
        padding: 18px 18px 17px;
        border-radius: 18px;
    }

    .workflow-node-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 12px;
    }

    .workflow-node-meta {
        width: auto;
    }

    .workflow-node-kicker-group {
        width: 100%;
        justify-content: space-between;
    }

    .workflow-node-kicker {
        text-align: left;
    }

    .workflow-node-title {
        font-size: 1.18rem;
    }

    .workflow-detail {
        padding: 24px;
    }

    .workflow-node-subtitle {
        font-size: 0.94rem;
    }
}

@media (max-width: 1080px) {
    .workflow-detail.is-mobile-inline {
        margin-top: 14px;
    }
}
