/* =========================================================
   BUSINESS OPERATIONS ALIGNMENT — LUCIWISE STANDARD
   Dark/Light + Purple + Responsive + Animation
========================================================= */

:root{
  --boa-container: 1200px;

  --boa-purple: #7c3aed;
  --boa-purple-2: #8b5cf6;
  --boa-blue: #3b82f6;

  --boa-bg: #ffffff;
  --boa-text: #0f172a;
  --boa-muted: rgba(15,23,42,.72);
  --boa-card: rgba(255,255,255,.72);
  --boa-border: rgba(15,23,42,.10);
  --boa-soft: rgba(124,58,237,.10);
}

html[data-theme="dark"]{
  --boa-bg: #0b0f19;
  --boa-text: #f8fafc;
  --boa-muted: rgba(226,232,240,.76);
  --boa-card: rgba(15,23,42,.72);
  --boa-border: rgba(255,255,255,.12);
  --boa-soft: rgba(139,92,246,.16);
}

*{
  box-sizing: border-box;
}

html,
body{
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--boa-bg);
  color: var(--boa-text);
}

/* =========================================================
   BASE SECTION
========================================================= */

.boa-section{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 8vw, 120px) clamp(18px, 4vw, 34px);
  background: var(--boa-bg);
  color: var(--boa-text);
}

.boa-section::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(124,58,237,.18), transparent 58%),
    radial-gradient(820px 460px at 82% 18%, rgba(59,130,246,.14), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(124,58,237,.10), transparent 58%),
    repeating-linear-gradient(to right, transparent 0 31px, rgba(15,23,42,.075) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(15,23,42,.055) 31px 32px);
}

html[data-theme="dark"] .boa-section::before{
  background:
    radial-gradient(900px 520px at 18% 18%, rgba(124,58,237,.30), transparent 58%),
    radial-gradient(820px 460px at 82% 18%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(900px 500px at 50% 100%, rgba(124,58,237,.18), transparent 58%),
    repeating-linear-gradient(to right, transparent 0 31px, rgba(255,255,255,.075) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(255,255,255,.055) 31px 32px);
}

.boa-section::after{
  content:"";
  position:absolute;
  inset:-20% -10% auto auto;
  width:58%;
  height:120%;
  z-index:-1;
  pointer-events:none;
  background: linear-gradient(135deg, transparent 0%, rgba(124,58,237,.12) 45%, transparent 70%);
  transform: rotate(-8deg);
}

.boa-wrap{
  max-width: var(--boa-container);
  margin: 0 auto;
}

/* =========================================================
   HERO
========================================================= */

.boa-hero{
  min-height: calc(100vh - var(--header-h, 78px));
  display: flex;
  align-items: center;
}

.boa-hero-grid{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
}

.boa-hero-content{
  animation: boaFadeUp .75s ease both;
}

.boa-kicker{
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--boa-text);
  background: var(--boa-soft);
  border: 1px solid rgba(124,58,237,.20);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.boa-kicker::before{
  content:"";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--boa-purple);
  box-shadow: 0 0 0 6px rgba(124,58,237,.14);
}

.boa-hero h1{
  max-width: 12ch;
  margin: 0;
  color: var(--boa-text);
  font-size: clamp(2.55rem, 5.5vw, 5.5rem);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 950;
}

.boa-hero-content > p{
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--boa-muted);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.75;
}

.boa-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* =========================================================
   BUTTONS
========================================================= */

.boa-btn{
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 900;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease,
    filter .22s ease;
}

.boa-btn-primary{
  color: #ffffff;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 22px 46px rgba(124,58,237,.32);
}

.boa-btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(124,58,237,.42);
  filter: brightness(1.03);
}

.boa-btn-secondary{
  color: var(--boa-text);
  background: var(--boa-card);
  border: 1px solid var(--boa-border);
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .boa-btn-secondary{
  box-shadow: 0 14px 30px rgba(0,0,0,.26);
}

.boa-btn-secondary:hover{
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.36);
}

/* =========================================================
   HERO VISUAL
========================================================= */

.boa-hero-visual{
  position: relative;
  min-height: clamp(430px, 44vw, 610px);
  display: grid;
  place-items: center;
  border-radius: 34px;
  background:
    radial-gradient(620px 320px at 50% 20%, rgba(124,58,237,.18), transparent 58%),
    repeating-linear-gradient(to right, transparent 0 31px, rgba(127,127,127,.10) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(127,127,127,.08) 31px 32px);
  border: 1px solid var(--boa-border);
  box-shadow:
    0 34px 90px rgba(15,23,42,.14),
    inset 0 1px 0 rgba(255,255,255,.20);
  overflow: hidden;
  animation: boaFadeUp .85s ease .12s both;
}

