/* ==========================================================================
   BYX Software — brand layer
   --------------------------------------------------------------------------
   Loaded after the Webflow page stylesheets, so everything in here wins.
   The Webflow CSS is left untouched; all branding lives in this one file.

   Palette
     Obsidian Void   #0A0E17   base       (60%)  page canvas
     Slate Surface   #161F30   container  (20%)  cards, sheets, navbars
     Pure Mist       #F8FAFC   contrast   (15%)  headlines, body copy
     Electric Cyan   #00E5FF   accent      (5%)  CTAs, links, highlights

   Type
     Plus Jakarta Sans  700/800   headings + logo wordmark
     Inter              400/500   body copy and UI
     JetBrains Mono     500       code, metrics, tags
   ========================================================================== */

.content-image-project > .byx-project-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.byx-project-highlights {
  margin: 14px 0 0;
  padding-inline-start: 1.2em;
}

.byx-project-highlights li + li {
  margin-top: 6px;
}

.content-image-project:has(> .byx-project-screenshot) .black-overlay {
  z-index: 1;
  pointer-events: none;
}

.content-image-project:has(> .byx-project-screenshot) .project-hover-state {
  z-index: 2;
}

/* --------------------------------------------------------------------------
   1. Typefaces
   The scraped sheets declare Raisonne at 600 and Ibmplexsans at 300-700, and
   ask for them in ~600 rules. Rather than re-point every rule, each of those
   exact weights is re-declared here against the brand face. Matching the
   original descriptors exactly (rather than with one broad range) is what
   makes the override deterministic: same family, same weight, later cascade.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Raisonne";
  src: url("/media/byx/fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raisonne";
  src: url("/media/byx/fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raisonne";
  src: url("/media/byx/fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ibmplexsans";
  src: url("/media/byx/fonts/Inter-var.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ibmplexsans";
  src: url("/media/byx/fonts/Inter-var.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ibmplexsans";
  src: url("/media/byx/fonts/Inter-var.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ibmplexsans";
  src: url("/media/byx/fonts/Inter-var.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ibmplexsans";
  src: url("/media/byx/fonts/Inter-var.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Available by their real names too, for anything authored from here on. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/media/byx/fonts/PlusJakartaSans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/media/byx/fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/media/byx/fonts/JetBrainsMono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Palette
   The Webflow CSS routes almost every colour through these custom properties,
   so redefining them here re-skins the whole site in one place.
   -------------------------------------------------------------------------- */
:root {
  --byx-obsidian: #0a0e17;
  --byx-surface: #161f30;
  --byx-surface-raised: #1e293e;
  --byx-mist: #f8fafc;
  --byx-cyan: #00e5ff;
  --byx-cyan-dim: #7df3ff;
  --byx-muted: #8a94a6;
  --byx-hairline: #243044;

  /* Webflow's own tokens, repointed at the brand palette. */
  --midnight-blue: var(--byx-obsidian);
  --black: #05080f;
  --white: var(--byx-mist);
  --silver: var(--byx-muted);
  --violet: var(--byx-cyan-dim);
  --blue-violet: var(--byx-cyan);
  --blue-violet-transparent: #00e5ff00;

  --font-family: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
}

/* --------------------------------------------------------------------------
   3. Large surfaces
   The exported styles use their accent color as a full-bleed fill. Electric Cyan is a 5%
   accent, not a canvas — bright cyan panels would swamp the palette and drop
   white copy to unreadable contrast. So anything that was a big purple *area*
   becomes Slate Surface, and the accent is reserved for the controls in §4.
   -------------------------------------------------------------------------- */
.bckgr-color,
.bckgr,
.back_purple-2,
.home-our-works,
.works-our-works,
.main-case-illustration,
.baner-container,
.section-sticky-cf,
.solution-container,
.web-solution-cont,
.web-solution-cont-sas,
.how-we-do-it-description,
.how-we-do-it-description-mob,
.feature-div-image,
.featured-card-content,
.div-block-155,
.co_cta,
.co_integrations_inside_item,
.co_solution_courier_block_text_frame,
.co_testimonials_testimonal,
.wbp-pc-row-1,
.wbp-pc-row-2,
.ibi_solution_essential-features_right_inside._1,
.ibi_solution_essential-features_right_inside-mob._1,
.accordion-item,
.add-ons_accordion.add-ons_js-accordion,
.ceo-card,
.cto-card,
.web-solution-cont-2,
.solution_showroom_item,
.co_core-features_item,
.section-sticky-cf-speak-savvy,
.latest-article-container,
.sfe_business,
.project-context-container-2,
.project-context-conteiner-4 {
  background-color: var(--byx-surface);
}

