/* ==========================================================================
   FAATEH TECH SERVICES — Design System
   Premium technology company · SaaS-grade visuals · WP/Elementor-ready tokens
   ========================================================================== */

:root {
  /* Brand palette */
  --blue:        #1DA1F2;
  --cyan:        #37B6F5;
  --purple:      #7B3FF2;
  --deep-purple: #5A189A;
  --dark:        #111111;
  --light:       #F8FAFC;
  --white:       #FFFFFF;

  /* Neutral scale */
  --ink:        #0B1220;
  --text:       #223046;
  --muted:      #5B6B82;
  --line:       #E6EBF2;
  --line-soft:  #EEF2F7;

  /* Gradients */
  --gradient:        linear-gradient(90deg, #1DA1F2 0%, #37B6F5 35%, #7B3FF2 100%);
  --gradient-soft:   linear-gradient(135deg, rgba(29,161,242,.12), rgba(123,63,242,.12));
  --gradient-text:   linear-gradient(90deg, #1DA1F2 0%, #37B6F5 40%, #7B3FF2 100%);
  --gradient-vert:   linear-gradient(180deg, #1DA1F2 0%, #7B3FF2 100%);

  /* Typography */
  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 4px 12px rgba(11,18,32,.05);
  --shadow:    0 6px 16px -6px rgba(11,18,32,.12), 0 16px 40px -12px rgba(11,18,32,.12);
  --shadow-lg: 0 24px 60px -18px rgba(11,18,32,.22);
  --shadow-glow: 0 10px 40px -8px rgba(29,161,242,.35);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .45s;

  /* Header */
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1em; }
::selection { background: rgba(123,63,242,.22); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--ink); color: #C9D4E6; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted { color: #8FA0B8; }

.muted { color: var(--muted); }
.grad-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple);
  background: var(--gradient-soft);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { font-size: 1.1rem; color: var(--muted); }
.section-head h2 { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  color: #fff; background: var(--gradient); background-size: 160% 160%;
  box-shadow: 0 8px 24px -8px rgba(123,63,242,.55);
}
.btn-primary:hover {
  transform: translateY(-2px); background-position: 100% 50%;
  box-shadow: 0 14px 34px -10px rgba(123,63,242,.65);
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #1b2537; box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--ink); border-color: #D5DDE8; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 10px 18px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* animated-border ghost button (gradient border) */
.btn-ghostgrad {
  position: relative; color: #fff; background: transparent; border-radius: 12px;
  padding: 13px 26px; font-weight: 600; font-family: var(--font-head);
  border: 0; cursor: pointer; overflow: hidden; z-index: 0;
}
.btn-ghostgrad::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1;
}
.btn-ghostgrad::after {
  content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: 0;
  transition: opacity var(--dur) var(--ease); z-index: -2;
}
.btn-ghostgrad:hover { transform: translateY(-2px); }
.btn-ghostgrad:hover::after { opacity: 1; }

/* ---------- Cards (generic) ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header .header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header.scrolled {
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11,18,32,.06), 0 8px 30px -18px rgba(11,18,32,.25);
  height: 66px;
}
.site-header:not(.scrolled):not(.solid) { color: #fff; }
.site-header:not(.scrolled):not(.solid) .nav a { color: rgba(255,255,255,.9); }
.site-header:not(.scrolled):not(.solid) .nav a:hover, .site-header:not(.scrolled):not(.solid) .nav a.active { color: #fff; }
.site-header.solid, .site-header.scrolled { color: var(--ink); }
.site-header.solid { background: #fff; border-bottom: 1px solid var(--line); }

.logo { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.logo .logo-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; line-height: 1; color: inherit; display: flex; flex-direction: column; }
.logo-text em { font-style: normal; font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.site-header:not(.scrolled):not(.solid) .logo-text em { color: rgba(255,255,255,.6); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500; font-size: .9rem; padding: 9px 12px; border-radius: 9px; color: var(--text);
  transition: color .2s ease, background .2s ease;
}
.nav > li > a:hover { background: rgba(29,161,242,.08); }
.nav a.active { color: var(--blue); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gradient); border-radius: 2px;
}
.nav .caret { width: 14px; height: 14px; transition: transform .2s ease; }
.has-drop { position: relative; }
.has-drop:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s var(--ease); z-index: 50;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 9px; font-size: .92rem; color: var(--text); }
.dropdown a:hover { background: var(--light); color: var(--blue); }
.dropdown .dd-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--gradient-soft); display: grid; place-items: center; color: var(--purple); flex: 0 0 auto; }
.dropdown .dd-icon svg { width: 17px; height: 17px; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-cta .btn { padding: 11px 20px; }

/* Mobile hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; }
.hamburger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
}
.mobile-drawer .overlay { position: absolute; inset: 0; background: rgba(11,18,32,.5); opacity: 0; transition: opacity .3s ease; }
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #fff; padding: 22px; transform: translateX(100%); transition: transform .38s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer.open .overlay { opacity: 1; }
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-drawer .close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.mobile-nav > li { border-bottom: 1px solid var(--line-soft); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.mobile-nav .sub { display: none; padding: 0 0 10px 12px; }
.mobile-nav .sub a { font-weight: 400; font-family: var(--font-body); font-size: .92rem; padding: 9px 4px; color: var(--muted); }
.mobile-nav li.open .sub { display: block; }
.mobile-nav .m-caret { width: 16px; height: 16px; transition: transform .2s; }
.mobile-nav li.open .m-caret { transform: rotate(180deg); }
.mobile-drawer .m-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(123,63,242,.28), transparent 60%),
              radial-gradient(1000px 500px at 10% 20%, rgba(29,161,242,.25), transparent 55%),
              linear-gradient(160deg, #0B1220 0%, #0E1B33 55%, #16103a 100%);
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(900px 400px at 50% 120%, rgba(29,161,242,.18), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.2rem); margin-bottom: 20px; }
.hero .lead { color: #B9C7DC; font-size: 1.15rem; max-width: 560px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 500;
  color: #DCE6F5; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 15px; border-radius: 999px; margin-bottom: 24px; backdrop-filter: blur(6px);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 12px rgba(55,182,245,.9); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; }
.hero-meta .m { display: flex; flex-direction: column; }
.hero-meta .m b { font-family: var(--font-head); font-size: 1.4rem; color: #fff; }
.hero-meta .m span { font-size: .82rem; color: #8FA0B8; }

/* hero visual / floating UI */
.hero-visual { position: relative; height: 460px; }
.orbit { position: absolute; inset: 0; margin: auto; width: 340px; height: 340px; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(29,161,242,.0), rgba(29,161,242,.35), rgba(123,63,242,.4), rgba(29,161,242,.0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: spin 22s linear infinite;
}
.orbit.o2 { width: 460px; height: 460px; animation-duration: 34s; animation-direction: reverse; opacity: .6; }
.core {
  position: absolute; inset: 0; margin: auto; width: 150px; height: 150px; border-radius: 50%;
  background: var(--gradient-vert); box-shadow: 0 0 80px 10px rgba(123,63,242,.5), inset 0 0 30px rgba(255,255,255,.25);
  display: grid; place-items: center;
}
.core svg { width: 56px; height: 56px; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); animation: floaty 6s ease-in-out infinite;
}
.float-card .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.float-card b { display: block; font-size: .86rem; color: #fff; font-family: var(--font-head); }
.float-card span { font-size: .74rem; color: #9FB1CB; }
.fc1 { top: 6%; left: -4%; animation-delay: 0s; }
.fc2 { top: 40%; right: -6%; animation-delay: 1.2s; }
.fc3 { bottom: 4%; left: 10%; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Stats band ---------- */
.stats-band { position: relative; z-index: 3; margin-top: -54px; }
.stats-band .card {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.stat { padding: 30px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; color: var(--ink); }
.stat .num .grad-text { -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* ---------- Logo cloud / marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scrollx 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.logo-chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; font-weight: 600; font-family: var(--font-head); color: var(--ink);
  white-space: nowrap; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.logo-chip:hover { border-color: rgba(123,63,242,.4); box-shadow: var(--shadow-sm); }
.logo-chip .li { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.svc-card { position: relative; overflow: hidden; }
.svc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--gradient-soft); color: var(--purple); transition: all var(--dur) var(--ease);
}
.svc-card .icon svg { width: 26px; height: 26px; }
.svc-card:hover .icon { background: var(--gradient); color: #fff; box-shadow: var(--shadow-glow); }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.svc-card .link { font-weight: 600; font-family: var(--font-head); font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.svc-card .link svg { width: 16px; height: 16px; transition: transform .2s; }
.svc-card:hover .link svg { transform: translateX(4px); }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .72rem; font-weight: 500; color: var(--muted); background: var(--light); border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; }

/* ---------- Why choose us / feature list ---------- */
.feature { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: all var(--dur) var(--ease); }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-soft); color: var(--purple); display: grid; place-items: center; flex: 0 0 auto; }
.feature .fi svg { width: 22px; height: 22px; }
.feature h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 4px; font-size: 1.02rem; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Tools ---------- */
.tool-card { text-align: center; padding: 28px 20px; }
.tool-card .tool-logo { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; transition: transform var(--dur) var(--ease); }
.tool-card:hover .tool-logo { transform: translateY(-4px) rotate(-3deg); }
.tool-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.tool-card .cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); font-weight: 600; }
.tool-card p { font-size: .86rem; color: var(--muted); margin: 10px 0 16px; }
.proficiency { height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.proficiency i { display: block; height: 100%; background: var(--gradient); border-radius: 6px; width: 0; transition: width 1.2s var(--ease); }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-family: var(--font-head); font-size: .88rem; color: var(--muted); cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(123,63,242,.5); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-item { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.p-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.p-item .thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.p-item .thumb .bg { width: 100%; height: 100%; display: grid; place-items: center; }
.p-item .thumb .bg svg { width: 56px; height: 56px; color: rgba(255,255,255,.9); }
.p-item .thumb .cat-badge {
  position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 600; color: #fff;
  background: rgba(11,18,32,.55); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px;
}
.p-item .body { padding: 20px 22px 22px; }
.p-item .body h3 { font-size: 1.12rem; margin: 0 0 6px; }
.p-item .body .client { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.p-item .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p-item.hide { display: none; }

/* ---------- Process / timeline ---------- */
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: all var(--dur) var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step .no {
  width: 46px; height: 46px;
  border-radius: 12px; background: var(--gradient-soft); color: var(--purple); display: grid; place-items: center; margin-bottom: 14px;
  transition: all var(--dur) var(--ease);
}
.step .no svg { width: 22px; height: 22px; }
.step:hover .no { background: var(--gradient); color: #fff; }
.step h4 { margin: 0 0 6px; font-size: .98rem; }
.step p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: all var(--dur) var(--ease); }
.testi:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi .stars { color: #F5A623; font-size: .9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi .quote { font-size: .95rem; color: var(--text); flex: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head); flex: 0 0 auto; }
.testi .who b { display: block; font-family: var(--font-head); color: var(--ink); font-size: .92rem; }
.testi .who span { font-size: .78rem; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all var(--dur) var(--ease); }
.b-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.b-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.b-card .thumb .bg { width: 100%; height: 100%; display: grid; place-items: center; transition: transform .6s var(--ease); }
.b-card:hover .thumb .bg { transform: scale(1.06); }
.b-card .thumb svg { width: 46px; height: 46px; color: rgba(255,255,255,.9); }
.b-card .body { padding: 22px 24px 24px; }
.b-card .meta { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.b-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.b-card h3 { font-size: 1.12rem; margin: 0 0 8px; line-height: 1.3; }
.b-card h3 a:hover { color: var(--blue); }
.b-card p { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.b-card .link { font-weight: 600; font-family: var(--font-head); font-size: .88rem; color: var(--blue); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Pricing / packages ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; transition: all var(--dur) var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.popular { border: 2px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-glow); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 16px; border-radius: 999px; white-space: nowrap; }
.price-card .pname { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.price-card .pcat { font-size: .78rem; color: var(--purple); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.price-card .price { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.price-card .price .cur { font-size: 1.3rem; vertical-align: top; }
.price-card .price .per { font-size: .9rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.price-card .desc { font-size: .9rem; color: var(--muted); margin: 14px 0 20px; }
.price-card ul { margin-bottom: 24px; flex: 1; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .9rem; color: var(--text); }
.price-card ul li svg { width: 18px; height: 18px; color: var(--purple); flex: 0 0 auto; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; overflow: hidden; transition: box-shadow var(--dur) var(--ease); }
.faq.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-q .qico { width: 30px; height: 30px; border-radius: 9px; background: var(--gradient-soft); color: var(--purple); display: grid; place-items: center; flex: 0 0 auto; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq-q .qico svg { width: 16px; height: 16px; }
.faq.open .qico { transform: rotate(45deg); background: var(--gradient); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: .94rem; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(48px, 6vw, 80px);
  background: linear-gradient(120deg, #0B1220 0%, #10163f 55%, #1b0f3a 100%); color: #fff;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 80% 0%, rgba(123,63,242,.4), transparent 60%), radial-gradient(600px 300px at 10% 100%, rgba(29,161,242,.35), transparent 60%); }
.cta-band .inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-band p { color: #B9C7DC; font-size: 1.08rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { position: relative; background: linear-gradient(160deg, #0B1220, #10163f 60%, #16103a); color: #fff; padding: calc(var(--header-h) + 56px) 0 60px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 320px at 70% 0%, rgba(123,63,242,.35), transparent 60%), radial-gradient(600px 260px at 10% 100%, rgba(29,161,242,.3), transparent 55%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: #B9C7DC; max-width: 640px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: #8FA0B8; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: #B9C7DC; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-family: var(--font-head); font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--purple); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-body);
  font-size: .95rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,161,242,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---------- Contact info card ---------- */
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: all var(--dur) var(--ease); }
.contact-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.contact-item .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--gradient-soft); color: var(--purple); display: grid; place-items: center; flex: 0 0 auto; }
.contact-item .ci svg { width: 22px; height: 22px; }
.contact-item b { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 2px; }
.contact-item p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; transition: all var(--dur) var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card .avatar { width: 76px; height: 76px; margin: 0 auto 16px; font-size: 1.5rem; border-radius: 50%; }
.team-card h4 { margin: 0 0 3px; }
.team-card .role { color: var(--purple); font-weight: 600; font-size: .84rem; }
.team-card p { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Job / careers ---------- */
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: all var(--dur) var(--ease); }
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.job-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.job-card h3 { margin: 0 0 6px; }
.job-card .type { font-size: .74rem; font-weight: 600; color: #fff; background: var(--gradient); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0; font-size: .84rem; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); font-size: .96rem; }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal .updated { font-size: .84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9FB1CB; padding: 72px 0 0; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { color: #fff; font-family: var(--font-head); font-size: .98rem; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: .9rem; }
.footer-brand p { font-size: .9rem; margin: 16px 0 20px; max-width: 300px; }
.footer-brand .logo-text em { color: #6b7d95; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--gradient); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .links a { font-size: .84rem; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 13px; background: var(--gradient); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation system ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(5px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); will-change: opacity, transform, filter; }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-scale { transform: scale(.92); }
.reveal.in-view { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float-card, .orbit, .marquee-track { animation: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-outline { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; margin-top: 10px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid, .testi-grid, .blog-grid, .pricing-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .stats-band .card { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat::before { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid, .testi-grid, .blog-grid, .pricing-grid, .team-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
  .hero-visual { display: none; }
  .header-cta .btn-primary { display: none; }
}

/* ==========================================================================
   FREE TOOLS (page template)
   ========================================================================== */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tool-panel { padding: 26px; display: flex; flex-direction: column; }
.tool-panel .tp-head { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.tool-panel .tp-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--gradient-soft); color: var(--purple); display: grid; place-items: center; flex: 0 0 auto; }
.tool-panel .tp-icon svg { width: 22px; height: 22px; }
.tool-panel h3 { margin: 0 0 2px; }
.tool-panel .tp-desc { font-size: .86rem; color: var(--muted); margin: 0 0 18px; }
.tool-panel textarea, .tool-panel input[type=text], .tool-panel input[type=number] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: .92rem; color: var(--text); background: #fff;
  transition: border-color .2s, box-shadow .2s; margin-bottom: 12px;
}
.tool-panel textarea { min-height: 96px; resize: vertical; }
.tool-panel input:focus, .tool-panel textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,161,242,.14); }
.tool-panel .tp-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.tool-panel .tp-out { margin-top: 12px; padding: 13px 15px; background: var(--light); border: 1px solid var(--line); border-radius: 11px; font-size: .9rem; color: var(--text); word-break: break-word; min-height: 46px; }
.tool-panel .tp-out:empty { display: none; }
.tool-panel .tp-row { display: flex; gap: 9px; flex-wrap: wrap; }
.tool-panel .tp-row > * { flex: 1 1 120px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; }
.qr-wrap img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.badge-mini { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); background: var(--gradient-soft); padding: 4px 9px; border-radius: 7px; }
.note { font-size: .8rem; color: var(--muted); }
.tool-panel select, .tool-panel input[type=file] {
  border: 1px solid var(--line); border-radius: 11px; font-size: .9rem; color: var(--text); background: #fff; margin-bottom: 12px; font-family: var(--font-body); padding: 11px 12px;
}
.tool-panel select:focus, .tool-panel input[type=file]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,161,242,.14); }
.tool-panel input[type=range] { width: 100%; margin: 22px 0 0; padding: 0; accent-color: var(--purple); border: 0; }
.inv-item { display: grid; grid-template-columns: 1fr 80px 120px 46px; gap: 8px; margin-bottom: 8px; }
.inv-item input { margin-bottom: 0 !important; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-grid .full { grid-column: 1 / -1; }
.img-preview { max-width: 220px; border-radius: 12px; border: 1px solid var(--line); margin-top: 12px; display: none; }
@media (max-width: 560px) { .inv-item { grid-template-columns: 1fr 64px 90px 40px; } .inv-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }

/* Widget / misc */
.widget { margin-bottom: 24px; }
.widget-title { font-size: 1rem; }
.widget-area { display: flex; flex-direction: column; gap: 16px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-family: var(--font-head); font-size: .88rem; }
.pagination .page-numbers.current { background: var(--gradient); color: #fff; border-color: transparent; }
.entry-content h2 { margin-top: 2em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.entry-content a { color: var(--blue); }
.site-header.no-sticky { position: absolute; }

/* ==========================================================================
   Theme-option accessibility hooks
   ========================================================================== */
body.fts-reduced-motion .reveal,
body.fts-reduced-motion .reveal-left,
body.fts-reduced-motion .reveal-right,
body.fts-reduced-motion .reveal-scale { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
body.fts-reduced-motion .float-card, body.fts-reduced-motion .orbit, body.fts-reduced-motion .marquee-track { animation: none !important; }
body:not(.fts-animations-on) .reveal,
body:not(.fts-animations-on) .reveal-left,
body:not(.fts-animations-on) .reveal-right,
body:not(.fts-animations-on) .reveal-scale { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }

/* ==========================================================================
   HEADER POLISH — custom logo, WordPress nav menu
   ========================================================================== */
/* Uploaded custom logo: controlled height (overridable via theme options). */
.logo { flex: 0 0 auto; }
.logo.has-custom-logo { display: inline-flex; align-items: center; }
.fts-logo-img, .logo.has-custom-logo img {
  height: 48px; width: auto; max-width: 220px; object-fit: contain; display: block;
}

/* Primary nav wrapper (ul.nav is the flex container inside). */
.primary-nav { display: flex; align-items: center; }
ul.nav, .primary-nav ul { list-style: none; margin: 0; padding: 0; }

/* Dropdown caret for menu items with children (WordPress adds .has-drop). */
.nav li.has-drop > a::after {
  content: "▾"; font-size: .68em; margin-left: 5px; opacity: .65;
  transition: transform .2s var(--ease);
}
.nav li.has-drop:hover > a::after { transform: rotate(180deg); }

/* Ensure submenu ul has no bullets and is positioned by .has-drop. */
.nav .dropdown { list-style: none; margin: 0; padding: 8px; }
.nav .dropdown li { width: 100%; }
