﻿/* UI/UX Pro Max global enhancement layer */
:root {
  --ux-accent: #1e40af;
  --ux-accent-strong: #a16207;
  --ux-ink: #0f172a;
  --ux-focus: rgba(30, 64, 175, 0.46);
  --ux-card-border: rgba(148, 163, 184, 0.28);
  --ux-card-shadow: 0 14px 34px -18px rgba(15, 23, 42, 0.34);
  --ux-card-shadow-hover: 0 24px 46px -18px rgba(15, 23, 42, 0.44);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

img,
video,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

.container,
.site-container,
.course-main,
main,
section,
article,
div {
  min-width: 0;
}

:where(section[id], .section[id], .legal-section[id], [data-section-name]) {
  scroll-margin-top: 104px;
}

::selection {
  background: rgba(249, 115, 22, 0.22);
  color: #0f172a;
}

main,
.course-main {
  position: relative;
  isolation: isolate;
}

main::after,
.course-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(59, 130, 246, 0.06), transparent 72%),
    radial-gradient(620px 320px at 92% 6%, rgba(249, 115, 22, 0.06), transparent 74%);
  z-index: -1;
}

:where(a, button, .btn, .social-btn, .menu-btn, .method-btn, .copy-btn, .btn-pay, .btn-primary, .btn-secondary) {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn) {
  position: relative;
  overflow: hidden;
}

:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 64%;
  height: 100%;
  background: linear-gradient(108deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn):hover::before,
:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn):focus-visible::before {
  left: 160%;
  transition: left 560ms ease;
}

:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn):hover,
:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn):focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(15, 23, 42, 0.65);
}

:where(.social-btn, .menu-btn):hover,
:where(.social-btn, .menu-btn):focus-visible {
  transform: translateY(-2px) scale(1.03);
}

:where(.brand-name) {
  letter-spacing: -0.015em;
}

:where(.section-kicker, .eyebrow, .mono, .hero-kicker, .section-index) {
  letter-spacing: 0.045em;
}

