/* ==========================================================================
   Vyllan — digital marketing, engineered
   Base stylesheet
   ========================================================================== */

/* Self-hosted Google Fonts; the latin-ext files only download where their characters (e.g. ₦) appear */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand colors */
  --color-black: #0D0D10;
  --color-black-soft: #16161B;
  --color-black-card: #1C1C22;
  --color-border: #2A2A32;
  --color-purple: #6C2BD9;
  --color-purple-light: #8B5CF6;
  --color-red: #D81F2A;
  --color-blue: #2B5FD9;
  --color-blue-light: #6690F0;
  --color-white: #F5F5F7;
  --color-text: #C9C9D2;
  --color-text-dim: #8A8A96;

  /* Type */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius: 10px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-white);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.mono-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-purple-light);
  display: inline-block;
  margin-bottom: 1em;
}

section {
  padding: 88px 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 0 0 0 rgba(108, 43, 217, 0.5);
}
.btn-primary:hover {
  background: var(--color-purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 43, 217, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-purple-light);
  color: var(--color-purple-light);
}

.link-arrow {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-purple);
  padding-bottom: 3px;
  display: inline-block;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.link-arrow:hover {
  color: var(--color-purple-light);
  border-color: var(--color-purple-light);
}

.micro-copy {
  font-size: 0.88rem;
  color: var(--color-text-dim);
  margin-top: 14px;
}

.secondary-contact {
  font-size: 0.92rem;
  color: var(--color-text-dim);
  margin-top: 10px;
  display: block;
}
.secondary-contact a { color: var(--color-white); border-bottom: 1px dotted var(--color-text-dim); }

/* ---- Header / Nav ---- */
.top-bar {
  background: var(--color-black-soft);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  padding: 8px 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Light/dark switch: a purple pill in the top bar; the label names the mode it switches to */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  margin: -4px 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(139, 92, 246, 0.6);
  border-radius: 999px;
  background: rgba(108, 43, 217, 0.2);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--color-white);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { background: rgba(108, 43, 217, 0.35); border-color: var(--color-purple-light); }
.theme-toggle svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-purple-light); }
:root[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
.top-bar .container > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .top-bar .container { gap: 12px; }
  .top-bar .container > span { font-size: 0.66rem; letter-spacing: 0.05em; }
  .theme-toggle-suffix { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* Brand wordmark artwork at the guide's 120px digital minimum; the text stays for screen readers */
.logo {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 35px;
  background: url('../assets/images/vyllan-logo-on-dark.png') left center / contain no-repeat;
}
.logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--color-white); }
.main-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--color-purple);
}

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .btn { padding: 11px 22px; font-size: 0.9rem; }
/* Narrow phones: "Free Audit" keeps the header on one line next to the 120px wordmark */
@media (max-width: 480px) { .header-cta .cta-prefix { display: none; } }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--color-white);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---- Hero ---- */
/* Hero entrance avoids opacity:0 — a hidden LCP element delays Google's paint timing */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 110px 0 90px;
  background-color: var(--color-black);
}
/* Glow drifts via transform (GPU-composited) rather than background-position, which repaints every frame */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: -60%;
  width: 160%;
  height: 160%;
  background: radial-gradient(60% 60% at 85% 10%, rgba(108, 43, 217, 0.24), transparent 70%);
  pointer-events: none;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(16.9%, -13.1%, 0); }
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  animation: heroFadeUp 0.8s ease both;
}

.hero h1 { margin-bottom: 0.4em; }
/* Homepage: the small eyebrow is the H1 (keyword), the big hook is a styled <p> */
.hero h1.mono-label { margin-bottom: 1em; font-weight: 400; line-height: inherit; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-white);
  margin: 0 0 0.4em;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--color-text);
  max-width: 54ch;
  margin-bottom: 1.8em;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  animation: heroFadeUp 0.8s ease 0.15s both;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(108,43,217,0.28), transparent 55%);
  pointer-events: none;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes heroFadeUp {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-visual img { animation: heroKenBurns 16s ease-in-out infinite alternate; }
}
@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
}