html[data-theme="dark"] .boa-hero-visual{
  box-shadow:
    0 34px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.boa-operation-board{
  position: relative;
  width: min(680px, 90%);
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 34px 80px rgba(15,23,42,.22);
  backdrop-filter: blur(18px);
  animation: boaFloat 7s ease-in-out infinite;
}

html[data-theme="dark"] .boa-operation-board{
  background: rgba(15,23,42,.78);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 34px 80px rgba(0,0,0,.44);
}

.boa-board-top{
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(127,127,127,.16);
}

.boa-board-top span{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(124,58,237,.72);
}

.boa-board-grid{
  position: relative;
  min-height: 390px;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boa-board-grid::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(124,58,237,.15);
  box-shadow:
    0 0 0 18px rgba(124,58,237,.07),
    0 0 0 44px rgba(124,58,237,.045);
  animation: boaPulse 2.8s ease-in-out infinite;
}

.boa-flow-card{
  position: relative;
  z-index: 2;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 24px;
  color: var(--boa-text);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(127,127,127,.14);
  box-shadow: 0 20px 50px rgba(15,23,42,.12);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

html[data-theme="dark"] .boa-flow-card{
  background: rgba(255,255,255,.07);
  box-shadow: 0 20px 50px rgba(0,0,0,.30);
}

.boa-flow-card:hover{
  transform: translateY(-6px);
  border-color: rgba(124,58,237,.34);
  box-shadow: 0 28px 70px rgba(124,58,237,.14);
}

.boa-flow-card.is-main{
  grid-column: span 2;
  min-height: 180px;
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(124,58,237,.18), transparent 58%),
    rgba(255,255,255,.72);
}

html[data-theme="dark"] .boa-flow-card.is-main{
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(124,58,237,.24), transparent 58%),
    rgba(255,255,255,.08);
}

.boa-flow-card i{
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--boa-purple), var(--boa-purple-2));
  box-shadow: 0 16px 34px rgba(124,58,237,.24);
}

.boa-flow-card strong{
  color: var(--boa-text);
  font-size: clamp(1.08rem, 1.6vw, 1.4rem);
  line-height: 1.15;
  font-weight: 950;
}

.boa-flow-card span{
  margin-top: 7px;
  color: var(--boa-muted);
  font-size: .86rem;
  font-weight: 800;
}

.boa-floating-note{
  position: absolute;
  z-index: 4;
  min-width: 158px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--boa-text);
  background: var(--boa-card);
  border: 1px solid var(--boa-border);
  box-shadow: 0 18px 44px rgba(15,23,42,.16);
  backdrop-filter: blur(16px) saturate(150%);
}

html[data-theme="dark"] .boa-floating-note{
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
}

.boa-floating-note strong{
  display: block;
  font-size: .92rem;
  font-weight: 950;
}

.boa-floating-note span{
  display: block;
  margin-top: 4px;
  color: var(--boa-muted);
  font-size: .78rem;
  font-weight: 800;
}

.note-one{
  top: 24px;
  right: 24px;
  animation: boaFloating 5.8s ease-in-out infinite;
}

.note-two{
  left: 24px;
  bottom: 26px;
  animation: boaFloating 6.4s ease-in-out .2s infinite;
}

/* =========================================================
   SECTION HEAD
========================================================= */

.boa-section-head{
  max-width: 860px;
  margin: 0 auto clamp(34px, 5vw, 64px);
  text-align: center;
}

.boa-section-head h2{
  margin: 0;
  color: var(--boa-text);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 950;
}

.boa-section-head p{
  max-width: 740px;
  margin: 20px auto 0;
  color: var(--boa-muted);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.75;
}

/* =========================================================
   TOOLKIT
========================================================= */

.boa-tool-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.boa-tool-card,
.boa-card,
.boa-stage,
.boa-final-card{
  background: var(--boa-card);
  border: 1px solid var(--boa-border);
  box-shadow:
    0 34px 90px rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.20);
  backdrop-filter: blur(18px) saturate(155%);
}

html[data-theme="dark"] .boa-tool-card,
html[data-theme="dark"] .boa-card,
html[data-theme="dark"] .boa-stage,
html[data-theme="dark"] .boa-final-card{
  box-shadow:
    0 34px 90px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.boa-tool-card{
  padding: 26px;
  border-radius: 30px;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.boa-tool-card:hover{
  transform: translateY(-8px);
  border-color: rgba(124,58,237,.38);
  box-shadow: 0 42px 110px rgba(124,58,237,.16);
}

.boa-tool-card i{
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--boa-purple), var(--boa-purple-2));
  box-shadow: 0 18px 38px rgba(124,58,237,.26);
}

.boa-tool-card h3{
  margin: 0;
  color: var(--boa-text);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 950;
}

