/*
Theme Name: OBS Tech Child
Template: twentytwentyfour
Description: High-performance, AI-augmented custom architecture for OBS. Includes full project builder, dashboard UI extensions, and glowing highlights.
Version: 1.5.0
*/

:root {
    --cobalt: #0047AB;
    --cobalt-glow: rgba(0, 71, 171, 0.4);
    --teal: #008080;
    --teal-glow: rgba(0, 128, 128, 0.4);
    --electric-teal: #00E5FF;
    --bg-dark: #020202;
    --bg-card: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

/* Master Wrapper */
#obs-ui-root {
    background-color: var(--bg-dark); 
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden; 
    width: 100%; 
    position: relative;
}

#obs-ui-root h1, 
#obs-ui-root h2, 
#obs-ui-root h3, 
#obs-ui-root h4, 
#obs-ui-root p { 
    color: var(--text-main); 
    margin: 0; 
}

/* Typography */
#obs-ui-root .text-gradient {
    background: linear-gradient(90deg, var(--teal) 0%, var(--cobalt) 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
}

#obs-ui-root .heading-xl { 
    font-size: clamp(3rem, 6vw, 5.5rem); 
    font-weight: 800; 
    line-height: 1.1; 
    letter-spacing: -0.03em; 
    margin-bottom: 1.5rem; 
    text-align: center; 
}

#obs-ui-root .heading-lg { 
    font-size: clamp(2rem, 4vw, 3.5rem); 
    font-weight: 700; 
    margin-bottom: 1.5rem; 
    text-align: center; 
}

#obs-ui-root .text-lg { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    line-height: 1.7; 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
}

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

/* Layouts & Grids */
#obs-ui-root .section-wrapper { 
    position: relative; 
    padding: 8rem 2rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    z-index: 2; 
}

#obs-ui-root .grid-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    width: 100%; 
    max-width: 1280px; 
    margin: 4rem auto 0; 
}

#obs-ui-root .grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
    width: 100%; 
    max-width: 1280px; 
    margin: 4rem auto 0; 
}

#obs-ui-root .grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    width: 100%; 
    max-width: 1280px; 
    margin: 4rem auto 0; 
}

#obs-ui-root .bento-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: 250px; 
    gap: 1.5rem; 
    width: 100%; 
    max-width: 1280px; 
    margin: 4rem auto 0; 
}

.bento-wide { grid-column: span 2; } 
.bento-tall { grid-row: span 2; }

@media(max-width: 900px) { 
    #obs-ui-root .bento-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); } 
    .bento-wide, .bento-tall { grid-column: span 1; grid-row: span 1; } 
}

/* Spider Node Hub (Hero Section) */
.spider-hub { 
    position: relative; 
    width: 100%; 
    max-width: 1100px; 
    margin: 2rem auto 6rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 600px; 
    z-index: 5; 
}

.spider-center { 
    position: relative; 
    z-index: 10; 
    width: 560px; 
    max-width: 50vw; 
    filter: drop-shadow(0 0 45px rgba(0, 128, 128, 0.7)); 
}

.spider-node { 
    position: absolute; 
    color: #fff; 
    font-weight: 700; 
    font-size: 1.15rem; 
    letter-spacing: 0.05em; 
    text-align: center; 
    text-shadow: 0 0 10px rgba(0, 128, 128, 0.8); 
    z-index: 15; 
    padding: 1rem 1.5rem; 
    background: rgba(5,5,5,0.6); 
    border: 1px solid var(--border-subtle); 
    border-radius: 8px; 
    backdrop-filter: blur(8px); 
    transition: all 0.3s ease; 
    cursor: default; 
}

.spider-node:hover { 
    border-color: var(--teal); 
    box-shadow: 0 0 25px rgba(0, 128, 128, 0.4); 
    transform: scale(1.05) translateY(-50%) !important; 
}

/* Spider Legs (SVG Circuit Lines) */
.spider-lines { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
    pointer-events: none; 
}

