:root {
  color-scheme: dark;
  --bg: #040705;
  --panel: rgba(8, 22, 15, 0.78);
  --text: #f3fff7;
  --muted: #bfd5c6;
  --emerald: #28ff9a;
  --gold: #f4d36f;
  --line: rgba(127, 255, 178, 0.24);
  --radius: 26px;
  --max: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(40, 255, 154, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 0%, rgba(244, 211, 111, 0.14), transparent 30rem),
    linear-gradient(135deg, #020403 0%, #06110b 54%, #000 100%);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(40,255,154,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,255,154,0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 10;
  padding: .75rem 1rem; border-radius: 999px; background: var(--emerald); color: #00150b; font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 4, 0.72);
  backdrop-filter: blur(18px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; letter-spacing: .06em; }
.brand-mark { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 950; color: var(--emerald); text-shadow: 0 0 24px rgba(40,255,154,.55); }
.brand-sub { color: var(--gold); font-weight: 750; text-transform: uppercase; font-size: .78rem; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a, .nav-toggle { border: 1px solid transparent; border-radius: 999px; padding: .68rem 1rem; color: var(--muted); text-decoration: none; font-weight: 750; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--line); color: var(--text); background: rgba(40,255,154,.08); }
.nav-toggle { display: none; background: transparent; cursor: pointer; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 460px); align-items: center;
  gap: clamp(2rem, 7vw, 4rem); min-height: calc(100vh - 74px); padding-block: 4.5rem;
}
.eyebrow { margin: 0 0 .75rem; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1.1rem; font-size: clamp(3.4rem, 11vw, 8rem); line-height: .86; letter-spacing: -.085em; text-transform: uppercase; text-shadow: 0 0 42px rgba(40,255,154,.25); }
h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
h3 { margin-bottom: .45rem; font-size: 1.2rem; }
.hero-text { max-width: 650px; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.34rem); }
.hero-actions, .footer-links { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.25rem; text-decoration: none; font-weight: 900; }
.button.primary { border-color: rgba(40,255,154,.9); background: linear-gradient(135deg, var(--emerald), #a2ffd0); color: #00150b; box-shadow: 0 0 42px rgba(40,255,154,.18); }
.button.secondary { background: rgba(255,255,255,.035); color: var(--text); }
.tiny-note, .updated { margin-top: 1rem; color: rgba(241,255,246,.64); font-size: .92rem; }
.hero-art { position: relative; }
.hero-art::before { content:""; position:absolute; inset: 7% 3% 5%; z-index:-1; border-radius:999px; background: radial-gradient(circle, rgba(40,255,154,.25), transparent 68%); filter: blur(14px); }
.hero-art img { width: min(100%, 460px); margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.62)); }

.home-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-content: center;
  gap: clamp(1.4rem, 4vw, 2.4rem);
  padding-block: clamp(3.2rem, 7vw, 5.5rem);
}
.home-copy {
  max-width: 860px;
}
.home-copy h1 {
  margin-bottom: 1rem;
}
.tarot-showcase {
  position: relative;
  margin: 0;
  border: 1px solid rgba(244, 211, 111, 0.22);
  border-radius: clamp(22px, 4vw, 34px);
  overflow: hidden;
  background: rgba(2, 6, 4, 0.62);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 0 55px rgba(40, 255, 154, 0.12),
    inset 0 0 0 1px rgba(40, 255, 154, 0.08);
}
.tarot-showcase::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 8%, rgba(40,255,154,.2), transparent 32%),
    radial-gradient(circle at 84% 14%, rgba(244,211,111,.18), transparent 30%);
  opacity: .8;
}
.tarot-showcase picture,
.tarot-showcase img {
  display: block;
  width: 100%;
}
.tarot-showcase img {
  position: relative;
  z-index: 1;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
}

.legal-page, .support-page { padding-block: clamp(3rem, 7vw, 6rem); max-width: 850px; }
.legal-page h1, .support-page h1 { font-size: clamp(3rem, 8vw, 6rem); }
section { margin-block: 2.3rem; }
.card-list { display: grid; gap: 1rem; margin-top: 1.2rem; }
.policy-card { display: block; padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); text-decoration: none; }
.policy-card:hover { background: rgba(40,255,154,.08); }
.policy-card strong { display: block; color: var(--emerald); font-size: 1.1rem; }
.policy-card span { color: var(--muted); }
.callout { padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.site-footer { border-top: 1px solid var(--line); background: rgba(2,6,4,.68); }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.footer-grid p { margin: .25rem 0 0; color: var(--muted); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 760px) {
  .nav { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 18px; right: 18px; top: 74px; padding: .7rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(2,6,4,.96); }
  .nav-links.open { display: grid; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 3rem; }
  .hero-art { order: -1; }
  .footer-grid { display: grid; }
}

@media (max-width: 760px) {
  .home-hero { min-height: auto; padding-block: 2.6rem; }
  .tarot-showcase { border-radius: 20px; }
}

/* ENVY Software plasma wordmark */
.brand {
  align-items: center;
  min-width: 0;
}
.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 205px);
  max-height: 58px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(40, 255, 154, 0.24));
}
.hero-wordmark {
  display: block;
  width: min(560px, 92vw);
  height: auto;
  margin: 0 0 1.15rem;
  filter: drop-shadow(0 0 30px rgba(40, 255, 154, 0.22));
}
.footer-logo {
  display: block;
  width: min(260px, 76vw);
  height: auto;
  margin-bottom: .25rem;
  filter: drop-shadow(0 0 14px rgba(40, 255, 154, 0.18));
}

@media (max-width: 760px) {
  .brand-logo { width: 146px; max-height: 50px; }
  .hero-wordmark { width: min(390px, 94vw); }
}


/* ENVY Tarot plasma title effect */
.plasma-title {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  color: transparent;
  background:
    linear-gradient(90deg,
      #f8fff9 0%,
      #89ffd1 16%,
      #23ff96 32%,
      #25dcff 50%,
      #6a65ff 66%,
      #f4d36f 84%,
      #ffffff 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 10px rgba(40, 255, 154, 0.28),
    0 0 32px rgba(37, 220, 255, 0.18),
    0 0 58px rgba(244, 211, 111, 0.12);
  animation: plasma-flow 7s linear infinite;
}
.plasma-title::before,
.plasma-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .42;
}
.plasma-title::before {
  transform: translate(2px, 0);
  filter: blur(.45px);
  text-shadow: -2px 0 rgba(40, 255, 154, .34);
  clip-path: polygon(0 18%, 100% 12%, 100% 36%, 0 42%);
}
.plasma-title::after {
  transform: translate(-2px, 0);
  filter: blur(.35px);
  text-shadow: 2px 0 rgba(37, 220, 255, .3);
  clip-path: polygon(0 62%, 100% 56%, 100% 78%, 0 84%);
}
@keyframes plasma-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .plasma-title { animation: none; }
}


/* Services page */
.services-page {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.services-copy h1 {
  font-size: clamp(3.2rem, 9vw, 7.2rem);
}
.services-visual {
  margin: 0;
  border: 1px solid rgba(40, 255, 154, 0.24);
  border-radius: clamp(24px, 4vw, 38px);
  overflow: hidden;
  background: rgba(2, 6, 4, 0.62);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 55px rgba(40, 255, 154, 0.13),
    inset 0 0 0 1px rgba(244, 211, 111, 0.08);
}
.services-visual picture,
.services-visual img {
  display: block;
  width: 100%;
}
.services-visual img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
@media (max-width: 820px) {
  .services-hero { grid-template-columns: 1fr; }
  .services-visual { order: -1; }
}
