/* =========================================================
   Urban Panthera Digital Strategies
   Full responsive stylesheet
   File: assets/css/style.css
   ========================================================= */

:root {
    --bg: #05070b;
    --bg-soft: #0b1018;
    --panel: #0f1724;
    --panel-2: #111c2d;
    --text: #eef6ff;
    --muted: #9fb0c6;
    --line: rgba(148, 163, 184, 0.22);
    --cyan: #22d3ee;
    --cyan-2: #67e8f9;
    --teal: #14b8a6;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --max: 1180px;
}

/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 95% 12%, rgba(20, 184, 166, 0.12), transparent 30rem),
        linear-gradient(135deg, #020617 0%, var(--bg) 55%, #030712 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

/* ---------- HEADER ---------- */

.site-header {
    width: 100%;
    background: rgba(3, 7, 18, 0.92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.nav-wrap {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
}

.brand-title {
    color: var(--white);
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 18px;
    white-space: nowrap;
}

.brand-subtitle {
    color: var(--cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 4px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    opacity: 0.9;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--cyan-2);
}

.nav-cta {
    padding: 10px 14px;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
}

/* ---------- HERO ---------- */

.hero,
.home-hero {
    padding: 88px 0 72px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 42px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--cyan-2);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--cyan);
    border-radius: 999px;
}

.hero h1,
.home-hero h1,
.page-title {
    margin: 0 0 20px;
    color: white;
    font-size: clamp(44px, 8vw, 86px);
    line-height: 0.94;
    letter-spacing: -0.075em;
}

.hero p,
.home-hero p,
.lead {
    margin: 0 0 28px;
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 900;
    line-height: 1.1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: #021018;
    border-color: transparent;
    box-shadow: 0 14px 40px rgba(34, 211, 238, 0.22);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.78);
    color: white;
}

.hero-card {
    background:
        linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent),
        rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.hero-logo {
    width: 100%;
    max-width: 430px;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
}

/* ---------- SECTIONS ---------- */

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 36px 0;
}

.section-head {
    max-width: 820px;
    margin-bottom: 28px;
}

