/* =========================================================================
   INFINI BOOST — Design System
   Premium digital agency visual language: bold display type, deep navy
   canvas, orange/cyan accents, generous spacing, restrained motion.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #05070f;
  --navy-2: #0a0f1f;
  --surface: #10162a;
  --surface-2: #151c33;
  --border: #23304f;
  --blue: #165bff;
  --orange: #ff7a00;
  --cyan: #00d1ff;
  --white: #ffffff;
  --text: #f4f6fb;
  --muted: #9aa5c0;
  --muted-2: #6b7694;
  --success: #22c55e;

  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-cta: linear-gradient(135deg, var(--orange) 0%, #ff9a3c 100%);
  --grad-hero: radial-gradient(60% 55% at 50% 0%, rgba(22, 91, 255, 0.28), transparent 70%),
    radial-gradient(45% 45% at 85% 15%, rgba(255, 122, 0, 0.18), transparent 70%);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  --container: 1180px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
  line-height: 1.65;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--navy);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin: 0 auto;
}

.container-wide {
  width: min(1360px, calc(100% - 2.5rem));
  margin: 0 auto;
}

section {
  position: relative;
}

.section {
  padding: 5.5rem 0;
}

.section-tight { padding: 3rem 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.center { text-align: center; }

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.1rem;
  max-width: 640px;
}

.section-head.center .lead { margin-inline: auto; }

.link-more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.9rem 1.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-cta);
  color: #150a02;
  box-shadow: 0 18px 40px -14px rgba(255, 122, 0, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-light {
  background: var(--white);
  color: var(--navy-2);
}

.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(5, 7, 15, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 168px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: color-mix(in oklab, var(--text) 85%, transparent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--cyan); }

.nav-links .has-mega { position: relative; }
.mega-panel {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  box-shadow: var(--shadow-card);
}
.nav-links .has-mega:hover .mega-panel,
.nav-links .has-mega:focus-within .mega-panel { display: grid; }
.mega-panel h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--orange);
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mega-panel a {
  display: block;
  font-size: 0.88rem;
  padding: 0.32rem 0;
  color: var(--muted);
  text-decoration: none;
}
.mega-panel a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 1.2rem;
}

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4rem; }
.hero-inner { text-align: center; }
.badge-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.hero h1 { max-width: 900px; margin-inline: auto; }
.hero h1 .accent { color: var(--orange); }
.hero h1 .accent-2 { color: var(--cyan); }
.hero .lead { margin-inline: auto; font-size: 1.15rem; }

.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.hero-stats span { font-size: 0.82rem; color: var(--muted-2); }

/* ---------- Marquee (logos) ---------- */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  align-items: center;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--muted-2);
  white-space: nowrap;
  opacity: 0.75;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.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 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan); }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

.category-card {
  display: block;
  text-decoration: none;
}
.category-card h3 { color: var(--text); margin-bottom: 0.4rem; }
.category-card p { font-size: 0.92rem; margin-bottom: 0.9rem; }
.category-card .count { font-size: 0.78rem; color: var(--cyan); font-weight: 700; }

