:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark light;
  --bg: #050813;
  --bg-alt: #0c1020;
  --accent: #f1c40f;
  --accent-soft: #f9e79f;
  --text: #f7f7f7;
  --muted: #c0c3d0;
  --border: #252a3a;
  --link: #f1c40f;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1b2340 0, #050813 55%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout shell */

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */

header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right, rgba(5,8,19,0.9), rgba(5,8,19,0.98));
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-block small {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand-block strong {
  font-size: 1rem;
}

nav ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

nav a:hover,
nav a:focus {
  color: var(--text);
  border-color: var(--border);
  background: rgba(241,196,15,0.06);
}

nav a.nav-main {
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* Main / headings */

main {
  padding: 2.2rem 0 3.3rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

h4 {
  font-size: 0.95rem;
  margin: 0.8rem 0 0.25rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero block (home) */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-tag {
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero p.lead {
  color: var(--muted);
  max-width: 40rem;
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Generic cards / panels */

.hero-card,
.card,
.case,
.faq-item,
.tier,
.step {
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(9,13,30,0.95);
  padding: 1rem 1.1rem 1.2rem;
  font-size: 0.9rem;
}

.hero-card {
  background: radial-gradient(circle at top, #1b2340 0, #050813 70%);
  padding: 1rem 1.25rem 1.25rem;
}

.hero-card h3,
.card h3,
.case h3,
.step h3,
.tier h3 {
  margin-top: 0;
}

/* Pillars (home) */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Steps (how we work) */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step {
  position: relative;
}

.step-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  font-size: 0.75rem;
  color: var(--accent-soft);
  background: rgba(241,196,15,0.1);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(241,196,15,0.4);
}

.step h3 {
  margin-right: 3rem;
}

/* Tiers / pricing grid */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.tier {
  padding: 1.2rem;
}

.price {
  font-size: 1.3rem;
  color: var(--accent-soft);
  margin: 0.4rem 0 0.6rem;
}

.tier ul {
  padding-left: 1.15rem;
}

/* Case studies */

.case {
  margin-top: 1.3rem;
  padding: 1.2rem 1.2rem 1.3rem;
}

.case-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.case-tag {
  font-size: 0.75rem;
  color: var(--accent-soft);
  background: rgba(241,196,15,0.1);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(241,196,15,0.4);
  align-self: flex-start;
}

/* FAQ */

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.faq-item p {
  margin: 0.15rem 0 0.45rem;
}

/* CTA / buttons */

.cta-strip {
  border-radius: 0.9rem;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, rgba(241,196,15,0.15), rgba(5,8,19,0.95));
  padding: 1.1rem 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

.cta-actions {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
}

.btn:hover,
.btn:focus {
  filter: brightness(1.08);
  border-color: var(--accent);
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-soft);
}

/* Generic lists */

ul {
  padding-left: 1.1rem;
}
/* Content links */

main a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(241,196,15,0.4);
}

main a:hover,
main a:focus {
  border-bottom-color: var(--accent);
  filter: brightness(1.05);
}

/* Section spacing */

main section {
  margin-top: 1.8rem;
}

/* Mobile tweaks */

@media (max-width: 640px) {
  .top-bar {
    align-items: flex-start;
  }

  nav ul {
    gap: 0.4rem;
  }

  main {
    padding-top: 1.6rem;
  }
}

/* ------------------------------------------
   GLOBAL LIGHTHOUSE BACKGROUND (Homepage)
------------------------------------------- */

body {
  background:
    url("/StockCake-Lighthouse_at_dusk_1760976348.jpg")
    center/cover no-repeat fixed,
    radial-gradient(circle at top, #1b2340 0%, #050813 70%);
  background-attachment: fixed;
}


/* ------------------------------------------
   POLISH PASS – header, hero, CTAs
   (root site only – /home/haunted/www)
------------------------------------------- */

/* Slightly stronger brand accent for hovers */
:root {
  --accent-strong: #ffd86b;
}

/* Make the header feel like a proper glass bar */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: radial-gradient(circle at top, rgba(3, 7, 18, 0.97), rgba(3, 7, 18, 0.94));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
}

/* Keep main content nicely framed and centred */
main {
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 2.5rem 1.8rem 3.5rem;
}

/* First card (hero) – give it a little more presence */
main .card:first-of-type {
  margin-top: 1.6rem;
  background: rgba(9, 13, 30, 0.96);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(15, 23, 42, 0.7);
}

/* Stack following cards with a steady rhythm */
main .card + .card {
  margin-top: 1.4rem;
}

/* CTAs / links inside main content – subtle gold glow on hover */
main a {
  text-underline-offset: 2px;
  transition:
    color 0.15s ease,
    border-bottom-color 0.15s ease,
    box-shadow 0.15s ease;
}

main a:hover,
main a:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(255, 216, 107, 0.35);
}

/* ------------------------------------------
   GOLD OUTLINE FOR HOMEPAGE CTA LINKS
------------------------------------------- */

main .cta,
main .cta a,
main .highlight-link,
main a.special-link {
  border-bottom: none !important;
  padding-bottom: 1px;
  text-decoration: none !important;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

main .cta:hover,
main .cta a:hover,
main .highlight-link:hover,
main a.special-link:hover {
  color: var(--accent-soft) !important;
  box-shadow: 0 0 0 1px var(--accent-soft) !important;
}

/* Auto-target all “→” links as CTAs */
main a[href*="→"] {
  text-decoration: none !important;
  border-bottom: none !important;
}

main a[href*="→"]:hover {
  box-shadow: 0 0 0 1px var(--accent-soft) !important;
  color: var(--accent-soft) !important;
}


/* ------------------------------------------
   HOMEPAGE CTA BUTTONS — MATCH CONSULTANCY
------------------------------------------- */

main a.cta-button {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.02);
  border-radius: 0.35rem;
  text-decoration: none !important;
  color: var(--accent-soft);
  transition: 
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

main a.cta-button:hover {
  background: rgba(255,255,255,0.04);
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Auto-convert arrow links into CTA buttons */
main a[href*="→"] {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
  background: rgba(255,255,255,0.02);
  text-decoration: none !important;
  color: var(--accent-soft);
}

main a[href*="→"]:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 2px var(--accent-soft);
  color: var(--accent);
}