/* Card-sized calls to action: a Slate panel with a cyan edge keeps the
   affordance without spending the accent budget on 41 filled cards. */
.card-cta {
  background-color: var(--byx-surface);
  border: 1px solid var(--byx-cyan);
}

/* The nav menu is a transparent strip on desktop and a full-screen drawer on
   mobile — only the drawer gets a surface. */
.home-header-menu-bar.w--open,
.blog-header-menu-bar.w--open,
.nav-menu-2.w--open {
  background-color: var(--byx-surface);
}

/* Article hero on the blog sits on a white page — keep it dark so the
   reversed-out headline still reads. */
.article-container {
  background-color: var(--byx-obsidian);
}

/* Panels that sit directly on the canvas get a hairline instead of relying on
   the old purple/navy contrast, which is much subtler in the brand palette. */
.accordion-item,
.co_integrations_inside_item,
.featured-card-content {
  border: 1px solid var(--byx-hairline);
}

/* --------------------------------------------------------------------------
   4. Accent — the 5%
   Cyan is a light colour: anything filled with it needs dark ink, not white.
   -------------------------------------------------------------------------- */
.submit-button-3,
.more-works-card-cta,
.nav-link-4.button23,
.nav-link-4.button23:hover,
.nav-link-4.button23.transparent:hover,
.button-2:hover,
.btn-big:hover,
.cta-btn-1:hover,
.clutch-btn:hover,
.wwd-link-block:active,
.header-link-contact-us:hover,
.dot-icon,
.solution-divider,
.div-block-113,
.flow_title {
  background-color: var(--byx-cyan);
  color: var(--byx-obsidian);
  border-color: var(--byx-cyan);
}

.submit-button-3:hover,
.more-works-card-cta:hover {
  background-color: var(--byx-cyan-dim);
  color: var(--byx-obsidian);
}

/* Keep nested labels/icons inside a cyan control dark too. */
.submit-button-3 *,
.more-works-card-cta *,
.nav-link-4.button23 *,
.header-link-contact-us:hover * {
  color: var(--byx-obsidian);
}

/* The contact CTA in the navbar is the primary action on every page. */
.header-link-contact-us {
  border: 1px solid var(--byx-cyan);
  color: var(--byx-cyan);
}

/* Links and text accents. */
a {
  color: var(--byx-cyan);
}

.header-link:hover,
.menu-button,
.menu-button.w--open,
.text-block-26,
.heading-4,
.text-block-18,
.project-platforms {
  color: var(--byx-cyan);
}

/* Display type.
   Plus Jakarta Sans sets noticeably wider than the face it replaces — at 120px
   the hero headline gained enough width to wrap onto a third line and collide
   with the line beneath it. Negative tracking recovers the width and is the
   right call for display sizes anyway; it is scoped to headings 56px and up so
   body copy keeps Inter's default spacing. */
.hero-text-stroke-home,
.hero-text-main-works,
.hero-text-stroke-services,
.hero-text-stroke-case,
.hero-text-stroke-works,
.hero-text-main-case,
.heading,
.heading-48,
.t_h1-black,
.t_h2,
.t_h2-new,
.t_h2-new-2,
.radiate-t_h2,
.wwd-number-txt,
.wwd-number-txt-mob,
.plantitle,
.devtitle,
.distitle,
.scaletitle,
.blog-title-in-container,
.oa-title,
.article-blog-cta-title,
.cta-title,
.cta-title-smk,
.cta-title-astrolabium,
.project-heading,
.text-block-49,
.t_h3.cooker,
.t_h3.wbp,
.t_h3.sfera,
._404,
.services-cta-title-copy,
.services-cta-title-design,
.blog-cta-title,
.wwd-name {
  letter-spacing: -0.03em;
}

/* Tech tags / metrics get the developer treatment. */
.case-info-tags,
.project-platforms,
.blog-tag,
.tag,
.wwd-subtitle-mono,
code,
pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}

.case-info-tags {
  border-color: var(--byx-cyan);
  color: var(--byx-cyan);
}

/* --------------------------------------------------------------------------
   5. Canvas
   -------------------------------------------------------------------------- */
.home-body,
.service-body,
.casestudy-body,
.body-5,
.body-7,
.body-8 {
  background-color: var(--byx-obsidian);
}

.byx-source.home-body,
.byx-source.service-body,
.byx-source.casestudy-body {
  background-color: var(--byx-obsidian);
}

/* Logo sizing — the BYX lockup is wider than the old mark, so cap it by height
   and let width follow rather than inheriting a fixed width. */
