/* ==========================================================================
   Byan Pharma — Landing Page Styles
   Modern premium redesign: dark emerald aurora hero, floating glass navbar,
   editorial feature cards, dark gradient CTA. RTL-first, content untouched.
   ========================================================================== */

:root {
  /* Ink (dark emerald) scale — hero, CTA, chrome bars */
  --ink-950: #031714;
  --ink-900: #04201D;
  --ink-800: #07312D;
  --ink-700: #0A423D;

  /* Brand */
  --bp-teal: #0C9C97;
  --bp-teal-400: #17B3AD;
  --bp-teal-deep: #08756F;
  --bp-teal-soft: #E7F6F5;
  --bp-gold: #F2B313;
  --bp-gold-300: #F8C24A;
  --bp-gold-soft: #FFF6DB;

  /* Surfaces + text */
  --bp-bg: #F7FAF9;
  --bp-card: #FFFFFF;
  --bp-line: #E3EEEC;
  --bp-heading: #12312D;
  --bp-text-strong: #3E524E;
  --bp-text: #5F6F6D;
  --bp-muted: #93A5A2;

  /* Workflow accent palette — soft tint background + saturated foreground */
  --ac-teal-fg: #0C9C97;   --ac-teal-bg: #E6F7F5;
  --ac-blue-fg: #2F7FC7;   --ac-blue-bg: #E9F1FB;
  --ac-violet-fg: #7C5CCB; --ac-violet-bg: #F0ECFC;
  --ac-amber-fg: #D9930A;  --ac-amber-bg: #FDF3D6;
  --ac-green-fg: #2FA268;  --ac-green-bg: #E6F6EE;
  --ac-rose-fg: #D65A7E;   --ac-rose-bg: #FCEAF0;
  --ac-coral-fg: #E07848;  --ac-coral-bg: #FBEBE1;

  --bp-shadow-card: 0 6px 24px rgba(13, 60, 56, 0.05);
  --bp-shadow-lift: 0 24px 60px rgba(13, 60, 56, 0.10);
  --bp-shadow-dark: 0 30px 70px rgba(4, 32, 29, 0.35);

  --bp-radius-sm: 16px;
  --bp-radius: 22px;
  --bp-radius-lg: 30px;
  --bp-radius-xl: 36px;

  --font-display: "Alexandria", "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-body: "Tajawal", "Alexandria", "Segoe UI", system-ui, sans-serif;

  --bp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  font-family: var(--font-body);
  color: var(--bp-text);
  background-color: var(--bp-bg);
  line-height: 1.85;
  font-size: 1rem;
  overflow-x: hidden;
  position: relative;
}

/* Quiet ambient glow behind the light sections */
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  width: 720px;
  height: 720px;
  top: 30%;
  inset-inline-start: -280px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  pointer-events: none;
  background: radial-gradient(circle, rgba(12, 156, 151, 0.14), transparent 70%);
}

/* Images always keep their intrinsic aspect ratio at any rendered width —
   the width/height HTML attributes only reserve layout space */
img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--bp-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
}

p { color: var(--bp-text); }

a {
  text-decoration: none;
  transition: color 0.25s var(--bp-ease);
}

::selection {
  background: var(--bp-teal);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(242, 179, 19, 0.65);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Slim custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #C3DAD6;
  border-radius: 999px;
  border: 2px solid var(--bp-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--bp-teal); }

.section {
  padding: 96px 0;
  position: relative;
}

.text-teal { color: var(--bp-teal) !important; }
.text-amber { color: var(--bp-gold) !important; }

/* Scroll progress — thin gradient bar pinned to the top */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 3000;
  background: linear-gradient(90deg, var(--bp-gold), var(--bp-teal-400), var(--bp-teal-deep));
  transform: scaleX(0);
  transform-origin: 100% 50%; /* RTL: grow from the reading-start (right) edge */
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.72rem 1.7rem;
  transition: transform 0.3s var(--bp-ease), box-shadow 0.3s var(--bp-ease),
    background 0.3s var(--bp-ease), color 0.3s var(--bp-ease);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
}

/* Light sweep that crosses the solid CTAs on hover */
.btn-bp-primary::after,
.btn-bp-amber::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--bp-ease);
  pointer-events: none;
}
.btn-bp-primary:hover::after,
.btn-bp-amber:hover::after { left: 140%; }

.btn-bp-primary {
  background: linear-gradient(135deg, var(--bp-teal-400), var(--bp-teal-deep));
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 117, 111, 0.28);
}
.btn-bp-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(8, 117, 111, 0.36);
}

