/* ==========================================================================
   ProStarq Technologies — Enterprise Design System
   main.css  |  Bootstrap 5 add-on layer (loaded AFTER bootstrap.min.css)
   --------------------------------------------------------------------------
   Sections:
   1.  Design tokens (CSS custom properties)  — light + dark themes
   2.  Base / typography
   3.  Layout helpers & section rhythm
   4.  Buttons
   5.  Navigation (sticky header + mega menu)
   6.  Hero
   7.  Cards (product, feature, solution, industry)
   8.  Stats / counters
   9.  Placeholders & mockup frames
   10. Badges, pills, gradients, glass
   11. Forms
   12. Footer
   13. Utilities & animation (AOS-friendly)
   14. Responsive tweaks
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette (from spec) */
  --ps-primary: #0057FF;
  --ps-primary-600: #0048d1;
  --ps-primary-700: #003bab;
  --ps-secondary: #00B8D9;
  --ps-accent: #14D87A;
  --ps-dark: #111827;
  --ps-light: #F8FAFC;
  --ps-text: #1F2937;

  /* Semantic — LIGHT THEME (default) */
  --bg: #FFFFFF;
  --bg-alt: var(--ps-light);
  --bg-elevated: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: var(--ps-text);
  --text-muted: #64748B;
  --text-soft: #94A3B8;
  --heading: #0F172A;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12), 0 6px 12px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 12px 40px rgba(0, 87, 255, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--ps-primary) 0%, var(--ps-secondary) 100%);
  --grad-brand-accent: linear-gradient(120deg, var(--ps-primary) 0%, var(--ps-accent) 100%);
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(0,87,255,0.14), transparent 60%),
               radial-gradient(1000px 500px at 100% 0%, rgba(0,184,217,0.12), transparent 55%);
  --grad-text: linear-gradient(120deg, var(--ps-primary), var(--ps-secondary));

  /* Type scale */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Spacing rhythm */
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --container-max: 1240px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.28s;

  color-scheme: light;
}