.circuit-path { 
    fill: none; 
    stroke: url(#circuit-grad); 
    stroke-width: 3; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    filter: drop-shadow(0 0 8px rgba(0, 128, 128, 0.8)); 
    stroke-dasharray: 1000; 
    stroke-dashoffset: 1000; 
    animation: drawLine 3s ease forwards 1s, pulseGlow 4s infinite alternate 4s; 
}

@media(min-width: 1024px) {
    .node-tl { top: 15%; left: 0; transform: translateY(-50%); }
    .node-ml { top: 50%; left: -5%; transform: translateY(-50%); }
    .node-bl { top: 85%; left: 0; transform: translateY(-50%); }
    .node-tr { top: 15%; right: 0; transform: translateY(-50%); }
    .node-mr { top: 50%; right: -5%; transform: translateY(-50%); }
    .node-br { top: 85%; right: 0; transform: translateY(-50%); }
}

@media(max-width: 1023px) {
    .spider-hub { flex-direction: column; gap: 1.5rem; min-height: auto; }
    .spider-node { position: relative; top: auto; left: auto; right: auto; bottom: auto; transform: none !important; width: 100%; max-width: 350px; }
    .spider-node:hover { transform: scale(1.05) !important; }
    .spider-lines { display: none; }
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Standard UI Cards */
#obs-ui-root .ui-card {
    background: rgba(10, 10, 10, 0.7); 
    border: 1px solid var(--border-subtle); 
    border-radius: 12px; 
    padding: 3rem 2.5rem;
    backdrop-filter: blur(16px); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; 
    overflow: hidden; 
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
}

#obs-ui-root .ui-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: linear-gradient(90deg, var(--teal), var(--cobalt)); 
    opacity: 0; 
    transition: opacity 0.4s ease; 
}

#obs-ui-root .ui-card:hover { 
    transform: translateY(-8px) scale(1.01); 
    border-color: rgba(0, 128, 128, 0.4); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 128, 128, 0.15); 
}

#obs-ui-root .ui-card:hover::before { opacity: 1; }
#obs-ui-root .ui-card h3 { font-size: 1.6rem; margin-bottom: 1rem; color: #fff; }
#obs-ui-root .ui-card p { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; font-size: 1.05rem; }
#obs-ui-root .ui-card a { color: var(--teal); text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: color 0.2s; margin-top: auto; }
#obs-ui-root .ui-card a:hover { color: #fff; }

/* Timeline Process */
.timeline-container { width: 100%; max-width: 1000px; margin: 4rem auto 0; position: relative; }
.timeline-container::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border-subtle); transform: translateX(-50%); }
.timeline-step { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; width: 100%; position: relative; }
.timeline-step:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { width: 45%; background: rgba(10, 10, 10, 0.8); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border-subtle); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.timeline-content:hover { border-color: var(--teal); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 128, 128, 0.1); }
.timeline-marker { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 50%; background: var(--bg-dark); border: 4px solid var(--cobalt); box-shadow: 0 0 15px var(--cobalt-glow); z-index: 2; }
.timeline-content h4 { color: var(--teal); font-size: 1.4rem; margin-bottom: 0.5rem; }

@media(max-width: 768px) { 
    .timeline-container::before { left: 20px; } 
    .timeline-step { flex-direction: column; align-items: flex-start; } 
    .timeline-step:nth-child(even) { flex-direction: column; } 
    .timeline-content { width: calc(100% - 50px); margin-left: 50px; } 
    .timeline-marker { left: 20px; top: 30px; } 
}