.btn-bp-amber {
  background: linear-gradient(135deg, var(--bp-gold-300), #E0A40D);
  color: #4A3600;
  box-shadow: 0 10px 24px rgba(242, 179, 19, 0.3);
}
.btn-bp-amber:hover {
  color: #4A3600;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(242, 179, 19, 0.4);
}

.btn-bp-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--bp-teal-deep);
  border: 1px solid rgba(12, 156, 151, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-bp-ghost:hover {
  color: var(--bp-teal-deep);
  background: var(--bp-teal-soft);
  transform: translateY(-3px);
}

/* RTL arrow micro-nudge */
.btn .bi-arrow-left { transition: transform 0.3s var(--bp-ease); }
.btn:hover .bi-arrow-left { transform: translateX(-4px); }

/* --------------------------------------------------------------------------
   Navbar — detached floating glass bar over the aurora hero
   -------------------------------------------------------------------------- */
.bp-navbar {
  background: transparent;
  padding: 12px 14px 0;
  animation: navDrop 0.8s var(--bp-ease) both;
}
@keyframes navDrop {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bp-navbar > .container {
  background: rgba(4, 30, 27, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 0.5rem 1.1rem;
  box-shadow: 0 10px 34px rgba(3, 23, 20, 0.28);
  transition: background 0.35s var(--bp-ease), box-shadow 0.35s var(--bp-ease),
    border-color 0.35s var(--bp-ease);
}
/* Scrolled past the hero → the bar solidifies so it reads over light sections */
.bp-navbar.scrolled > .container {
  background: rgba(4, 28, 25, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 44px rgba(3, 23, 20, 0.36);
}

.bp-navbar .navbar-brand img {
  height: 40px;
  width: auto; /* white-logo.png is already white + gold for dark backgrounds */
  transition: transform 0.35s var(--bp-ease);
}
.bp-navbar .navbar-brand:hover img { transform: scale(1.06); }

.bp-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.96rem;
  margin: 0 0.12rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  position: relative;
  z-index: 0;
  transition: color 0.3s var(--bp-ease);
}
/* Glass pill that scales in behind the link on hover / active */
.bp-navbar .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.3s var(--bp-ease), transform 0.3s var(--bp-ease);
}
.bp-navbar .nav-link:hover { color: #fff; }
.bp-navbar .nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}
/* Active link → gold-tinted pill + gold text */
.bp-navbar .nav-link.active { color: var(--bp-gold-300); }
.bp-navbar .nav-link.active::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(248, 194, 74, 0.14);
  box-shadow: inset 0 0 0 1px rgba(248, 194, 74, 0.45);
}

.navbar-toggler {
  border: none;
  padding: 0.32rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}
.navbar-toggler:focus { box-shadow: none; }

.bp-navbar .btn-bp-amber {
  padding: 0.55rem 1.35rem;
  box-shadow: 0 8px 22px rgba(242, 179, 19, 0.32);
}

/* Mobile: the expanded menu lives inside the same glass bar */
@media (max-width: 991.98px) {
  .bp-navbar .navbar-collapse {
    margin-top: 0.7rem;
    padding: 0.9rem 0.4rem 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .bp-navbar .nav-link { padding: 0.6rem 0.95rem; }
}

/* --------------------------------------------------------------------------
   Hero — dark emerald aurora with dotted grid, glass frame and floating stats
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(160deg, var(--ink-700) 0%, var(--ink-800) 40%, var(--ink-900) 100%);
  overflow: hidden;
}
@media (min-width: 992px) {
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
}

/* Fine film-grain so the dark gradient never looks flat */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* The pharmacy photo survives as a faint luminosity texture */
.hero-bg .hero-photo {
  position: absolute;
  inset: 0;
  background: url("../images/hero.png") center / cover no-repeat;
  opacity: 0.08;
  mix-blend-mode: luminosity;
}
/* Aurora orbs drifting behind the content */
.hero-bg .hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-bg .orb-1 {
  width: 560px;
  height: 560px;
  top: -160px;
  inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(23, 179, 172, 0.4), transparent 68%);
  animation: orbDrift 16s ease-in-out infinite;
}
.hero-bg .orb-2 {
  width: 480px;
  height: 480px;
  bottom: -180px;
  inset-inline-end: -100px;
  background: radial-gradient(circle, rgba(242, 179, 19, 0.18), transparent 68%);
  animation: orbDrift 20s ease-in-out infinite reverse;
}
.hero-bg .orb-3 {
  width: 380px;
  height: 380px;
  top: 40%;
  inset-inline-start: 42%;
  background: radial-gradient(circle, rgba(12, 156, 151, 0.22), transparent 70%);
  animation: orbDrift 24s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(42px, 30px) scale(1.07); }
}
/* Dotted grid, faded toward the edges */
.hero-bg .hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.5px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 30%, transparent 78%);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Copy column — flex so the badge pill can sit above the headline */
.hero-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Staggered entrance for the copy stack */
.hero-copy > * { animation: heroUp 0.9s var(--bp-ease) both; }
.hero-copy > .hero-subtitle { animation-delay: 0.05s; }
.hero-copy > .hero-title { animation-delay: 0.18s; }
.hero-copy > .hero-lead { animation-delay: 0.32s; }
.hero-copy > div { animation-delay: 0.46s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tagline as a glass badge pill with a pulsing gold beacon */
.hero-subtitle {
  order: -1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--bp-gold-300);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(248, 194, 74, 0.35);
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}
.hero-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bp-gold-300);
  box-shadow: 0 0 0 0 rgba(248, 194, 74, 0.6);
  animation: beacon 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes beacon {
  to { box-shadow: 0 0 0 10px rgba(248, 194, 74, 0); }
}