.section-head h2,
.section-title {
    margin: 0 0 12px;
    color: white;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.section-head p,
.section-text {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
        rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.card h3 {
    margin: 0 0 10px;
    color: white;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.card li {
    margin: 6px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.09);
    border: 1px solid rgba(34, 211, 238, 0.24);
    color: var(--cyan-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.featured {
    border-color: rgba(34, 211, 238, 0.34);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 18rem),
        rgba(15, 23, 42, 0.84);
}

/* ---------- WORK / CASE STUDIES ---------- */

.case-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.link-card {
    color: var(--cyan-2);
    font-weight: 900;
    text-decoration: none;
    margin-top: auto;
}

.link-card:hover {
    text-decoration: underline;
}

/* ---------- LABS ---------- */

.lab-banner {
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(20, 184, 166, 0.06)),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 28px;
    padding: 28px;
}

.demo-list {
    display: grid;
    gap: 12px;
}

.demo-link {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.36);
    color: white;
    text-decoration: none;
}

.demo-link:hover {
    border-color: rgba(34, 211, 238, 0.5);
}

/* ---------- FORMS ---------- */

.form-card {
    max-width: 760px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

label {
    color: #dbeafe;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    margin-top: 6px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
    color: white;
    font: inherit;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(34, 211, 238, 0.66);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10);
}

/* ---------- FOOTER ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
    padding: 30px 0;
    color: var(--muted);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 700;
}

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

/* ---------- SIMPLE PAGE HEADER ---------- */

.page-hero {
    padding: 66px 0 34px;
}

.page-hero .lead {
    margin-bottom: 0;
}

/* ---------- UTILITY ---------- */

.text-cyan {
    color: var(--cyan-2);
}

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

.center {
    text-align: center;
}

.spacer {
    height: 24px;
}

/* ---------- MOBILE FIXES ---------- */

@media (max-width: 980px) {
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-card {
        order: -1;
    }

    .hero-logo {
        max-width: 330px;
    }
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at 30% 0%, rgba(34, 211, 238, 0.12), transparent 24rem),
            linear-gradient(135deg, #020617 0%, #05070b 100%);
    }

    .container,
    .nav-wrap {
        width: min(100% - 24px, var(--max));
    }

    .site-header {
        position: relative;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
    }

    .nav-wrap {
        min-height: 0 !important;
        height: auto !important;
        padding: 12px 0 !important;
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: start !important;
        justify-content: start !important;
        gap: 10px !important;
    }

    .brand {
        width: 100%;
        gap: 10px;
    }

    .brand img {
        width: 52px !important;
        height: 52px !important;
        max-height: 52px !important;
    }

    .brand-title {
        font-size: 16px;
        white-space: normal;
    }

    .brand-subtitle {
        font-size: 10px;
        white-space: normal;
        letter-spacing: 0.12em;
    }

    .main-nav {
        width: 100%;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 9px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-nav a {
        color: #ffffff !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        padding: 8px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav .nav-cta {
        background: rgba(34, 211, 238, 0.10);
        border-color: rgba(34, 211, 238, 0.30);
    }

    .hero,
    .home-hero {
        min-height: 0 !important;
        height: auto !important;
        padding: 34px 0 42px !important;
        margin: 0 !important;
        text-align: left;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero-card {
        padding: 14px;
        border-radius: 22px;
    }

    .hero-logo {
        max-width: 260px;
    }

    .eyebrow {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .hero h1,
    .home-hero h1,
    .page-title {
        font-size: clamp(42px, 15vw, 58px) !important;
        line-height: 0.96 !important;
        margin: 8px 0 16px !important;
        letter-spacing: -0.07em !important;
    }

    .hero p,
    .home-hero p,
    .lead {
        font-size: 16px !important;
        line-height: 1.55 !important;
        margin-bottom: 20px;
    }

    .hero-actions,
    .actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
        min-height: 48px;
    }

    .section {
        padding: 42px 0;
    }

    .section-tight {
        padding: 28px 0;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .section-head h2,
    .section-title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .card,
    .lab-banner {
        padding: 18px;
        border-radius: 18px;
    }

    .demo-link {
        flex-direction: column;
    }

    .page-hero {
        padding: 38px 0 24px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .container,
    .nav-wrap {
        width: min(100% - 20px, var(--max));
    }

    .brand img {
        width: 46px !important;
        height: 46px !important;
    }

    .brand-title {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 9px;
    }

    .main-nav a {
        font-size: 12px !important;
        padding: 7px 9px;
    }

    .hero,
    .home-hero {
        padding-top: 28px !important;
    }

    .hero h1,
    .home-hero h1,
    .page-title {
        font-size: 42px !important;
    }
}

/* =========================================================
   DEMO HUB + AUTO-DEMO REGISTRY
   Added for main-site <-> demo-site interaction
   ========================================================= */

.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.demo-hero .hero-card,
.demo-status-card {
    border: 1px solid rgba(34, 211, 238, 0.28);
}

.demo-grid {
    align-items: stretch;
}

.demo-grid.compact .demo-card p {
    min-height: 78px;
}

.demo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    opacity: 0.95;
}

.demo-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-updated {
    color: var(--cyan-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-client {
    color: var(--cyan-2) !important;
    font-weight: 800;
    margin-bottom: 0 !important;
}

.demo-featured-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    border: 1px solid rgba(34, 211, 238, 0.30);
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.13), transparent 25rem),
        rgba(15, 23, 36, 0.9);
}

.demo-feature-actions {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.code-block {
    display: block;
    overflow-x: auto;
    white-space: pre;
    background: rgba(2, 6, 23, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    color: #dbeafe;
    padding: 18px;
    font-size: 13px;
    line-height: 1.5;
}

.nav-wrap .main-nav a[href$="demos.php"] {
    position: relative;
}

.nav-wrap .main-nav a[href$="demos.php"]::after {
    content: "";
    position: absolute;
    right: 0;
    top: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.7);
}

@media (max-width: 860px) {
    .demo-featured-card {
        grid-template-columns: 1fr;
    }

    .demo-feature-actions {
        justify-items: start;
    }
}

/* =========================================================
   DESIGN CONSISTENCY PATCH - Work, Labs, About
   Keeps secondary pages true to the Urban Panthera homepage design.
   ========================================================= */

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero.work-hero,
.page-hero.labs-hero,
.page-hero.about-hero,
.page-hero.demo-hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.17), transparent 34rem),
        radial-gradient(circle at 92% 16%, rgba(20, 184, 166, 0.12), transparent 28rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(5, 7, 11, 0.92));
}

.page-hero.work-hero::after,
.page-hero.labs-hero::after,
.page-hero.about-hero::after,
.page-hero.demo-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 42rem;
    height: 42rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.05);
    filter: blur(8px);
    pointer-events: none;
}

.proof-summary-card,
.lab-status-card,
.identity-card,
.demo-status-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proof-logo {
    width: 160px;
    max-height: 95px;
    object-fit: contain;
    object-position: left center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    padding: 12px;
    margin-bottom: 16px;
}

.proof-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lab-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.20), rgba(20, 184, 166, 0.12));
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: var(--cyan-2);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 28px;
    align-items: start;
}

.split-copy {
    margin-bottom: 0;
}

.about-mini-grid {
    grid-template-columns: 1fr;
}

.lab-banner-card {
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 18rem),
        rgba(15, 23, 42, 0.82);
}

.label-cloud {
    margin-bottom: 16px;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(34, 211, 238, 0.30);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 28, 45, 0.84));
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 4.4vw, 48px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.cta-panel p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

/* Backwards compatibility for older secondary page markup. */
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lab-badge { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(34, 211, 238, 0.09); border: 1px solid rgba(34, 211, 238, 0.24); color: var(--cyan-2); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cta { width: min(var(--max), calc(100% - 32px)); margin: 64px auto; padding: 34px; border-radius: 30px; border: 1px solid rgba(34, 211, 238, 0.30); background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 28, 45, 0.84)); box-shadow: var(--shadow); }
.cta h2 { color: #fff; font-size: clamp(28px, 4.4vw, 48px); line-height: 1; letter-spacing: -0.055em; }
.cta p { color: var(--muted); }

@media (max-width: 980px) {
    .split-layout,
    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .proof-logo {
        width: 135px;
    }
}

@media (max-width: 768px) {
    .proof-summary-card,
    .lab-status-card,
    .identity-card,
    .demo-status-card {
        min-height: 0;
    }

    .cta-panel,
    .cta {
        padding: 22px;
        border-radius: 24px;
    }

    .proof-logo {
        width: 118px;
    }
}
