/* ══════════════════════════════════════════════════════════════
   ORIGINEI HUB — Visual Effects & Decorative Utilities
   Extracted from the Design System (originei-design-system.css)
   Ref: design_system3, design_system8, Grafeno/Cadence visual language
══════════════════════════════════════════════════════════════ */

/* ── Scanline horizontal (tech/dark cards) ──────────────────── */
.bg-scanline {
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.013) 2px,
    rgba(255,255,255,0.013) 4px
  );
}

/* ── Diagonal stripe ────────────────────────────────────────── */
.bg-stripe-dark {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.025) 18px,
    rgba(255,255,255,0.025) 19px
  );
}
/* Light stripe — laranja sutil para seções brancas */
.bg-stripe-light {
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 24px,
    rgba(255,107,0,0.055) 24px,
    rgba(255,107,0,0.055) 25px
  );
}

/* ── Rule with glow — orange horizontal divider ─────────────── */
.rule-glow {
  height: 1px;
  border: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,107,0,0.6) 35%,
    rgba(255,107,0,0.6) 65%,
    transparent 100%
  );
  position: relative;
  margin: 0;
}
.rule-glow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 14px;
  border-radius: 50%;
  background: rgba(255,107,0,0.4);
  filter: blur(8px);
  pointer-events: none;
}

/* ── Corner ticks — L-brackets on containers ────────────────── */
.corner-ticks {
  position: relative;
}
.corner-ticks::before,
.corner-ticks::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(255,107,0,0.55);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
  transition: border-color var(--t-base);
}
.corner-ticks::before {
  top: 8px; left: 8px;
  border-width: 2px 0 0 2px;
}
.corner-ticks::after {
  bottom: 8px; right: 8px;
  border-width: 0 2px 2px 0;
}
.corner-ticks:hover::before,
.corner-ticks:hover::after {
  border-color: rgba(255,107,0,0.9);
}

/* Dark-section variant (brighter ticks) */
.section-dark .corner-ticks::before,
.section-dark .corner-ticks::after,
.section-off-dark .corner-ticks::before,
.section-off-dark .corner-ticks::after {
  border-color: rgba(255,107,0,0.65);
}

/* ── Shimmer border — glowing outline on featured cards ─────── */
.shimmer-border {
  position: relative;
}
.shimmer-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,107,0,0) 0%,
    rgba(255,107,0,0.55) 40%,
    rgba(255,107,0,0.55) 60%,
    rgba(255,107,0,0) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
  background-size: 200% 100%;
  animation: shimmer-slide 2.5s linear infinite;
}
.shimmer-border:hover::before {
  opacity: 1;
}
@keyframes shimmer-slide {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Floating section blobs ─────────────────────────────────── */
.section-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.75;
  z-index: 0;
}
.sb-accent  { background: radial-gradient(circle, rgba(255,107,0,0.30), transparent 70%); }
.sb-neutral { background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%); }
.sb-1  { width: 480px; height: 480px; top: -100px; left: -140px;  }
.sb-2  { width: 380px; height: 380px; top: 40px;   right: -110px; }
.sb-3  { width: 300px; height: 300px; bottom: -60px; left: 30%;   }

/* ── Ambient strip — thin accent line below section ─────────── */
.ambient-strip {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,107,0,0.0) 20%,
    rgba(255,107,0,0.4) 50%,
    rgba(255,107,0,0.0) 80%,
    transparent 100%
  );
  position: relative;
}
.ambient-strip::after {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 6px;
  background: rgba(255,107,0,0.5);
  border-radius: 50%;
  filter: blur(4px);
}

/* ── Type-tag — pill badge (inline annotation) ──────────────── */
.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 40px;
  padding: 4px 12px;
}
.type-tag .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Dark variant */
.type-tag.dark {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.type-tag.dark .dot {
  background: rgba(255,255,255,0.55);
  box-shadow: none;
}

/* ── Text wipe — accent highlight word animation ────────────── */
.text-wipe {
  display: inline;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    #FF8C00 50%,
    var(--accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wipe-pan 4s linear infinite;
}
@keyframes wipe-pan {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* ── Scan frame corners — identical to design-system scan-corner */
/* (already defined in home.css, aliased here for general use) */
.scan-frame {
  position: relative;
}
.scan-frame .sc {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
}
.scan-frame .sc::before,
.scan-frame .sc::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.scan-frame .sc-tl { top: 12px; left: 12px; }
.scan-frame .sc-tr { top: 12px; right: 12px; }
.scan-frame .sc-bl { bottom: 12px; left: 12px; }
.scan-frame .sc-br { bottom: 12px; right: 12px; }
.scan-frame .sc-tl::before, .scan-frame .sc-tr::before,
.scan-frame .sc-bl::before, .scan-frame .sc-br::before { width: 100%; height: 1.5px; top: 0; left: 0; }
.scan-frame .sc-tl::after  { width: 1.5px; height: 100%; top: 0; left: 0; }
.scan-frame .sc-tr::after  { width: 1.5px; height: 100%; top: 0; right: 0; left: auto; }
.scan-frame .sc-bl::after  { width: 1.5px; height: 100%; bottom: 0; top: auto; left: 0; }
.scan-frame .sc-br::after  { width: 1.5px; height: 100%; bottom: 0; top: auto; right: 0; left: auto; }

/* ── Glow dots — tiny accent dot marks ─────────────────────── */
.glow-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px rgba(255,107,0,0.5);
  flex-shrink: 0;
}

/* ── Gradient text utility ──────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, #FF8C00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Horizontal rule with center diamond ───────────────────── */
.rule-diamond {
  position: relative;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,107,0,0.2) 30%,
    rgba(255,107,0,0.2) 70%,
    transparent
  );
  border: none;
  margin: 0;
}
.rule-diamond::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,107,0,0.6);
}