/* Headline — white fading into brand gold.
   Block padding + relaxed line-height keep Arabic ascenders/descenders
   from clipping against the gradient text box. */
.hero-title {
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-block: 0.12em 0.18em;
  margin-bottom: 0.6rem;
  background: linear-gradient(115deg, #FFFFFF 35%, var(--bp-gold-300) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.3));
}

.hero-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 2;
  max-width: 540px;
  margin-bottom: 2.3rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Hero CTAs tuned for the dark background: gold primary + glass ghost */
.hero .btn {
  padding: 0.88rem 2rem;
  font-size: 1.02rem;
}
.hero .btn-bp-primary {
  background: linear-gradient(135deg, #F6B71E, #E29A0B);
  color: #3D2D00;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hero .btn-bp-primary:hover { color: #3D2D00; }
.hero .btn-bp-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hero .btn-bp-ghost:hover {
  background: #fff;
  color: var(--bp-teal-deep);
}

/* Hero visual — perspective-tilted glass frame that flattens on hover */
.hero-visual {
  position: relative;
  padding: 10px;
  perspective: 1400px;
  animation: heroUp 1s 0.3s var(--bp-ease) both;
}
/* Warm halo seating the frame on the aurora */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 2% 4%;
  z-index: -1;
  background: radial-gradient(circle at 60% 40%, rgba(248, 194, 74, 0.22), transparent 65%),
    radial-gradient(circle at 30% 70%, rgba(23, 179, 172, 0.3), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.app-frame {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 44px 90px rgba(2, 20, 18, 0.55);
  position: relative;
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.7s var(--bp-ease), box-shadow 0.7s var(--bp-ease);
}
.hero-visual:hover .app-frame {
  transform: rotateY(0) rotateX(0);
  box-shadow: 0 50px 100px rgba(2, 20, 18, 0.6);
}
/* Glass top-light sheen */
.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
  z-index: 1;
}
.app-frame .hero-shot {
  display: block;
  border-radius: 18px;
  cursor: pointer;
}

/* Floating stat cards — bright, lifted, gently bobbing */
.stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--bp-radius-sm);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 22px 46px rgba(2, 20, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 3;
  animation: float 5.5s ease-in-out infinite;
}
.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-card .stat-icon.teal { background: var(--bp-teal-soft); color: var(--bp-teal); }
.stat-card .stat-icon.amber { background: var(--bp-gold-soft); color: #D9930A; }
.stat-card .stat-label {
  font-size: 0.72rem;
  color: var(--bp-muted);
  margin: 0;
  line-height: 1.3;
}
.stat-card .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--bp-heading);
  margin: 0;
  line-height: 1.2;
}

.stat-1 { top: 12%; inset-inline-start: -4%; animation-delay: 0s; }
.stat-2 { top: 46%; inset-inline-end: -5%; animation-delay: 1.3s; }
.stat-3 { bottom: 10%; inset-inline-start: 6%; animation-delay: 2.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bp-teal-deep);
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  box-shadow: 0 4px 14px rgba(13, 60, 56, 0.06);
  padding: 0.34rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.section-eyebrow i { color: var(--bp-teal); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--bp-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Features — editorial cards with ghost index numerals
   -------------------------------------------------------------------------- */
#features {
  background-image: radial-gradient(rgba(12, 156, 151, 0.09) 1px, transparent 1.4px);
  background-size: 30px 30px;
}

/* Wider container for the features section so the screenshots render large */
@media (min-width: 1200px) {
  #features .container { max-width: 1320px; }
}
@media (min-width: 1500px) {
  #features .container { max-width: 1460px; }
}

.feature-block {
  position: relative;
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius-lg);
  padding: 44px;
  margin-bottom: 36px;
  box-shadow: var(--bp-shadow-card);
  overflow: hidden;
  transition: transform 0.45s var(--bp-ease), box-shadow 0.45s var(--bp-ease),
    border-color 0.45s var(--bp-ease);
}
.feature-block:hover {
  transform: translateY(-5px);
  border-color: #D3E7E4;
  box-shadow: var(--bp-shadow-lift);
}
/* Header lockup: gradient icon tile + category eyebrow + title,
   bookended by the ghost index numeral at the row's inline-end */
.feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

/* Ghost outlined numeral — a flex bookend, so it can never be covered
   by the screenshot column on any layout or breakpoint */
.feature-index {
  margin-inline-start: auto;
  align-self: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  direction: ltr;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(12, 156, 151, 0.22);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.45s var(--bp-ease);
}
.feature-block:hover .feature-index {
  -webkit-text-stroke-color: rgba(12, 156, 151, 0.4);
}

.feature-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bp-teal-400), var(--bp-teal-deep));
  box-shadow: 0 12px 26px rgba(10, 120, 114, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.feature-headings {
  min-width: 0; /* let long Arabic titles wrap instead of overflowing the row */
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.feature-category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bp-teal-deep);
  letter-spacing: 0.02em;
  margin: 0;
}
/* Short accent dash before the category label */
.feature-category::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bp-teal), transparent);
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--bp-heading);
  margin: 0;
  text-align: start;
}

.feature-text {
  font-size: 1.04rem;
  line-height: 2;
  color: var(--bp-text-strong);
  margin-bottom: 1.35rem;
}

/* Bullets — clean check rows with gradient check chips, staggered on reveal */
.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.99rem;
  font-weight: 500;
  color: var(--bp-text-strong);
}
.feature-bullets li i {
  width: 23px;
  height: 23px;
  margin-top: 0.32rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bp-teal-400), var(--bp-teal-deep));
  box-shadow: 0 4px 10px rgba(12, 156, 151, 0.35);
}

.reveal.visible .feature-bullets li {
  animation: bulletIn 0.55s var(--bp-ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes bulletIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Screenshot frame — dark browser chrome with inset screenshot */
.shot-frame {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #0B322E, #07231F);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(6, 44, 40, 0.18);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--bp-ease), box-shadow 0.45s var(--bp-ease);
}
.shot-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(6, 44, 40, 0.28);
}
.shot-frame .shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
}
.shot-frame .shot-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  /* macOS traffic-light window controls */
  background: #FF5F57; /* close (red) */
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}
.shot-frame .shot-bar span:nth-child(2) { background: #FEBC2E; } /* minimize (yellow) */
.shot-frame .shot-bar span:nth-child(3) { background: #28C840; } /* zoom (green) */

.shot-frame img {
  display: block;
  width: calc(100% - 12px);
  margin: 0 6px 6px;
  border-radius: 12px;
}

.shot-frame .shot-zoom {
  position: absolute;
  top: 44px;
  inset-inline-end: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(4, 32, 29, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--bp-ease);
  z-index: 2;
}
.shot-frame:hover .shot-zoom {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Why Byan Pharma — intro + animated workflow
   -------------------------------------------------------------------------- */
.why-section {
  background: linear-gradient(180deg, transparent, rgba(231, 246, 245, 0.55), transparent);
}

.why-intro .section-title {
  position: relative;
  padding-bottom: 0.9rem;
  margin-bottom: 1.3rem;
}
.why-intro .section-title .tx-accent {
  background: linear-gradient(120deg, var(--bp-teal-400), var(--bp-teal-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Centered teal → gold divider under the title */
.why-intro .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bp-teal), var(--bp-gold));
}

.why-lead {
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  line-height: 2;
  color: var(--bp-heading);
  margin-bottom: 1.1rem;
}
/* Keyword marker highlights — each in its own brand tint */
.why-lead b {
  font-weight: 800;
  color: inherit;
  padding: 0 0.15em;
  border-radius: 4px;
}
.why-lead .k-teal { background: linear-gradient(transparent 62%, rgba(12, 156, 151, 0.24) 62%); }
.why-lead .k-amber { background: linear-gradient(transparent 62%, rgba(242, 179, 19, 0.32) 62%); }
.why-lead .k-violet { background: linear-gradient(transparent 62%, rgba(124, 92, 203, 0.22) 62%); }

/* Closing statement — a quiet white panel with a floating brand seal */
.why-statement {
  position: relative;
  max-width: 720px;
  margin: 2.6rem auto 0;
  padding: 2.1rem 2.2rem 1.6rem;
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  border-radius: 20px;
  box-shadow: var(--bp-shadow-card);
}
.why-statement-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--bp-teal-400), var(--bp-teal-deep));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9), 0 10px 22px rgba(12, 156, 151, 0.28);
}
.why-statement p {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--bp-text-strong);
  margin: 0;
}
.why-statement b {
  font-weight: 700;
  color: var(--bp-teal-deep);
}