/* Hero photo bleeds off the right edge and fades into the page instead of sitting in a card */
.hero .hero-visual {
  border: 0;
  border-radius: 0;
  animation: heroSettle 1.2s ease-out both;
}
.hero .hero-visual::after {
  background:
    linear-gradient(155deg, rgba(108, 43, 217, 0.32), transparent 55%),
    linear-gradient(to top, var(--color-black), transparent 28%);
}
@keyframes heroSettle {
  from { transform: scale(1.04); }
  to { transform: none; }
}
@media (min-width: 981px) {
  .hero .container { grid-template-columns: minmax(0, min(600px, 52vw)); }
  .hero .hero-visual {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    /* starts ~575px into the content column so the fade never sits under the copy */
    width: calc(100% - max(0px, (100% - 1200px) / 2) - 600px);
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.4) 28%, #000 60%);
    mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.4) 28%, #000 60%);
  }
}
@media (max-width: 980px) {
  .hero .hero-visual {
    max-width: none;
    margin: 40px -24px -90px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
    mask-image: linear-gradient(to bottom, transparent, #000 38%);
  }
  .hero .hero-visual::after { background: linear-gradient(155deg, rgba(108, 43, 217, 0.32), transparent 55%); }
}

/* How We Work photo mirrors the hero: bleeds off the left edge and fades into the page */
.how-we-work-visual { border: 0; border-radius: 0; }
/* No slow zoom here: an animated layer under the fade overlays leaves a 1px seam at the edges */
.how-we-work-visual img { object-position: center 38%; animation: none; }
@media (min-width: 981px) {
  .split.split-media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split-media-left .how-we-work-visual {
    order: -1;
    height: 460px;
    aspect-ratio: auto;
    margin-left: calc(-1 * (max(0px, (100vw - 1200px) / 2) + 24px));
  }
  /* Section background is flat, so fading to it with overlays avoids mask edge seams */
  .split-media-left .how-we-work-visual::after {
    background:
      linear-gradient(to left, var(--color-black), transparent 42%),
      linear-gradient(to bottom, var(--color-black), transparent 20%, transparent 80%, var(--color-black)),
      linear-gradient(155deg, rgba(108, 43, 217, 0.28), transparent 55%);
  }
}
@media (max-width: 980px) {
  .how-we-work-visual {
    max-width: none;
    margin: 8px -24px 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  }
}

/* ---- Trust strip ---- */
.trust-strip {
  padding: 26px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-black-soft);
}
.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--color-text-dim);
  text-align: center;
}
.trust-strip li { position: relative; }
.trust-strip li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -22px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  transform: translateY(-50%);
}

/* Signal red marks urgency: the hero's key phrase and the "live" indicator */
.accent-red { color: var(--color-red); }
.live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--color-red);
  vertical-align: 1px;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-red);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot::after { animation: livePulse 2s ease-out infinite; }
}
@keyframes livePulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(2.8); opacity: 0; }
}

/* ---- Breadcrumb / page hero ---- */
.page-hero {
  padding: 64px 0 48px;
  background: radial-gradient(50% 80% at 10% 0%, rgba(108, 43, 217, 0.16), transparent 65%);
  border-bottom: 1px solid var(--color-border);
}
/* Photo variant: pair with .page-hero and set --hero-photo inline per page,
   e.g. style="--hero-photo:url('../assets/images/example.webp')" */
.page-hero-photo {
  background:
    linear-gradient(160deg, rgba(13,13,16,0.92), rgba(13,13,16,0.82) 55%, rgba(108,43,217,0.28)),
    var(--hero-photo) center/cover no-repeat;
}
/* Optional --hero-photo-sm: a smaller copy served to phones */
@media (max-width: 640px) {
  .page-hero-photo {
    background:
      linear-gradient(160deg, rgba(13,13,16,0.92), rgba(13,13,16,0.82) 55%, rgba(108,43,217,0.28)),
      var(--hero-photo-sm, var(--hero-photo)) center/cover no-repeat;
  }
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--color-white); }

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: block;
  background: var(--color-black-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-purple); }
.card.card-highlight {
  background: linear-gradient(160deg, rgba(108,43,217,0.28), var(--color-black-card) 60%);
  border-color: var(--color-purple);
}
.card h2, .card h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
.card p { color: var(--color-text-dim); margin-bottom: 0; }
.card-number {
  font-family: var(--font-mono);
  color: var(--color-purple-light);
  font-size: 0.8rem;
  margin-bottom: 14px;
  display: block;
}

