/*
Theme Name: PXR Digital
Theme URI: https://pxrdigital.com
Author: PXR Digital
Description: Custom theme for PXR Digital — marketing, web design, and IT services site with ACF-editable content.
Version: 1.0
Text Domain: pxr-digital
*/


  :root{
    --bg: #0A0C0F;
    --panel: #15181D;
    --panel-2: #232830;
    --border: #3A414C;
    --text: #F2F4F7;
    --text-muted: #96A0AC;
    --purple: #A63FC0;
    --cyan: #22C2EE;
    --radius: 8px;
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: light){
    :root:not([data-theme="dark"]){
      --bg:#F2F4F6; --panel:#FFFFFF; --panel-2:#E6E9ED; --border:#C7CDD5;
      --text:#14171B; --text-muted:#5B6570; --purple:#8B2FA6; --cyan:#0796BE;
      color-scheme: light;
    }
  }
  :root[data-theme="light"]{
    --bg:#F2F4F6; --panel:#FFFFFF; --panel-2:#E6E9ED; --border:#C7CDD5;
    --text:#14171B; --text-muted:#5B6570; --purple:#8B2FA6; --cyan:#0796BE;
    color-scheme: light;
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0; background:var(--bg); color:var(--text); font-family:var(--font-body);
    font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden;
  }
  img,svg{ max-width:100%; display:block; }
  a{ color:inherit; }
  button{ font-family:inherit; }
  p{ margin:0; }
  h1,h2,h3{ font-family:var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
  .container{ max-width:1240px; margin-inline:auto; padding-inline:clamp(20px,5vw,56px); }
  ::selection{ background:var(--purple); color:#fff; }
  :focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; }

  @media (prefers-reduced-motion: reduce){
    *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  }

  .grad-text{
    background: linear-gradient(120deg, var(--purple), var(--cyan));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }

  /* ---------- top chrome ---------- */
  .scroll-progress{ position:fixed; top:0; left:0; height:3px; width:0%; background:linear-gradient(90deg,var(--purple),var(--cyan)); z-index:2100; }

  .cursor-dot,.cursor-ring{ position:fixed; top:0; left:0; pointer-events:none; z-index:1900; border-radius:50%; transform:translate(-50%,-50%); }
  .cursor-dot{ width:6px; height:6px; background:var(--cyan); }
  .cursor-ring{ width:32px; height:32px; border:1px solid var(--purple); opacity:.7; transition:width .18s,height .18s,opacity .18s; }
  .cursor-ring.is-active{ width:52px; height:52px; opacity:1; }
  body.no-cursor .cursor-dot, body.no-cursor .cursor-ring{ display:none; }

  /* ---------- header ---------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:1500; height:76px; display:flex; align-items:center;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom:1px solid var(--border);
  }
  .nav-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
  .logo{ display:flex; align-items:baseline; gap:8px; text-decoration:none; }
  .logo-mark{ font-family:var(--font-display); font-weight:700; font-size:1.4rem; }
  .logo-mark .lx{ background:linear-gradient(120deg,var(--purple),var(--cyan)); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .logo-suffix{ font-size:0.92rem; color:var(--text-muted); font-weight:500; }

  .nav-links{ display:flex; align-items:center; gap:34px; list-style:none; margin:0; padding:0; }
  .nav-links a{ text-decoration:none; color:var(--text-muted); font-size:.94rem; position:relative; padding-bottom:4px; transition:color .2s; }
  .nav-links a::after{ content:''; position:absolute; left:0; right:100%; bottom:0; height:1px; background:linear-gradient(90deg,var(--purple),var(--cyan)); transition:right .25s ease; }
  .nav-links a:hover{ color:var(--text); }
  .nav-links a:hover::after,.nav-links a.is-active::after{ right:0; }
  .nav-links a.is-active{ color:var(--text); }

  .nav-cta{ display:flex; align-items:center; gap:16px; }
  .theme-toggle{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:transparent; color:var(--text-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:border-color .2s,color .2s; }
  .theme-toggle:hover{ border-color:var(--cyan); color:var(--cyan); }
  .theme-toggle svg{ width:16px; height:16px; }

  .btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:var(--radius); font-size:.94rem; font-weight:600; text-decoration:none; cursor:pointer; border:1px solid transparent; white-space:nowrap; }
  .btn-primary{ background:linear-gradient(120deg,var(--purple),var(--cyan)); color:#0B0D10; }
  .btn-primary:hover{ filter:brightness(1.08); }
  .btn-ghost{ background:transparent; border-color:var(--border); color:var(--text); }
  .btn-ghost:hover{ border-color:var(--cyan); color:var(--cyan); }

  .hamburger{ display:none; width:40px; height:40px; border:1px solid var(--border); border-radius:var(--radius); background:transparent; cursor:pointer; position:relative; flex-shrink:0; }
  .hamburger span{ position:absolute; left:10px; right:10px; height:1.5px; background:var(--text); transition:transform .3s,opacity .3s; }
  .hamburger span:nth-child(1){ top:14px; } .hamburger span:nth-child(2){ top:19.5px; } .hamburger span:nth-child(3){ top:25px; }
  .hamburger.is-open span:nth-child(1){ transform:translateY(5.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2){ opacity:0; }
  .hamburger.is-open span:nth-child(3){ transform:translateY(-5.5px) rotate(-45deg); }

  .mobile-menu{ position:fixed; inset:0; background:var(--bg); z-index:1400; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:26px; padding-inline:clamp(20px,8vw,56px); transform:translateX(100%); transition:transform .45s cubic-bezier(.6,0,.2,1); }
  .mobile-menu.is-open{ transform:translateX(0); }
  .mobile-menu a{ font-family:var(--font-display); font-size:1.9rem; text-decoration:none; color:var(--text); }
  .mobile-menu .btn{ margin-top:10px; }

  @media (max-width:900px){
    .nav-links{ display:none; }
    .nav-cta .btn-ghost{ display:none; }
    .hamburger{ display:block; }
  }

  main{ padding-top:76px; min-height:100vh; }
  section.band{ padding-block:clamp(64px,9vw,110px); }
  section.band + section.band{ border-top:1px solid var(--border); }
  .section-head{ max-width:58ch; margin-bottom:52px; }
  .section-head h2{ font-size:clamp(1.6rem,2.3vw+1rem,2.25rem); }
  .section-head p{ margin-top:14px; color:var(--text-muted); font-size:1.03rem; max-width:52ch; }

  [data-enter]{ opacity:0; transform:translateY(16px); }

  /* ================= HOME ================= */
  .hero{ display:grid; grid-template-columns:1fr; gap:20px; padding-block:clamp(48px,7vw,88px) clamp(40px,6vw,72px); }
  .hero h1{ font-size:clamp(2.3rem,4vw+1rem,3.9rem); line-height:1.08; max-width:18ch; }
  .hero .lede{ margin-top:22px; color:var(--text-muted); font-size:1.08rem; max-width:52ch; line-height:1.7; }
  .hero-actions{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }

  .demo-console{
    margin-top:64px; border:1px solid var(--border); border-radius:12px; background:var(--panel);
    padding:clamp(20px,4vw,36px); position:relative; overflow:hidden;
  }
  .demo-label{ font-size:.82rem; color:var(--text-muted); margin-bottom:16px; }
  .demo-input-row{ display:flex; gap:12px; flex-wrap:wrap; }
  .demo-input-row input{
    flex:1 1 260px; background:var(--panel-2); border:1px solid var(--border); color:var(--text);
    padding:14px 16px; border-radius:var(--radius); font-family:var(--font-body); font-size:1rem;
  }
  .demo-input-row input:focus{ outline:none; border-color:var(--cyan); }
  .demo-chips{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
  .chip{
    border:1px solid var(--border); background:transparent; color:var(--text-muted); border-radius:999px;
    padding:8px 14px; font-size:.83rem; cursor:pointer; transition:border-color .2s,color .2s;
  }
  .chip:hover{ border-color:var(--purple); color:var(--text); }

  .demo-output{ position:relative; margin-top:44px; height:min(60vw,380px); }
  .demo-node{
    position:absolute; width:100px; height:100px; margin:-50px 0 0 -50px; border-radius:50%;
    background:var(--panel-2); border:1px solid var(--border); display:flex; flex-direction:column;
    align-items:center; justify-content:center; text-align:center; gap:2px;
  }
  .demo-node .n-label{ font-size:.78rem; color:var(--text-muted); }
  .demo-node .n-count{ font-family:var(--font-display); font-size:1.1rem; font-weight:700; }
  .demo-node.core{ width:120px; height:120px; margin:-60px 0 0 -60px; border-color:var(--purple); }
  .demo-node.core .n-label{ font-family:var(--font-display); font-weight:700; color:var(--text); font-size:.95rem; }
  .n-marketing{ left:21%; top:22%; }
  .n-web{ left:79%; top:22%; }
  .n-it{ left:21%; top:78%; }
  .n-products{ left:79%; top:78%; }
  .n-core{ left:50%; top:50%; }
  .demo-lines{ position:absolute; inset:0; width:100%; height:100%; }
  .demo-lines line{ stroke:var(--border); stroke-width:1.5; }
  .demo-word{
    position:fixed; z-index:50; font-size:.85rem; padding:5px 10px; border-radius:999px;
    background:var(--panel-2); border:1px solid var(--cyan); color:var(--text); pointer-events:none;
    white-space:nowrap;
  }
  .demo-result{ margin-top:24px; min-height:1.4em; color:var(--text-muted); font-size:.98rem; }
  .demo-result strong{ color:var(--text); font-weight:600; }

  .home-highlights{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
  .highlight-card{ padding:36px 30px; background:var(--panel); }
  .highlight-card + .highlight-card{ border-left:1px solid var(--border); }
  .highlight-card h3{ font-size:1.05rem; margin-bottom:10px; }
  .highlight-card p{ color:var(--text-muted); font-size:.94rem; }
  .highlight-card a{ display:inline-block; margin-top:14px; font-size:.88rem; color:var(--cyan); text-decoration:none; }
  @media (max-width:860px){ .home-highlights{ grid-template-columns:1fr; } .highlight-card + .highlight-card{ border-left:none; border-top:1px solid var(--border); } }

  /* ================= SERVICES ================= */
  .page-hero{ padding-block:clamp(56px,8vw,96px) clamp(24px,4vw,48px); max-width:64ch; }
  .page-hero h1{ font-size:clamp(2.1rem,3.4vw+1rem,3.2rem); }
  .page-hero p{ margin-top:18px; color:var(--text-muted); font-size:1.06rem; max-width:56ch; }

  .svc-block{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; padding-block:56px; }
  .svc-block + .svc-block{ border-top:1px solid var(--border); }
  .svc-block.reverse .svc-visual{ order:2; }
  .svc-block h3{ font-size:1.5rem; }
  .svc-block .svc-copy p{ margin-top:14px; color:var(--text-muted); max-width:46ch; }
  .svc-list{ list-style:none; padding:0; margin:22px 0 0; display:flex; flex-direction:column; gap:10px; }
  .svc-list li{ display:flex; gap:10px; align-items:flex-start; font-size:.95rem; color:var(--text-muted); }
  .svc-list li::before{ content:''; width:6px; height:6px; margin-top:8px; border-radius:50%; background:linear-gradient(120deg,var(--purple),var(--cyan)); flex-shrink:0; }
  .svc-visual{ border:1px solid var(--border); border-radius:12px; background:var(--panel); padding:32px; min-height:260px; display:flex; align-items:center; justify-content:center; }

  .mini-chart{ width:100%; display:flex; align-items:flex-end; gap:10px; height:140px; }
  .mini-chart .bar{ flex:1; background:linear-gradient(180deg,var(--cyan),var(--purple)); border-radius:4px 4px 0 0; }

  .browser-mock{ width:100%; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
  .browser-mock .bm-head{ display:flex; align-items:center; gap:6px; padding:10px 12px; background:var(--panel-2); }
  .browser-mock .bm-dot{ width:8px; height:8px; border-radius:50%; background:var(--border); }
  .browser-mock .bm-body{ padding:26px 18px; display:flex; flex-direction:column; gap:10px; }
  .browser-mock .bm-line{ height:10px; border-radius:3px; background:var(--border); }

  .rack-mock{ width:100%; display:flex; flex-direction:column; gap:10px; }
  .rack-unit{ display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:6px; padding:12px 14px; background:var(--panel-2); }
  .rack-light{ width:7px; height:7px; border-radius:50%; background:var(--cyan); animation:blink 2s ease-in-out infinite; }
  .rack-unit:nth-child(2) .rack-light{ animation-delay:.5s; background:var(--purple); }
  .rack-unit:nth-child(3) .rack-light{ animation-delay:1s; }
  @keyframes blink{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }
  .rack-bar{ flex:1; height:6px; border-radius:3px; background:var(--border); }

  .how-we-work{ padding-block:clamp(56px,8vw,96px); border-top:1px solid var(--border); }
  .step-track{ position:relative; }
  .step-line-bg,.step-line-fill{ position:absolute; top:19px; left:0; right:0; height:2px; background:var(--border); }
  .step-line-fill{ width:0%; background:linear-gradient(90deg,var(--purple),var(--cyan)); transition:width 1.4s ease; }
  .step-line-fill.is-filled{ width:100%; }
  .step-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; position:relative; }
  .step{ padding-top:52px; position:relative; }
  .step .marker{ position:absolute; top:8px; left:0; width:24px; height:24px; border-radius:50%; background:var(--bg); border:2px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:.75rem; color:var(--text-muted); }
  .step h4{ font-family:var(--font-display); font-size:1.02rem; margin-bottom:8px; font-weight:600; }
  .step p{ color:var(--text-muted); font-size:.92rem; max-width:26ch; }

  @media (max-width:900px){
    .svc-block{ grid-template-columns:1fr; }
    .svc-block.reverse .svc-visual{ order:0; }
    .step-grid{ grid-template-columns:1fr; gap:34px; }
    .step-line-bg,.step-line-fill{ top:0; bottom:0; left:11px; right:auto; width:2px; height:0%; }
    .step-line-fill.is-filled{ height:100%; width:2px; }
  }

  /* ================= PRODUCTS ================= */
  .product-detail{ padding-block:64px; }
  .product-detail + .product-detail{ border-top:1px solid var(--border); }
  .product-head{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:18px; }
  .badge{ display:inline-flex; align-items:center; gap:8px; font-size:.8rem; color:var(--purple); }
  .badge .dot{ width:6px; height:6px; border-radius:50%; background:var(--purple); animation:blink 1.8s ease-in-out infinite; }
  .product-detail h2{ font-size:clamp(1.6rem,2.4vw+1rem,2.1rem); }
  .product-detail > p.desc{ margin-top:14px; color:var(--text-muted); max-width:60ch; font-size:1.02rem; }
  .product-layout{ display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:36px; align-items:start; }
  .product-layout.reverse .product-mock{ order:2; }
  .svc-list.product-features{ margin-top:0; }

  .chat-mock{ border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--panel); }
  .chat-mock-head{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); background:var(--panel-2); }
  .chat-dot{ width:8px; height:8px; border-radius:50%; background:var(--border); }
  .chat-title{ margin-left:6px; font-size:.82rem; color:var(--text-muted); }
  .chat-body{ padding:20px; display:flex; flex-direction:column; gap:12px; }
  .bubble{ max-width:78%; padding:11px 15px; border-radius:14px; font-size:.92rem; line-height:1.5; }
  .bubble.user{ align-self:flex-end; background:var(--panel-2); border:1px solid var(--border); border-bottom-right-radius:4px; }
  .bubble.assistant{ align-self:flex-start; background:linear-gradient(120deg, color-mix(in srgb, var(--purple) 22%, var(--panel)), color-mix(in srgb, var(--cyan) 18%, var(--panel))); border:1px solid var(--border); border-bottom-left-radius:4px; }

  .extract-mock{ border:1px solid var(--border); border-radius:12px; background:var(--panel); padding:24px; }
  .extract-cols{ display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:center; }
  .extract-label{ display:block; font-size:.76rem; color:var(--text-muted); margin-bottom:10px; }
  .extract-raw{ font-family:'Space Grotesk',monospace; font-size:.82rem; color:var(--text-muted); line-height:1.6; background:var(--panel-2); border:1px solid var(--border); border-radius:6px; padding:14px; }
  .extract-arrow{ font-size:1.4rem; color:var(--cyan); }
  .extract-table{ width:100%; border-collapse:collapse; font-size:.86rem; }
  .extract-table th{ text-align:left; color:var(--text-muted); font-weight:500; padding:6px 8px 6px 0; white-space:nowrap; }
  .extract-table td{ padding:6px 0; border-bottom:1px solid var(--border); }
  .mock-caption{ margin-top:14px; font-size:.78rem; color:var(--text-muted); }

  @media (max-width:900px){
    .product-layout{ grid-template-columns:1fr; }
    .product-layout.reverse .product-mock{ order:0; }
    .extract-cols{ grid-template-columns:1fr; }
    .extract-arrow{ transform:rotate(90deg); justify-self:center; }
  }

  /* ================= CONTACT ================= */
  .contact-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; padding-block:clamp(56px,8vw,96px); }
  .contact-info p{ color:var(--text-muted); max-width:38ch; margin-top:14px; }
  .contact-detail{ margin-top:34px; display:flex; flex-direction:column; gap:14px; font-size:.96rem; }
  .contact-detail a{ text-decoration:none; color:var(--text); }
  .contact-detail a:hover{ color:var(--cyan); }
  .contact-detail .label{ display:block; color:var(--text-muted); font-size:.78rem; margin-bottom:2px; }
  form{ display:flex; flex-direction:column; gap:20px; }
  .form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  label{ display:block; font-size:.85rem; color:var(--text-muted); margin-bottom:8px; }
  input,select,textarea{ width:100%; background:var(--panel); border:1px solid var(--border); color:var(--text); padding:13px 14px; border-radius:var(--radius); font-family:var(--font-body); font-size:.96rem; transition:border-color .2s; }
  input:focus,select:focus,textarea:focus{ border-color:var(--cyan); outline:none; }
  textarea{ resize:vertical; min-height:110px; }
  .form-status{ font-size:.88rem; color:var(--cyan); min-height:1.2em; }
  @media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:38px; } .form-row{ grid-template-columns:1fr; } }

  /* ================= CTA + FOOTER ================= */
  .cta-band{ background:var(--panel-2); border:1px solid var(--border); border-radius:var(--radius); padding:clamp(44px,7vw,76px); display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; }
  .cta-band h2{ font-size:clamp(1.5rem,2.4vw+1rem,2.1rem); max-width:20ch; }

  footer{ border-top:1px solid var(--border); padding-block:44px; }
  .footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
  .footer-links{ display:flex; gap:26px; list-style:none; padding:0; margin:0; }
  .footer-links a{ text-decoration:none; color:var(--text-muted); font-size:.9rem; }
  .footer-links a:hover{ color:var(--text); }
  .footer-copy{ color:var(--text-muted); font-size:.84rem; margin-top:26px; }
  .footer-social{ display:flex; gap:14px; }
  .footer-social a{ width:32px; height:32px; border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; }
  .footer-social svg{ width:14px; height:14px; stroke:var(--text-muted); fill:none; stroke-width:1.5; }
  .footer-social a:hover svg{ stroke:var(--cyan); }
