/* Praxis Systems — THE MACHINE */

:root {
  --bg: #0b0d10;
  --ink: #f2efea;
  --muted: rgba(242, 239, 234, 0.78);
  --line: rgba(242, 239, 234, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --card2: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --purple: #7c3aed;
  --emerald: #22c55e;

  --radius: 18px;
  --radius2: 28px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  background: transparent;
  position: relative;
  color: var(--ink);
  line-height: 1.55;
}

html {
  background: var(--bg);
}

body {
  background: transparent;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      1200px 900px at 20% 0%,
      rgba(124, 58, 237, 0.22) 0%,
      rgba(124, 58, 237, 0.14) 30%,
      rgba(124, 58, 237, 0.06) 55%,
      rgba(124, 58, 237, 0.015) 72%,
      rgba(124, 58, 237, 0) 95%
    ),
    radial-gradient(
      1000px 760px at 85% 10%,
      rgba(34, 197, 94, 0.18) 0%,
      rgba(34, 197, 94, 0.1) 35%,
      rgba(34, 197, 94, 0.04) 60%,
      rgba(34, 197, 94, 0.012) 76%,
      rgba(34, 197, 94, 0) 96%
    );
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.announce {
  position: relative;
  top: auto;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      900px 220px at 20% 0%,
      rgba(124, 58, 237, 0.16),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.announce__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.announce__badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.announce__text {
  font-size: 13px;
  color: var(--muted);
}

.announce__cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(242, 239, 234, 0.22);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 999px;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease;
}
.announce__cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}
@media (max-width: 980px) {
  .announce__cta {
    margin-left: 0;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0; /* announcement height */
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.65);
  backdrop-filter: blur(12px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__name {
  font-weight: 900;
  letter-spacing: 0.02em;
}
.brand__tag {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 239, 234, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(242, 239, 234, 0.28);
}
.btn--primary {
  border-color: rgba(124, 58, 237, 0.55);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.28),
    rgba(255, 255, 255, 0.06)
  );
}
.btn--primary:hover {
  filter: brightness(1.05);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(242, 239, 234, 0.12);
}

.hamburger {
  display: none;
  background: transparent;
  border: 1px solid rgba(242, 239, 234, 0.14);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .header__cta .btn--ghost {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 80;
}
.drawer.is-open {
  display: block;
}
.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 88vw);
  background: rgba(11, 13, 16, 0.92);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 18px;
}
.drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.drawer__close {
  border: 1px solid rgba(242, 239, 234, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}
.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.drawer__links a {
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 239, 234, 0.1);
}
.drawer__links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

main {
  padding: 44px 0 90px;
}

.hero {
  padding: 24px 0 10px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(242, 239, 234, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 950;
}
.h1 .accent {
  color: var(--purple);
  text-shadow: 0 0 28px rgba(124, 58, 237, 0.18);
}
.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

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

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(242, 239, 234, 0.1);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}
.panel h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 34px 0;
}
.section__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 920;
}
.small {
  font-size: 13px;
  color: var(--muted);
}

.tile {
  padding: 16px;
  border-radius: var(--radius2);
  border: 1px solid rgba(242, 239, 234, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}
.tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(242, 239, 234, 0.18);
}

.tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.14);
  color: var(--ink);
  margin-bottom: 10px;
}

.ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.ul li {
  margin: 6px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  padding: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(242, 239, 234, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.step strong {
  display: block;
  margin-bottom: 6px;
}
.step span {
  color: var(--muted);
  font-size: 13px;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px) {
  .faq {
    grid-template-columns: 1fr;
  }
}
.qa {
  padding: 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(242, 239, 234, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.qa b {
  display: block;
  margin-bottom: 6px;
}
.qa p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 78px; /* space for mobile sticky */
  color: var(--muted);
  font-size: 13px;
}
.footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.9;
}
.footer a:hover {
  text-decoration: underline;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 239, 234, 0.1);
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
.label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 750;
}
.input,
.select,
.textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(242, 239, 234, 0.12);
  border-radius: 14px;
  padding: 12px 12px;
  color: var(--ink);
  outline: none;
  font-size: 14px;
}
.textarea {
  min-height: 96px;
  resize: vertical;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.notice {
  border: 1px solid rgba(242, 239, 234, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: var(--radius2);
  color: var(--muted);
  font-size: 13px;
}

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  gap: 10px;
}
.mobile-cta a {
  flex: 1;
}
@media (max-width: 980px) {
  .mobile-cta {
    display: flex;
  }
}

/* Utility */
.mt8 {
  margin-top: 8px;
}
.mt14 {
  margin-top: 14px;
}
.mt24 {
  margin-top: 24px;
}
.center {
  text-align: center;
}

/* === Mobile polish: stop goofy CTA wrapping + tighten header === */
@media (max-width: 520px) {
  /* Let flex items shrink properly */
  .header__cta {
    min-width: 0;
  }

  /* 1) Keep header buttons to ONE line (shrink + ellipsis) */
  .header__cta .btn {
    min-width: 0;
    max-width: 48vw; /* prevents "take over the header" */
    overflow: hidden;
    text-overflow: ellipsis; /* turns long labels into ... */
    white-space: nowrap;
  }

  /* Announcement CTA can also get long on home page */
  .announce__cta {
    display: inline-flex; /* required for ellipsis to behave */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Bottom sticky CTA buttons */
  .mobile-cta .btn {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Optional (nice): On modern Chromium, swap the long *bound* label to "Free Audit" */
  .header__cta
    .btn--primary:has(span[data-bind="primaryCtaLabel"])
    span[data-bind="primaryCtaLabel"],
  .announce__cta:has(span[data-bind="primaryCtaLabel"])
    span[data-bind="primaryCtaLabel"],
  .mobile-cta
    .btn--primary:has(span[data-bind="primaryCtaLabel"])
    span[data-bind="primaryCtaLabel"] {
    display: none;
  }
  .header__cta .btn--primary:has(span[data-bind="primaryCtaLabel"])::after,
  .announce__cta:has(span[data-bind="primaryCtaLabel"])::after,
  .mobile-cta .btn--primary:has(span[data-bind="primaryCtaLabel"])::after {
    content: "Free Audit";
  }

  /* 2) Make the header feel less cramped */
  .header__inner {
    padding: 10px 0;
    gap: 12px;
  }
  .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  .hamburger {
    padding: 10px 10px;
  }
}

/* Even smaller screens: drop the tagline to keep the header clean */
@media (max-width: 420px) {
  .brand__tag {
    display: none;
  }
}

/* === Mobile CTA: make it feel like a real bar (less transparent) === */
@media (max-width: 980px) {
  .mobile-cta {
    padding: 10px;
    background: rgba(11, 13, 16, 0.88);
    border: 1px solid var(--line);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
  }

  .mobile-cta .btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(242, 239, 234, 0.22);
  }

  .mobile-cta .btn--primary {
    border-color: rgba(124, 58, 237, 0.7);
    background: linear-gradient(
      135deg,
      rgba(124, 58, 237, 0.42),
      rgba(255, 255, 255, 0.1)
    );
  }
}
