/* =============================================================
   wikitree IT Services — Design System
   Brand palette derived from logo.png (grey #939498 + green #72B445)
   Modern, dynamic corporate identity for asset managers & PE firms
   ============================================================= */

:root {
  /* Brand */
  --green:        #72B445;
  --green-600:    #5c9e33;
  --green-700:    #4a8228;
  --green-100:    #d9ebcc;
  --green-50:     #eef7e6;
  --grey:         #939498;
  --grey-300:     #c8c9cc;

  /* Ink / neutrals */
  --ink:          #1c2126;
  --ink-soft:     #4b535c;
  --ink-mute:     #6b747d;
  --line:         #e6e9ec;
  --bg:           #ffffff;
  --bg-alt:       #f5f8f3;
  --bg-dark:      #12181c;
  --bg-dark-2:    #1b262b;

  /* Type */
  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius:   14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(28,33,38,.06);
  --shadow:    0 12px 34px rgba(28,33,38,.10);
  --shadow-lg: 0 24px 60px rgba(28,33,38,.16);
  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-600); }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: #dfe4e8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-700);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.section--dark .eyebrow { color: var(--green); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.grid { display: grid; gap: 1.6rem; }
.text-balance { text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(114,180,69,.35); }
.btn--primary:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(114,180,69,.45); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--green); color: var(--green-700); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: .55rem .85rem; border-radius: 8px; position: relative;
}
.nav-links a:hover { color: var(--green-700); background: var(--green-50); }
.nav-links a[aria-current="page"] { color: var(--green-700); }
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .6rem; min-width: 320px; opacity: 0; visibility: hidden; transition: all .22s var(--ease);
  list-style: none; margin: 0;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: 10px; gap: .1rem; }
.dropdown a strong { font-weight: 600; font-size: .95rem; }
.dropdown a span { font-size: .82rem; color: var(--ink-mute); font-family: var(--font-body); font-weight: 400; }
.dropdown a:hover { background: var(--green-50); }
.nav-cta { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { /* animated aurora gradient echoing the "video" feel */
  content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 45% at 20% 25%, rgba(114,180,69,.38), transparent 60%),
    radial-gradient(35% 40% at 82% 18%, rgba(90,158,51,.30), transparent 60%),
    radial-gradient(45% 50% at 70% 85%, rgba(147,148,152,.22), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { 0%{transform:translate3d(0,0,0) scale(1);} 100%{transform:translate3d(-4%,3%,0) scale(1.12);} }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3.5rem,8vw,6rem) 0 clamp(3.5rem,7vw,5.5rem); }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18); padding: .4rem .9rem; border-radius: 999px;
  font-size: .82rem; font-family: var(--font-head); letter-spacing: .04em; margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(114,180,69,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(114,180,69,.6);} 70%{box-shadow:0 0 0 10px rgba(114,180,69,0);} 100%{box-shadow:0 0 0 0 rgba(114,180,69,0);} }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--green); }
.hero p.lead { color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.8rem; color: #fff; display: block; line-height: 1; }
.hero-stats .stat span { font-size: .85rem; color: rgba(255,255,255,.62); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); }
.hero-visual .float-card {
  position: absolute; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px;
  padding: .8rem 1rem; box-shadow: var(--shadow); display: flex; gap: .7rem; align-items: center;
  font-size: .85rem; font-weight: 600; font-family: var(--font-head); animation: floaty 5s ease-in-out infinite;
}
.hero-visual .float-card .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.hero-visual .float-card.c1 { top: -18px; left: -22px; }
.hero-visual .float-card.c2 { bottom: -20px; right: -18px; animation-delay: 1.5s; }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-9px);} }