.boa-tool-card p{
  margin: 14px 0 0;
  color: var(--boa-muted);
  line-height: 1.7;
  font-size: .96rem;
}

/* =========================================================
   CARDS
========================================================= */

.boa-cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.boa-card{
  padding: clamp(24px, 3vw, 32px);
  border-radius: 30px;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.boa-card:hover{
  transform: translateY(-8px);
  border-color: rgba(124,58,237,.38);
  box-shadow: 0 42px 110px rgba(124,58,237,.16);
}

.boa-card > span{
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--boa-purple-2);
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.boa-card h3{
  margin: 0;
  color: var(--boa-text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 950;
}

.boa-card p{
  margin: 14px 0 0;
  color: var(--boa-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.boa-card ul{
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.boa-card li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--boa-text);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.45;
}

.boa-card li i{
  margin-top: 3px;
  color: var(--boa-purple-2);
}

/* =========================================================
   FLOW
========================================================= */

.boa-flow-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.boa-stage{
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 30px;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.boa-stage::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(124,58,237,.16), transparent 58%);
}

.boa-stage:hover{
  transform: translateY(-8px);
  border-color: rgba(124,58,237,.38);
  box-shadow: 0 42px 110px rgba(124,58,237,.16);
}

.boa-stage > *{
  position: relative;
  z-index: 1;
}

.boa-stage strong{
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--boa-purple-2);
  font-size: .84rem;
  font-weight: 950;
  letter-spacing: .16em;
}

.boa-stage h3{
  margin: 0;
  color: var(--boa-text);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 950;
}

.boa-stage p{
  margin: 16px 0 0;
  color: var(--boa-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* =========================================================
   FINAL CTA
========================================================= */

.boa-final-card{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 34px;
  background:
    radial-gradient(620px 320px at 0% 0%, rgba(124,58,237,.18), transparent 58%),
    var(--boa-card);
}

.boa-final-card h2{
  max-width: 760px;
  margin: 0;
  color: var(--boa-text);
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 950;
}

.boa-final-card p{
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--boa-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================
   REVEAL
========================================================= */

.boa-section,
.boa-tool-card,
.boa-card,
.boa-stage{
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

.boa-section.is-visible,
.boa-tool-card.is-visible,
.boa-card.is-visible,
.boa-stage.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1080px){
  .boa-hero-grid{
    grid-template-columns: 1fr;
  }

  .boa-hero-content,
  .boa-section-head{
    text-align: center;
  }

  .boa-hero h1{
    max-width: 13ch;
    margin: 0 auto;
  }

  .boa-hero-content > p{
    margin-left: auto;
    margin-right: auto;
  }

  .boa-kicker,
  .boa-actions{
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .boa-tool-grid,
  .boa-cards-grid,
  .boa-flow-grid{
    grid-template-columns: 1fr;
  }

  .boa-final-card{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .boa-final-card .boa-btn{
    justify-self: center;
  }
}

@media (max-width: 720px){
  .boa-section{
    padding: 64px 16px;
  }

  .boa-hero h1{
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }

  .boa-section-head h2{
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .boa-actions,
  .boa-btn{
    width: 100%;
  }

  .boa-hero-visual{
    min-height: 430px;
    border-radius: 26px;
  }

  .boa-operation-board{
    width: 94%;
    border-radius: 22px;
  }

  .boa-board-grid{
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .boa-flow-card,
  .boa-flow-card.is-main{
    grid-column: span 1;
    min-height: 138px;
    border-radius: 22px;
  }

  .boa-floating-note{
    display: none;
  }

  .boa-tool-card,
  .boa-card,
  .boa-stage{
    border-radius: 24px;
    padding: 22px;
  }

  .boa-final-card{
    padding: 22px 18px;
    border-radius: 26px;
  }
}

@media (max-width: 420px){
  .boa-hero-visual{
    min-height: 390px;
  }

  .boa-operation-board{
    width: 100%;
  }

  .boa-board-top{
    height: 38px;
  }

  .boa-flow-card{
    padding: 18px;
  }
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes boaFadeUp{
  from{
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes boaFloat{
  0%,100%{
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50%{
    transform: translateY(-10px) rotateX(1deg) rotateY(-1deg);
  }
}

@keyframes boaFloating{
  0%,100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(-12px);
  }
}

@keyframes boaPulse{
  0%,100%{
    transform: translate(-50%, -50%) scale(.94);
    opacity: .72;
  }
  50%{
    transform: translate(-50%, -50%) scale(1.08);
    opacity: .38;
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation: none !important;
    transition: none !important;
  }

  .boa-section,
  .boa-tool-card,
  .boa-card,
  .boa-stage{
    opacity: 1 !important;
    transform: none !important;
  }
}