.service-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.service-list-inline a {
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.service-list-inline a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Why us / feature rows ---------- */
.feature-row {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 1rem;
  min-width: 2.4rem;
}
.feature-row h4 { margin: 0 0 0.35rem; }
.feature-row p { margin: 0; font-size: 0.92rem; }

/* ---------- Process timeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: relative;
}
.process-step .step-index {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
  margin-bottom: 0.4rem;
}
.process-step h4 { margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* ---------- Comparison table ---------- */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
.compare-table th, .compare-table td {
  padding: 0.95rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.compare-table th { font-family: var(--font-display); font-size: 0.85rem; }
.compare-table td:first-child, .compare-table th:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 600;
}
.compare-table th.brand-col { background: rgba(22, 91, 255, 0.12); color: var(--cyan); }
.compare-table td.brand-col { background: rgba(22, 91, 255, 0.08); font-weight: 700; color: var(--white); }
.yes { color: var(--success); font-weight: 700; }
.partial { color: var(--orange); font-weight: 700; }
.no { color: var(--muted-2); }

/* ---------- Testimonials ---------- */
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
}
.testi-stars { color: var(--orange); letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.testi-name { font-family: var(--font-display); font-weight: 600; margin-top: 1rem; }
.testi-role { font-size: 0.8rem; color: var(--muted-2); }
.testi-note {
  font-size: 0.78rem;
  color: var(--muted-2);
  border-top: 1px dashed var(--border);
  margin-top: 1rem;
  padding-top: 0.8rem;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stats-strip .stat strong { display: block; font-family: var(--font-display); font-size: 2.2rem; }
.stats-strip .stat span { font-size: 0.82rem; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: var(--surface);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-q .plus { transition: transform 0.25s ease; color: var(--orange); font-size: 1.2rem; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.4rem;
}
.faq-a p { font-size: 0.92rem; margin: 0 0 1.1rem; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.6rem; }
.form-status { font-size: 0.85rem; margin-top: 0.8rem; min-height: 1.2em; }
.form-status.success { color: var(--success); }
.form-status.error { color: #f87171; }

/* ---------- Portfolio filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn.active { background: var(--grad-brand); color: var(--white); border-color: transparent; }

.work-card { text-decoration: none; display: block; overflow: hidden; }
.work-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--muted-2);
  margin-bottom: 1rem;
  position: relative;
}
.work-thumb .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.5);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: var(--white);
}
.work-card h4 { color: var(--text); margin-bottom: 0.2rem; }
.work-card p { font-size: 0.85rem; margin: 0; }

/* ---------- Case study ---------- */
.cs-hero-meta { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 1.8rem; }
.cs-hero-meta div span { display: block; font-size: 0.75rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.cs-hero-meta div strong { font-family: var(--font-display); font-size: 1.05rem; }
.cs-block { margin-bottom: 3rem; }
.cs-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

/* ---------- Blog ---------- */
.article-card { text-decoration: none; display: block; }
.article-card .work-thumb { aspect-ratio: 16/10; }
.article-meta { font-size: 0.78rem; color: var(--muted-2); margin-bottom: 0.4rem; }

article.post {
  max-width: 760px;
  margin: 0 auto;
}
article.post h2 { margin-top: 2rem; }
article.post p { color: var(--text); font-size: 1.02rem; }
article.post ul { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 3rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-logo { width: 190px; margin-bottom: 1rem; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 1rem; }
.footer-grid a, .footer-grid p { display: block; font-size: 0.88rem; color: var(--muted); text-decoration: none; margin-bottom: 0.55rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); text-decoration: none; margin-right: 1rem; }
.lang-switch { display: flex; gap: 0.5rem; }
.lang-switch a { border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem 0.5rem; font-size: 0.75rem; }
.lang-switch a.active { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Floating CTAs ---------- */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 60;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}
.floating-whatsapp svg { width: 30px; height: 30px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.8rem; color: var(--muted-2); margin-bottom: 1.2rem; }
.breadcrumbs a { color: var(--muted-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 3.2rem 0 2.4rem; }
.page-hero .lead { max-width: 700px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .compare-table td:first-child, .compare-table th:first-child { position: sticky; left: 0; background: var(--surface); }
  .cs-result-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

body.nav-open .mobile-nav { display: flex; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  z-index: 45;
  background: var(--navy-2);
  flex-direction: column;
  padding: 2rem;
  gap: 1.4rem;
  overflow-y: auto;
}
.mobile-nav a { font-size: 1.1rem; font-weight: 600; text-decoration: none; color: var(--text); }
.mobile-nav .mobile-group span { display: block; font-size: 0.78rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; margin: 1rem 0 0.6rem; }

/* ---------- RTL ---------- */
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .breadcrumbs, [dir="rtl"] .field label { text-align: right; }
[dir="rtl"] .category-card, [dir="rtl"] .compare-table td:first-child, [dir="rtl"] .compare-table th:first-child { text-align: right; }
[dir="rtl"] .footer-bottom a { margin-right: 0; margin-left: 1rem; }
