/* Praxis — marketing site. Sci-fi dark theme on the Saltire palette. */
:root {
  --void:    #04070F;
  --space:   #060B18;
  --panel:   #0A1428;
  --navy:    #061A40;
  --accent:  #1a56a8;
  --sky:     #33c7ef;
  --sky-2:   #0a6bd0;
  --gold:    #FFBB00;
  --text:    #D6E2F5;
  --text-2:  #93A5C4;
  --text-3:  #5F7195;
  --line:    rgba(51,199,239,0.18);
  --line-2:  rgba(51,199,239,0.35);
  --glow:    rgba(51,199,239,0.45);
  --good:    #5BE49B;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 70% -10%, rgba(10,107,208,0.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 110%, rgba(26,86,168,0.16), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(51,199,239,0.025) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(51,199,239,0.025) 47px 48px),
    var(--space);
  line-height: 1.65;
  font-size: 16px;
}
h1, h2, .mark, .price { font-family: 'Anybody', 'Inter', sans-serif; font-stretch: 125%; }
h3 { font-family: 'Anybody', 'Inter', sans-serif; font-stretch: 108%; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-shadow: 0 0 12px var(--glow); }

/* ── Header / nav ── */
.site-header {
  background: rgba(4,7,15,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 0 24px rgba(51,199,239,0.12);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.wordmark { display: flex; align-items: baseline; gap: 10px; }
.wordmark:hover { text-shadow: none; }
.wordmark .mark {
  font-weight: 700; font-size: 19px; letter-spacing: 1px; color: #fff;
  text-shadow: 0 0 14px rgba(51,199,239,0.3);
}
.wordmark .mark .x { color: var(--sky); }
.wordmark .by { font-size: 10px; letter-spacing: 2px; color: var(--sky); text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--text-2); font-size: 13.5px; font-weight: 600; letter-spacing: 0.4px; }
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: var(--gold); text-shadow: 0 0 10px rgba(255,187,0,0.5); }
.site-nav a.cta {
  background: var(--gold); color: var(--void); padding: 7px 16px; border-radius: 4px;
  box-shadow: 0 0 16px rgba(255,187,0,0.35); text-shadow: none;
}
.site-nav a.cta:hover { box-shadow: 0 0 26px rgba(255,187,0,0.6); color: var(--void); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 24px 110px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(51,199,239,0.14), transparent 65%),
    radial-gradient(ellipse 30% 40% at 85% 80%, rgba(255,187,0,0.05), transparent 60%);
  animation: heroPulse 9s ease-in-out infinite alternate;
}
@keyframes heroPulse { from { opacity: 0.7; } to { opacity: 1; } }
.hero-inner { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: 36px; line-height: 1.22; font-weight: 700; letter-spacing: 0; color: #fff;
  text-shadow: 0 0 30px rgba(51,199,239,0.18);
}
.hero h1 em {
  font-style: normal; color: var(--sky);
  text-shadow: 0 0 24px var(--glow);
}
.hero .sub { font-size: 19px; color: var(--text-2); margin: 24px auto 0; max-width: 720px; }
.hero .actions { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 6px; font-weight: 700; font-size: 15px;
  letter-spacing: 0.3px; transition: box-shadow 0.25s, transform 0.15s;
}
.btn:hover { text-shadow: none; transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ffd35c); color: var(--void);
  box-shadow: 0 0 22px rgba(255,187,0,0.35);
}
.btn-gold:hover { box-shadow: 0 0 34px rgba(255,187,0,0.65); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--sky);
  box-shadow: inset 0 0 14px rgba(51,199,239,0.08);
}
.btn-ghost:hover { border-color: var(--sky); box-shadow: 0 0 22px rgba(51,199,239,0.35), inset 0 0 14px rgba(51,199,239,0.12); }
.btn-line { border: 1px solid var(--line-2); color: var(--sky); }
.hero .strap {
  margin-top: 34px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-3);
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 64px 24px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(10,107,208,0.18), transparent 70%);
}
.page-hero .inner { max-width: 1080px; margin: 0 auto; }
.page-hero h1 { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 0; text-shadow: 0 0 24px rgba(51,199,239,0.15); }
.page-hero p { color: var(--text-2); font-size: 17px; max-width: 780px; margin-top: 12px; }

