/* ==========================================================================
   ShadowShield Ltd — Modern Dark Theme
   Design system, layout, components, animations
   ========================================================================== */

:root {
  /* Base palette */
  --bg:        #08080d;
  --bg-2:      #0d0d15;
  --bg-3:      #12121d;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);

  /* Text */
  --text:      #edecf5;
  --muted:     #a6a4b8;
  --faint:     #6f6d80;

  /* Brand — sunset gradient pulled from the ShadowShield horse logo */
  --c-amber:   #ff9d2f;
  --c-magenta: #e21e80;
  --c-teal:    #21d4c4;
  --c-blue:    #4b5bff;

  --grad-brand:  linear-gradient(120deg, #ff9d2f 0%, #e21e80 48%, #21d4c4 100%);
  --grad-warm:   linear-gradient(120deg, #ff9d2f 0%, #e21e80 100%);
  --grad-cool:   linear-gradient(120deg, #e21e80 0%, #4b5bff 60%, #21d4c4 100%);
  --grad-line:   linear-gradient(90deg, transparent, rgba(226,30,128,.6), transparent);

  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 0 40px -8px rgba(226,30,128,.35);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; color: var(--muted); }
::selection { background: rgba(226,30,128,.35); color: #fff; }

/* ---------- Ambient aurora background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(75,91,255,.16), transparent 60%),
              radial-gradient(900px 600px at 0% 20%, rgba(226,30,128,.14), transparent 55%),
              radial-gradient(700px 700px at 60% 110%, rgba(33,212,196,.10), transparent 55%);
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  background: var(--grad-warm); width: 46vw; height: 46vw; top: -12vw; right: -10vw;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora::after {
  background: var(--grad-cool); width: 40vw; height: 40vw; top: auto; right: auto;
  bottom: -14vw; left: -8vw; animation-duration: 28s; animation-direction: alternate-reverse;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 0%, #000 30%, transparent 78%);
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-4vw,4vw,0) scale(1.15); }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 70px 0; }
.narrow { max-width: 820px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- Typographic helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text);
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-warm); box-shadow: 0 0 10px var(--c-magenta); }
.gradient-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.display { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; }
.h-xl { font-size: clamp(2rem, 4vw, 3rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn i { font-size: 1.05em; }
.btn-primary { color: #0a0a12; background: var(--grad-warm); box-shadow: 0 14px 30px -10px rgba(226,30,128,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -12px rgba(226,30,128,.75); color: #0a0a12; }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border-2); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: rgba(255,255,255,.3); }
.btn-light { color: #0a0a12; background: #fff; }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 11px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,13,.72); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__brand img { height: 44px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 10px 16px; border-radius: 10px;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px;
  background: var(--grad-warm); border-radius: 2px;
}
.nav__cta { margin-left: 12px; }
.nav__toggle {
  display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer; font-size: 1.3rem; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero__title { margin: 18px 0 22px; }
.hero__lead { max-width: 520px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat__num { font-size: 2rem; font-weight: 800; }
.stat__label { font-size: .8rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero__orb {
  position: absolute; inset: 6% 10%; border-radius: 50%;
  background: var(--grad-cool); filter: blur(10px); opacity: .55;
  animation: pulse 6s ease-in-out infinite;
}
.hero__ring {
  position: absolute; inset: 2%; border-radius: 50%;
  border: 1px solid var(--border-2);
  -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%);
}
.hero__horse {
  position: relative; z-index: 2; max-height: 480px; width: auto;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.65));
  animation: floaty 7s ease-in-out infinite;
}
.hero__chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(13,13,21,.7); border: 1px solid var(--border); backdrop-filter: blur(12px);
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
.hero__chip i { font-size: 1.2rem; }
.hero__chip--1 { top: 12%; left: -2%; animation-delay: .4s; }
.hero__chip--2 { bottom: 14%; right: -3%; animation-delay: 1.2s; }
.hero__chip .g { color: var(--c-teal); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse  { 0%,100% { transform: scale(1); opacity:.5; } 50% { transform: scale(1.06); opacity:.68; } }

/* ---------- Marquee (trust bar) ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee__track span { font-weight: 700; color: var(--faint); font-size: 1.05rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 60px; }
.marquee__track span::after { content: "✦"; color: var(--c-magenta); opacity: .7; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: .9; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px; color: #0a0a12; background: var(--grad-warm);
  box-shadow: 0 10px 24px -8px rgba(226,30,128,.5);
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: .93rem; margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 700; font-size: .85rem; color: var(--c-teal); }
.card__link i { transition: transform .3s var(--ease); }
.card:hover .card__link i { transform: translateX(4px); }

/* compact service tile */
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.tile__ico { font-size: 1.5rem; color: var(--c-teal); margin-bottom: 12px; }
.tile h3 { font-size: 1.02rem; margin-bottom: 8px; }
.tile p { font-size: .86rem; margin: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist i { color: var(--c-teal); margin-top: 3px; font-size: 1.1rem; flex: none; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 40px;
  background: radial-gradient(circle at 30% 20%, rgba(226,30,128,.22), transparent 60%), var(--bg-3);
  border: 1px solid var(--border); display: grid; place-items: center; min-height: 380px;
}
.media-frame img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); max-height: 340px; width: auto; }

/* ---------- Process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step__n {
  counter-increment: step; font-size: .8rem; font-weight: 800; letter-spacing: .1em;
  color: var(--c-magenta); margin-bottom: 14px; display: inline-block;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .88rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 34px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-card .n { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
.stat-card .l { color: var(--faint); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); padding: 70px 50px; text-align: center; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,157,47,.16), rgba(226,30,128,.16) 55%, rgba(33,212,196,.16));
  border: 1px solid var(--border-2);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 50% 0%, rgba(226,30,128,.25), transparent 70%);
}

/* ---------- Article / legal ---------- */
.article {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.article h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.article h2 { font-size: 1.35rem; margin-top: 1.8em; padding-top: .2em; }
.article h3 { font-size: 1.12rem; margin-top: 1.4em; }
.article p, .article li { color: var(--muted); }
.article ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.article li { margin-bottom: .5em; }
.article a { color: var(--c-teal); text-decoration: underline; text-underline-offset: 3px; }
.article a:hover { color: var(--c-magenta); }
.page-hero { padding: 70px 0 20px; text-align: center; }
.page-hero p { max-width: 620px; margin-inline: auto; }

/* ---------- Info / contact ---------- */
.info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 18px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row i { font-size: 1.25rem; color: var(--c-teal); margin-top: 2px; flex: none; }
.info-row .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 2px; }
.info-row .v { color: var(--text); font-weight: 600; font-size: .96rem; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; font-size: .95rem;
  color: var(--text); background: rgba(0,0,0,.25); border: 1px solid var(--border-2);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-magenta); box-shadow: 0 0 0 3px rgba(226,30,128,.18);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 0 34px; margin-top: 40px; background: var(--bg-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer__brand img { height: 48px; margin-bottom: 18px; }
.footer__brand p { font-size: .9rem; max-width: 320px; }
.footer__col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--muted); font-size: .92rem; }
.footer__col a:hover { color: var(--text); }
.footer__socials { display: flex; gap: 10px; margin-top: 4px; }
.footer__socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.footer__socials a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__legal { font-size: .78rem; color: var(--faint); max-width: 760px; line-height: 1.7; }
.footer__legal a { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--grad-warm); color: #0a0a12; font-size: 1.2rem;
  border: 0; cursor: pointer; opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease); box-shadow: var(--shadow-lg);
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 340px; }
  .split .media-frame { order: -1; }
  .grid-4, .stats-band, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav__links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(8,8,13,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 12px; font-size: .95rem; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4, .stats-band, .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