/* ---- Section with subtle photo texture behind it ---- */
.section-photo-bg {
  position: relative;
  background:
    linear-gradient(120deg, rgba(13,13,16,0.95), rgba(13,13,16,0.9)),
    url('../assets/images/marketing-dashboard-review-800.webp') center 30% / cover no-repeat;
}

/* ---- Two column section ---- */
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}
.split-bullets li {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--color-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.split-bullets li:first-child { padding-top: 0; }

/* ---- Steps ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step {
  border-top: 2px solid var(--color-blue);
  padding-top: 20px;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--color-blue-light);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}
.step h2 { font-size: 1.3rem; }

/* ---- Proof / honesty module ---- */
.proof-box {
  background: var(--color-black-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.proof-box h2 { margin-bottom: 0.5em; }

/* ---- Services list (home teaser) ---- */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-tile {
  border: 1px solid var(--color-border);
  background: var(--color-black-card);
  border-radius: var(--radius);
  padding: 24px 26px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-white);
  transition: border-color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
  display: block;
}
.service-tile::before { content: '— '; color: var(--color-purple-light); }
.service-tile:hover { border-color: var(--color-purple); background: rgba(108,43,217,0.1); padding-left: 30px; }

/* ---- Insights (stacked list, matches template's Our Insights module) ---- */
.insights-list {
  max-width: 720px;
  margin-top: 40px;
}
.insight-row {
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}
.insight-row:first-child { padding-top: 0; }
.insight-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.insight-row h2, .insight-row h3 { font-size: 1.3rem; margin-bottom: 8px; }
.insight-row p { color: var(--color-text-dim); margin-bottom: 10px; }

/* ---- Bottom CTA banner (diagonal band, matches template) ---- */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, rgba(108,43,217,0.9), rgba(43,95,217,0.55)), var(--color-purple);
  padding: 70px 0 100px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  margin-bottom: -1px;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner .cta-copy .mono-label { color: rgba(255,255,255,0.75); }
.cta-banner h2 { margin-bottom: 0; color: var(--color-white); }
.cta-banner .btn-primary { background: var(--color-black); }
.cta-banner .btn-primary:hover { background: var(--color-black-soft); }
.cta-banner .secondary-contact { margin-top: 14px; color: rgba(255,255,255,0.75); }
.cta-banner .secondary-contact a { color: var(--color-white); }

/* ---- Stats row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}
.stat {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--color-white);
}
.stat span {
  display: block;
  font-family: var(--font-mono);
  color: var(--color-purple-light);
  font-size: 0.75rem;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ---- Service detail layout ---- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.service-sidebar {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  position: sticky;
  top: 100px;
}
.service-sidebar .sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  padding: 14px 16px 6px;
}
.service-sidebar a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--color-text);
}
.service-sidebar a:hover { background: var(--color-black-card); color: var(--color-white); }
.service-sidebar a[aria-current="page"] {
  background: var(--color-purple);
  color: var(--color-white);
}

.service-detail-grid h2 { font-size: 1.3rem; margin-top: 1.8em; }
.service-detail-grid h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
.service-detail-grid p a:not(.btn), .service-detail-grid li a {
  color: var(--color-purple-light);
  border-bottom: 1px dotted var(--color-purple-light);
}
.service-detail-grid p a:not(.btn):hover, .service-detail-grid li a:hover { color: var(--color-white); }
.faq-list h3:first-child { margin-top: 0.6em; }
.included-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-purple-light);
  font-weight: 700;
}
.included-list li:first-child { padding-top: 0; }

.meta-row {
  display: flex;
  gap: 40px;
  margin: 30px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.meta-row div span { display: block; color: var(--color-text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.meta-row div strong { color: var(--color-white); font-family: var(--font-head); font-size: 1rem; }

.trust-note {
  background: var(--color-black-card);
  border-left: 3px solid var(--color-purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--color-text-dim);
  margin: 30px 0;
}

.quote-block {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 40px;
}
.quote-block blockquote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--color-text-dim);
  font-style: italic;
  margin: 0 0 10px;
}
.quote-block cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ---- About the Founder ---- */
.founder-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 26px;
}
.founder-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.founder-header h2 { margin-bottom: 2px; }
.founder-title {
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0;
}
.founder-experience { margin: 22px 0; }
.founder-experience li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.founder-experience li:first-child { padding-top: 0; }
.founder-experience li strong {
  color: var(--color-white);
  font-family: var(--font-head);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.btn-outline svg { width: 16px; height: 16px; }

/* ---- Blog / Insights article body ---- */
.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: 10px;
}
.post-back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-dim);
}
.post-back:hover { color: var(--color-white); }
.post-meta a:hover { color: var(--color-white); }
.post-author {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.post-author .founder-header { margin: 0 0 14px; }
.post-author-name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 2px;
}
.post-author p:last-child { margin-bottom: 0; }
.post-body { max-width: 700px; margin: 0 auto; }
.post-body h2 { margin-top: 1.5em; }
.post-body h3 { margin-top: 1.2em; font-size: 1.1rem; }
.post-body p { color: var(--color-text); }
.post-body ul, .post-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--color-text);
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.6em; }
.post-body li::marker { color: var(--color-purple-light); }
.post-body p:not(.post-author-name) a, .post-body li a, .post-body td a {
  color: var(--color-purple-light);
  border-bottom: 1px dotted var(--color-purple-light);
}
.post-body p:not(.post-author-name) a:hover, .post-body li a:hover, .post-body td a:hover { color: var(--color-white); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.post-body th, .post-body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.post-body th { color: var(--color-white); font-family: var(--font-head); font-weight: 600; }
.post-related { margin-top: 44px; }
.post-body .post-related ul { list-style: none; padding-left: 0; margin: 0; }
.post-body .post-related li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.post-body .post-related li a {
  color: var(--color-white);
  border-bottom: 0;
  font-family: var(--font-head);
  font-weight: 600;
}
.post-body .post-related li a:hover { color: var(--color-purple-light); }
.post-cta {
  margin-top: 44px;
  border-left: 3px solid var(--color-purple);
  background: var(--color-black-card);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-dim);
}
.post-cta a {
  color: var(--color-purple-light);
  font-style: normal;
  border-bottom: 1px dotted var(--color-purple-light);
}
.insight-row .read-more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-purple-light);
  border-bottom: 1px solid var(--color-purple);
  padding-bottom: 2px;
}
.insight-row .read-more:hover { color: var(--color-white); }

