/* ============================================================
   PDX AI Systems — Base (tokens, reset, layout, nav, hero)
   Rebranded from ZapForge.AI
   ============================================================ */

:root {
  --orange: #ED8936;
  --orange-dark: #d97420;
  --orange-ink: #a8490d;
  --orange-light: #f6a961;
  --orange-soft: #fdf1e7;

  --ink: #0b0d12;
  --ink-2: #12151d;
  --ink-3: #1a1e29;
  --line-dark: rgba(255, 255, 255, 0.08);

  --white: #ffffff;
  --paper: #f7f8fa;
  --paper-2: #eef0f4;
  --line: #e6e8ee;

  --text-dark: #171a21;
  --text-muted: #5c6472;
  --text-on-dark: #f4f5f8;
  --text-on-dark-muted: #a7adbb;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 27, 0.06), 0 1px 3px rgba(16, 18, 27, 0.08);
  --shadow: 0 6px 24px -6px rgba(16, 18, 27, 0.14), 0 2px 6px rgba(16, 18, 27, 0.06);
  --shadow-lg: 0 24px 60px -18px rgba(16, 18, 27, 0.28);
  --shadow-orange: 0 12px 30px -10px rgba(237, 137, 54, 0.55);

  --container: 1180px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Accessibility: visible focus ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--dark a:focus-visible,
.section--dark button:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.page-hero a:focus-visible,
.page-hero button:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible,
.cta-band a:focus-visible,
.cta-band button:focus-visible {
  outline-color: var(--orange-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.section--paper {
  background: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

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

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head--center .eyebrow {
  justify-content: center;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__title {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
}

.section__lead {
  font-size: 18px;
  color: var(--text-muted);
}

.section--dark .section__lead {
  color: var(--text-on-dark-muted);
}

.accent {
  color: var(--orange);
}

/* Light-background contrast: darken orange text/accents so they meet WCAG AA on white/paper */
.section:not(.section--dark) .eyebrow {
  color: var(--orange-ink);
}

.section:not(.section--dark) .eyebrow::before {
  background: var(--orange-ink);
}

.section:not(.section--dark) .accent {
  color: var(--orange-ink);
}

.nav .brand .tld {
  color: var(--orange-ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--orange);
  color: var(--text-dark);
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--text-dark);
  background: var(--paper);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 16px;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.brand .tld {
  color: var(--orange);
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav__link.is-active {
  color: #fff;
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > .nav__link .chev {
  margin-left: 6px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.has-dropdown:hover > .nav__link .chev,
.has-dropdown:focus-within > .nav__link .chev {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 250px;
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.dropdown a small {
  display: block;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
  margin-top: 1px;
}

.dropdown a:hover {
  background: var(--orange-soft);
  color: var(--orange-ink);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid var(--line-dark);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav__toggle span::before {
  position: absolute;
  top: -6px;
}

.nav__toggle span::after {
  position: absolute;
  top: 6px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 78% -10%, rgba(237, 137, 54, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(237, 137, 54, 0.1), transparent 55%),
    var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 400px at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 104px 0 92px;
  max-width: 840px;
}

.hero__inner--center {
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  margin-bottom: 28px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(237, 137, 54, 0.2);
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-on-dark-muted);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero__inner--center p.lead {
  margin-left: auto;
  margin-right: auto;
}

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

.hero__inner--center .hero__actions {
  justify-content: center;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: radial-gradient(900px 420px at 80% -20%, rgba(237, 137, 54, 0.2), transparent 60%),
    var(--ink);
  color: var(--text-on-dark);
  padding: 88px 0 80px;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  max-width: 640px;
}

.page-hero .crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-on-dark-muted);
  margin-bottom: 22px;
}

.page-hero .crumbs a:hover {
  color: #fff;
}

.page-hero .crumbs .sep {
  opacity: 0.5;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.stat {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(4px);
}

.stat__num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}

.stat__num .accent {
  color: var(--orange);
}

.stat__label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-on-dark-muted);
}