/* Case Study & Founder Sections */
.case-study-card { background: linear-gradient(145deg, #0a0a0a 0%, #050505 100%); border: 1px solid rgba(0, 71, 171, 0.3) !important; text-align: center !important; justify-content: center !important; }
.case-study-card .metric { font-size: 4rem; font-weight: 900; background: linear-gradient(180deg, #fff 0%, #888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.5rem; }
.founder-box { max-width: 900px; margin: 4rem auto 0; padding: 4rem; border-left: 4px solid var(--teal); background: linear-gradient(90deg, rgba(0, 128, 128, 0.05) 0%, transparent 100%); text-align: left; }
.founder-box p { font-size: 1.5rem; font-style: italic; color: #e0e0e0; line-height: 1.8; margin-bottom: 2rem; }
.founder-name { font-weight: 800; font-size: 1.2rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; }

/* Metrics Bar */
.metrics-bar { display: flex; flex-wrap: wrap; justify-content: space-around; width: 100%; max-width: 1280px; margin: 2rem auto; padding: 3rem; background: rgba(0, 71, 171, 0.03); border: 1px solid rgba(0, 71, 171, 0.2); border-radius: 12px; backdrop-filter: blur(10px); }
.metric-item { text-align: center; padding: 1rem; }
.metric-number { font-size: 3.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; display: block; }
.metric-label { color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; }

/* Glowing Paragraph Module */
.glowing-paragraph-wrapper { position: relative; margin: 3rem auto 0; text-align: center; max-width: 800px; padding: 2rem; z-index: 5; }
.glow-bg-radial { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.12) 0%, transparent 70%); z-index: -1; filter: blur(25px); pointer-events: none; }
.glowing-paragraph { color: #ffffff; text-shadow: 0 0 10px rgba(0, 229, 255, 0.3); font-size: 1.35rem; line-height: 1.8; margin-bottom: 2rem !important; }

/* Background Glows & Canvas */
.bg-glow-teal { position: absolute; top: 5%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--teal-glow) 0%, transparent 50%); filter: blur(120px); z-index: 0; pointer-events: none; animation: pulseGlow 10s infinite alternate; }
.bg-glow-cobalt { position: absolute; bottom: 5%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--cobalt-glow) 0%, transparent 50%); filter: blur(120px); z-index: 0; pointer-events: none; animation: pulseGlow 12s infinite alternate-reverse; }
@keyframes pulseGlow { 0% { opacity: 0.4; transform: scale(0.8) translate(0, 0); } 100% { opacity: 0.8; transform: scale(1.2) translate(20px, -20px); } }
#node-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Floating Elements & Reveals */
.float-subtle { animation: float 6s ease-in-out infinite; }
.float-delay { animation: float 8s ease-in-out infinite; animation-delay: 2s; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

.reveal-up { opacity: 0; transform: translateY(50px); transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; } 
.delay-2 { transition-delay: 0.3s; } 
.delay-3 { transition-delay: 0.45s; }

/* Terminal UI */
.terminal-window { background: #050505; border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 50px rgba(0, 128, 128, 0.15); width: 100%; max-width: 900px; margin: 4rem auto 0; text-align: left; }
.terminal-header { background: #0a0a0a; padding: 1rem 1.5rem; display: flex; gap: 8px; border-bottom: 1px solid var(--border-subtle); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; } 
.dot-yellow { background: #ffbd2e; } 
.dot-green { background: #27c93f; }
.terminal-body { padding: 2.5rem; font-family: 'Courier New', Courier, monospace; color: #a3a3a3; font-size: 1.1rem; line-height: 2; min-height: 300px; }
.code-blue { color: #61afef; } 
.code-teal { color: var(--teal); } 
.code-green { color: #98c379; }
.typewriter-cursor::after { content: '|'; animation: blink 1s step-start infinite; color: var(--teal); }
@keyframes blink { 50% { opacity: 0; } }

/* Universal OBS Buttons */
#obs-ui-root .obs-btn-primary { 
    background: var(--cobalt); 
    color: #fff; 
    padding: 1.25rem 2.5rem; 
    border-radius: 6px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3); 
    display: inline-block; 
    font-size: 1.125rem; 
    border: 1px solid transparent; 
    cursor: pointer; 
    text-align: center;
}
#obs-ui-root .obs-btn-primary:hover { 
    background: #003380; 
    transform: translateY(-3px); 
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.7); 
    color: #fff; 
    border-color: rgba(255,255,255,0.2);
}

#obs-ui-root .obs-btn-secondary { 
    background: transparent; 
    color: var(--teal); 
    padding: 1.25rem 2.5rem; 
    border-radius: 6px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    border: 1px solid var(--teal); 
    display: inline-block; 
    font-size: 1.125rem; 
    cursor: pointer; 
    text-align: center;
}
#obs-ui-root .obs-btn-secondary:hover { 
    background: rgba(0, 128, 128, 0.1); 
    color: #fff; 
    box-shadow: 0 0 20px rgba(0, 128, 128, 0.3); 
}

/* High-Tech Glow Marquee */
.tech-marquee { width: 100%; overflow: hidden; padding: 2.5rem 0; background: rgba(3, 3, 3, 0.8); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); backdrop-filter: blur(10px); z-index: 5; position: relative; }
.marquee-track { display: flex; width: calc(300px * 14); animation: scroll 35s linear infinite; }
.marquee-item { 
    width: 300px; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    color: #fff; 
    font-size: 1.5rem; 
    letter-spacing: 0.1em; 
    text-transform: uppercase; 
    transition: all 0.3s;
    text-shadow: 0 0 5px var(--electric-teal), 0 0 10px var(--electric-teal), 0 0 20px var(--electric-teal);
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-300px * 7)); } }