/* ---- Circular callout (About page "Get in Touch" module) ---- */
.callout-box {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, rgba(13,13,16,0.94), rgba(13,13,16,0.8) 55%, rgba(108,43,217,0.4)),
    url('../assets/images/team-meeting-discussion.webp') center 25% / cover no-repeat;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  overflow: hidden;
}
@media (max-width: 640px) {
  .callout-box {
    background:
      linear-gradient(100deg, rgba(13,13,16,0.94), rgba(13,13,16,0.8) 55%, rgba(108,43,217,0.4)),
      url('../assets/images/team-meeting-discussion-800.webp') center 25% / cover no-repeat;
  }
}
.callout-box p { margin: 0; max-width: 56ch; color: var(--color-text); font-size: 1.05rem; }

/* ---- Framed photo (About intro) ---- */
.framed-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  object-fit: cover;
  display: block;
}

/* ---- Contact page ---- */
.location-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.location-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.location-card h3 { margin-bottom: 6px; }
.location-card p { color: var(--color-text-dim); margin-bottom: 4px; }

.contact-info-list { margin-top: 26px; }
.contact-info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-list span.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--color-black-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-purple);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8A96' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select:invalid { color: var(--color-text-dim); }
.field-helper {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin-top: 6px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-black-soft);
  border-top: 1px solid var(--color-border);
}
.footer-newsletter {
  padding: 34px 0;
  border-bottom: 1px solid var(--color-border);
}
.footer-newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-newsletter h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-white);
  margin: 0;
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  min-width: 320px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  background: none;
  color: var(--color-white);
  border: none;
  padding: 10px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.newsletter-form button:hover { color: var(--color-purple-light); }