/* Semantic — DARK THEME */
[data-theme="dark"] {
  --bg: #0B1120;
  --bg-alt: #0F172A;
  --bg-elevated: #121A2C;
  --surface: #131C31;
  --surface-2: #1A2540;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --text-soft: #64748B;
  --heading: #F8FAFC;
  --nav-bg: rgba(11, 17, 32, 0.72);
  --nav-border: rgba(148, 163, 184, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 14px 48px rgba(0, 87, 255, 0.4);
  --glass-bg: rgba(19, 28, 49, 0.6);
  --glass-border: rgba(148, 163, 184, 0.18);
  --grad-hero: radial-gradient(1200px 600px at 15% -10%, rgba(0,87,255,0.28), transparent 60%),
               radial-gradient(1000px 520px at 100% 0%, rgba(0,184,217,0.20), transparent 55%);
  color-scheme: dark;
}

/* ==========================================================================
   2. BASE / TYPOGRAPHY
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { color: var(--text-muted); }
/* Scope link coloring to real links only — never buttons. Otherwise the
   dark-theme anchor rule (higher specificity) overrides .btn text colors. */
a:not(.btn) { color: var(--ps-primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:not(.btn):hover { color: var(--ps-primary-600); }
a.btn { text-decoration: none; }
[data-theme="dark"] a:not(.btn) { color: #5b8cff; }
[data-theme="dark"] a:not(.btn):hover { color: #83a8ff; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); }
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mono { font-family: var(--font-mono); }

::selection { background: rgba(0, 87, 255, 0.2); }

/* ==========================================================================
   3. LAYOUT & SECTION RHYTHM
   ========================================================================== */
.container { max-width: var(--container-max); }
.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-alt { background: var(--bg-alt); }
.bg-dark-panel {
  background: linear-gradient(160deg, #0B1120, #101a30);
  color: #E2E8F0;
}
.bg-dark-panel h1, .bg-dark-panel h2, .bg-dark-panel h3 { color: #fff; }
.bg-dark-panel p { color: #9fb0c8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ps-primary);
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
  background: rgba(0, 87, 255, 0.08); border: 1px solid rgba(0, 87, 255, 0.16);
}
[data-theme="dark"] .eyebrow { color: #6f98ff; background: rgba(0, 87, 255, 0.14); }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 3.5rem; }
.section-head p { margin-top: 1rem; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn { font-weight: 600; border-radius: var(--radius-pill); padding: 0.7rem 1.5rem; transition: all var(--dur) var(--ease); border: 1px solid transparent; letter-spacing: -0.01em; }
.btn:focus-visible { outline: 3px solid rgba(0, 87, 255, 0.4); outline-offset: 2px; }

/* Blue-only gradient so white text keeps strong contrast (WCAG AA) across the
   whole button — the brand cyan is too light for white text. */
.btn-brand { background: linear-gradient(120deg, var(--ps-primary) 0%, var(--ps-primary-700) 100%); color: #fff; box-shadow: 0 6px 18px rgba(0, 87, 255, 0.30); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 87, 255, 0.42); background: linear-gradient(120deg, var(--ps-primary-600) 0%, var(--ps-primary-700) 100%); }

.btn-accent { background: var(--ps-accent); color: #06251a; }
.btn-accent:hover { color: #06251a; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 216, 122, 0.4); }

.btn-outline-brand { border-color: var(--border-strong); color: var(--heading); background: var(--surface); }
.btn-outline-brand:hover { border-color: var(--ps-primary); color: var(--ps-primary); transform: translateY(-2px); }
[data-theme="dark"] .btn-outline-brand { background: rgba(255,255,255,0.03); }

.btn-ghost { color: var(--heading); background: transparent; }
.btn-ghost:hover { color: var(--ps-primary); background: rgba(0, 87, 255, 0.06); }

.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; }
.btn-arrow::after { content: "→"; margin-left: 0.5rem; transition: transform var(--dur) var(--ease); display: inline-block; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.ps-nav {
  position: sticky; top: 0; z-index: 1030;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ps-nav.scrolled { box-shadow: var(--shadow-md); }

.ps-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; color: var(--heading); letter-spacing: -0.03em; }
.ps-brand:hover { color: var(--heading); }
.ps-brand .logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 16px rgba(0, 87, 255, 0.35);
}
.ps-brand .brand-q { color: var(--ps-accent); }

.ps-nav .nav-link { color: var(--text); font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.9rem !important; border-radius: var(--radius-sm); }
.ps-nav .nav-link:hover, .ps-nav .nav-link.active { color: var(--ps-primary); background: rgba(0, 87, 255, 0.06); }

/* Mega menu */
.mega .dropdown-menu {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--bg-elevated);
  padding: 1.25rem; margin-top: 0.6rem; min-width: 560px;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.mega-item { display: flex; gap: 0.85rem; padding: 0.75rem; border-radius: var(--radius); color: var(--text); transition: background var(--dur) var(--ease); }
.mega-item:hover { background: var(--surface-2); color: var(--text); }
.mega-item .mi-icon { flex: 0 0 40px; height: 40px; width: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,87,255,0.1); color: var(--ps-primary); font-size: 1.05rem; }
.mega-item .mi-title { font-weight: 700; color: var(--heading); font-size: 0.95rem; }
.mega-item .mi-desc { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.mega-foot { margin-top: 0.75rem; padding-top: 0.9rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); display: grid; place-items: center; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.theme-toggle:hover { border-color: var(--ps-primary); color: var(--ps-primary); }
.nav-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading); display: grid; place-items: center; }
.nav-icon-btn:hover { border-color: var(--ps-primary); color: var(--ps-primary); }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { position: relative; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); z-index: -2; }
.hero-title { margin-bottom: 1.25rem; }
.hero .lead { max-width: 560px; }
.hero-visual { position: relative; }

/* animated node/particle canvas host */
.hero-canvas { position: absolute; inset: 0; z-index: -1; opacity: 0.9; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); }
.trust-pill i { color: var(--ps-accent); }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card-ps {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card-ps:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,87,255,0.3); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.35rem; color: #fff; background: var(--grad-brand); margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 87, 255, 0.28);
}
.feature-icon.accent { background: var(--grad-brand-accent); box-shadow: 0 8px 20px rgba(20, 216, 122, 0.28); }
.feature-icon.cyan { background: linear-gradient(120deg, var(--ps-secondary), #0091ad); }
.card-ps h3, .card-ps h4 { margin-bottom: 0.5rem; }
.card-ps p { font-size: 0.95rem; margin-bottom: 0; }

/* Product card (larger, split) */
.product-card { position: relative; overflow: hidden; }
.product-card::after { content: ""; position: absolute; top: 0; right: 0; width: 160px; height: 160px; background: var(--grad-brand); opacity: 0.08; filter: blur(20px); border-radius: 50%; }
.product-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: var(--ps-primary); }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; color: var(--text-muted); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem;
  background: rgba(20, 216, 122, 0.15); color: var(--ps-accent); border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
}

/* ==========================================================================
   8. STATS / COUNTERS
   ========================================================================== */
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .stat-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .stat-label { margin-top: 0.5rem; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }

/* ==========================================================================
   9. PLACEHOLDERS & MOCKUP FRAMES
   ========================================================================== */
.mockup-frame {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar .dot.r { background: #ff5f57; } .mockup-bar .dot.y { background: #febc2e; } .mockup-bar .dot.g { background: #28c840; }
.mockup-bar .mb-url { margin-left: 0.75rem; font-size: 0.75rem; color: var(--text-soft); font-family: var(--font-mono); }
.mockup-body { padding: 1.25rem; }

.placeholder-card {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0,87,255,0.04), rgba(0,184,217,0.04)),
    var(--surface-2);
  display: grid; place-items: center; text-align: center; padding: 2.5rem 1.5rem; min-height: 220px; color: var(--text-muted);
}
.placeholder-card .ph-icon { font-size: 2rem; color: var(--ps-primary); opacity: 0.6; margin-bottom: 0.75rem; }
.placeholder-card .ph-title { font-weight: 700; color: var(--heading); }
.placeholder-card .ph-sub { font-size: 0.85rem; }

/* Simulated dashboard widgets (used inside mockups) */
.mini-metric { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; background: var(--bg); }
.mini-metric .mm-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); font-weight: 700; }
.mini-metric .mm-val { font-size: 1.4rem; font-weight: 800; color: var(--heading); }
.mini-metric .mm-trend { font-size: 0.75rem; font-weight: 700; }
.mm-trend.up { color: var(--ps-accent); } .mm-trend.down { color: #ff5f57; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spark span { flex: 1; background: var(--grad-brand); border-radius: 3px 3px 0 0; opacity: 0.85; }

/* ==========================================================================
   10. BADGES, PILLS, GRADIENTS, GLASS
   ========================================================================== */
.badge-soft { background: rgba(0,87,255,0.1); color: var(--ps-primary); font-weight: 700; border-radius: var(--radius-pill); padding: 0.3rem 0.75rem; font-size: 0.75rem; }
.badge-accent { background: rgba(20,216,122,0.14); color: #0e9e59; }
[data-theme="dark"] .badge-accent { color: var(--ps-accent); }
.glass { background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); }

.logo-chip { display: grid; place-items: center; height: 64px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-soft); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; transition: all var(--dur) var(--ease); }
.logo-chip:hover { color: var(--heading); border-color: var(--border-strong); }

/* ==========================================================================
   11. FORMS
   ========================================================================== */
.form-control, .form-select {
  border-radius: var(--radius); border: 1px solid var(--border); padding: 0.75rem 1rem;
  background: var(--surface); color: var(--text); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:focus, .form-select:focus { border-color: var(--ps-primary); box-shadow: 0 0 0 4px rgba(0,87,255,0.14); background: var(--surface); color: var(--text); }
.form-control::placeholder { color: var(--text-soft); }
.form-label { font-weight: 600; color: var(--heading); font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-note { font-size: 0.8rem; color: var(--text-soft); }
.form-status { border-radius: var(--radius); padding: 0.85rem 1rem; font-weight: 600; font-size: 0.9rem; display: none; }
.form-status.ok { display: block; background: rgba(20,216,122,0.12); color: #0e9e59; border: 1px solid rgba(20,216,122,0.3); }
.form-status.err { display: block; background: rgba(255,95,87,0.1); color: #d43f37; border: 1px solid rgba(255,95,87,0.3); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.ps-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 4rem; }
.ps-footer h6 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--text-soft); font-weight: 800; margin-bottom: 1rem; }
.ps-footer a { color: var(--text-muted); font-weight: 500; font-size: 0.92rem; display: inline-block; padding: 0.2rem 0; }
.ps-footer a:hover { color: var(--ps-primary); }
.ps-footer .footer-bottom { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0; }
.social-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); transition: all var(--dur) var(--ease); }
.social-ico:hover { color: #fff; background: var(--grad-brand); border-color: transparent; transform: translateY(-2px); }

/* ==========================================================================
   13. UTILITIES & ANIMATION
   ========================================================================== */
.divider-grad { height: 3px; width: 64px; border-radius: 3px; background: var(--grad-brand); }
.ring-grad { position: relative; }
.hover-lift { transition: transform var(--dur) var(--ease-out); }
.hover-lift:hover { transform: translateY(-4px); }

/* Fade / reveal (AOS is loaded; these are fallbacks/enhancers) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }

/* Animated gradient background band */
.grad-band { background: linear-gradient(120deg, var(--ps-primary), var(--ps-secondary), var(--ps-accent), var(--ps-primary)); background-size: 300% 300%; animation: gradShift 12s var(--ease) infinite; }
@keyframes gradShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Floating blobs for hero */
.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.5; z-index: -1; animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-22px) } }

.typing::after { content: "|"; color: var(--ps-primary); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.breadcrumbs { font-size: 0.85rem; color: var(--text-soft); }
.breadcrumbs a { color: var(--text-muted); } .breadcrumbs a:hover { color: var(--ps-primary); }

/* Skip link for a11y */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--ps-primary); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius) 0; font-weight: 700; }
.skip-link:focus { left: 0; color: #fff; }

/* Accordion (FAQ) */
.faq .accordion-button { font-weight: 700; color: var(--heading); background: var(--surface); border-radius: var(--radius) !important; }
.faq .accordion-button:not(.collapsed) { color: var(--ps-primary); background: rgba(0,87,255,0.05); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 4px rgba(0,87,255,0.14); }
.faq .accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: 0.75rem; background: var(--surface); overflow: hidden; }
.faq .accordion-body { color: var(--text-muted); }

/* Tables (specs / docs) */
.table-ps { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-ps th, .table-ps td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table-ps th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); }
.table-ps td { color: var(--text-muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ps-primary), var(--ps-secondary)); border-radius: var(--radius-xl); color: #fff; padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; } .cta-band p { color: rgba(255,255,255,0.85); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 10%, rgba(20,216,122,0.35), transparent 60%); }
.cta-band > * { position: relative; }

/* Tag chips */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--ps-primary); background: rgba(0,87,255,0.08); border-radius: var(--radius-pill); padding: 0.25rem 0.7rem; }

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {
  .mega .dropdown-menu { min-width: 100%; }
  .mega-grid { grid-template-columns: 1fr; }
  .ps-nav .navbar-collapse { padding: 1rem 0; max-height: 80vh; overflow-y: auto; }
  .hero { text-align: center; }
  .hero .lead, .hero .pill-row { margin-inline: auto; }
  .hero .d-flex.pill-row { justify-content: center; }
}
@media (min-width: 1600px) {
  :root { --container-max: 1340px; }
}