/* ── Sections ── */
.section { padding: 72px 24px; }
.section.alt {
  background: linear-gradient(180deg, rgba(10,20,40,0.55), rgba(10,20,40,0.25));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section .inner { max-width: 1080px; margin: 0 auto; }
.kicker {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--sky); font-weight: 700;
}
.kicker::before { content: '— '; color: var(--text-3); }
.section h2 { font-size: 22px; margin: 8px 0 16px; color: #fff; font-weight: 700; letter-spacing: 0; }
.section .lede { font-size: 16.5px; color: var(--text-2); max-width: 820px; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 34px; }
.card {
  background: rgba(10,20,40,0.55);
  border: 1px solid var(--line); border-radius: 8px; padding: 26px;
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: 0 0 28px rgba(51,199,239,0.14);
  transform: translateY(-2px);
}
.card .icon { font-size: 24px; filter: drop-shadow(0 0 8px var(--glow)); }
.card h3 { font-size: 14px; color: #fff; margin: 12px 0 8px; letter-spacing: 0.2px; }
.card p { font-size: 14px; color: var(--text-2); }

/* ── Feature rows ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 48px; }
.feature-row.rev > .feature-art { order: 2; }
.feature-row h3 { font-size: 16.5px; color: #fff; margin-bottom: 10px; letter-spacing: 0.2px; }
.feature-row p { color: var(--text-2); font-size: 15px; }
.feature-row ul { margin: 14px 0 0 18px; color: var(--text-2); font-size: 14px; }
.feature-row li { margin-bottom: 7px; }
.feature-row li::marker { color: var(--sky); }
.feature-art {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(51,199,239,0.05) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(51,199,239,0.05) 23px 24px),
    linear-gradient(135deg, rgba(10,20,40,0.8), rgba(6,26,64,0.6));
  border: 1px solid var(--line); border-radius: 8px; height: 260px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; font-style: italic;
  box-shadow: inset 0 0 40px rgba(51,199,239,0.05);
  overflow: hidden;
}
.feature-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: top left;
  display: block; opacity: 0.92; transition: opacity 0.25s;
}
.feature-art:hover img { opacity: 1; }
.feature-art::before, .feature-art::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-color: var(--sky); border-style: solid;
}
.feature-art::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; opacity: 0.7; }
.feature-art::after  { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; opacity: 0.7; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.rev > .feature-art { order: 0; }
  .hero h1 { font-size: 25px; }
}

/* ── Rule terminal ── */
.rule-demo {
  position: relative;
  background: rgba(4,7,15,0.85);
  border: 1px solid var(--line-2); border-radius: 8px;
  padding: 40px 26px 26px; margin-top: 32px;
  font-family: 'Cascadia Code', 'Consolas', monospace; font-size: 13.5px; color: var(--text-2);
  overflow-x: auto;
  box-shadow: 0 0 36px rgba(51,199,239,0.12), inset 0 0 60px rgba(51,199,239,0.04);
}
.rule-demo::before {
  content: '● ● ●   PRAXIS · RULES ENGINE';
  position: absolute; top: 10px; left: 14px;
  font-size: 10px; letter-spacing: 2px; color: var(--text-3);
}
.rule-demo .kw { color: var(--gold); font-weight: 700; text-shadow: 0 0 10px rgba(255,187,0,0.4); }
.rule-demo .fld { color: var(--sky); }
.rule-demo .val { color: var(--good); }
.rule-demo .out { color: #fff; }
.rule-demo .line { display: block; padding: 2px 0; }
.rule-demo .line:last-child::after {
  content: '▋'; color: var(--sky); margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Pricing ── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 44px; }
.tier {
  background: rgba(10,20,40,0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 10px; padding: 32px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.tier:hover { box-shadow: 0 0 30px rgba(51,199,239,0.12); }
.tier.featured {
  border: 1px solid var(--sky); position: relative;
  box-shadow: 0 0 34px rgba(51,199,239,0.22);
}
.tier.featured::before {
  content: 'Most popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sky); color: var(--void); font-size: 10px; font-weight: 700;
  padding: 3px 14px; border-radius: 12px; letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 0 18px var(--glow);
}
.tier h3 { color: #fff; font-size: 16px; letter-spacing: 1px; }
.tier .price { font-size: 26px; font-weight: 700; color: var(--sky); margin: 14px 0 2px; text-shadow: 0 0 18px var(--glow); }
.tier .per { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.tier ul { list-style: none; margin-bottom: 26px; }
.tier li { padding: 8px 0; border-bottom: 1px solid rgba(51,199,239,0.1); font-size: 14px; color: var(--text-2); }
.tier li::before { content: '▸  '; color: var(--good); font-weight: 700; }
.tier .btn { margin-top: auto; text-align: center; }
.pricing-note { margin-top: 28px; font-size: 13px; color: var(--text-3); text-align: center; }

/* ── Contact ── */
.contact-card {
  background: rgba(10,20,40,0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 40px; max-width: 640px; margin: 36px auto 0; text-align: center;
  box-shadow: 0 0 34px rgba(51,199,239,0.12);
}
.contact-card .big { font-size: 20px; color: #fff; font-weight: 700; }

/* ── Footer ── */
.site-footer {
  background: var(--void); color: var(--text-3); padding: 36px 24px; margin-top: 72px;
  border-top: 1px solid var(--line);
}
.site-footer .inner {
  max-width: 1080px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center; justify-content: space-between; font-size: 13px;
}
.site-footer a { color: var(--text-2); }
.site-footer .legal { font-size: 12px; }