.workflow {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
  margin-top: 3.2rem;
}
/* Marching dashed connector between the steps */
.workflow-line {
  position: absolute;
  top: 40px;
  inset-inline: 8%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--bp-teal) 40%, transparent 0);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  opacity: 0.4;
  z-index: 0;
  animation: dashMarch 1.4s linear infinite;
}
@keyframes dashMarch {
  to { background-position: 28px 0; }
}

.workflow-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1 1 140px;
  max-width: 170px;
  padding: 0 8px;
}
.workflow-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.9rem;
  border-radius: 24px;
  background: #fff;
  color: var(--wf-fg, var(--bp-teal));
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shadow-card),
    inset 0 0 0 1px color-mix(in srgb, var(--wf-fg, var(--bp-teal)) 10%, transparent);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  transition: transform 0.35s var(--bp-ease), box-shadow 0.35s var(--bp-ease),
    background 0.35s var(--bp-ease);
}
.workflow-item:hover .workflow-icon {
  transform: translateY(-7px);
  background: var(--wf-bg, var(--bp-teal-soft));
  box-shadow: 0 18px 36px color-mix(in srgb, var(--wf-fg, var(--bp-teal)) 24%, transparent);
}
/* Each step gets its own accent (child 1 is the connecting line, items start at 2) */
.workflow-item:nth-child(2) .workflow-icon { --wf-fg: var(--ac-teal-fg);   --wf-bg: var(--ac-teal-bg); }
.workflow-item:nth-child(3) .workflow-icon { --wf-fg: var(--ac-blue-fg);   --wf-bg: var(--ac-blue-bg); }
.workflow-item:nth-child(4) .workflow-icon { --wf-fg: var(--ac-violet-fg); --wf-bg: var(--ac-violet-bg); }
.workflow-item:nth-child(5) .workflow-icon { --wf-fg: var(--ac-amber-fg);  --wf-bg: var(--ac-amber-bg); }
.workflow-item:nth-child(6) .workflow-icon { --wf-fg: var(--ac-coral-fg);  --wf-bg: var(--ac-coral-bg); }
.workflow-item:nth-child(7) .workflow-icon { --wf-fg: var(--ac-green-fg);  --wf-bg: var(--ac-green-bg); }
.workflow-label {
  font-weight: 700;
  color: var(--bp-heading);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Final CTA — dark aurora card bookending the hero
   -------------------------------------------------------------------------- */
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--bp-radius-xl);
  padding: 76px 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--bp-shadow-dark);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(23, 179, 172, 0.35), transparent 62%),
    radial-gradient(720px 400px at 8% 115%, rgba(242, 179, 19, 0.16), transparent 60%),
    linear-gradient(150deg, var(--ink-800), var(--ink-900) 65%);
}
/* Dotted grid fading down from the top of the card */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
  mask-image: linear-gradient(180deg, #000, transparent 55%);
  pointer-events: none;
}
.cta-card > * { position: relative; }