.logo-img,
.home-logo-img,
.logo-img-blog {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   6. Hidden for now — NOT deleted
   Anything that belonged to the previous agency and has no BYX equivalent yet
   is tagged in the markup with data-byx-hidden="<reason>" and hidden here.
   Nothing was removed: drop the rule below (or strip the attribute) and the
   section comes straight back.

   Reasons in use:
     team            founder cards, names and photos
     clutch          Clutch review widget and profile links
     social          links to the previous agency's social accounts
   -------------------------------------------------------------------------- */
[data-byx-hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Founder card (home + AI page) — replaces the template's CEO/CTO block
   -------------------------------------------------------------------------- */
.byx-founder {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 40px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  background: #161f30;
  color: #f8fafc;
}
.byx-founder-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #00e5ff;
  color: #0a0e17;
  font: 500 13px/1.4 "Ibmplexsans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.byx-founder-quote {
  margin: 20px 0 24px;
  font-family: "Ibmplexsans", sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
}
.byx-founder-name {
  font: 700 22px/1.2 "Raisonne", sans-serif;
}
.byx-founder-role {
  margin-top: 4px;
  font-family: "Ibmplexsans", sans-serif;
  opacity: 0.7;
}
@media (max-width: 767px) {
  .byx-founder { padding: 24px; margin-top: 32px; }
}

/* Illustration layouts */
.byx-source .byx-art-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 48px);
  height: auto;
  min-height: min(760px, 100svh);
  max-height: none;
  margin: 0 auto;
  padding: 48px 5vw;
  background: var(--byx-obsidian);
}

.byx-source .home-hero.byx-art-hero {
  padding-top: 126px;
}

.byx-art-hero > :is(.h1-div-home, .h1-div-services, div:has(> .h1-div-service)),
.byx-art-hero .h1-div-service {
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.byx-art-hero .typed-words-div {
  height: auto;
  min-height: 2.1em;
  font-size: clamp(52px, 6.4vw, 112px);
}

.byx-art-hero :is(.hero-text-stroke-home, .hero-text-main-works) {
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  font-size: clamp(52px, 6.4vw, 112px);
  line-height: 1.04;
}

.byx-art-hero :is(.hero-text-stroke-services, .hero-text-main-case) {
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 88px);
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
}

.byx-art-hero .hero-text-stroke-services {
  font-size: clamp(42px, 4.8vw, 83px);
}

.byx-art-hero :is(.text-services, .byx-service-intro) {
  width: auto;
  max-width: 54ch;
  margin: 0;
  padding: 0;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
}

.byx-art-hero .text-services {
  margin-top: 24px;
}

.byx-hero-art {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to right, transparent, #000 13% 87%, transparent),
              linear-gradient(to bottom, transparent, #000 11% 89%, transparent);
  mask-composite: intersect;
}

.byx-art-hero > .byx-hero-animation-target {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 900px) {
  .byx-source .byx-art-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 20px;
    min-height: 0;
    padding: 42px 5vw 24px;
  }

  .byx-source .home-hero.byx-art-hero {
    padding-top: 110px;
  }

  .byx-art-hero :is(.hero-text-stroke-home, .hero-text-main-works, .typed-words-div) {
    font-size: clamp(34px, 11.8vw, 84px);
  }

  .byx-art-hero :is(.hero-text-stroke-services, .hero-text-main-case) {
    font-size: clamp(33px, 9vw, 64px);
  }

  .byx-hero-art {
    width: min(100%, 640px);
    justify-self: center;
  }
}

.byx-source[data-source-route="/privacy-policy"] .service-hero {
  height: auto;
  padding-bottom: 56px;
}

.byx-error-code {
  display: block;
  color: var(--byx-cyan);
  font: 500 clamp(72px, 16vw, 200px)/1 "JetBrains Mono", monospace;
  letter-spacing: -0.09em;
}

.byx-context-mark,
.byx-feature-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid #00e5ff40;
  border-radius: 12px;
  background: #00e5ff0b;
}

.byx-context-mark::before,
.byx-feature-mark::before {
  content: "";
  width: 12px;
  aspect-ratio: 1;
  border: 1px solid var(--byx-cyan);
  transform: rotate(45deg);
}

.byx-source .services-cta-grid {
  background-image: radial-gradient(ellipse at 100% 0%, #00e5ff24, transparent 62%),
                    linear-gradient(132deg, var(--byx-surface), var(--byx-obsidian));
}

.fixed-cta-div .cta-circle-text {
  display: grid;
  place-items: center;
}

.fixed-cta-div .cta-circle-text::before {
  content: "";
  width: 91%;
  aspect-ratio: 1;
  border: 1px solid #00e5ff59;
  border-radius: 50%;
}

.fixed-cta-div .cta-circle-text::after {
  content: "";
  position: absolute;
  top: 4.5%;
  left: 50%;
  width: 5px;
  height: 5px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--byx-cyan);
}