.footer-main {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links-col ul { display: flex; gap: 26px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links-col a { font-size: 0.9rem; color: var(--color-text-dim); }
.footer-links-col a:hover { color: var(--color-white); }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-dim);
}
.social-icons a:hover { border-color: var(--color-purple); color: var(--color-purple-light); }
.social-icons a svg { width: 16px; height: 16px; display: block; }

/* Inline WhatsApp text-links (hero secondary contact, CTA banner secondary line) —
   icon + label, never the raw phone number as visible text. */
.whatsapp-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.whatsapp-inline svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Standalone WhatsApp button (Contact page info row) */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-white);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-whatsapp svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-whatsapp:hover { border-color: var(--color-purple); color: var(--color-purple-light); background: rgba(108,43,217,0.08); }

.footer-locations {
  display: flex;
  gap: 50px;
  text-align: right;
}
.footer-locations h5 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--color-white);
  margin: 0 0 8px;
}
.footer-locations p { font-size: 0.85rem; color: var(--color-text-dim); margin: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 30px;
  font-size: 0.82rem;
  color: var(--color-text-dim);
  border-top: 1px solid var(--color-border);
}

/* ---- Service / feature icons ---- */
.card-icon, .service-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 43, 217, 0.14);
  color: var(--color-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card.card-highlight .card-icon { background: rgba(255,255,255,0.16); color: var(--color-white); }
.card-icon svg, .service-tile-icon svg { width: 20px; height: 20px; }
.service-tile { display: flex; align-items: center; gap: 14px; }
.service-tile::before { display: none; }
.service-tile-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  margin-bottom: 0;
}
.service-tile-label { flex: 1; }
.service-tile .arrow { color: var(--color-purple-light); transition: transform 0.15s ease; display: inline-block; }
.service-tile:hover .arrow { transform: translateX(4px); }