.cta-card .section-eyebrow {
  background: rgba(248, 194, 74, 0.1);
  border-color: rgba(248, 194, 74, 0.3);
  color: var(--bp-gold-300);
  box-shadow: none;
}
.cta-card .section-eyebrow i { color: var(--bp-gold-300); }
.cta-card .section-title { color: #fff; }
.cta-card > p { color: rgba(255, 255, 255, 0.72); }

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--bp-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: transform 0.3s var(--bp-ease), background 0.3s var(--bp-ease),
    border-color 0.3s var(--bp-ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}
.contact-card .contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.contact-icon.wa { background: rgba(37, 211, 102, 0.14); color: #4ADE80; }
.contact-icon.mail { background: rgba(248, 194, 74, 0.14); color: var(--bp-gold-300); }
.contact-card .contact-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.contact-card .contact-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  direction: ltr;
  text-align: start;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* Simple centered footer: logo on top, plain texts stacked below */
.bp-footer {
  padding: 48px 0 32px;
  text-align: center;
  color: var(--bp-text);
  font-size: 0.95rem;
  border-top: 1px solid var(--bp-line);
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.1rem;
}
.footer-logo {
  height: 48px;
  width: auto;
}

.footer-tagline {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--bp-text);
  margin-bottom: 0.4rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.footer-link {
  color: var(--bp-text);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.25s var(--bp-ease);
}
.footer-link:hover { color: var(--bp-teal-deep); }
.footer-dot { color: var(--bp-muted); }

.footer-copy {
  font-size: 0.85rem;
  color: var(--bp-muted);
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--bp-line);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 23, 20, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--bp-ease), visibility 0.35s var(--bp-ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--bp-radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  transform: scale(0.92);
  transition: transform 0.35s var(--bp-ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px;
  inset-inline-end: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--bp-ease), transform 0.75s var(--bp-ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Reduced motion — quiet everything down
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bp-navbar,
  .hero-copy > *,
  .hero-visual,
  .hero-bg .hero-orb,
  .hero-subtitle::before,
  .stat-card,
  .workflow-line,
  .reveal.visible .feature-bullets li {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .app-frame { transform: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Compact the expanded navbar just above the collapse breakpoint */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .bp-navbar .nav-link { padding: 0.4rem 0.7rem; font-size: 0.92rem; }
  .bp-navbar .btn-bp-amber { padding: 0.5rem 1.05rem; font-size: 0.95rem; }
}

@media (max-width: 991.98px) {
  /* Navbar scrolls away with the page instead of staying pinned */
  .bp-navbar { position: absolute; }
  html { scroll-padding-top: 16px; }
  .hero { padding: 130px 0 60px; }
  .hero-visual { margin-top: 3rem; }
  .app-frame { transform: none; }
  .stat-1 { inset-inline-start: 0; }
  .stat-2 { inset-inline-end: 0; }
  .feature-block { padding: 30px; }
  .feature-index { font-size: 2.9rem; }
  /* Items wrap into two rows below lg — the single connector line no longer
     aligns with them, so it comes off */
  .workflow-line { display: none; }
}

@media (max-width: 575.98px) {
  .section { padding: 64px 0; }
  .hero { padding: 118px 0 48px; }
  .hero-subtitle { font-size: 0.95rem; padding: 0.4rem 0.95rem; }
  .hero .btn { padding: 0.8rem 1.6rem; font-size: 0.98rem; }
  .feature-block { padding: 24px; border-radius: 24px; }
  .feature-index { font-size: 2.2rem; }
  .feature-head { gap: 0.75rem; margin-bottom: 0.95rem; }
  .feature-badge { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 15px; }
  .feature-title { font-size: 1.25rem; }
  .feature-category { font-size: 0.74rem; }
  .stat-card { padding: 0.6rem 0.8rem; }
  .stat-card .stat-icon { width: 36px; height: 36px; font-size: 1rem; }
  .cta-card { padding: 48px 24px; border-radius: 28px; }
  .contact-card { padding: 1.1rem; gap: 0.8rem; }
  .contact-card .contact-icon { width: 48px; height: 48px; font-size: 1.3rem; }
  .contact-card .contact-value { font-size: 1rem; }
  .why-statement { padding: 1.8rem 1.3rem 1.3rem; }
  .why-statement p { font-size: 1rem; }
  .workflow { margin-top: 2.2rem; }
  .workflow-item { flex: 1 1 40%; margin-bottom: 1.4rem; }
  .workflow-icon { width: 68px; height: 68px; font-size: 1.6rem; border-radius: 20px; }
}

/* Very small phones */
@media (max-width: 479.98px) {
  .hero { padding: 112px 0 44px; }
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 0.88rem; }
  /* Full-width CTAs stack cleanly */
  .hero .btn { width: 100%; justify-content: center; }
  .app-frame { padding: 8px; }
  /* Three floating cards crowd a tiny screenshot — drop the middle one */
  .stat-2 { display: none; }
  .feature-index { font-size: 1.9rem; }
  .cta-card { padding: 40px 18px; }
}
