/* PageFX demo site — plain CSS, nothing here is needed by the library. */
:root {
  --bg: #f7f7fb;
  --fg: #14141f;
  --muted: #5d6072;
  --card: #ffffff;
  --line: #e3e4ee;
  --accent: #5b4cf0;
  --accent-soft: #ecebfe;
  --radius: 18px;
  color-scheme: light;
}

body[data-page='about'] { --accent: #0e9f6e; --accent-soft: #e2f7ee; }
body[data-page='work'] { --accent: #e0592a; --accent-soft: #fdeee7; }
body[data-page='contact'] { --accent: #0b7bd6; --accent-soft: #e4f1fc; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e16;
    --fg: #f1f1f7;
    --muted: #a3a6b8;
    --card: #171722;
    --line: #2a2a3a;
    --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    color-scheme: dark;
  }
  body[data-page] { --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 20px; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--fg); background: var(--accent-soft); }
.nav a[aria-current='page'] { color: var(--accent); background: var(--accent-soft); }

/* ---- Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 20px 0; max-width: 14ch; }
.hero p { font-size: 19px; color: var(--muted); max-width: 58ch; margin: 0 0 28px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { transform: translateY(-1px); }

/* ---- Sections */
section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.effect-card { text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; transition: border-color .2s, transform .2s; }
.effect-card:hover, .effect-card[aria-pressed='true'] { border-color: var(--accent); }
.effect-card[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--accent-soft); }
.effect-card code { font-size: 14px; color: var(--accent); font-weight: 700; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

.band { background: var(--accent-soft); border-radius: 28px; padding: 48px; }

pre { background: #0f1020; color: #e6e6f0; padding: 20px; border-radius: 14px; overflow: auto; font-size: 14px; line-height: 1.55; }

/* Section jump menu */
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.jump a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--card); font-weight: 500; }

/* Tabs demo */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { font: inherit; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: inherit; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-panel { min-height: 180px; display: grid; place-items: center; font-size: 28px; font-weight: 800; border-radius: var(--radius); color: #fff; }

.shot { aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000)); }
.shot--hero { aspect-ratio: 16 / 7; margin-top: 40px; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 120px; color: var(--muted); font-size: 14px; }

/* ---- Floating effect picker */
.picker {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}
.picker select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.picker small { color: var(--muted); }

@media (max-width: 640px) {
  .site-header .wrap { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 8px; }
  .nav { margin-left: 0; }
  .hero { padding: 56px 0 40px; }
  .band { padding: 28px 20px; }
  .picker { left: 16px; right: 16px; }
}