/* ---------- Marquee / logos ---------- */
.marquee { overflow: hidden; padding: 1.4rem 0; -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 600; color: var(--grey); white-space: nowrap; font-size: 1.05rem; letter-spacing: .01em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; left:0; top:0; height:4px; width:100%; background: linear-gradient(90deg,var(--green),var(--green-100)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .card-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .card-ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 1rem; }
.card .card-link { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .4rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; color: var(--ink-soft); }
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.check-list li strong { color: var(--ink); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stats-band .stat b { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.9rem); color: var(--green); display: block; line-height: 1; }
.stats-band .stat span { color: var(--ink-mute); font-size: .95rem; }
.section--dark .stats-band .stat span { color: rgba(255,255,255,.65); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); }
.step { position: relative; padding: 1.6rem; padding-top: 2.2rem; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step,decimal-leading-zero); position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--green-100); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--bg-dark), var(--bg-dark-2)); color:#fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,6vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 50% 0%, rgba(114,180,69,.28), transparent 65%); }
.cta-band > * { position: relative; }
.cta-band h2 { color:#fff; }
.cta-band .lead { color: rgba(255,255,255,.8); margin: 0 auto 2rem; }
.cta-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--ink-mute); padding: 1rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--grey-300); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--green-700); }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(120deg,var(--bg-dark),var(--bg-dark-2)); color:#fff; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(45% 60% at 85% 20%, rgba(114,180,69,.28), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items:center; padding: clamp(2rem,5vw,3.5rem) 0 clamp(3rem,6vw,4.5rem); }
.page-hero h1 { color:#fff; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 60ch; }
.page-hero .breadcrumb, .page-hero .breadcrumb a, .page-hero .breadcrumb li::after { color: rgba(255,255,255,.6); }
.page-hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.tag-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.4rem 0; }
.tag { background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); color:#fff; padding:.3rem .8rem; border-radius:999px; font-size:.8rem; font-family:var(--font-head); }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul li { margin-bottom: .5rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details { border:1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; margin-bottom: .8rem; background:#fff; transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; padding: 1.1rem 0; list-style: none; display:flex; justify-content: space-between; gap:1rem; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size: 1.5rem; color: var(--green); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin-top: -.2rem; padding-bottom: 1.1rem; }

/* ---------- Sidebar related ---------- */
.svc-layout { display:grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items:start; }
.svc-aside { position: sticky; top: 96px; display:grid; gap:1.2rem; }
.aside-card { border:1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; background:#fff; }
.aside-card.green { background: var(--green-50); border-color: var(--green-100); }
.aside-card h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .8rem; }
.aside-links { list-style:none; padding:0; margin:0; }
.aside-links li { border-top:1px solid var(--line); }
.aside-links li:first-child { border-top:0; }
.aside-links a { display:flex; align-items:center; gap:.5rem; padding:.7rem 0; font-family:var(--font-head); font-weight:500; font-size:.93rem; color:var(--ink); }
.aside-links a:hover { color: var(--green-700); }
.aside-links a svg { width:15px;height:15px;color:var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aab3bb; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color:#8b949c; font-size:.95rem; max-width: 34ch; }
.site-footer h5 { font-family: var(--font-head); color:#fff; font-size:.95rem; letter-spacing:.04em; text-transform:uppercase; margin: 0 0 1.1rem; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:.6rem; }
.footer-links a { color:#aab3bb; font-size:.94rem; }
.footer-links a:hover { color: var(--green); }
.footer-contact li { display:flex; gap:.6rem; align-items:flex-start; margin-bottom:.7rem; font-size:.94rem; }
.footer-contact svg { width:18px;height:18px;color:var(--green);flex-shrink:0;margin-top:2px; }
.footer-contact a { color:#aab3bb; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.6rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#7c858d; }
.footer-bottom a { color:#7c858d; }
.footer-bottom a:hover { color: var(--green); }
.social { display:flex; gap:.6rem; }
.social a { width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.07);display:grid;place-items:center;color:#aab3bb; }
.social a:hover { background: var(--green); color:#fff; }
.social svg{width:18px;height:18px;}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split, .page-hero-grid, .svc-layout { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .hero-visual { margin-top: 1rem; }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-aside { position: static; }
  .hero-visual .float-card.c1 { left: 0; }
  .hero-visual .float-card.c2 { right: 0; }
}
@media (max-width: 780px) {
  .nav-links, .nav-cta .btn--outline { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0; background:#fff;
    border-bottom: 1px solid var(--line); padding: 1rem; gap:.2rem; box-shadow: var(--shadow);
  }
  .nav.open .dropdown { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding-left:1rem; min-width:auto; }
  .nav.open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav.open .nav-toggle span:nth-child(2){opacity:0;}
  .nav.open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity:1; transform:none; }
}
