/* Mac Performance Monitor marketing site
   Palette derived from the app icon: near-black base, electric indigo, warm orange. */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121b;
  --surface: #181822;
  --surface-2: #1f1f2b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f5f5f7;
  --text-muted: #a4a4b0;
  --text-dim: #6f6f7e;

  --indigo: #5b5ef0;
  --indigo-bright: #8487f7;
  --orange: #ff7a1a;
  --orange-bright: #ff9244;

  --grad: linear-gradient(135deg, #5b5ef0 0%, #8a5cf0 45%, #ff7a1a 100%);
  --grad-text: linear-gradient(135deg, #8487f7 0%, #ff9244 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji";
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 80% -10%, rgba(91, 94, 240, 0.18), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(255, 122, 26, 0.10), transparent 55%);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--indigo-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 10, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.02rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(123, 92, 240, 0.35);
}

.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

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

/* Hero / sections */
main {
  flex: 1 0 auto;
}

.hero {
  text-align: center;
  padding: 96px 0 72px;
}

.hero .app-icon {
  width: 116px;
  height: 116px;
  border-radius: 26px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section {
  padding: 40px 0;
}

/* Price block */
.price-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.price {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.price small {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  text-align: left;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 14px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 14px no-repeat;
}

/* Notice / alert */
.notice {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
}

.notice-warn {
  border-color: rgba(255, 122, 26, 0.4);
  background: rgba(255, 122, 26, 0.08);
  color: var(--orange-bright);
}

.hidden {
  display: none !important;
}

/* Legal / prose */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 0 32px;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose a {
  color: var(--indigo-bright);
}

.muted {
  color: var(--text-dim);
}

.updated {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
}

.mor {
  max-width: 520px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