/* Premium Footer */
.premium-footer { background: #020202; border-top: 1px solid var(--border-subtle); padding: 6rem 2rem 2rem; position: relative; z-index: 10; }
.footer-logo { max-width: 150px; margin-bottom: 1.5rem; filter: drop-shadow(0 0 10px rgba(0, 128, 128, 0.3)); }
.footer-text { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; font-size: 0.95rem; }
.footer-heading { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s, padding-left 0.3s; display: inline-block; font-size: 0.95rem; }
.footer-links a:hover { color: var(--teal); padding-left: 5px; }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-input { flex: 1; padding: 0.8rem 1rem; border: 1px solid var(--border-subtle); background: #0a0a0a; color: #fff; border-radius: 4px; outline: none; transition: border-color 0.3s; }
.newsletter-input:focus { border-color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--border-subtle); margin-top: 4rem; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: #666; font-size: 0.85rem; }

/* Phase 3 AI Audit Report UI Extensions */
.ai-audit-report {
    background: rgba(0, 71, 171, 0.08);
    border: 1px solid var(--cobalt);
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(12px);
    animation: reveal-up 0.6s ease-out;
}
.ai-audit-report h4 {
    color: var(--electric-teal);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ai-audit-metric {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 500;
}
.ai-audit-metric:last-of-type { border-bottom: none; }
.ai-audit-recommendation {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-subtle);
}

/* ==========================================================
   v1.2.0 - Global header, footer & shared components
   ========================================================== */
body { background-color: #020202; }

/* Sticky dark header (template part wrapper) */
header.wp-block-template-part { position: sticky; top: 0; z-index: 1000; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }

.obs-site-header {
    background: rgba(2, 2, 2, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 2rem;
    gap: 1.5rem;
}
.obs-site-header,
.obs-site-header a,
.obs-site-header .wp-block-site-title,
.obs-site-header .wp-block-site-title a { color: #ffffff; text-decoration: none; }
.obs-site-header .wp-block-site-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.obs-site-header .wp-block-navigation { font-weight: 600; font-size: 0.98rem; gap: 1.5rem; }
.obs-site-header .wp-block-navigation-item__content { padding: 0.35rem 0; transition: color .2s ease; }
.obs-site-header .wp-block-navigation-item__content:hover { color: var(--electric-teal); }

/* "Free AI Audit" nav button */
.obs-site-header .obs-nav-cta .wp-block-navigation-item__content {
    background: var(--cobalt); color: #fff; padding: 0.55rem 1.1rem;
    border-radius: 6px; box-shadow: 0 4px 15px rgba(0, 71, 171, 0.35);
}
.obs-site-header .obs-nav-cta .wp-block-navigation-item__content:hover { background: #003380; color: #fff; }

/* Mobile menu overlay */
.obs-site-header .wp-block-navigation__responsive-container-open,
.obs-site-header .wp-block-navigation__responsive-container-close { color: #fff; }
.obs-site-header .wp-block-navigation__responsive-container.is-menu-open { background-color: #020202; color: #fff; }

/* Shared components used by pages but previously missing */
.badge-tech {
    display: inline-block; padding: 0.4rem 1rem; border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 999px; color: var(--electric-teal); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; background: rgba(0, 229, 255, 0.06);
}

/* Footer now lives in the template part (outside #obs-ui-root), so re-scope its helpers */
.premium-footer .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; width: 100%; max-width: 1280px; margin: 0 auto; }
.premium-footer .obs-btn-primary { background: var(--cobalt); color: #fff; padding: 0.9rem 1.6rem; border-radius: 6px; font-weight: 600; text-decoration: none; display: inline-block; }
.premium-footer .obs-btn-primary:hover { background: #003380; }
.premium-footer h4 { margin-top: 0; }

/* Keep block-theme spacing from adding gaps around the full-bleed pages */
.wp-site-blocks > * + * { margin-block-start: 0; }


/* ==========================================================
   v1.2.1 - Make ANY header/footer readable on the dark site
   (fixes dark-text-on-dark-background from saved Site Editor parts)
   ========================================================== */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part {
    background-color: #020202;
    color: #ffffff;
}
.wp-block-template-part,
.wp-block-template-part p,
.wp-block-template-part li,
.wp-block-template-part h1,
.wp-block-template-part h2,
.wp-block-template-part h3,
.wp-block-template-part h4,
.wp-block-template-part a,
.wp-block-template-part .wp-block-site-title a,
.wp-block-template-part .wp-block-site-tagline,
.wp-block-template-part .wp-block-navigation-item__content,
.wp-block-template-part .wp-block-navigation__responsive-container-open,
.wp-block-template-part .wp-block-navigation__responsive-container-close {
    color: #ffffff !important;
}
.wp-block-template-part a:hover,
.wp-block-template-part .wp-block-navigation-item__content:hover { color: var(--electric-teal) !important; }

/* Buttons inside header/footer (e.g. "Get Free AI Audit") */
.wp-block-template-part .wp-block-button__link,
.wp-block-template-part .wp-element-button {
    background-color: var(--cobalt) !important;
    color: #ffffff !important;
    border-radius: 6px;
}
.wp-block-template-part .wp-block-button__link:hover { background-color: #003380 !important; }

/* Header bar look + sticky */
header.wp-block-template-part {
    border-bottom: 1px solid var(--border-subtle);
    position: sticky; top: 0; z-index: 1000;
}
footer.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:last-child { border-top: 1px solid var(--border-subtle); }


/* ==========================================================
   v1.2.2 - Plain-HTML fallback header (injected by functions.php when missing)
   ========================================================== */
.obs-fb-header {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    padding: 0.8rem 2rem;
    background: rgba(2, 2, 2, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.admin-bar .obs-fb-header { top: 32px; }
.obs-fb-brand { display: flex; align-items: center; gap: 0.75rem; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.obs-fb-brand img { width: 40px; height: 40px; display: block; }
.obs-fb-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.obs-fb-nav a { color: #fff !important; text-decoration: none; font-weight: 600; font-size: 0.98rem; transition: color .2s ease; }
.obs-fb-nav a:hover { color: var(--electric-teal) !important; }
.obs-fb-nav a.obs-fb-cta { background: var(--cobalt); padding: 0.55rem 1.1rem; border-radius: 6px; box-shadow: 0 4px 15px rgba(0, 71, 171, 0.35); }
.obs-fb-nav a.obs-fb-cta:hover { background: #003380; color: #fff !important; }
.obs-fb-toggle, .obs-fb-burger { display: none; }
@media (max-width: 782px) {
    .admin-bar .obs-fb-header { top: 46px; }
    .obs-fb-header { padding: 0.7rem 1.25rem; }
    .obs-fb-burger { display: block; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
    .obs-fb-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 0 0.5rem; }
    .obs-fb-toggle:checked ~ .obs-fb-nav { display: flex; }
}


/* ==========================================================
   v1.3.0 - Site-wide CTAs (floating button, pre-footer band, content boxes)
   ========================================================== */
html, body { overflow-x: clip; }

.obs-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1;
    text-decoration: none !important; border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.obs-cta-btn b { font-weight: 700; transition: transform .2s ease; }
.obs-cta-btn:hover b { transform: translateX(4px); }
.obs-cta-btn.is-primary { color: #fff !important; background: linear-gradient(135deg, #0047AB, #0a6ad6); box-shadow: 0 8px 26px rgba(0,71,171,.45); }
.obs-cta-btn.is-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,71,171,.65), 0 0 24px rgba(0,229,255,.25); }
.obs-cta-btn.is-ghost { color: #e5e5e5 !important; background: transparent; border-color: rgba(255,255,255,.22); }
.obs-cta-btn.is-ghost:hover { border-color: #00E5FF; color: #fff !important; }
.obs-cta-inline { margin: 1.2rem 0; }
.obs-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Pre-footer band */
.obs-cta-band {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,71,171,.35), transparent 65%), #040a14;
    border-top: 1px solid rgba(0,229,255,.18);
    color: #fff;
}
.obs-cta-inner { max-width: 760px; margin: 0 auto; }
.obs-cta-eyebrow { display: inline-block; padding: .4rem 1rem; border: 1px solid rgba(0,229,255,.35); border-radius: 999px; background: rgba(0,229,255,.06); color: #00E5FF; font-size: .75rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 1.2rem; }
.obs-cta-band h2 { color: #fff !important; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 0 0 1rem; }
.obs-cta-band p { color: #a3a3a3 !important; font-size: 1.1rem; line-height: 1.65; margin: 0 auto 2rem; max-width: 34rem; }
.obs-grad { background: linear-gradient(90deg, #00b3b3, #2f7dff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* In-content CTAs on Service / Case Study / Update posts */
.obs-inline-cta { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: .9rem 1.2rem; margin: 0 0 1.8rem; border: 1px solid rgba(0,229,255,.25); border-left: 3px solid #00E5FF; border-radius: 8px; background: rgba(0,229,255,.05); color: #e5e5e5; }
.obs-inline-cta a { color: #00E5FF; font-weight: 700; text-decoration: none; }
.obs-inline-cta a:hover { text-decoration: underline; }
.obs-cta-box { margin: 3rem 0 1rem; padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; border: 1px solid rgba(0,229,255,.22); border-radius: 16px; background: linear-gradient(135deg, rgba(0,71,171,.22), rgba(0,128,128,.1)); color: #fff; }
.obs-cta-box h3 { color: #fff !important; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .6rem; }
.obs-cta-box p { color: #b5b5b5 !important; margin: 0 auto 1.5rem; max-width: 32rem; }

/* Floating CTA */
.obs-float-cta {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 999;
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .95rem 1.4rem; border-radius: 999px;
    background: linear-gradient(135deg, #0047AB, #0a6ad6); color: #fff !important;
    font-weight: 700; font-size: .98rem; text-decoration: none !important;
    box-shadow: 0 10px 34px rgba(0,71,171,.6), 0 0 0 1px rgba(0,229,255,.25);
    opacity: 0; transform: translateY(24px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, box-shadow .25s ease;
}
.obs-float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.obs-float-cta:hover { box-shadow: 0 14px 40px rgba(0,71,171,.8), 0 0 28px rgba(0,229,255,.35); }
.obs-float-cta b { transition: transform .2s ease; }
.obs-float-cta:hover b { transform: translateX(4px); }
@media (max-width: 782px) {
    .obs-float-cta { left: 1rem; right: 1rem; bottom: 1rem; justify-content: center; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .obs-float-cta, .obs-cta-btn, .obs-cta-btn b { transition: none; } }


/* ==========================================================
   v1.4.0 - Readable content on the dark site + service / archive layouts
   ========================================================== */
.wp-site-blocks > main { color: #d4d4d4; }
.wp-site-blocks > main :is(h1, h2, h3, h4, h5, h6),
.wp-site-blocks > main .wp-block-post-title a { color: #ffffff; }
.wp-site-blocks > main .wp-block-post-content a:where(:not(.wp-element-button):not(.obs-cta-btn)),
.wp-site-blocks > main .wp-block-read-more,
.wp-site-blocks > main .wp-block-query-pagination a { color: #00E5FF; }
.wp-site-blocks > main .wp-block-post-content a:where(:not(.wp-element-button):not(.obs-cta-btn)):hover { color: #7df3ff; }

.obs-single, .obs-archive { padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 6vw, 5rem); }
.obs-single .wp-block-post-title, .obs-archive-title {
    font-size: clamp(2.3rem, 5.5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 1.4rem;
}
.obs-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.7; color: #e5e5e5; }
.obs-single h2 { margin: 3rem 0 1.1rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
.obs-single p, .obs-single li { line-height: 1.75; }

/* Check-mark and cross lists */
ul.obs-checks, ul.obs-crosses { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .85rem; }
ul.obs-checks li, ul.obs-crosses li { position: relative; padding-left: 2.1rem; }
ul.obs-checks li::before, ul.obs-crosses li::before {
    content: ""; position: absolute; left: 0; top: .42em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
    background-repeat: no-repeat; background-position: center; background-size: 70%;
}
ul.obs-checks li::before { background-color: rgba(0,229,255,.12); border: 1px solid rgba(0,229,255,.45);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5 9-10' fill='none' stroke='%2300E5FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
ul.obs-crosses li::before { background-color: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.45);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23ff6b6b' stroke-width='3' stroke-linecap='round'/></svg>"); }

/* Numbered process steps */
ol.obs-steps { list-style: none; counter-reset: obs-step; padding: 0; margin: 1.2rem 0; display: grid; gap: 1rem; }
ol.obs-steps li { counter-increment: obs-step; position: relative; padding: 1.1rem 1.3rem 1.1rem 4.3rem; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.025); }
ol.obs-steps li::before {
    content: counter(obs-step); position: absolute; left: 1.1rem; top: 1.05rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    display: grid; place-items: center; background: linear-gradient(135deg, #0047AB, #0a6ad6); color: #fff; font-weight: 700;
}
ol.obs-steps li strong { color: #fff; }

/* FAQ accordions */
.obs-single .wp-block-details { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 1rem 1.25rem; background: rgba(255,255,255,.025); margin: .8rem 0; transition: border-color .25s; }
.obs-single .wp-block-details[open] { border-color: rgba(0,229,255,.4); }
.obs-single .wp-block-details summary { cursor: pointer; font-weight: 700; color: #fff; line-height: 1.5; }
.obs-single .wp-block-details p { margin: .8rem 0 .2rem; color: #c9c9c9; }

.obs-callout { border-left: 3px solid #008080; padding: 1rem 1.25rem; background: rgba(0,128,128,.08); border-radius: 0 8px 8px 0; }

/* Archive cards */
.obs-archive .obs-lead { max-width: 44rem; margin-bottom: 2.5rem; }
.obs-archive-query .obs-card-item { height: 100%; padding: 1.6rem; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.025); transition: border-color .25s, transform .25s, box-shadow .25s; }
.obs-archive-query .obs-card-item:hover { border-color: rgba(0,229,255,.45); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,71,171,.25); }
.obs-archive-query .wp-block-post-title { margin: 0 0 .7rem; font-size: 1.3rem; line-height: 1.25; }
.obs-archive-query .wp-block-post-title a { text-decoration: none; }
.obs-archive-query .wp-block-post-excerpt { color: #b5b5b5; font-size: .98rem; }
.obs-archive-query .wp-block-read-more { display: inline-block; margin-top: .8rem; font-weight: 700; text-decoration: none; }
.obs-archive-query .wp-block-query-pagination { margin-top: 2rem; gap: 1rem; }

/* v1.4.1 - archive intro text aligns with the title */
.obs-archive .obs-lead { margin-left: 0 !important; margin-right: auto !important; max-width: 44rem; }


/* ==========================================================
   v1.5.0 - Mobile layout fixes + performance
   ========================================================== */

/* Hero text must be visible immediately (helps Largest Contentful Paint) */
#obs-ui-root > section:first-of-type .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }

/* Skip rendering of below-the-fold sections until they are near the screen */
#obs-ui-root > section:not(:first-of-type) { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Prevent grids from overflowing narrow phones */
#obs-ui-root .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
#obs-ui-root .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
#obs-ui-root .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
#obs-ui-root img, #obs-ui-root svg { max-width: 100%; height: auto; }

/* Hero hub: logo first, services in two tidy columns (tablet and phone) */
@media (max-width: 1023px) {
    .spider-hub { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1rem auto 3rem; min-height: auto; }
    .spider-center { order: -1; grid-column: 1 / -1; justify-self: center; width: 320px; max-width: 70vw; height: auto; }
    .spider-node { max-width: none !important; font-size: 1rem; padding: .85rem 1rem; }
}

@media (max-width: 782px) {
    #obs-ui-root > section:first-of-type { min-height: auto !important; padding-top: 2.5rem !important; }
    #obs-ui-root .section-wrapper { padding: 4rem 1.25rem; }
    #obs-ui-root .heading-xl { font-size: clamp(2.1rem, 9vw, 3rem); }
    #obs-ui-root .heading-lg { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    #obs-ui-root .text-lg { font-size: 1.05rem; }
    #obs-ui-root .ui-card { padding: 2rem 1.4rem; }
    #obs-ui-root .ui-card h3 { font-size: 1.35rem; }
    .founder-box { padding: 1.75rem 1.25rem; }
    .founder-box p { font-size: 1.15rem; }
    .metrics-bar { padding: 1.25rem .5rem; }
    .metric-number { font-size: 2.6rem; }
    .case-study-card .metric { font-size: 3rem; }
    .terminal-body { padding: 1.25rem; font-size: .9rem; min-height: 220px; overflow-wrap: anywhere; }
    .glowing-paragraph { font-size: 1.1rem; }
    .premium-footer { padding: 3.5rem 1.25rem 1.5rem; }
    .marquee-item { font-size: 1.1rem; }

    /* Buttons stack and fill the width */
    #obs-ui-root .button-group { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; }
    #obs-ui-root .obs-btn-primary, #obs-ui-root .obs-btn-secondary { display: block; width: 100%; padding: 1.1rem 1.25rem; }

    /* Performance: drop the heaviest effects on phones */
    .bg-glow-teal, .bg-glow-cobalt { filter: blur(50px); animation: none; }
    #obs-ui-root .ui-card, .timeline-content, .metrics-bar, .tech-marquee, .spider-node, .obs-cta-band { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .float-subtle, .float-delay { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up { opacity: 1 !important; transform: none !important; transition: none !important; }
    .float-subtle, .float-delay, .marquee-track, .circuit-path, .bg-glow-teal, .bg-glow-cobalt { animation: none !important; }
    .circuit-path { stroke-dashoffset: 0; }
}