.byx-service-card-art {
  display: block;
  position: absolute;
  inset: 0 auto 0 50%;
  width: auto;
  max-width: 100%;
  height: 100%;
  translate: -50%;
  object-fit: contain;
  mask-image: linear-gradient(to right, transparent, #000 9% 91%, transparent);
}

.content-image-project:has(> .byx-service-card-art) {
  background: var(--byx-obsidian);
}

.content-image-project > .byx-service-visual {
  position: absolute;
  inset: auto 0 0;
  padding: 48px clamp(16px, 2.5vw, 36px) 18px;
  background: linear-gradient(transparent, #0a0e17 85%);
  pointer-events: none;
}
.byx-service-visual-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.byx-service-visual-chips span {
  padding: 6px 10px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  background: #0a0e17e6;
  font: 500 12px/1.1 "Ibmplexsans", sans-serif;
  color: var(--byx-cyan-dim);
}
.content-image-project:has(> .byx-service-visual) .black-overlay {
  z-index: 1;
  pointer-events: none;
}
.content-image-project:has(> .byx-service-visual) .project-hover-state {
  z-index: 2;
}

.main-case-illustration.byx-hero-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 64px;
}
.byx-hero-shot {
  display: block;
  width: min(1100px, 100%);
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.byx-hero-caption {
  margin: 16px 0 0;
  font-family: "Ibmplexsans", sans-serif;
  font-size: 16px;
  color: rgba(248, 250, 252, 0.7);
  text-align: center;
}
.byx-hero-caption a {
  color: #00e5ff;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.byx-legal {
  padding: 40px 16px 96px;
}
.byx-legal-inner {
  max-width: 760px;
  color: #f8fafc;
  font-family: "Ibmplexsans", sans-serif;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
}
.byx-legal-inner h2 {
  margin: 36px 0 10px;
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
  font: 700 26px/1.25 "Raisonne", sans-serif;
}
.byx-legal-inner a {
  color: #00e5ff;
}

/* Calendly booking link in the contact block */
.byx-book-link {
  display: block;
  margin-bottom: 20px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Page-open animation, on every page.
   Only elements Webflow doesn't animate itself (no data-w-id, no inline opacity),
   so the two never fight. Fill mode "backwards" hands control back once it ends. */
@keyframes byx-rise {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes byx-art-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.94); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes byx-art-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}

:is(.home-hero, .service-hero) :is(h1, h2, .byx-service-intro, .text-services):not([data-w-id]):not([style*="opacity"]),
.utility-page-content > * {
  animation: byx-rise 900ms cubic-bezier(.22, 1, .36, 1) backwards;
}
:is(.home-hero, .service-hero) :is(h2, .byx-service-intro, .text-services):not([data-w-id]):not([style*="opacity"]),
.utility-page-content > :nth-child(2) { animation-delay: 140ms; }
.utility-page-content > :nth-child(3) { animation-delay: 260ms; }

.byx-hero-art {
  animation:
    byx-art-in 1100ms cubic-bezier(.22, 1, .36, 1) 220ms backwards,
    byx-art-float 7s ease-in-out 1320ms infinite;
}

@media (prefers-reduced-motion: reduce) {
  :is(.home-hero, .service-hero) :is(h1, h2, .byx-service-intro, .text-services),
  .utility-page-content > *,
  .byx-hero-art { animation: none; }
}

/* "What We Do" hover: the original Webflow effect (row fills, arrow fades in,
   name slides right), rebuilt in CSS so it works on all eight links. */
@media (hover: hover) and (min-width: 768px) {
  .wwd-link-block {
    transition: background-color 250ms ease;
  }
  .wwd-link-block .wwd-name {
    transition: transform 300ms cubic-bezier(.22, 1, .36, 1), color 250ms ease;
  }
  .wwd-link-block .wwd-img-div {
    display: block;
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
    transition: opacity 250ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
  }
  .wwd-link-block .wwd-arrow-img {
    filter: brightness(0);
  }
  .wwd-link-block:is(:hover, :focus-visible) {
    background-color: var(--byx-cyan);
  }
  .wwd-link-block:is(:hover, :focus-visible) .wwd-name {
    color: var(--byx-obsidian);
    transform: translate3d(80px, 0, 0);
  }
  .wwd-link-block:is(:hover, :focus-visible) .wwd-img-div {
    opacity: 1;
    transform: none;
  }
}

/* Arabic tagline in the footer (SEO for Arabic searches in Lebanon). */
.byx-footer-ar {
  display: block;
  margin-top: 10px;
  font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.65;
}