/* ---- Scroll-reveal (progressive enhancement, added via JS) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 3D tilt targets (transform applied via JS on mousemove) ---- */
.card, .service-tile {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero, .logo-mark { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .service-tile { transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .split, .service-detail-grid { grid-template-columns: 1fr; }
  .card-grid, .services-list-grid, .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .location-cards { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .nav-toggle { display: block; }
  .footer-locations { text-align: left; }
  .cta-banner .container { flex-direction: column; align-items: flex-start; text-align: left; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-black-soft);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  .site-header.nav-open .main-nav {
    max-height: 400px;
    opacity: 1;
    padding: 10px 0;
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 24px; }
  /* The desktop active-state underline is positioned relative to the <a>,
     which is only text-width on desktop but full-row-width once it becomes
     a block element here — kill it and use a mobile-appropriate indicator
     (bold + accent color + a left bar sized to the row, not a stray
     edge-to-edge line) instead. */
  .main-nav a[aria-current="page"]::after { content: none; }
  .main-nav a[aria-current="page"] {
    font-weight: 700;
    color: var(--color-purple-light);
    border-left: 3px solid var(--color-purple);
    padding-left: 21px;
    background: rgba(108, 43, 217, 0.08);
  }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .card-grid, .services-list-grid, .steps, .stats-row, .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-main { flex-direction: column; }
  .footer-locations { flex-direction: column; gap: 20px; text-align: left; }
  .meta-row { flex-direction: column; gap: 16px; }
}

/* ==========================================================================
   Light mode (visitor's choice via the top-bar switch, saved per browser).
   Paper #F3F0EB is the brand guide's default light background; brand
   surfaces (top bar, photo headers, CTA banner, callout, footer) stay dark
   so black and purple still lead.
   ========================================================================== */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --color-black: #F3F0EB;        /* Paper: page background */
  --color-black-soft: #EBE6DD;   /* deeper paper: alternating bands */
  --color-black-card: #FBFAF7;   /* lifted card surface */
  --color-border: #DDD6CA;
  --color-white: #0D0D10;        /* headings and emphasis: Vyllan black */
  --color-text: #3D3A45;         /* body: 10:1 on Paper */
  --color-text-dim: #66626F;     /* supporting: 5:1 on Paper */
  --color-purple-light: #6C2BD9; /* brand purple carries labels and links on light */
  --color-blue-light: #2B5FD9;
  --shadow-card: 0 1px 2px rgba(13, 13, 16, 0.04), 0 12px 32px -16px rgba(108, 43, 217, 0.22);
  --shadow-card-hover: 0 2px 4px rgba(13, 13, 16, 0.05), 0 20px 40px -18px rgba(108, 43, 217, 0.32);
}
:root[data-theme="light"] :is(.top-bar, .site-footer, .cta-banner, .page-hero-photo, .callout-box) {
  --color-black: #0D0D10;
  --color-black-soft: #16161B;
  --color-black-card: #1C1C22;
  --color-border: #2A2A32;
  --color-white: #F5F5F7;
  --color-text: #C9C9D2;
  --color-text-dim: #8A8A96;
  --color-purple-light: #8B5CF6;
  --color-blue-light: #6690F0;
}
:root[data-theme="light"] .top-bar { background: #0D0D10; }
:root[data-theme="light"] .site-footer { background: #0D0D10; }
:root[data-theme="light"] .logo { background-image: url('../assets/images/vyllan-logo-on-light.png'); }
:root[data-theme="light"] .site-header { background: rgba(243, 240, 235, 0.88); }
:root[data-theme="light"] .hero::before {
  background: radial-gradient(60% 60% at 85% 10%, rgba(108, 43, 217, 0.14), transparent 70%);
}
:root[data-theme="light"] .section-photo-bg {
  background:
    linear-gradient(120deg, rgba(243, 240, 235, 0.9), rgba(235, 230, 221, 0.86)),
    url('../assets/images/marketing-dashboard-review-800.webp') center 30% / cover no-repeat;
}

/* Photos: fading into Paper washes a photo out far more than fading into black,
   so light mode uses shorter fades and a lighter purple tint */
:root[data-theme="light"] .hero .hero-visual::after {
  background:
    linear-gradient(155deg, rgba(108, 43, 217, 0.14), transparent 50%),
    linear-gradient(to top, var(--color-black), transparent 12%);
}
:root[data-theme="light"] .how-we-work-visual::after {
  background: linear-gradient(155deg, rgba(108, 43, 217, 0.12), transparent 50%);
}
@media (min-width: 981px) {
  :root[data-theme="light"] .hero .hero-visual {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
    mask-image: linear-gradient(to right, transparent, #000 30%);
  }
  :root[data-theme="light"] .split-media-left .how-we-work-visual::after {
    background:
      linear-gradient(to left, var(--color-black), transparent 22%),
      linear-gradient(to bottom, var(--color-black), transparent 9%, transparent 91%, var(--color-black)),
      linear-gradient(155deg, rgba(108, 43, 217, 0.12), transparent 50%);
  }
}
@media (max-width: 980px) {
  :root[data-theme="light"] .hero .hero-visual {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%);
    mask-image: linear-gradient(to bottom, transparent, #000 20%);
  }
  :root[data-theme="light"] .hero .hero-visual::after { background: linear-gradient(155deg, rgba(108, 43, 217, 0.14), transparent 50%); }
  :root[data-theme="light"] .how-we-work-visual {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  }
}

/* Cards lift off the paper with a purple-tinted shadow instead of a dark fill */
:root[data-theme="light"] :is(.card, .service-tile, .location-card) {
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
:root[data-theme="light"] .location-card { background: var(--color-black-card); }
:root[data-theme="light"] :is(.card, .service-tile):hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(108, 43, 217, 0.35);
}
:root[data-theme="light"] .card.card-highlight {
  background: linear-gradient(160deg, rgba(108, 43, 217, 0.12), var(--color-black-card) 62%);
  border-color: rgba(108, 43, 217, 0.45);
}
:root[data-theme="light"] .card.card-highlight .card-icon { background: #6C2BD9; color: #F5F5F7; }
:root[data-theme="light"] :is(.card-icon, .service-tile-icon) { background: rgba(108, 43, 217, 0.1); }

/* Buttons: white text stays white on purple; hover darkens instead of lightening */
:root[data-theme="light"] .btn-primary { color: #F5F5F7; }
:root[data-theme="light"] .btn-primary:hover { background: #5A22BF; box-shadow: 0 8px 24px rgba(108, 43, 217, 0.28); }
:root[data-theme="light"] .btn-outline { border-color: #CFC7BA; }