/* ── Section noise / grain overlay (dark variant) ───────────── */
.grain-dark {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Inset glow box — radial glow from top-right corner ─────── */
.inset-glow {
  position: relative;
  overflow: hidden;
}
.inset-glow::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.18), transparent 70%);
  pointer-events: none;
}

/* ── Card with bottom glow accent ───────────────────────────── */
.card-glow-bottom {
  position: relative;
  overflow: hidden;
}
.card-glow-bottom::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent) 50%,
    transparent
  );
  opacity: 0;
  transition: opacity var(--t-base);
}
.card-glow-bottom:hover::after {
  opacity: 1;
}

/* ── Numbered tag — for step lists ─────────────────────────── */
.num-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,107,0,0.3);
  font-family: var(--ff-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--accent);
  background: rgba(255,107,0,0.06);
  flex-shrink: 0;
}

/* ── Vertical line accent (before heading) ──────────────────── */
.vline-accent {
  display: inline-block;
  width: 3px; height: 28px;
  background: var(--accent);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 10px;
}

/* ── Animated background grid (JS-less version) ─────────────── */
.bg-anim-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 40s linear infinite;
  pointer-events: none;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* ── Floating orb animation ─────────────────────────────────── */
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.04); }
}
.orb-float { animation: orb-float 8s ease-in-out infinite; }
.orb-float-slow { animation: orb-float 14s ease-in-out infinite; }
.orb-float-delay { animation: orb-float 10s ease-in-out 3s infinite; }

/* ══ LIGHT-SECTION DECORATORS ═══════════════════════════════════
   Elementos visíveis mas discretos para seções brancas
═══════════════════════════════════════════════════════════════ */

/* Linha superior de destaque laranja (top edge accent) */
.section-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255,107,0,0.5) 30%,
    rgba(255,107,0,0.5) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Pontos decorativos nos cantos de seções claras */
.corner-dots {
  position: relative;
}
.corner-dots::before,
.corner-dots::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,107,0,0.45);
  box-shadow: 0 0 10px rgba(255,107,0,0.35);
  pointer-events: none;
  z-index: 2;
}
.corner-dots::before { top: 20px; left: 20px; }
.corner-dots::after  { bottom: 20px; right: 20px; }

/* Cruz decorativa (+) em cantos — estilo design_system3 */
.cross-mark {
  position: absolute;
  width: 16px; height: 16px;
  pointer-events: none;
}
.cross-mark::before,
.cross-mark::after {
  content: '';
  position: absolute;
  background: rgba(255,107,0,0.45);
  border-radius: 1px;
}
.cross-mark::before {
  top: 50%; left: 0; right: 0; height: 1.5px;
  transform: translateY(-50%);
}
.cross-mark::after {
  left: 50%; top: 0; bottom: 0; width: 1.5px;
  transform: translateX(-50%);
}

/* Section label com linha superior visível */
.section-header-accent {
  position: relative;
  padding-top: var(--sp-3);
}
.section-header-accent::before {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: var(--sp-3);
  box-shadow: 0 0 12px rgba(255,107,0,0.4);
}

/* Linha horizontal tracejada decorativa */
.dashed-rule {
  border: none;
  height: 0;
  border-top: 1.5px dashed rgba(255,107,0,0.22);
  margin: 0;
}

/* Dot trail — linha de pontos horizontais */
.dot-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-5);
}
.dot-trail span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,107,0,0.5);
  display: block;
}
.dot-trail span:nth-child(2) { opacity: 0.65; }
.dot-trail span:nth-child(3) { opacity: 0.35; }

/* Faint radial gradient orb for light sections */
.light-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}
.light-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.09), transparent 70%);
  top: -100px; right: -80px;
}
.light-orb-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,107,0,0.06), transparent 70%);
  bottom: -80px; left: 60px;
}