:where(.topbar) {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

:where(.nav-links a:not(.nav-cta-link)) {
  border-radius: 10px;
  padding-inline: 8px;
}

:where(.nav-links a:not(.nav-cta-link)):hover,
:where(.nav-links a:not(.nav-cta-link)):focus-visible {
  background: rgba(30, 64, 175, 0.08);
}

:where(.topbar .nav-cta-link, .mobile-panel .nav-cta-link, .btn-primary, .btn-pay) {
  background-image: linear-gradient(126deg, #1d4ed8 0%, #0f172a 58%, #a16207 100%);
  background-size: 170% 170%;
}

:where(.topbar .nav-cta-link, .mobile-panel .nav-cta-link, .btn-primary, .btn-pay):hover,
:where(.topbar .nav-cta-link, .mobile-panel .nav-cta-link, .btn-primary, .btn-pay):focus-visible {
  background-position: 100% 40%;
}

:where(.hero h1, .hero-left h1) {
  text-wrap: balance;
}

:where(.hero h1, .hero-left h1, .section-heading h2, .section-head h2) {
  text-wrap: balance;
}

:where(.section-heading h2, .section-head h2, h3) {
  letter-spacing: -0.01em;
}

:where(.hero-intro, .hero-left p, .section-heading p, .section-head p, .subtitle) {
  max-width: 68ch;
  line-height: 1.72;
  color: #334155;
}

:where(.section-heading p, .section-head p, .faq-answer, .meta-line, .subtitle) {
  text-wrap: pretty;
}

.hero-kicker,
.hero-kicker .k-text,
.quote-band,
.proof-quote,
.mcp-chip,
.persona-chip,
.portfolio-column li p,
.flow-step p,
.session-title,
.faq-item summary,
.faq-answer,
.copy-target,
code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

:where(.section, .section-soft, .surface) {
  position: relative;
}

:where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test) {
  letter-spacing: 0.01em;
  font-weight: 700;
}

:where(.hero-trust, .lane-pills) {
  gap: 10px;
}

:where(.trust-pill, .trust-item, .chip, .stack-chip, .persona-chip, .hero-chip, .hero-badge, .pill, .score-tag, .status-chip, .card-tag) {
  border-width: 1px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

:where(.card, .case-card, .path-card, .program-card, .solution-card, .section-card, .value-card, .module-card, .session-card, .proof-item, .outcome-card, .result-card, .deck-card, .score-card, .step-item, .ad-step, .matrix-row, .method-panel, .pay-identity, .qr-frame, .lab-item, .stat-card, .hero-stat, .stack-item, .tech-option, .phase-node, .question-grid > *, .legal-section, .clause) {
  border: 1px solid var(--ux-card-border);
  box-shadow: var(--ux-card-shadow);
  backdrop-filter: blur(2px);
}

:where(.card, .case-card, .path-card, .program-card, .solution-card, .section-card, .value-card, .module-card, .session-card, .proof-item, .outcome-card, .result-card, .deck-card, .score-card, .step-item, .ad-step, .matrix-row, .method-panel, .pay-identity, .qr-frame, .lab-item, .stat-card, .hero-stat, .stack-item, .tech-option, .phase-node):hover {
  transform: translateY(-3px);
  box-shadow: var(--ux-card-shadow-hover);
  border-color: rgba(249, 115, 22, 0.34);
}

:where(.footer) {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

:where(.footer h4) {
  letter-spacing: 0.03em;
}

:where(input, select, textarea, .form-input, .input, .lead-gate-field input, .lead-gate-field select, .lead-gate-field textarea) {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.54);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

:where(input, select, textarea, .form-input, .input, .lead-gate-field input, .lead-gate-field select, .lead-gate-field textarea):focus {
  outline: none;
  border-color: rgba(30, 64, 175, 0.58);
  box-shadow: 0 0 0 3px var(--ux-focus), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: #ffffff;
}

:where(input, textarea)::placeholder {
  color: #94a3b8;
}

:where(.faq-item, details.faq-item) {
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: 0 10px 22px -18px rgba(15, 23, 42, 0.5);
}

:where(.faq-item summary) {
  line-height: 1.45;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(.faq-grid) {
  gap: 12px;
}

:where(.faq-item .faq-answer) {
  line-height: 1.62;
}

:where(.status-chip) {
  letter-spacing: 0.02em;
}

:where(label, .field label) {
  color: #1e293b;
  font-weight: 700;
}

:where(.topbar.scrolled) {
  box-shadow: 0 14px 26px -20px rgba(15, 23, 42, 0.46);
}

:where(.mobile-panel) {
  gap: 11px;
}

:where(.mobile-panel a) {
  min-height: 44px;
  display: flex;
  align-items: center;
}

:where(.reveal) {
  will-change: transform, opacity;
}

:where(.reveal.in-view) {
  animation: uxLiftIn 560ms cubic-bezier(0.18, 0.87, 0.29, 0.99) both;
}

@keyframes uxLiftIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

:where(a, button, input, select, textarea, .btn, .menu-btn, .social-btn):focus-visible {
  outline: 3px solid rgba(30, 64, 175, 0.52);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  :where(.hero-actions, .cta-actions, .actions) {
    gap: 10px;
  }

  .mono,
  .hero-kicker,
  .hero-kicker .k-text,
  .journey-label,
  .flow-arrow,
  .mcp-chip,
  .persona-chip,
  .session-title,
  .flow-step p,
  .portfolio-column li p,
  .quote-band,
  .proof-quote,
  .faq-item summary,
  .faq-answer,
  .copy-target {
    white-space: normal !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .actions .btn {
    max-width: 100%;
  }

  :where(.card, .case-card, .path-card, .program-card, .solution-card, .section-card, .value-card, .module-card, .session-card, .proof-item, .outcome-card, .result-card, .deck-card, .score-card, .step-item, .ad-step, .matrix-row, .method-panel, .pay-identity, .qr-frame, .lab-item, .stat-card, .hero-stat, .stack-item, .tech-option, .phase-node) {
    transform: none;
  }

  :where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn):hover,
  :where(.btn, .btn-pay, .btn-primary, .btn-secondary, .btn-curriculum, .btn-test, .copy-btn, .method-btn):focus-visible {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(*, *::before, *::after) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
